Skip to content

Commit d2c9f5d

Browse files
author
awstools
committedMar 13, 2025
feat(client-dynamodb): Generate account endpoints for DynamoDB requests using ARN-sourced account ID when available
1 parent 60c47be commit d2c9f5d

File tree

53 files changed

+8404
-992
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+8404
-992
lines changed
 

‎clients/client-dynamodb/src/commands/BatchGetItemCommand.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,10 @@ export class BatchGetItemCommand extends $Command
346346
ServiceInputTypes,
347347
ServiceOutputTypes
348348
>()
349-
.ep(commonParams)
349+
.ep({
350+
...commonParams,
351+
ResourceArnList: { type: "operationContextParams", get: (input?: any) => Object.keys(input?.RequestItems ?? {}) },
352+
})
350353
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
351354
return [
352355
getSerdePlugin(config, this.serialize, this.deserialize),

‎clients/client-dynamodb/src/commands/BatchWriteItemCommand.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,10 @@ export class BatchWriteItemCommand extends $Command
392392
ServiceInputTypes,
393393
ServiceOutputTypes
394394
>()
395-
.ep(commonParams)
395+
.ep({
396+
...commonParams,
397+
ResourceArnList: { type: "operationContextParams", get: (input?: any) => Object.keys(input?.RequestItems ?? {}) },
398+
})
396399
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
397400
return [
398401
getSerdePlugin(config, this.serialize, this.deserialize),

0 commit comments

Comments
 (0)
Please sign in to comment.