Skip to content

Commit ad0e8d9

Browse files
author
awstools
committedJun 5, 2024
feat(client-s3): Added new params copySource and key to copyObject API for supporting S3 Access Grants plugin. These changes will not change any of the existing S3 API functionality.
1 parent 759dc88 commit ad0e8d9

File tree

4 files changed

+77
-36
lines changed

4 files changed

+77
-36
lines changed
 

‎clients/client-s3/src/commands/CopyObjectCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ export class CopyObjectCommand extends $Command
318318
...commonParams,
319319
DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true },
320320
Bucket: { type: "contextParams", name: "Bucket" },
321+
Key: { type: "contextParams", name: "Key" },
322+
CopySource: { type: "contextParams", name: "CopySource" },
321323
})
322324
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
323325
return [

‎clients/client-s3/src/endpoint/EndpointParameters.ts

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export interface EndpointParameters extends __EndpointParameters {
6161
UseObjectLambdaEndpoint?: boolean;
6262
Key?: string;
6363
Prefix?: string;
64+
CopySource?: string;
6465
DisableAccessPoints?: boolean;
6566
DisableMultiRegionAccessPoints?: boolean;
6667
UseArnRegion?: boolean;

0 commit comments

Comments
 (0)
Please sign in to comment.