From b474584f2cfb0438fb1007d0594a54cf1a1c2dcb Mon Sep 17 00:00:00 2001 From: awstools Date: Tue, 20 Aug 2024 18:26:44 +0000 Subject: [PATCH] feat(client-s3): Amazon Simple Storage Service / Features : Add support for conditional writes for PutObject and CompleteMultipartUpload APIs. --- .../CompleteMultipartUploadCommand.ts | 15 +++++-- .../commands/CreateMultipartUploadCommand.ts | 25 ++++++----- .../src/commands/PutObjectCommand.ts | 1 + .../src/commands/RestoreObjectCommand.ts | 4 ++ .../commands/SelectObjectContentCommand.ts | 4 ++ .../src/commands/UploadPartCommand.ts | 18 ++++++-- .../src/commands/UploadPartCopyCommand.ts | 39 ++++++++++++++---- clients/client-s3/src/models/models_0.ts | 20 +++++++-- clients/client-s3/src/models/models_1.ts | 41 ++++++++++++++++--- .../client-s3/src/protocols/Aws_restXml.ts | 2 + codegen/sdk-codegen/aws-models/s3.json | 40 ++++++++++++------ 11 files changed, 162 insertions(+), 47 deletions(-) diff --git a/clients/client-s3/src/commands/CompleteMultipartUploadCommand.ts b/clients/client-s3/src/commands/CompleteMultipartUploadCommand.ts index dd12554f6656..21aea076fb09 100644 --- a/clients/client-s3/src/commands/CompleteMultipartUploadCommand.ts +++ b/clients/client-s3/src/commands/CompleteMultipartUploadCommand.ts @@ -81,9 +81,10 @@ export interface CompleteMultipartUploadCommandOutput extends CompleteMultipartU * * *
Special errors
@@ -218,6 +226,7 @@ export interface CompleteMultipartUploadCommandOutput extends CompleteMultipartU * ChecksumSHA256: "STRING_VALUE", * RequestPayer: "requester", * ExpectedBucketOwner: "STRING_VALUE", + * IfNoneMatch: "STRING_VALUE", * SSECustomerAlgorithm: "STRING_VALUE", * SSECustomerKey: "STRING_VALUE", * SSECustomerKeyMD5: "STRING_VALUE", diff --git a/clients/client-s3/src/commands/CreateMultipartUploadCommand.ts b/clients/client-s3/src/commands/CreateMultipartUploadCommand.ts index 0f5f426ddf7a..26173ef13dbf 100644 --- a/clients/client-s3/src/commands/CreateMultipartUploadCommand.ts +++ b/clients/client-s3/src/commands/CreateMultipartUploadCommand.ts @@ -78,17 +78,20 @@ export interface CreateMultipartUploadCommandOutput extends CreateMultipartUploa *