Skip to content

Commit

Permalink
feat(client-s3): Added new params copySource and key to copyObject AP…
Browse files Browse the repository at this point in the history
…I for supporting S3 Access Grants plugin. These changes will not change any of the existing S3 API functionality.
  • Loading branch information
awstools committed Jun 5, 2024
1 parent 759dc88 commit ad0e8d9
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 36 deletions.
2 changes: 2 additions & 0 deletions clients/client-s3/src/commands/CopyObjectCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@ export class CopyObjectCommand extends $Command
...commonParams,
DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
Key: { type: "contextParams", name: "Key" },
CopySource: { type: "contextParams", name: "CopySource" },
})
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
return [
Expand Down
1 change: 1 addition & 0 deletions clients/client-s3/src/endpoint/EndpointParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export interface EndpointParameters extends __EndpointParameters {
UseObjectLambdaEndpoint?: boolean;
Key?: string;
Prefix?: string;
CopySource?: string;
DisableAccessPoints?: boolean;
DisableMultiRegionAccessPoints?: boolean;
UseArnRegion?: boolean;
Expand Down
Loading

0 comments on commit ad0e8d9

Please sign in to comment.