Skip to content

Commit

Permalink
feat(client-s3-control): It allows customers to pass CRC64NVME as a h…
Browse files Browse the repository at this point in the history
…eader in S3 Batch Operations copy requests
  • Loading branch information
awstools committed Dec 3, 2024
1 parent f87e55a commit 94cd2b3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion clients/client-s3-control/src/commands/CreateJobCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export interface CreateJobCommandOutput extends CreateJobResult, __MetadataBeare
* ObjectLockMode: "COMPLIANCE" || "GOVERNANCE",
* ObjectLockRetainUntilDate: new Date("TIMESTAMP"),
* BucketKeyEnabled: true || false,
* ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256",
* ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256" || "CRC64NVME",
* },
* S3PutObjectAcl: { // S3SetObjectAclOperation
* AccessControlPolicy: { // S3AccessControlPolicy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export interface DescribeJobCommandOutput extends DescribeJobResult, __MetadataB
* // ObjectLockMode: "COMPLIANCE" || "GOVERNANCE",
* // ObjectLockRetainUntilDate: new Date("TIMESTAMP"),
* // BucketKeyEnabled: true || false,
* // ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256",
* // ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256" || "CRC64NVME",
* // },
* // S3PutObjectAcl: { // S3SetObjectAclOperation
* // AccessControlPolicy: { // S3AccessControlPolicy
Expand Down
9 changes: 3 additions & 6 deletions clients/client-s3-control/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2439,6 +2439,7 @@ export interface S3SetObjectAclOperation {
export const S3ChecksumAlgorithm = {
CRC32: "CRC32",
CRC32C: "CRC32C",
CRC64NVME: "CRC64NVME",
SHA1: "SHA1",
SHA256: "SHA256",
} as const;
Expand Down Expand Up @@ -2633,12 +2634,8 @@ export interface S3CopyObjectOperation {
* <li>
* <p>
* <b>Directory buckets</b> - For example, to copy objects to a directory bucket named
* <code>destinationBucket</code> in the Availability Zone identified by the AZ ID <code>usw2-az1</code>, set the <code>TargetResource</code> property to
* <code>arn:aws:s3express:<i>region</i>:<i>account_id</i>:/bucket/<i>destination_bucket_base_name</i>--<i>usw2-az1</i>--x-s3</code>. A directory bucket as a destination bucket can be in Availability Zone or Local Zone. </p>
* <note>
* <p>Copying objects across different Amazon Web Services Regions isn't supported when the source or destination bucket is in Amazon Web Services Local Zones. The source and destination buckets must have the same parent Amazon Web Services Region. Otherwise,
* you get an HTTP <code>400 Bad Request</code> error with the error code <code>InvalidRequest</code>.</p>
* </note>
* <code>destinationBucket</code> in the Availability Zone; identified by the AZ ID <code>usw2-az1</code>, set the <code>TargetResource</code> property to
* <code>arn:aws:s3express:<i>region</i>:<i>account_id</i>:/bucket/<i>destination_bucket_base_name</i>--<i>usw2-az1</i>--x-s3</code>.</p>
* </li>
* </ul>
* @public
Expand Down
8 changes: 7 additions & 1 deletion codegen/sdk-codegen/aws-models/s3-control.json
Original file line number Diff line number Diff line change
Expand Up @@ -17257,6 +17257,12 @@
"traits": {
"smithy.api#enumValue": "SHA256"
}
},
"CRC64NVME": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "CRC64NVME"
}
}
}
},
Expand All @@ -17275,7 +17281,7 @@
"TargetResource": {
"target": "com.amazonaws.s3control#S3RegionalOrS3ExpressBucketArnString",
"traits": {
"smithy.api#documentation": "<p>Specifies the destination bucket\n Amazon Resource Name\n (ARN)\n for the batch copy operation.</p>\n <ul>\n <li>\n <p>\n <b>General purpose buckets</b> - For example, to copy objects to a general purpose bucket named\n <code>destinationBucket</code>, set the <code>TargetResource</code> property to\n <code>arn:aws:s3:::destinationBucket</code>.</p>\n </li>\n <li>\n <p>\n <b>Directory buckets</b> - For example, to copy objects to a directory bucket named\n <code>destinationBucket</code> in the Availability Zone identified by the AZ ID <code>usw2-az1</code>, set the <code>TargetResource</code> property to\n <code>arn:aws:s3express:<i>region</i>:<i>account_id</i>:/bucket/<i>destination_bucket_base_name</i>--<i>usw2-az1</i>--x-s3</code>. A directory bucket as a destination bucket can be in Availability Zone or Local Zone. </p>\n <note>\n <p>Copying objects across different Amazon Web Services Regions isn't supported when the source or destination bucket is in Amazon Web Services Local Zones. The source and destination buckets must have the same parent Amazon Web Services Region. Otherwise, \n you get an HTTP <code>400 Bad Request</code> error with the error code <code>InvalidRequest</code>.</p>\n </note>\n </li>\n </ul>"
"smithy.api#documentation": "<p>Specifies the destination bucket\n Amazon Resource Name\n (ARN)\n for the batch copy operation.</p>\n <ul>\n <li>\n <p>\n <b>General purpose buckets</b> - For example, to copy objects to a general purpose bucket named\n <code>destinationBucket</code>, set the <code>TargetResource</code> property to\n <code>arn:aws:s3:::destinationBucket</code>.</p>\n </li>\n <li>\n <p>\n <b>Directory buckets</b> - For example, to copy objects to a directory bucket named\n <code>destinationBucket</code> in the Availability Zone; identified by the AZ ID <code>usw2-az1</code>, set the <code>TargetResource</code> property to\n <code>arn:aws:s3express:<i>region</i>:<i>account_id</i>:/bucket/<i>destination_bucket_base_name</i>--<i>usw2-az1</i>--x-s3</code>.</p>\n </li>\n </ul>"
}
},
"CannedAccessControlList": {
Expand Down

0 comments on commit 94cd2b3

Please sign in to comment.