diff --git a/.changes/next-release/feature.s3.manager-feature-1616093328620827000.json b/.changes/next-release/feature.s3.manager-feature-1616093328620827000.json new file mode 100644 index 00000000000..e819f56d6e5 --- /dev/null +++ b/.changes/next-release/feature.s3.manager-feature-1616093328620827000.json @@ -0,0 +1,9 @@ +{ + "ID": "feature.s3.manager-feature-1616093328620827000", + "SchemaVersion": 1, + "Module": "feature/s3/manager", + "Type": "feature", + "Description": "Updates for S3 Object Lambda feature", + "MinVersion": "", + "AffectedModules": null +} \ No newline at end of file diff --git a/.changes/next-release/service.internal.s3shared-feature-1616093429190725000.json b/.changes/next-release/service.internal.s3shared-feature-1616093429190725000.json new file mode 100644 index 00000000000..56a5df6b275 --- /dev/null +++ b/.changes/next-release/service.internal.s3shared-feature-1616093429190725000.json @@ -0,0 +1,9 @@ +{ + "ID": "service.internal.s3shared-feature-1616093429190725000", + "SchemaVersion": 1, + "Module": "service/internal/s3shared", + "Type": "feature", + "Description": "Support for S3 Object Lambda", + "MinVersion": "", + "AffectedModules": null +} \ No newline at end of file diff --git a/.changes/next-release/service.s3-feature-1616093381239174000.json b/.changes/next-release/service.s3-feature-1616093381239174000.json new file mode 100644 index 00000000000..82e3e37b864 --- /dev/null +++ b/.changes/next-release/service.s3-feature-1616093381239174000.json @@ -0,0 +1,9 @@ +{ + "ID": "service.s3-feature-1616093381239174000", + "SchemaVersion": 1, + "Module": "service/s3", + "Type": "feature", + "Description": "S3 Object Lambda is a new S3 feature that enables users to apply their own custom code to process the output of a standard S3 GET request by automatically invoking a Lambda function with a GET request", + "MinVersion": "", + "AffectedModules": null +} \ No newline at end of file diff --git a/.changes/next-release/service.s3control-feature-1616093391667799000.json b/.changes/next-release/service.s3control-feature-1616093391667799000.json new file mode 100644 index 00000000000..50ff23e4971 --- /dev/null +++ b/.changes/next-release/service.s3control-feature-1616093391667799000.json @@ -0,0 +1,9 @@ +{ + "ID": "service.s3control-feature-1616093391667799000", + "SchemaVersion": 1, + "Module": "service/s3control", + "Type": "feature", + "Description": "S3 Object Lambda is a new S3 feature that enables users to apply their own custom code to process the output of a standard S3 GET request by automatically invoking a Lambda function with a GET request", + "MinVersion": "", + "AffectedModules": null +} \ No newline at end of file diff --git a/.changes/next-release/service.wildcard-bugfix-1616093590156551000.json b/.changes/next-release/service.wildcard-bugfix-1616093590156551000.json new file mode 100644 index 00000000000..37d067ddca7 --- /dev/null +++ b/.changes/next-release/service.wildcard-bugfix-1616093590156551000.json @@ -0,0 +1,16 @@ +{ + "ID": "service.wildcard-bugfix-1616093590156551000", + "SchemaVersion": 1, + "Module": "service/...", + "Type": "bugfix", + "Description": "Updated presign URLs to no longer include the X-Amz-User-Agent header", + "MinVersion": "", + "AffectedModules": [ + "service/docdb", + "service/ec2", + "service/neptune", + "service/rds", + "service/s3", + "service/sts" + ] +} diff --git a/codegen/sdk-codegen/aws-models/s3.2006-03-01.json b/codegen/sdk-codegen/aws-models/s3.2006-03-01.json index 249ca0d8e9e..27b4996021c 100644 --- a/codegen/sdk-codegen/aws-models/s3.2006-03-01.json +++ b/codegen/sdk-codegen/aws-models/s3.2006-03-01.json @@ -60,7 +60,7 @@ } ], "traits": { - "smithy.api#documentation": "

This operation aborts a multipart upload. After a multipart upload is aborted, no\n additional parts can be uploaded using that upload ID. The storage consumed by any\n previously uploaded parts will be freed. However, if any part uploads are currently in\n progress, those part uploads might or might not succeed. As a result, it might be necessary\n to abort a given multipart upload multiple times in order to completely free all storage\n consumed by all parts.

\n

To verify that all parts have been removed, so you don't get charged for the part\n storage, you should call the ListParts operation and ensure that\n the parts list is empty.

\n

For information about permissions required to use the multipart upload API, see Multipart Upload API and\n Permissions.

\n

The following operations are related to AbortMultipartUpload:

\n ", + "smithy.api#documentation": "

This action aborts a multipart upload. After a multipart upload is aborted, no\n additional parts can be uploaded using that upload ID. The storage consumed by any\n previously uploaded parts will be freed. However, if any part uploads are currently in\n progress, those part uploads might or might not succeed. As a result, it might be necessary\n to abort a given multipart upload multiple times in order to completely free all storage\n consumed by all parts.

\n

To verify that all parts have been removed, so you don't get charged for the part\n storage, you should call the ListParts action and ensure that\n the parts list is empty.

\n

For information about permissions required to use the multipart upload, see Multipart Upload and\n Permissions.

\n

The following operations are related to AbortMultipartUpload:

\n ", "smithy.api#http": { "method": "DELETE", "uri": "/{Bucket}/{Key+}?x-id=AbortMultipartUpload", @@ -85,7 +85,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The bucket name to which the upload was taking place.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The bucket name to which the upload was taking place.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -115,7 +115,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -486,6 +486,9 @@ }, { "target": "com.amazonaws.s3#UploadPartCopy" + }, + { + "target": "com.amazonaws.s3#WriteGetObjectResponse" } ], "traits": { @@ -962,6 +965,12 @@ "com.amazonaws.s3#CORSRule": { "type": "structure", "members": { + "ID": { + "target": "com.amazonaws.s3#ID", + "traits": { + "smithy.api#documentation": "

Unique identifier for the rule. The value cannot be longer than 255 characters.

" + } + }, "AllowedHeaders": { "target": "com.amazonaws.s3#AllowedHeaders", "traits": { @@ -1139,10 +1148,10 @@ "target": "com.amazonaws.s3#CompleteMultipartUploadOutput" }, "traits": { - "smithy.api#documentation": "

Completes a multipart upload by assembling previously uploaded parts.

\n

You first initiate the multipart upload and then upload all parts using the UploadPart\n operation. After successfully uploading all relevant parts of an upload, you call this\n operation to complete the upload. Upon receiving this request, Amazon S3 concatenates all\n the parts in ascending order by part number to create a new object. In the Complete\n Multipart Upload request, you must provide the parts list. You must ensure that the parts\n list is complete. This operation concatenates the parts that you provide in the list. For\n each part in the list, you must provide the part number and the ETag value,\n returned after that part was uploaded.

\n

Processing of a Complete Multipart Upload request could take several minutes to\n complete. After Amazon S3 begins processing the request, it sends an HTTP response header that\n specifies a 200 OK response. While processing is in progress, Amazon S3 periodically sends white\n space characters to keep the connection from timing out. Because a request could fail after\n the initial 200 OK response has been sent, it is important that you check the response body\n to determine whether the request succeeded.

\n

Note that if CompleteMultipartUpload fails, applications should be prepared\n to retry the failed requests. For more information, see Amazon S3 Error Best Practices.

\n

For more information about multipart uploads, see Uploading Objects Using Multipart\n Upload.

\n

For information about permissions required to use the multipart upload API, see Multipart Upload API and\n Permissions.

\n\n\n

\n CompleteMultipartUpload has the following special errors:

\n \n\n

The following operations are related to CompleteMultipartUpload:

\n ", + "smithy.api#documentation": "

Completes a multipart upload by assembling previously uploaded parts.

\n

You first initiate the multipart upload and then upload all parts using the UploadPart\n operation. After successfully uploading all relevant parts of an upload, you call this\n action to complete the upload. Upon receiving this request, Amazon S3 concatenates all\n the parts in ascending order by part number to create a new object. In the Complete\n Multipart Upload request, you must provide the parts list. You must ensure that the parts\n list is complete. This action concatenates the parts that you provide in the list. For\n each part in the list, you must provide the part number and the ETag value,\n returned after that part was uploaded.

\n

Processing of a Complete Multipart Upload request could take several minutes to\n complete. After Amazon S3 begins processing the request, it sends an HTTP response header that\n specifies a 200 OK response. While processing is in progress, Amazon S3 periodically sends white\n space characters to keep the connection from timing out. Because a request could fail after\n the initial 200 OK response has been sent, it is important that you check the response body\n to determine whether the request succeeded.

\n

Note that if CompleteMultipartUpload fails, applications should be prepared\n to retry the failed requests. For more information, see Amazon S3 Error Best Practices.

\n

For more information about multipart uploads, see Uploading Objects Using Multipart\n Upload.

\n

For information about permissions required to use the multipart upload API, see Multipart Upload and\n Permissions.

\n\n\n

\n CompleteMultipartUpload has the following special errors:

\n \n\n

The following operations are related to CompleteMultipartUpload:

\n ", "smithy.api#http": { "method": "POST", - "uri": "/{Bucket}/{Key+}", + "uri": "/{Bucket}/{Key+}?x-id=CompleteMultipartUpload", "code": 200 } } @@ -1159,7 +1168,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The name of the bucket that contains the newly created object.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

" + "smithy.api#documentation": "

The name of the bucket that contains the newly created object.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

" } }, "Key": { @@ -1261,7 +1270,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -1340,7 +1349,7 @@ "KeyPrefixEquals": { "target": "com.amazonaws.s3#KeyPrefixEquals", "traits": { - "smithy.api#documentation": "

The object key name prefix when the redirect is applied. For example, to redirect\n requests for ExamplePage.html, the key prefix will be\n ExamplePage.html. To redirect request for all pages with the prefix\n docs/, the key prefix will be /docs, which identifies all\n objects in the docs/ folder. Required when the parent element\n Condition is specified and sibling HttpErrorCodeReturnedEquals\n is not specified. If both conditions are specified, both must be true for the redirect to\n be applied.

" + "smithy.api#documentation": "

The object key name prefix when the redirect is applied. For example, to redirect\n requests for ExamplePage.html, the key prefix will be\n ExamplePage.html. To redirect request for all pages with the prefix\n docs/, the key prefix will be /docs, which identifies all\n objects in the docs/ folder. Required when the parent element\n Condition is specified and sibling HttpErrorCodeReturnedEquals\n is not specified. If both conditions are specified, both must be true for the redirect to\n be applied.

\n \n

Replacement must be made for object keys containing special characters (such as carriage returns) when using \n XML requests. For more information, see \n XML related object key constraints.

\n
" } } }, @@ -1393,7 +1402,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a copy of an object that is already stored in Amazon S3.

\n \n

You can store individual objects of up to 5 TB in Amazon S3. You create a copy of your\n object up to 5 GB in size in a single atomic operation using this API. However, to copy\n an object greater than 5 GB, you must use the multipart upload Upload Part - Copy API.\n For more information, see Copy Object Using the REST Multipart Upload API.

\n
\n

All copy requests must be authenticated. Additionally, you must have\n read access to the source object and write\n access to the destination bucket. For more information, see REST Authentication. Both the Region\n that you want to copy the object from and the Region that you want to copy the object to\n must be enabled for your account.

\n

A copy request might return an error when Amazon S3 receives the copy request or while Amazon S3\n is copying the files. If the error occurs before the copy operation starts, you receive a\n standard Amazon S3 error. If the error occurs during the copy operation, the error response is\n embedded in the 200 OK response. This means that a 200 OK\n response can contain either a success or an error. Design your application to parse the\n contents of the response and handle it appropriately.

\n

If the copy is successful, you receive a response with information about the copied\n object.

\n \n

If the request is an HTTP 1.1 request, the response is chunk encoded. If it were not,\n it would not contain the content-length, and you would need to read the entire\n body.

\n
\n

The copy request charge is based on the storage class and Region that you specify for\n the destination object. For pricing information, see Amazon S3 pricing.

\n \n

Amazon S3 transfer acceleration does not support cross-Region copies. If you request a\n cross-Region copy using a transfer acceleration endpoint, you get a 400 Bad\n Request error. For more information, see Transfer Acceleration.

\n
\n

\n Metadata\n

\n

When copying an object, you can preserve all metadata (default) or specify new metadata.\n However, the ACL is not preserved and is set to private for the user making the request. To\n override the default ACL setting, specify a new ACL when generating a copy request. For\n more information, see Using ACLs.

\n

To specify whether you want the object metadata copied from the source object or\n replaced with metadata provided in the request, you can optionally add the\n x-amz-metadata-directive header. When you grant permissions, you can use\n the s3:x-amz-metadata-directive condition key to enforce certain metadata\n behavior when objects are uploaded. For more information, see Specifying Conditions in a\n Policy in the Amazon S3 Developer Guide. For a complete list of\n Amazon S3-specific condition keys, see Actions, Resources, and Condition Keys for\n Amazon S3.

\n

\n \n x-amz-copy-source-if Headers\n

\n

To only copy an object under certain conditions, such as whether the Etag\n matches or whether the object was modified before or after a specified date, use the\n following request parameters:

\n \n

If both the x-amz-copy-source-if-match and\n x-amz-copy-source-if-unmodified-since headers are present in the request\n and evaluate as follows, Amazon S3 returns 200 OK and copies the data:

\n \n\n

If both the x-amz-copy-source-if-none-match and\n x-amz-copy-source-if-modified-since headers are present in the request and\n evaluate as follows, Amazon S3 returns the 412 Precondition Failed response\n code:

\n \n\n \n

All headers with the x-amz- prefix, including\n x-amz-copy-source, must be signed.

\n
\n

\n Server-side encryption\n

\n

When you perform a CopyObject operation, you can optionally use the appropriate encryption-related headers to encrypt the object using server-side encryption with AWS managed encryption keys (SSE-S3 or SSE-KMS) or a customer-provided encryption key. With server-side encryption, Amazon S3 encrypts your data as it writes it to disks in its data centers and decrypts the data when you access it. For more information about server-side encryption, see Using\n Server-Side Encryption.

\n

If a target object uses SSE-KMS, you can enable an S3 Bucket Key for the object. For more\n information, see Amazon S3 Bucket Keys in the Amazon Simple Storage Service Developer Guide.

\n

\n Access Control List (ACL)-Specific Request\n Headers\n

\n

When copying an object, you can optionally use headers to grant ACL-based permissions.\n By default, all objects are private. Only the owner has full access control. When adding a\n new object, you can grant permissions to individual AWS accounts or to predefined groups\n defined by Amazon S3. These permissions are then added to the ACL on the object. For more\n information, see Access Control List (ACL) Overview and Managing ACLs Using the REST\n API.

\n\n

\n Storage Class Options\n

\n

You can use the CopyObject operation to change the storage class of an\n object that is already stored in Amazon S3 using the StorageClass parameter. For\n more information, see Storage\n Classes in the Amazon S3 Service Developer Guide.

\n

\n Versioning\n

\n

By default, x-amz-copy-source identifies the current version of an object\n to copy. If the current version is a delete marker, Amazon S3 behaves as if the object was\n deleted. To copy a different version, use the versionId subresource.

\n

If you enable versioning on the target bucket, Amazon S3 generates a unique version ID for\n the object being copied. This version ID is different from the version ID of the source\n object. Amazon S3 returns the version ID of the copied object in the\n x-amz-version-id response header in the response.

\n

If you do not enable versioning or suspend it on the target bucket, the version ID that\n Amazon S3 generates is always null.

\n

If the source object's storage class is GLACIER, you must restore a copy of this object\n before you can use it as a source object for the copy operation. For more information, see\n RestoreObject.

\n

The following operations are related to CopyObject:

\n \n

For more information, see Copying\n Objects.

", + "smithy.api#documentation": "

Creates a copy of an object that is already stored in Amazon S3.

\n \n

You can store individual objects of up to 5 TB in Amazon S3. You create a copy of your\n object up to 5 GB in size in a single atomic action using this API. However, to copy\n an object greater than 5 GB, you must use the multipart upload Upload Part - Copy API.\n For more information, see Copy Object Using the REST Multipart Upload API.

\n
\n

All copy requests must be authenticated. Additionally, you must have\n read access to the source object and write\n access to the destination bucket. For more information, see REST Authentication. Both the Region\n that you want to copy the object from and the Region that you want to copy the object to\n must be enabled for your account.

\n

A copy request might return an error when Amazon S3 receives the copy request or while Amazon S3\n is copying the files. If the error occurs before the copy action starts, you receive a\n standard Amazon S3 error. If the error occurs during the copy operation, the error response is\n embedded in the 200 OK response. This means that a 200 OK\n response can contain either a success or an error. Design your application to parse the\n contents of the response and handle it appropriately.

\n

If the copy is successful, you receive a response with information about the copied\n object.

\n \n

If the request is an HTTP 1.1 request, the response is chunk encoded. If it were not,\n it would not contain the content-length, and you would need to read the entire\n body.

\n
\n

The copy request charge is based on the storage class and Region that you specify for\n the destination object. For pricing information, see Amazon S3 pricing.

\n \n

Amazon S3 transfer acceleration does not support cross-Region copies. If you request a\n cross-Region copy using a transfer acceleration endpoint, you get a 400 Bad\n Request error. For more information, see Transfer Acceleration.

\n
\n

\n Metadata\n

\n

When copying an object, you can preserve all metadata (default) or specify new metadata.\n However, the ACL is not preserved and is set to private for the user making the request. To\n override the default ACL setting, specify a new ACL when generating a copy request. For\n more information, see Using ACLs.

\n

To specify whether you want the object metadata copied from the source object or\n replaced with metadata provided in the request, you can optionally add the\n x-amz-metadata-directive header. When you grant permissions, you can use\n the s3:x-amz-metadata-directive condition key to enforce certain metadata\n behavior when objects are uploaded. For more information, see Specifying Conditions in a\n Policy in the Amazon S3 Developer Guide. For a complete list of\n Amazon S3-specific condition keys, see Actions, Resources, and Condition Keys for\n Amazon S3.

\n

\n \n x-amz-copy-source-if Headers\n

\n

To only copy an object under certain conditions, such as whether the Etag\n matches or whether the object was modified before or after a specified date, use the\n following request parameters:

\n \n

If both the x-amz-copy-source-if-match and\n x-amz-copy-source-if-unmodified-since headers are present in the request\n and evaluate as follows, Amazon S3 returns 200 OK and copies the data:

\n \n\n

If both the x-amz-copy-source-if-none-match and\n x-amz-copy-source-if-modified-since headers are present in the request and\n evaluate as follows, Amazon S3 returns the 412 Precondition Failed response\n code:

\n \n\n \n

All headers with the x-amz- prefix, including\n x-amz-copy-source, must be signed.

\n
\n

\n Server-side encryption\n

\n

When you perform a CopyObject operation, you can optionally use the appropriate encryption-related \n headers to encrypt the object using server-side encryption with AWS managed encryption keys \n (SSE-S3 or SSE-KMS) or a customer-provided encryption key. With server-side encryption, Amazon S3 \n encrypts your data as it writes it to disks in its data centers and decrypts the data when \n you access it. For more information about server-side encryption, see Using\n Server-Side Encryption.

\n

If a target object uses SSE-KMS, you can enable an S3 Bucket Key for the object. For more\n information, see Amazon S3 Bucket Keys in the Amazon S3 User Guide.

\n

\n Access Control List (ACL)-Specific Request\n Headers\n

\n

When copying an object, you can optionally use headers to grant ACL-based permissions.\n By default, all objects are private. Only the owner has full access control. When adding a\n new object, you can grant permissions to individual AWS accounts or to predefined groups\n defined by Amazon S3. These permissions are then added to the ACL on the object. For more\n information, see Access Control List (ACL) Overview and Managing ACLs Using the REST\n API.

\n\n

\n Storage Class Options\n

\n

You can use the CopyObject action to change the storage class of an\n object that is already stored in Amazon S3 using the StorageClass parameter. For\n more information, see Storage\n Classes in the Amazon S3 Service Developer Guide.

\n

\n Versioning\n

\n

By default, x-amz-copy-source identifies the current version of an object\n to copy. If the current version is a delete marker, Amazon S3 behaves as if the object was\n deleted. To copy a different version, use the versionId subresource.

\n

If you enable versioning on the target bucket, Amazon S3 generates a unique version ID for\n the object being copied. This version ID is different from the version ID of the source\n object. Amazon S3 returns the version ID of the copied object in the\n x-amz-version-id response header in the response.

\n

If you do not enable versioning or suspend it on the target bucket, the version ID that\n Amazon S3 generates is always null.

\n

If the source object's storage class is GLACIER, you must restore a copy of this object\n before you can use it as a source object for the copy operation. For more information, see\n RestoreObject.

\n

The following operations are related to CopyObject:

\n \n

For more information, see Copying\n Objects.

", "smithy.api#http": { "method": "PUT", "uri": "/{Bucket}/{Key+}?x-id=CopyObject", @@ -1495,7 +1504,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The name of the destination bucket.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The name of the destination bucket.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1538,7 +1547,7 @@ "CopySource": { "target": "com.amazonaws.s3#CopySource", "traits": { - "smithy.api#documentation": "

Specifies the source object for the copy operation. You specify the value in one of two\n formats, depending on whether you want to access the source object through an access\n point:

\n \n

To copy a specific version of an object, append ?versionId=\n to the value (for example,\n awsexamplebucket/reports/january.pdf?versionId=QUpfdndhfd8438MNFDN93jdnJFkdmqnh893).\n If you don't specify a version ID, Amazon S3 copies the latest version of the source\n object.

", + "smithy.api#documentation": "

Specifies the source object for the copy operation. You specify the value in one of two\n formats, depending on whether you want to access the source object through an access\n point:

\n \n

To copy a specific version of an object, append ?versionId=\n to the value (for example,\n awsexamplebucket/reports/january.pdf?versionId=QUpfdndhfd8438MNFDN93jdnJFkdmqnh893).\n If you don't specify a version ID, Amazon S3 copies the latest version of the source\n object.

", "smithy.api#httpHeader": "x-amz-copy-source", "smithy.api#required": {} } @@ -1694,7 +1703,7 @@ "BucketKeyEnabled": { "target": "com.amazonaws.s3#BucketKeyEnabled", "traits": { - "smithy.api#documentation": "

Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using AWS KMS (SSE-KMS). Setting this header to true causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS.

\n

Specifying this header with a COPY operation doesn’t affect bucket-level settings for S3 Bucket Key.

", + "smithy.api#documentation": "

Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using AWS KMS (SSE-KMS). Setting this header to true causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS.

\n

Specifying this header with a COPY action doesn’t affect bucket-level settings for S3 Bucket Key.

", "smithy.api#httpHeader": "x-amz-server-side-encryption-bucket-key-enabled" } }, @@ -1756,14 +1765,14 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected destination bucket owner. If the destination bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected destination bucket owner. If the destination bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } }, "ExpectedSourceBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected source bucket owner. If the source bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected source bucket owner. If the source bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-source-expected-bucket-owner" } } @@ -1775,13 +1784,13 @@ "ETag": { "target": "com.amazonaws.s3#ETag", "traits": { - "smithy.api#documentation": "

Returns the ETag of the new object. The ETag reflects only changes to the contents of an\n object, not its metadata. The source and destination ETag is identical for a successfully\n copied object.

" + "smithy.api#documentation": "

Returns the ETag of the new object. The ETag reflects only changes to the contents of an\n object, not its metadata. The source and destination ETag is identical for a successfully\n copied non-multipart object.

" } }, "LastModified": { "target": "com.amazonaws.s3#LastModified", "traits": { - "smithy.api#documentation": "

Returns the date that the object was last modified.

" + "smithy.api#documentation": "

Creation date of the object.

" } } }, @@ -1974,10 +1983,10 @@ "target": "com.amazonaws.s3#CreateMultipartUploadOutput" }, "traits": { - "smithy.api#documentation": "

This operation initiates a multipart upload and returns an upload ID. This upload ID is\n used to associate all of the parts in the specific multipart upload. You specify this\n upload ID in each of your subsequent upload part requests (see UploadPart). You also include this\n upload ID in the final request to either complete or abort the multipart upload\n request.

\n\n

For more information about multipart uploads, see Multipart Upload Overview.

\n\n

If you have configured a lifecycle rule to abort incomplete multipart uploads, the\n upload must complete within the number of days specified in the bucket lifecycle\n configuration. Otherwise, the incomplete multipart upload becomes eligible for an abort\n operation and Amazon S3 aborts the multipart upload. For more information, see Aborting\n Incomplete Multipart Uploads Using a Bucket Lifecycle Policy.

\n\n

For information about the permissions required to use the multipart upload API, see\n Multipart Upload API and\n Permissions.

\n\n

For request signing, multipart upload is just a series of regular requests. You initiate\n a multipart upload, send one or more requests to upload parts, and then complete the\n multipart upload process. You sign each request individually. There is nothing special\n about signing multipart upload requests. For more information about signing, see Authenticating\n Requests (AWS Signature Version 4).

\n\n \n

After you initiate a multipart upload and upload one or more parts, to stop being\n charged for storing the uploaded parts, you must either complete or abort the multipart\n upload. Amazon S3 frees up the space used to store the parts and stop charging you for\n storing them only after you either complete or abort a multipart upload.

\n
\n\n

You can optionally request server-side encryption. For server-side encryption, Amazon S3\n encrypts your data as it writes it to disks in its data centers and decrypts it when you\n access it. You can provide your own encryption key, or use AWS Key Management Service (AWS\n KMS) customer master keys (CMKs) or Amazon S3-managed encryption keys. If you choose to provide\n your own encryption key, the request headers you provide in UploadPart and UploadPartCopy requests must match the headers you used in the request to\n initiate the upload by using CreateMultipartUpload.

\n

To perform a multipart upload with encryption using an AWS KMS CMK, the requester must\n have permission to the kms:Encrypt, kms:Decrypt,\n kms:ReEncrypt*, kms:GenerateDataKey*, and\n kms:DescribeKey actions on the key. These permissions are required because\n Amazon S3 must decrypt and read data from the encrypted file parts before it completes the\n multipart upload.

\n\n

If your AWS Identity and Access Management (IAM) user or role is in the same AWS account\n as the AWS KMS CMK, then you must have these permissions on the key policy. If your IAM\n user or role belongs to a different account than the key, then you must have the\n permissions on both the key policy and your IAM user or role.

\n\n\n

For more information, see Protecting\n Data Using Server-Side Encryption.

\n\n
\n
Access Permissions
\n
\n

When copying an object, you can optionally specify the accounts or groups that\n should be granted specific permissions on the new object. There are two ways to\n grant the permissions using the request headers:

\n \n

You can use either a canned ACL or specify access permissions explicitly. You\n cannot do both.

\n
\n
Server-Side- Encryption-Specific Request Headers
\n
\n

You can optionally tell Amazon S3 to encrypt data at rest using server-side\n encryption. Server-side encryption is for data encryption at rest. Amazon S3 encrypts\n your data as it writes it to disks in its data centers and decrypts it when you\n access it. The option you use depends on whether you want to use AWS managed\n encryption keys or provide your own encryption key.

\n \n
\n
Access-Control-List (ACL)-Specific Request Headers
\n
\n

You also can use the following access control–related headers with this\n operation. By default, all objects are private. Only the owner has full access\n control. When adding a new object, you can grant permissions to individual AWS\n accounts or to predefined groups defined by Amazon S3. These permissions are then added\n to the access control list (ACL) on the object. For more information, see Using ACLs. With this\n operation, you can grant access permissions using one of the following two\n methods:

\n \n\n
\n
\n\n

The following operations are related to CreateMultipartUpload:

\n ", + "smithy.api#documentation": "

This action initiates a multipart upload and returns an upload ID. This upload ID is\n used to associate all of the parts in the specific multipart upload. You specify this\n upload ID in each of your subsequent upload part requests (see UploadPart). You also include this\n upload ID in the final request to either complete or abort the multipart upload\n request.

\n\n

For more information about multipart uploads, see Multipart Upload Overview.

\n\n

If you have configured a lifecycle rule to abort incomplete multipart uploads, the\n upload must complete within the number of days specified in the bucket lifecycle\n configuration. Otherwise, the incomplete multipart upload becomes eligible for an abort\n action and Amazon S3 aborts the multipart upload. For more information, see Aborting\n Incomplete Multipart Uploads Using a Bucket Lifecycle Policy.

\n\n

For information about the permissions required to use the multipart upload API, see\n Multipart Upload and\n Permissions.

\n\n

For request signing, multipart upload is just a series of regular requests. You initiate\n a multipart upload, send one or more requests to upload parts, and then complete the\n multipart upload process. You sign each request individually. There is nothing special\n about signing multipart upload requests. For more information about signing, see Authenticating\n Requests (AWS Signature Version 4).

\n\n \n

After you initiate a multipart upload and upload one or more parts, to stop being\n charged for storing the uploaded parts, you must either complete or abort the multipart\n upload. Amazon S3 frees up the space used to store the parts and stop charging you for\n storing them only after you either complete or abort a multipart upload.

\n
\n\n

You can optionally request server-side encryption. For server-side encryption, Amazon S3\n encrypts your data as it writes it to disks in its data centers and decrypts it when you\n access it. You can provide your own encryption key, or use AWS Key Management Service (AWS\n KMS) customer master keys (CMKs) or Amazon S3-managed encryption keys. If you choose to provide\n your own encryption key, the request headers you provide in UploadPart and UploadPartCopy requests must match the headers you used in the request to\n initiate the upload by using CreateMultipartUpload.

\n

To perform a multipart upload with encryption using an AWS KMS CMK, the requester must\n have permission to the kms:Encrypt, kms:Decrypt,\n kms:ReEncrypt*, kms:GenerateDataKey*, and\n kms:DescribeKey actions on the key. These permissions are required because\n Amazon S3 must decrypt and read data from the encrypted file parts before it completes the\n multipart upload.

\n\n

If your AWS Identity and Access Management (IAM) user or role is in the same AWS account\n as the AWS KMS CMK, then you must have these permissions on the key policy. If your IAM\n user or role belongs to a different account than the key, then you must have the\n permissions on both the key policy and your IAM user or role.

\n\n\n

For more information, see Protecting\n Data Using Server-Side Encryption.

\n\n
\n
Access Permissions
\n
\n

When copying an object, you can optionally specify the accounts or groups that\n should be granted specific permissions on the new object. There are two ways to\n grant the permissions using the request headers:

\n \n

You can use either a canned ACL or specify access permissions explicitly. You\n cannot do both.

\n
\n
Server-Side- Encryption-Specific Request Headers
\n
\n

You can optionally tell Amazon S3 to encrypt data at rest using server-side\n encryption. Server-side encryption is for data encryption at rest. Amazon S3 encrypts\n your data as it writes it to disks in its data centers and decrypts it when you\n access it. The option you use depends on whether you want to use AWS managed\n encryption keys or provide your own encryption key.

\n \n
\n
Access-Control-List (ACL)-Specific Request Headers
\n
\n

You also can use the following access control–related headers with this\n operation. By default, all objects are private. Only the owner has full access\n control. When adding a new object, you can grant permissions to individual AWS\n accounts or to predefined groups defined by Amazon S3. These permissions are then added\n to the access control list (ACL) on the object. For more information, see Using ACLs. With this\n operation, you can grant access permissions using one of the following two\n methods:

\n \n\n
\n
\n\n

The following operations are related to CreateMultipartUpload:

\n ", "smithy.api#http": { "method": "POST", - "uri": "/{Bucket}/{Key+}?uploads", + "uri": "/{Bucket}/{Key+}?uploads&x-id=CreateMultipartUpload", "code": 200 } } @@ -2002,7 +2011,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The name of the bucket to which the multipart upload was initiated.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The name of the bucket to which the multipart upload was initiated.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#xmlName": "Bucket" } }, @@ -2081,7 +2090,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The name of the bucket to which to initiate the upload

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The name of the bucket to which to initiate the upload

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2216,7 +2225,7 @@ "SSEKMSKeyId": { "target": "com.amazonaws.s3#SSEKMSKeyId", "traits": { - "smithy.api#documentation": "

Specifies the ID of the symmetric customer managed AWS KMS CMK to use for object\n encryption. All GET and PUT requests for an object protected by AWS KMS will fail if not\n made via SSL or using SigV4. For information about configuring using any of the officially\n supported AWS SDKs and AWS CLI, see Specifying the Signature Version in Request Authentication\n in the Amazon S3 Developer Guide.

", + "smithy.api#documentation": "

Specifies the ID of the symmetric customer managed AWS KMS CMK to use for object\n encryption. All GET and PUT requests for an object protected by AWS KMS will fail if not\n made via SSL or using SigV4. For information about configuring using any of the officially\n supported AWS SDKs and AWS CLI, see Specifying the Signature Version in Request Authentication\n in the Amazon S3 Developer Guide.

", "smithy.api#httpHeader": "x-amz-server-side-encryption-aws-kms-key-id" } }, @@ -2230,7 +2239,7 @@ "BucketKeyEnabled": { "target": "com.amazonaws.s3#BucketKeyEnabled", "traits": { - "smithy.api#documentation": "

Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using AWS KMS (SSE-KMS). Setting this header to true causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS.

\n

Specifying this header with an object operation doesn’t affect bucket-level settings for S3 Bucket Key.

", + "smithy.api#documentation": "

Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using AWS KMS (SSE-KMS). Setting this header to true causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS.

\n

Specifying this header with an object action doesn’t affect bucket-level settings for S3 Bucket Key.

", "smithy.api#httpHeader": "x-amz-server-side-encryption-bucket-key-enabled" } }, @@ -2271,7 +2280,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -2361,7 +2370,7 @@ "target": "com.amazonaws.s3#DeleteBucketAnalyticsConfigurationRequest" }, "traits": { - "smithy.api#documentation": "

Deletes an analytics configuration for the bucket (specified by the analytics\n configuration ID).

\n

To use this operation, you must have permissions to perform the\n s3:PutAnalyticsConfiguration action. The bucket owner has this permission\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

For information about the Amazon S3 analytics feature, see Amazon S3 Analytics – Storage Class\n Analysis.

\n\n

The following operations are related to\n DeleteBucketAnalyticsConfiguration:

\n ", + "smithy.api#documentation": "

Deletes an analytics configuration for the bucket (specified by the analytics\n configuration ID).

\n

To use this operation, you must have permissions to perform the\n s3:PutAnalyticsConfiguration action. The bucket owner has this permission\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

For information about the Amazon S3 analytics feature, see Amazon S3 Analytics – Storage Class\n Analysis.

\n\n

The following operations are related to\n DeleteBucketAnalyticsConfiguration:

\n ", "smithy.api#http": { "method": "DELETE", "uri": "/{Bucket}?analytics", @@ -2391,7 +2400,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -2403,7 +2412,7 @@ "target": "com.amazonaws.s3#DeleteBucketCorsRequest" }, "traits": { - "smithy.api#documentation": "

Deletes the cors configuration information set for the bucket.

\n

To use this operation, you must have permission to perform the\n s3:PutBucketCORS action. The bucket owner has this permission by default\n and can grant this permission to others.

\n

For information about cors, see Enabling\n Cross-Origin Resource Sharing in the Amazon Simple Storage Service Developer Guide.

\n \n

\n Related Resources:\n

\n ", + "smithy.api#documentation": "

Deletes the cors configuration information set for the bucket.

\n

To use this operation, you must have permission to perform the\n s3:PutBucketCORS action. The bucket owner has this permission by default\n and can grant this permission to others.

\n

For information about cors, see Enabling\n Cross-Origin Resource Sharing in the Amazon S3 User Guide.

\n \n

\n Related Resources:\n

\n ", "smithy.api#http": { "method": "DELETE", "uri": "/{Bucket}?cors", @@ -2425,7 +2434,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -2437,7 +2446,7 @@ "target": "com.amazonaws.s3#DeleteBucketEncryptionRequest" }, "traits": { - "smithy.api#documentation": "

This implementation of the DELETE operation removes default encryption from the bucket.\n For information about the Amazon S3 default encryption feature, see Amazon S3 Default Bucket Encryption in the\n Amazon Simple Storage Service Developer Guide.

\n

To use this operation, you must have permissions to perform the\n s3:PutEncryptionConfiguration action. The bucket owner has this permission\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to your Amazon S3\n Resources in the Amazon Simple Storage Service Developer Guide.

\n \n

\n Related Resources\n

\n ", + "smithy.api#documentation": "

This implementation of the DELETE action removes default encryption from the bucket.\n For information about the Amazon S3 default encryption feature, see Amazon S3 Default Bucket Encryption in the\n Amazon S3 User Guide.

\n

To use this operation, you must have permissions to perform the\n s3:PutEncryptionConfiguration action. The bucket owner has this permission\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to your Amazon S3\n Resources in the Amazon S3 User Guide.

\n \n

\n Related Resources\n

\n ", "smithy.api#http": { "method": "DELETE", "uri": "/{Bucket}?encryption", @@ -2459,7 +2468,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -2506,7 +2515,7 @@ "target": "com.amazonaws.s3#DeleteBucketInventoryConfigurationRequest" }, "traits": { - "smithy.api#documentation": "

Deletes an inventory configuration (identified by the inventory ID) from the\n bucket.

\n

To use this operation, you must have permissions to perform the\n s3:PutInventoryConfiguration action. The bucket owner has this permission\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n

For information about the Amazon S3 inventory feature, see Amazon S3 Inventory.

\n

Operations related to DeleteBucketInventoryConfiguration include:

\n ", + "smithy.api#documentation": "

Deletes an inventory configuration (identified by the inventory ID) from the\n bucket.

\n

To use this operation, you must have permissions to perform the\n s3:PutInventoryConfiguration action. The bucket owner has this permission\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n

For information about the Amazon S3 inventory feature, see Amazon S3 Inventory.

\n

Operations related to DeleteBucketInventoryConfiguration include:

\n ", "smithy.api#http": { "method": "DELETE", "uri": "/{Bucket}?inventory", @@ -2536,7 +2545,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -2570,7 +2579,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -2582,7 +2591,7 @@ "target": "com.amazonaws.s3#DeleteBucketMetricsConfigurationRequest" }, "traits": { - "smithy.api#documentation": "

Deletes a metrics configuration for the Amazon CloudWatch request metrics (specified by the\n metrics configuration ID) from the bucket. Note that this doesn't include the daily storage\n metrics.

\n\n

To use this operation, you must have permissions to perform the\n s3:PutMetricsConfiguration action. The bucket owner has this permission by\n default. The bucket owner can grant this permission to others. For more information about\n permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

For information about CloudWatch request metrics for Amazon S3, see Monitoring Metrics with Amazon CloudWatch.

\n

The following operations are related to\n DeleteBucketMetricsConfiguration:

\n ", + "smithy.api#documentation": "

Deletes a metrics configuration for the Amazon CloudWatch request metrics (specified by the\n metrics configuration ID) from the bucket. Note that this doesn't include the daily storage\n metrics.

\n\n

To use this operation, you must have permissions to perform the\n s3:PutMetricsConfiguration action. The bucket owner has this permission by\n default. The bucket owner can grant this permission to others. For more information about\n permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

For information about CloudWatch request metrics for Amazon S3, see Monitoring Metrics with Amazon CloudWatch.

\n

The following operations are related to\n DeleteBucketMetricsConfiguration:

\n ", "smithy.api#http": { "method": "DELETE", "uri": "/{Bucket}?metrics", @@ -2612,7 +2621,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -2646,7 +2655,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -2658,7 +2667,7 @@ "target": "com.amazonaws.s3#DeleteBucketPolicyRequest" }, "traits": { - "smithy.api#documentation": "

This implementation of the DELETE operation uses the policy subresource to delete the\n policy of a specified bucket. If you are using an identity other than the root user of the\n AWS account that owns the bucket, the calling identity must have the\n DeleteBucketPolicy permissions on the specified bucket and belong to the\n bucket owner's account to use this operation.

\n\n

If you don't have DeleteBucketPolicy permissions, Amazon S3 returns a 403\n Access Denied error. If you have the correct permissions, but you're not using an\n identity that belongs to the bucket owner's account, Amazon S3 returns a 405 Method Not\n Allowed error.

\n\n\n \n

As a security precaution, the root user of the AWS account that owns a bucket can\n always use this operation, even if the policy explicitly denies the root user the\n ability to perform this action.

\n
\n\n

For more information about bucket policies, see Using Bucket Policies and\n UserPolicies.

\n

The following operations are related to DeleteBucketPolicy\n

\n ", + "smithy.api#documentation": "

This implementation of the DELETE action uses the policy subresource to delete the\n policy of a specified bucket. If you are using an identity other than the root user of the\n AWS account that owns the bucket, the calling identity must have the\n DeleteBucketPolicy permissions on the specified bucket and belong to the\n bucket owner's account to use this operation.

\n\n

If you don't have DeleteBucketPolicy permissions, Amazon S3 returns a 403\n Access Denied error. If you have the correct permissions, but you're not using an\n identity that belongs to the bucket owner's account, Amazon S3 returns a 405 Method Not\n Allowed error.

\n\n\n \n

As a security precaution, the root user of the AWS account that owns a bucket can\n always use this operation, even if the policy explicitly denies the root user the\n ability to perform this action.

\n
\n\n

For more information about bucket policies, see Using Bucket Policies and\n UserPolicies.

\n

The following operations are related to DeleteBucketPolicy\n

\n ", "smithy.api#http": { "method": "DELETE", "uri": "/{Bucket}?policy", @@ -2680,7 +2689,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -2692,7 +2701,7 @@ "target": "com.amazonaws.s3#DeleteBucketReplicationRequest" }, "traits": { - "smithy.api#documentation": "

Deletes the replication configuration from the bucket.

\n

To use this operation, you must have permissions to perform the\n s3:PutReplicationConfiguration action. The bucket owner has these\n permissions by default and can grant it to others. For more information about permissions,\n see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n \n

It can take a while for the deletion of a replication configuration to fully\n propagate.

\n
\n\n

For information about replication configuration, see Replication in the Amazon S3 Developer\n Guide.

\n\n

The following operations are related to DeleteBucketReplication:

\n ", + "smithy.api#documentation": "

Deletes the replication configuration from the bucket.

\n

To use this operation, you must have permissions to perform the\n s3:PutReplicationConfiguration action. The bucket owner has these\n permissions by default and can grant it to others. For more information about permissions,\n see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n \n

It can take a while for the deletion of a replication configuration to fully\n propagate.

\n
\n\n

For information about replication configuration, see Replication in the Amazon S3 Developer\n Guide.

\n\n

The following operations are related to DeleteBucketReplication:

\n ", "smithy.api#http": { "method": "DELETE", "uri": "/{Bucket}?replication", @@ -2714,7 +2723,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -2734,7 +2743,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -2768,7 +2777,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -2780,7 +2789,7 @@ "target": "com.amazonaws.s3#DeleteBucketWebsiteRequest" }, "traits": { - "smithy.api#documentation": "

This operation removes the website configuration for a bucket. Amazon S3 returns a 200\n OK response upon successfully deleting a website configuration on the specified\n bucket. You will get a 200 OK response if the website configuration you are\n trying to delete does not exist on the bucket. Amazon S3 returns a 404 response if\n the bucket specified in the request does not exist.

\n\n

This DELETE operation requires the S3:DeleteBucketWebsite permission. By\n default, only the bucket owner can delete the website configuration attached to a bucket.\n However, bucket owners can grant other users permission to delete the website configuration\n by writing a bucket policy granting them the S3:DeleteBucketWebsite\n permission.

\n\n

For more information about hosting websites, see Hosting Websites on Amazon S3.

\n\n

The following operations are related to DeleteBucketWebsite:

\n ", + "smithy.api#documentation": "

This action removes the website configuration for a bucket. Amazon S3 returns a 200\n OK response upon successfully deleting a website configuration on the specified\n bucket. You will get a 200 OK response if the website configuration you are\n trying to delete does not exist on the bucket. Amazon S3 returns a 404 response if\n the bucket specified in the request does not exist.

\n\n

This DELETE action requires the S3:DeleteBucketWebsite permission. By\n default, only the bucket owner can delete the website configuration attached to a bucket.\n However, bucket owners can grant other users permission to delete the website configuration\n by writing a bucket policy granting them the S3:DeleteBucketWebsite\n permission.

\n\n

For more information about hosting websites, see Hosting Websites on Amazon S3.

\n\n

The following operations are related to DeleteBucketWebsite:

\n ", "smithy.api#http": { "method": "DELETE", "uri": "/{Bucket}?website", @@ -2802,7 +2811,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -2896,7 +2905,7 @@ "target": "com.amazonaws.s3#DeleteObjectOutput" }, "traits": { - "smithy.api#documentation": "

Removes the null version (if there is one) of an object and inserts a delete marker,\n which becomes the latest version of the object. If there isn't a null version, Amazon S3 does\n not remove any objects.

\n\n

To remove a specific version, you must be the bucket owner and you must use the version\n Id subresource. Using this subresource permanently deletes the version. If the object\n deleted is a delete marker, Amazon S3 sets the response header,\n x-amz-delete-marker, to true.

\n\n

If the object you want to delete is in a bucket where the bucket versioning\n configuration is MFA Delete enabled, you must include the x-amz-mfa request\n header in the DELETE versionId request. Requests that include\n x-amz-mfa must use HTTPS.

\n\n

For more information about MFA Delete, see Using MFA Delete. To see sample requests that use versioning, see Sample Request.

\n\n

You can delete objects by explicitly calling the DELETE Object API or configure its\n lifecycle (PutBucketLifecycle) to\n enable Amazon S3 to remove them for you. If you want to block users or accounts from removing or\n deleting objects from your bucket, you must deny them the s3:DeleteObject,\n s3:DeleteObjectVersion, and s3:PutLifeCycleConfiguration\n actions.

\n\n

The following operation is related to DeleteObject:

\n ", + "smithy.api#documentation": "

Removes the null version (if there is one) of an object and inserts a delete marker,\n which becomes the latest version of the object. If there isn't a null version, Amazon S3 does\n not remove any objects.

\n\n

To remove a specific version, you must be the bucket owner and you must use the version\n Id subresource. Using this subresource permanently deletes the version. If the object\n deleted is a delete marker, Amazon S3 sets the response header,\n x-amz-delete-marker, to true.

\n\n

If the object you want to delete is in a bucket where the bucket versioning\n configuration is MFA Delete enabled, you must include the x-amz-mfa request\n header in the DELETE versionId request. Requests that include\n x-amz-mfa must use HTTPS.

\n\n

For more information about MFA Delete, see Using MFA Delete. To see sample requests that use versioning, see Sample Request.

\n\n

You can delete objects by explicitly calling DELETE Object or configure its\n lifecycle (PutBucketLifecycle) to\n enable Amazon S3 to remove them for you. If you want to block users or accounts from removing or\n deleting objects from your bucket, you must deny them the s3:DeleteObject,\n s3:DeleteObjectVersion, and s3:PutLifeCycleConfiguration\n actions.

\n\n

The following action is related to DeleteObject:

\n ", "smithy.api#http": { "method": "DELETE", "uri": "/{Bucket}/{Key+}?x-id=DeleteObject", @@ -2935,7 +2944,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The bucket name of the bucket containing the object.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The bucket name of the bucket containing the object.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2978,7 +2987,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -3019,7 +3028,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The bucket name containing the objects from which to remove the tags.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The bucket name containing the objects from which to remove the tags.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3027,7 +3036,7 @@ "Key": { "target": "com.amazonaws.s3#ObjectKey", "traits": { - "smithy.api#documentation": "

Name of the object key.

", + "smithy.api#documentation": "

The key that identifies the object in the bucket from which to remove all tags.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3042,7 +3051,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -3057,10 +3066,10 @@ "target": "com.amazonaws.s3#DeleteObjectsOutput" }, "traits": { - "smithy.api#documentation": "

This operation enables you to delete multiple objects from a bucket using a single HTTP\n request. If you know the object keys that you want to delete, then this operation provides\n a suitable alternative to sending individual delete requests, reducing per-request\n overhead.

\n\n

The request contains a list of up to 1000 keys that you want to delete. In the XML, you\n provide the object key names, and optionally, version IDs if you want to delete a specific\n version of the object from a versioning-enabled bucket. For each key, Amazon S3 performs a\n delete operation and returns the result of that delete, success, or failure, in the\n response. Note that if the object specified in the request is not found, Amazon S3 returns the\n result as deleted.

\n\n

The operation supports two modes for the response: verbose and quiet. By default, the\n operation uses verbose mode in which the response includes the result of deletion of each\n key in your request. In quiet mode the response includes only keys where the delete\n operation encountered an error. For a successful deletion, the operation does not return\n any information about the delete in the response body.

\n\n

When performing this operation on an MFA Delete enabled bucket, that attempts to delete\n any versioned objects, you must include an MFA token. If you do not provide one, the entire\n request will fail, even if there are non-versioned objects you are trying to delete. If you\n provide an invalid token, whether there are versioned keys in the request or not, the\n entire Multi-Object Delete request will fail. For information about MFA Delete, see MFA\n Delete.

\n\n

Finally, the Content-MD5 header is required for all Multi-Object Delete requests. Amazon\n S3 uses the header value to ensure that your request body has not been altered in\n transit.

\n\n

The following operations are related to DeleteObjects:

\n ", + "smithy.api#documentation": "

This action enables you to delete multiple objects from a bucket using a single HTTP\n request. If you know the object keys that you want to delete, then this action provides\n a suitable alternative to sending individual delete requests, reducing per-request\n overhead.

\n\n

The request contains a list of up to 1000 keys that you want to delete. In the XML, you\n provide the object key names, and optionally, version IDs if you want to delete a specific\n version of the object from a versioning-enabled bucket. For each key, Amazon S3 performs a\n delete action and returns the result of that delete, success, or failure, in the\n response. Note that if the object specified in the request is not found, Amazon S3 returns the\n result as deleted.

\n\n

The action supports two modes for the response: verbose and quiet. By default, the\n action uses verbose mode in which the response includes the result of deletion of each\n key in your request. In quiet mode the response includes only keys where the delete\n action encountered an error. For a successful deletion, the action does not return\n any information about the delete in the response body.

\n\n

When performing this action on an MFA Delete enabled bucket, that attempts to delete\n any versioned objects, you must include an MFA token. If you do not provide one, the entire\n request will fail, even if there are non-versioned objects you are trying to delete. If you\n provide an invalid token, whether there are versioned keys in the request or not, the\n entire Multi-Object Delete request will fail. For information about MFA Delete, see MFA\n Delete.

\n\n

Finally, the Content-MD5 header is required for all Multi-Object Delete requests. Amazon\n S3 uses the header value to ensure that your request body has not been altered in\n transit.

\n\n

The following operations are related to DeleteObjects:

\n ", "smithy.api#http": { "method": "POST", - "uri": "/{Bucket}?delete", + "uri": "/{Bucket}?delete&x-id=DeleteObjects", "code": 200 }, "smithy.api#httpChecksumRequired": {} @@ -3085,7 +3094,7 @@ "Errors": { "target": "com.amazonaws.s3#Errors", "traits": { - "smithy.api#documentation": "

Container for a failed delete operation that describes the object that Amazon S3 attempted to\n delete and the error it encountered.

", + "smithy.api#documentation": "

Container for a failed delete action that describes the object that Amazon S3 attempted to\n delete and the error it encountered.

", "smithy.api#xmlFlattened": {}, "smithy.api#xmlName": "Error" } @@ -3098,7 +3107,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The bucket name containing the objects to delete.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The bucket name containing the objects to delete.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3134,7 +3143,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -3146,7 +3155,7 @@ "target": "com.amazonaws.s3#DeletePublicAccessBlockRequest" }, "traits": { - "smithy.api#documentation": "

Removes the PublicAccessBlock configuration for an Amazon S3 bucket. To use this\n operation, you must have the s3:PutBucketPublicAccessBlock permission. For\n more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

The following operations are related to DeletePublicAccessBlock:

\n ", + "smithy.api#documentation": "

Removes the PublicAccessBlock configuration for an Amazon S3 bucket. To use this\n operation, you must have the s3:PutBucketPublicAccessBlock permission. For\n more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

The following operations are related to DeletePublicAccessBlock:

\n ", "smithy.api#http": { "method": "DELETE", "uri": "/{Bucket}?publicAccessBlock", @@ -3168,7 +3177,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -3362,7 +3371,7 @@ "Code": { "target": "com.amazonaws.s3#Code", "traits": { - "smithy.api#documentation": "

The error code is a string that uniquely identifies an error condition. It is meant to\n be read and understood by programs that detect and handle errors by type.

\n

\n Amazon S3 error codes\n

\n \n

" + "smithy.api#documentation": "

The error code is a string that uniquely identifies an error condition. It is meant to\n be read and understood by programs that detect and handle errors by type.

\n

\n Amazon S3 error codes\n

\n \n

" } }, "Message": { @@ -3376,13 +3385,16 @@ "smithy.api#documentation": "

Container for all error elements.

" } }, + "com.amazonaws.s3#ErrorCode": { + "type": "string" + }, "com.amazonaws.s3#ErrorDocument": { "type": "structure", "members": { "Key": { "target": "com.amazonaws.s3#ObjectKey", "traits": { - "smithy.api#documentation": "

The object key name to use when a 4XX class error occurs.

", + "smithy.api#documentation": "

The object key name to use when a 4XX class error occurs.

\n \n

Replacement must be made for object keys containing special characters (such as carriage returns) when using \n XML requests. For more information, see \n XML related object key constraints.

\n
", "smithy.api#required": {} } } @@ -3391,6 +3403,9 @@ "smithy.api#documentation": "

The error information.

" } }, + "com.amazonaws.s3#ErrorMessage": { + "type": "string" + }, "com.amazonaws.s3#Errors": { "type": "list", "member": { @@ -3474,7 +3489,7 @@ } }, "traits": { - "smithy.api#documentation": "

Optional configuration to replicate existing source bucket objects. For more\n information, see Replicating Existing Objects in the Amazon S3 Developer Guide.\n

" + "smithy.api#documentation": "

Optional configuration to replicate existing source bucket objects. For more\n information, see Replicating Existing Objects in the Amazon S3 Developer Guide.\n

" } }, "com.amazonaws.s3#ExistingObjectReplicationStatus": { @@ -3620,7 +3635,7 @@ "target": "com.amazonaws.s3#GetBucketAccelerateConfigurationOutput" }, "traits": { - "smithy.api#documentation": "

This implementation of the GET operation uses the accelerate subresource to\n return the Transfer Acceleration state of a bucket, which is either Enabled or\n Suspended. Amazon S3 Transfer Acceleration is a bucket-level feature that\n enables you to perform faster data transfers to and from Amazon S3.

\n

To use this operation, you must have permission to perform the\n s3:GetAccelerateConfiguration action. The bucket owner has this permission\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to your Amazon S3\n Resources in the Amazon Simple Storage Service Developer Guide.

\n

You set the Transfer Acceleration state of an existing bucket to Enabled or\n Suspended by using the PutBucketAccelerateConfiguration operation.

\n

A GET accelerate request does not return a state value for a bucket that\n has no transfer acceleration state. A bucket has no Transfer Acceleration state if a state\n has never been set on the bucket.

\n \n

For more information about transfer acceleration, see Transfer Acceleration in the\n Amazon Simple Storage Service Developer Guide.

\n

\n Related Resources\n

\n ", + "smithy.api#documentation": "

This implementation of the GET action uses the accelerate subresource to\n return the Transfer Acceleration state of a bucket, which is either Enabled or\n Suspended. Amazon S3 Transfer Acceleration is a bucket-level feature that\n enables you to perform faster data transfers to and from Amazon S3.

\n

To use this operation, you must have permission to perform the\n s3:GetAccelerateConfiguration action. The bucket owner has this permission\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to your Amazon S3\n Resources in the Amazon S3 User Guide.

\n

You set the Transfer Acceleration state of an existing bucket to Enabled or\n Suspended by using the PutBucketAccelerateConfiguration operation.

\n

A GET accelerate request does not return a state value for a bucket that\n has no transfer acceleration state. A bucket has no Transfer Acceleration state if a state\n has never been set on the bucket.

\n \n

For more information about transfer acceleration, see Transfer Acceleration in the\n Amazon S3 User Guide.

\n

\n Related Resources\n

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}?accelerate", @@ -3653,7 +3668,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -3668,7 +3683,7 @@ "target": "com.amazonaws.s3#GetBucketAclOutput" }, "traits": { - "smithy.api#documentation": "

This implementation of the GET operation uses the acl\n subresource to return the access control list (ACL) of a bucket. To use GET to\n return the ACL of the bucket, you must have READ_ACP access to the bucket. If\n READ_ACP permission is granted to the anonymous user, you can return the\n ACL of the bucket without using an authorization header.

\n \n

\n Related Resources\n

\n ", + "smithy.api#documentation": "

This implementation of the GET action uses the acl\n subresource to return the access control list (ACL) of a bucket. To use GET to\n return the ACL of the bucket, you must have READ_ACP access to the bucket. If\n READ_ACP permission is granted to the anonymous user, you can return the\n ACL of the bucket without using an authorization header.

\n \n

\n Related Resources\n

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}?acl", @@ -3708,7 +3723,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -3723,7 +3738,7 @@ "target": "com.amazonaws.s3#GetBucketAnalyticsConfigurationOutput" }, "traits": { - "smithy.api#documentation": "

This implementation of the GET operation returns an analytics configuration (identified\n by the analytics configuration ID) from the bucket.

\n

To use this operation, you must have permissions to perform the\n s3:GetAnalyticsConfiguration action. The bucket owner has this permission\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources in the Amazon Simple Storage Service Developer Guide.

\n

For information about Amazon S3 analytics feature, see Amazon S3 Analytics – Storage Class\n Analysis in the Amazon Simple Storage Service Developer Guide.

\n \n

\n Related Resources\n

\n ", + "smithy.api#documentation": "

This implementation of the GET action returns an analytics configuration (identified\n by the analytics configuration ID) from the bucket.

\n

To use this operation, you must have permissions to perform the\n s3:GetAnalyticsConfiguration action. The bucket owner has this permission\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources in the Amazon S3 User Guide.

\n

For information about Amazon S3 analytics feature, see Amazon S3 Analytics – Storage Class\n Analysis in the Amazon S3 User Guide.

\n \n

\n Related Resources\n

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}?analytics&x-id=GetBucketAnalyticsConfiguration", @@ -3765,7 +3780,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -3815,7 +3830,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -3830,7 +3845,7 @@ "target": "com.amazonaws.s3#GetBucketEncryptionOutput" }, "traits": { - "smithy.api#documentation": "

Returns the default encryption configuration for an Amazon S3 bucket. For information about\n the Amazon S3 default encryption feature, see Amazon S3 Default Bucket Encryption.

\n\n

To use this operation, you must have permission to perform the\n s3:GetEncryptionConfiguration action. The bucket owner has this permission\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n

The following operations are related to GetBucketEncryption:

\n ", + "smithy.api#documentation": "

Returns the default encryption configuration for an Amazon S3 bucket. If the bucket does not\n have a default encryption configuration, GetBucketEncryption returns\n ServerSideEncryptionConfigurationNotFoundError.

\n

For information about the Amazon S3 default encryption feature, see Amazon S3 Default Bucket Encryption.

\n

To use this operation, you must have permission to perform the\n s3:GetEncryptionConfiguration action. The bucket owner has this permission\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n

The following operations are related to GetBucketEncryption:

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}?encryption", @@ -3863,7 +3878,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -3928,7 +3943,7 @@ "target": "com.amazonaws.s3#GetBucketInventoryConfigurationOutput" }, "traits": { - "smithy.api#documentation": "

Returns an inventory configuration (identified by the inventory configuration ID) from\n the bucket.

\n\n

To use this operation, you must have permissions to perform the\n s3:GetInventoryConfiguration action. The bucket owner has this permission\n by default and can grant this permission to others. For more information about permissions,\n see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

For information about the Amazon S3 inventory feature, see Amazon S3 Inventory.

\n\n

The following operations are related to\n GetBucketInventoryConfiguration:

\n ", + "smithy.api#documentation": "

Returns an inventory configuration (identified by the inventory configuration ID) from\n the bucket.

\n\n

To use this operation, you must have permissions to perform the\n s3:GetInventoryConfiguration action. The bucket owner has this permission\n by default and can grant this permission to others. For more information about permissions,\n see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

For information about the Amazon S3 inventory feature, see Amazon S3 Inventory.

\n\n

The following operations are related to\n GetBucketInventoryConfiguration:

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}?inventory&x-id=GetBucketInventoryConfiguration", @@ -3970,7 +3985,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -3985,7 +4000,7 @@ "target": "com.amazonaws.s3#GetBucketLifecycleConfigurationOutput" }, "traits": { - "smithy.api#documentation": "\n

Bucket lifecycle configuration now supports specifying a lifecycle rule using an\n object key name prefix, one or more object tags, or a combination of both. Accordingly,\n this section describes the latest API. The response describes the new filter element\n that you can use to specify a filter to select a subset of objects to which the rule\n applies. If you are using a previous version of the lifecycle configuration, it still\n works. For the earlier API description, see GetBucketLifecycle.

\n
\n

Returns the lifecycle configuration information set on the bucket. For information about\n lifecycle configuration, see Object\n Lifecycle Management.

\n\n

To use this operation, you must have permission to perform the\n s3:GetLifecycleConfiguration action. The bucket owner has this permission,\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

\n GetBucketLifecycleConfiguration has the following special error:

\n \n

The following operations are related to\n GetBucketLifecycleConfiguration:

\n ", + "smithy.api#documentation": "\n

Bucket lifecycle configuration now supports specifying a lifecycle rule using an\n object key name prefix, one or more object tags, or a combination of both. Accordingly,\n this section describes the latest API. The response describes the new filter element\n that you can use to specify a filter to select a subset of objects to which the rule\n applies. If you are using a previous version of the lifecycle configuration, it still\n works. For the earlier action, see GetBucketLifecycle.

\n
\n

Returns the lifecycle configuration information set on the bucket. For information about\n lifecycle configuration, see Object\n Lifecycle Management.

\n\n

To use this operation, you must have permission to perform the\n s3:GetLifecycleConfiguration action. The bucket owner has this permission,\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

\n GetBucketLifecycleConfiguration has the following special error:

\n \n

The following operations are related to\n GetBucketLifecycleConfiguration:

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}?lifecycle", @@ -4020,7 +4035,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -4068,7 +4083,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -4113,7 +4128,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -4128,7 +4143,7 @@ "target": "com.amazonaws.s3#GetBucketMetricsConfigurationOutput" }, "traits": { - "smithy.api#documentation": "

Gets a metrics configuration (specified by the metrics configuration ID) from the\n bucket. Note that this doesn't include the daily storage metrics.

\n\n

To use this operation, you must have permissions to perform the\n s3:GetMetricsConfiguration action. The bucket owner has this permission by\n default. The bucket owner can grant this permission to others. For more information about\n permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

For information about CloudWatch request metrics for Amazon S3, see Monitoring Metrics with Amazon\n CloudWatch.

\n\n

The following operations are related to\n GetBucketMetricsConfiguration:

\n ", + "smithy.api#documentation": "

Gets a metrics configuration (specified by the metrics configuration ID) from the\n bucket. Note that this doesn't include the daily storage metrics.

\n\n

To use this operation, you must have permissions to perform the\n s3:GetMetricsConfiguration action. The bucket owner has this permission by\n default. The bucket owner can grant this permission to others. For more information about\n permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

For information about CloudWatch request metrics for Amazon S3, see Monitoring Metrics with Amazon\n CloudWatch.

\n\n

The following operations are related to\n GetBucketMetricsConfiguration:

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}?metrics&x-id=GetBucketMetricsConfiguration", @@ -4170,7 +4185,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -4185,7 +4200,7 @@ "target": "com.amazonaws.s3#NotificationConfiguration" }, "traits": { - "smithy.api#documentation": "

Returns the notification configuration of a bucket.

\n

If notifications are not enabled on the bucket, the operation returns an empty\n NotificationConfiguration element.

\n\n

By default, you must be the bucket owner to read the notification configuration of a\n bucket. However, the bucket owner can use a bucket policy to grant permission to other\n users to read this configuration with the s3:GetBucketNotification\n permission.

\n\n

For more information about setting and reading the notification configuration on a\n bucket, see Setting Up Notification of\n Bucket Events. For more information about bucket policies, see Using Bucket Policies.

\n\n

The following operation is related to GetBucketNotification:

\n ", + "smithy.api#documentation": "

Returns the notification configuration of a bucket.

\n

If notifications are not enabled on the bucket, the action returns an empty\n NotificationConfiguration element.

\n\n

By default, you must be the bucket owner to read the notification configuration of a\n bucket. However, the bucket owner can use a bucket policy to grant permission to other\n users to read this configuration with the s3:GetBucketNotification\n permission.

\n\n

For more information about setting and reading the notification configuration on a\n bucket, see Setting Up Notification of\n Bucket Events. For more information about bucket policies, see Using Bucket Policies.

\n\n

The following action is related to GetBucketNotification:

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}?notification", @@ -4207,7 +4222,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -4256,7 +4271,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -4271,7 +4286,7 @@ "target": "com.amazonaws.s3#GetBucketPolicyOutput" }, "traits": { - "smithy.api#documentation": "

Returns the policy of a specified bucket. If you are using an identity other than the\n root user of the AWS account that owns the bucket, the calling identity must have the\n GetBucketPolicy permissions on the specified bucket and belong to the\n bucket owner's account in order to use this operation.

\n\n

If you don't have GetBucketPolicy permissions, Amazon S3 returns a 403\n Access Denied error. If you have the correct permissions, but you're not using an\n identity that belongs to the bucket owner's account, Amazon S3 returns a 405 Method Not\n Allowed error.

\n\n \n

As a security precaution, the root user of the AWS account that owns a bucket can\n always use this operation, even if the policy explicitly denies the root user the\n ability to perform this action.

\n
\n\n

For more information about bucket policies, see Using Bucket Policies and User\n Policies.

\n\n

The following operation is related to GetBucketPolicy:

\n ", + "smithy.api#documentation": "

Returns the policy of a specified bucket. If you are using an identity other than the\n root user of the AWS account that owns the bucket, the calling identity must have the\n GetBucketPolicy permissions on the specified bucket and belong to the\n bucket owner's account in order to use this operation.

\n\n

If you don't have GetBucketPolicy permissions, Amazon S3 returns a 403\n Access Denied error. If you have the correct permissions, but you're not using an\n identity that belongs to the bucket owner's account, Amazon S3 returns a 405 Method Not\n Allowed error.

\n\n \n

As a security precaution, the root user of the AWS account that owns a bucket can\n always use this operation, even if the policy explicitly denies the root user the\n ability to perform this action.

\n
\n\n

For more information about bucket policies, see Using Bucket Policies and User\n Policies.

\n\n

The following action is related to GetBucketPolicy:

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}?policy", @@ -4285,7 +4300,8 @@ "Policy": { "target": "com.amazonaws.s3#Policy", "traits": { - "smithy.api#documentation": "

The bucket policy as a JSON document.

" + "smithy.api#documentation": "

The bucket policy as a JSON document.

", + "smithy.api#httpPayload": {} } } } @@ -4304,7 +4320,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -4353,7 +4369,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -4368,7 +4384,7 @@ "target": "com.amazonaws.s3#GetBucketReplicationOutput" }, "traits": { - "smithy.api#documentation": "

Returns the replication configuration of a bucket.

\n \n

It can take a while to propagate the put or delete a replication configuration to\n all Amazon S3 systems. Therefore, a get request soon after put or delete can return a wrong\n result.

\n
\n

For information about replication configuration, see Replication in the\n Amazon Simple Storage Service Developer Guide.

\n\n

This operation requires permissions for the s3:GetReplicationConfiguration\n action. For more information about permissions, see Using Bucket Policies and User\n Policies.

\n\n

If you include the Filter element in a replication configuration, you must\n also include the DeleteMarkerReplication and Priority elements.\n The response also returns those elements.

\n\n

For information about GetBucketReplication errors, see List of\n replication-related error codes\n

\n\n\n

The following operations are related to GetBucketReplication:

\n ", + "smithy.api#documentation": "

Returns the replication configuration of a bucket.

\n \n

It can take a while to propagate the put or delete a replication configuration to\n all Amazon S3 systems. Therefore, a get request soon after put or delete can return a wrong\n result.

\n
\n

For information about replication configuration, see Replication in the\n Amazon S3 User Guide.

\n\n

This action requires permissions for the s3:GetReplicationConfiguration\n action. For more information about permissions, see Using Bucket Policies and User\n Policies.

\n\n

If you include the Filter element in a replication configuration, you must\n also include the DeleteMarkerReplication and Priority elements.\n The response also returns those elements.

\n\n

For information about GetBucketReplication errors, see List of\n replication-related error codes\n

\n\n\n

The following operations are related to GetBucketReplication:

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}?replication", @@ -4401,7 +4417,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -4449,7 +4465,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -4498,7 +4514,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -4553,7 +4569,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -4568,7 +4584,7 @@ "target": "com.amazonaws.s3#GetBucketWebsiteOutput" }, "traits": { - "smithy.api#documentation": "

Returns the website configuration for a bucket. To host website on Amazon S3, you can\n configure a bucket as website by adding a website configuration. For more information about\n hosting websites, see Hosting Websites on\n Amazon S3.

\n

This GET operation requires the S3:GetBucketWebsite permission. By default,\n only the bucket owner can read the bucket website configuration. However, bucket owners can\n allow other users to read the website configuration by writing a bucket policy granting\n them the S3:GetBucketWebsite permission.

\n

The following operations are related to DeleteBucketWebsite:

\n ", + "smithy.api#documentation": "

Returns the website configuration for a bucket. To host website on Amazon S3, you can\n configure a bucket as website by adding a website configuration. For more information about\n hosting websites, see Hosting Websites on\n Amazon S3.

\n

This GET action requires the S3:GetBucketWebsite permission. By default,\n only the bucket owner can read the bucket website configuration. However, bucket owners can\n allow other users to read the website configuration by writing a bucket policy granting\n them the S3:GetBucketWebsite permission.

\n

The following operations are related to DeleteBucketWebsite:

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}?website", @@ -4619,7 +4635,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -4642,7 +4658,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves objects from Amazon S3. To use GET, you must have READ\n access to the object. If you grant READ access to the anonymous user, you can\n return the object without using an authorization header.

\n\n

An Amazon S3 bucket has no directory hierarchy such as you would find in a typical computer\n file system. You can, however, create a logical hierarchy by using object key names that\n imply a folder structure. For example, instead of naming an object sample.jpg,\n you can name it photos/2006/February/sample.jpg.

\n\n

To get an object from such a logical hierarchy, specify the full key name for the object\n in the GET operation. For a virtual hosted-style request example, if you have\n the object photos/2006/February/sample.jpg, specify the resource as\n /photos/2006/February/sample.jpg. For a path-style request example, if you\n have the object photos/2006/February/sample.jpg in the bucket named\n examplebucket, specify the resource as\n /examplebucket/photos/2006/February/sample.jpg. For more information about\n request types, see HTTP Host Header Bucket Specification.

\n\n

To distribute large files to many people, you can save bandwidth costs by using\n BitTorrent. For more information, see Amazon S3\n Torrent. For more information about returning the ACL of an object, see GetObjectAcl.

\n\n

If the object you are retrieving is stored in the S3 Glacier or\n S3 Glacier Deep Archive storage class, or S3 Intelligent-Tiering Archive or\n S3 Intelligent-Tiering Deep Archive tiers, before you can retrieve the object you must first restore a\n copy using RestoreObject. Otherwise, this operation returns an\n InvalidObjectStateError error. For information about restoring archived\n objects, see Restoring Archived\n Objects.

\n\n

Encryption request headers, like x-amz-server-side-encryption, should not\n be sent for GET requests if your object uses server-side encryption with CMKs stored in AWS\n KMS (SSE-KMS) or server-side encryption with Amazon S3–managed encryption keys (SSE-S3). If your\n object does use these types of keys, you’ll get an HTTP 400 BadRequest error.

\n

If you encrypt an object by using server-side encryption with customer-provided\n encryption keys (SSE-C) when you store the object in Amazon S3, then when you GET the object,\n you must use the following headers:

\n \n

For more information about SSE-C, see Server-Side Encryption (Using\n Customer-Provided Encryption Keys).

\n\n

Assuming you have permission to read object tags (permission for the\n s3:GetObjectVersionTagging action), the response also returns the\n x-amz-tagging-count header that provides the count of number of tags\n associated with the object. You can use GetObjectTagging to retrieve\n the tag set associated with an object.

\n\n

\n Permissions\n

\n

You need the s3:GetObject permission for this operation. For more\n information, see Specifying Permissions\n in a Policy. If the object you request does not exist, the error Amazon S3 returns\n depends on whether you also have the s3:ListBucket permission.

\n \n\n\n

\n Versioning\n

\n

By default, the GET operation returns the current version of an object. To return a\n different version, use the versionId subresource.

\n\n \n

If the current version of the object is a delete marker, Amazon S3 behaves as if the\n object was deleted and includes x-amz-delete-marker: true in the\n response.

\n
\n\n\n

For more information about versioning, see PutBucketVersioning.

\n\n

\n Overriding Response Header Values\n

\n

There are times when you want to override certain response header values in a GET\n response. For example, you might override the Content-Disposition response header value in\n your GET request.

\n\n

You can override values for a set of response headers using the following query\n parameters. These response header values are sent only on a successful request, that is,\n when status code 200 OK is returned. The set of headers you can override using these\n parameters is a subset of the headers that Amazon S3 accepts when you create an object. The\n response headers that you can override for the GET response are Content-Type,\n Content-Language, Expires, Cache-Control,\n Content-Disposition, and Content-Encoding. To override these\n header values in the GET response, you use the following request parameters.

\n\n \n

You must sign the request, either using an Authorization header or a presigned URL,\n when using these parameters. They cannot be used with an unsigned (anonymous)\n request.

\n
\n \n\n

\n Additional Considerations about Request Headers\n

\n\n

If both of the If-Match and If-Unmodified-Since headers are\n present in the request as follows: If-Match condition evaluates to\n true, and; If-Unmodified-Since condition evaluates to\n false; then, S3 returns 200 OK and the data requested.

\n\n

If both of the If-None-Match and If-Modified-Since headers are\n present in the request as follows: If-None-Match condition evaluates to\n false, and; If-Modified-Since condition evaluates to\n true; then, S3 returns 304 Not Modified response code.

\n\n

For more information about conditional requests, see RFC 7232.

\n\n

The following operations are related to GetObject:

\n ", + "smithy.api#documentation": "

Retrieves objects from Amazon S3. To use GET, you must have READ\n access to the object. If you grant READ access to the anonymous user, you can\n return the object without using an authorization header.

\n\n

An Amazon S3 bucket has no directory hierarchy such as you would find in a typical computer\n file system. You can, however, create a logical hierarchy by using object key names that\n imply a folder structure. For example, instead of naming an object sample.jpg,\n you can name it photos/2006/February/sample.jpg.

\n\n

To get an object from such a logical hierarchy, specify the full key name for the object\n in the GET operation. For a virtual hosted-style request example, if you have\n the object photos/2006/February/sample.jpg, specify the resource as\n /photos/2006/February/sample.jpg. For a path-style request example, if you\n have the object photos/2006/February/sample.jpg in the bucket named\n examplebucket, specify the resource as\n /examplebucket/photos/2006/February/sample.jpg. For more information about\n request types, see HTTP Host Header Bucket Specification.

\n\n

To distribute large files to many people, you can save bandwidth costs by using\n BitTorrent. For more information, see Amazon S3\n Torrent. For more information about returning the ACL of an object, see GetObjectAcl.

\n\n

If the object you are retrieving is stored in the S3 Glacier or\n S3 Glacier Deep Archive storage class, or S3 Intelligent-Tiering Archive or\n S3 Intelligent-Tiering Deep Archive tiers, before you can retrieve the object you must first restore a\n copy using RestoreObject. Otherwise, this action returns an\n InvalidObjectStateError error. For information about restoring archived\n objects, see Restoring Archived\n Objects.

\n\n

Encryption request headers, like x-amz-server-side-encryption, should not\n be sent for GET requests if your object uses server-side encryption with CMKs stored in AWS\n KMS (SSE-KMS) or server-side encryption with Amazon S3–managed encryption keys (SSE-S3). If your\n object does use these types of keys, you’ll get an HTTP 400 BadRequest error.

\n

If you encrypt an object by using server-side encryption with customer-provided\n encryption keys (SSE-C) when you store the object in Amazon S3, then when you GET the object,\n you must use the following headers:

\n \n

For more information about SSE-C, see Server-Side Encryption (Using\n Customer-Provided Encryption Keys).

\n\n

Assuming you have permission to read object tags (permission for the\n s3:GetObjectVersionTagging action), the response also returns the\n x-amz-tagging-count header that provides the count of number of tags\n associated with the object. You can use GetObjectTagging to retrieve\n the tag set associated with an object.

\n\n

\n Permissions\n

\n

You need the s3:GetObject permission for this operation. For more\n information, see Specifying Permissions\n in a Policy. If the object you request does not exist, the error Amazon S3 returns\n depends on whether you also have the s3:ListBucket permission.

\n \n\n\n

\n Versioning\n

\n

By default, the GET action returns the current version of an object. To return a\n different version, use the versionId subresource.

\n\n \n

If the current version of the object is a delete marker, Amazon S3 behaves as if the\n object was deleted and includes x-amz-delete-marker: true in the\n response.

\n
\n\n\n

For more information about versioning, see PutBucketVersioning.

\n\n

\n Overriding Response Header Values\n

\n

There are times when you want to override certain response header values in a GET\n response. For example, you might override the Content-Disposition response header value in\n your GET request.

\n\n

You can override values for a set of response headers using the following query\n parameters. These response header values are sent only on a successful request, that is,\n when status code 200 OK is returned. The set of headers you can override using these\n parameters is a subset of the headers that Amazon S3 accepts when you create an object. The\n response headers that you can override for the GET response are Content-Type,\n Content-Language, Expires, Cache-Control,\n Content-Disposition, and Content-Encoding. To override these\n header values in the GET response, you use the following request parameters.

\n\n \n

You must sign the request, either using an Authorization header or a presigned URL,\n when using these parameters. They cannot be used with an unsigned (anonymous)\n request.

\n
\n \n\n

\n Additional Considerations about Request Headers\n

\n\n

If both of the If-Match and If-Unmodified-Since headers are\n present in the request as follows: If-Match condition evaluates to\n true, and; If-Unmodified-Since condition evaluates to\n false; then, S3 returns 200 OK and the data requested.

\n\n

If both of the If-None-Match and If-Modified-Since headers are\n present in the request as follows: If-None-Match condition evaluates to\n false, and; If-Modified-Since condition evaluates to\n true; then, S3 returns 304 Not Modified response code.

\n\n

For more information about conditional requests, see RFC 7232.

\n\n

The following operations are related to GetObject:

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}/{Key+}?x-id=GetObject", @@ -4702,7 +4718,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The bucket name that contains the object for which to get the ACL information.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The bucket name that contains the object for which to get the ACL information.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4731,7 +4747,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -4772,7 +4788,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The bucket name containing the object whose Legal Hold status you want to retrieve.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The bucket name containing the object whose Legal Hold status you want to retrieve.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4801,7 +4817,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -4842,7 +4858,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The bucket whose Object Lock configuration you want to retrieve.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The bucket whose Object Lock configuration you want to retrieve.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4850,7 +4866,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -4890,14 +4906,14 @@ "Restore": { "target": "com.amazonaws.s3#Restore", "traits": { - "smithy.api#documentation": "

Provides information about object restoration operation and expiration time of the\n restored object copy.

", + "smithy.api#documentation": "

Provides information about object restoration action and expiration time of the\n restored object copy.

", "smithy.api#httpHeader": "x-amz-restore" } }, "LastModified": { "target": "com.amazonaws.s3#LastModified", "traits": { - "smithy.api#documentation": "

Last modified date of the object

", + "smithy.api#documentation": "

Creation date of the object.

", "smithy.api#httpHeader": "Last-Modified" } }, @@ -5090,7 +5106,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The bucket name containing the object.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The bucket name containing the object.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5190,14 +5206,14 @@ "SSECustomerAlgorithm": { "target": "com.amazonaws.s3#SSECustomerAlgorithm", "traits": { - "smithy.api#documentation": "

Specifies the algorithm to use to when encrypting the object (for example,\n AES256).

", + "smithy.api#documentation": "

Specifies the algorithm to use to when decrypting the object (for example,\n AES256).

", "smithy.api#httpHeader": "x-amz-server-side-encryption-customer-algorithm" } }, "SSECustomerKey": { "target": "com.amazonaws.s3#SSECustomerKey", "traits": { - "smithy.api#documentation": "

Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This\n value is used to store the object and then it is discarded; Amazon S3 does not store the\n encryption key. The key must be appropriate for use with the algorithm specified in the\n x-amz-server-side-encryption-customer-algorithm header.

", + "smithy.api#documentation": "

Specifies the customer-provided encryption key for Amazon S3 used to encrypt the data. This\n value is used to decrypt the object when recovering it and must match the one used when \n storing the data. The key must be appropriate for use with the algorithm specified in the\n x-amz-server-side-encryption-customer-algorithm header.

", "smithy.api#httpHeader": "x-amz-server-side-encryption-customer-key" } }, @@ -5224,12 +5240,15 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } } }, + "com.amazonaws.s3#GetObjectResponseStatusCode": { + "type": "integer" + }, "com.amazonaws.s3#GetObjectRetention": { "type": "operation", "input": { @@ -5265,7 +5284,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The bucket name containing the object whose retention settings you want to retrieve.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The bucket name containing the object whose retention settings you want to retrieve.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5294,7 +5313,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -5309,7 +5328,7 @@ "target": "com.amazonaws.s3#GetObjectTaggingOutput" }, "traits": { - "smithy.api#documentation": "

Returns the tag-set of an object. You send the GET request against the tagging\n subresource associated with the object.

\n\n

To use this operation, you must have permission to perform the\n s3:GetObjectTagging action. By default, the GET operation returns\n information about current version of an object. For a versioned bucket, you can have\n multiple versions of an object in your bucket. To retrieve tags of any other version, use\n the versionId query parameter. You also need permission for the\n s3:GetObjectVersionTagging action.

\n\n

By default, the bucket owner has this permission and can grant this permission to\n others.

\n\n

For information about the Amazon S3 object tagging feature, see Object Tagging.

\n\n

The following operation is related to GetObjectTagging:

\n ", + "smithy.api#documentation": "

Returns the tag-set of an object. You send the GET request against the tagging\n subresource associated with the object.

\n\n

To use this operation, you must have permission to perform the\n s3:GetObjectTagging action. By default, the GET action returns\n information about current version of an object. For a versioned bucket, you can have\n multiple versions of an object in your bucket. To retrieve tags of any other version, use\n the versionId query parameter. You also need permission for the\n s3:GetObjectVersionTagging action.

\n\n

By default, the bucket owner has this permission and can grant this permission to\n others.

\n\n

For information about the Amazon S3 object tagging feature, see Object Tagging.

\n\n

The following action is related to GetObjectTagging:

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}/{Key+}?tagging", @@ -5342,7 +5361,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The bucket name containing the object for which to get the tagging information.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The bucket name containing the object for which to get the tagging information.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5365,9 +5384,15 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } + }, + "RequestPayer": { + "target": "com.amazonaws.s3#RequestPayer", + "traits": { + "smithy.api#httpHeader": "x-amz-request-payer" + } } } }, @@ -5380,7 +5405,7 @@ "target": "com.amazonaws.s3#GetObjectTorrentOutput" }, "traits": { - "smithy.api#documentation": "

Returns torrent files from a bucket. BitTorrent can save you bandwidth when you're\n distributing large files. For more information about BitTorrent, see Using BitTorrent with Amazon S3.

\n \n

You can get torrent only for objects that are less than 5 GB in size, and that are\n not encrypted using server-side encryption with a customer-provided encryption\n key.

\n
\n

To use GET, you must have READ access to the object.

\n

This action is not supported by Amazon S3 on Outposts.

\n

The following operation is related to GetObjectTorrent:

\n ", + "smithy.api#documentation": "

Returns torrent files from a bucket. BitTorrent can save you bandwidth when you're\n distributing large files. For more information about BitTorrent, see Using BitTorrent with Amazon S3.

\n \n

You can get torrent only for objects that are less than 5 GB in size, and that are\n not encrypted using server-side encryption with a customer-provided encryption\n key.

\n
\n

To use GET, you must have READ access to the object.

\n

This action is not supported by Amazon S3 on Outposts.

\n

The following action is related to GetObjectTorrent:

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}/{Key+}?torrent", @@ -5434,7 +5459,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -5483,7 +5508,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -5604,7 +5629,7 @@ } ], "traits": { - "smithy.api#documentation": "

This operation is useful to determine if a bucket exists and you have permission to\n access it. The operation returns a 200 OK if the bucket exists and you have\n permission to access it. Otherwise, the operation might return responses such as 404\n Not Found and 403 Forbidden.

\n\n

To use this operation, you must have permissions to perform the\n s3:ListBucket action. The bucket owner has this permission by default and\n can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

", + "smithy.api#documentation": "

This action is useful to determine if a bucket exists and you have permission to\n access it. The action returns a 200 OK if the bucket exists and you have\n permission to access it.

\n \n \n

If the bucket does not exist or you do not have permission to access it, the HEAD request\n returns a generic 404 Not Found or 403 Forbidden code. A message body is not \n included, so you cannot determine the exception beyond these error codes.

\n\n

To use this operation, you must have permissions to perform the\n s3:ListBucket action. The bucket owner has this permission by default and\n can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

", "smithy.api#http": { "method": "HEAD", "uri": "/{Bucket}", @@ -5648,7 +5673,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The bucket name.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The bucket name.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5656,7 +5681,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -5676,7 +5701,7 @@ } ], "traits": { - "smithy.api#documentation": "

The HEAD operation retrieves metadata from an object without returning the object\n itself. This operation is useful if you're only interested in an object's metadata. To use\n HEAD, you must have READ access to the object.

\n\n

A HEAD request has the same options as a GET operation on an\n object. The response is identical to the GET response except that there is no\n response body.

\n\n

If you encrypt an object by using server-side encryption with customer-provided\n encryption keys (SSE-C) when you store the object in Amazon S3, then when you retrieve the\n metadata from the object, you must use the following headers:

\n \n

For more information about SSE-C, see Server-Side Encryption (Using\n Customer-Provided Encryption Keys).

\n \n

Encryption request headers, like x-amz-server-side-encryption, should\n not be sent for GET requests if your object uses server-side encryption with CMKs stored\n in AWS KMS (SSE-KMS) or server-side encryption with Amazon S3–managed encryption keys\n (SSE-S3). If your object does use these types of keys, you’ll get an HTTP 400 BadRequest\n error.

\n
\n\n\n\n\n\n\n\n

Request headers are limited to 8 KB in size. For more information, see Common Request\n Headers.

\n

Consider the following when using request headers:

\n \n\n

For more information about conditional requests, see RFC 7232.

\n\n

\n Permissions\n

\n

You need the s3:GetObject permission for this operation. For more\n information, see Specifying Permissions\n in a Policy. If the object you request does not exist, the error Amazon S3 returns\n depends on whether you also have the s3:ListBucket permission.

\n \n\n

The following operation is related to HeadObject:

\n ", + "smithy.api#documentation": "

The HEAD action retrieves metadata from an object without returning the object\n itself. This action is useful if you're only interested in an object's metadata. To use\n HEAD, you must have READ access to the object.

\n\n

A HEAD request has the same options as a GET action on an\n object. The response is identical to the GET response except that there is no\n response body. Because of this, if the HEAD request generates an error, it\n returns a generic 404 Not Found or 403 Forbidden code. It is not \n possible to retrieve the exact exception beyond these error codes.

\n\n

If you encrypt an object by using server-side encryption with customer-provided\n encryption keys (SSE-C) when you store the object in Amazon S3, then when you retrieve the\n metadata from the object, you must use the following headers:

\n \n

For more information about SSE-C, see Server-Side Encryption (Using\n Customer-Provided Encryption Keys).

\n \n \n \n\n\n

Request headers are limited to 8 KB in size. For more information, see Common Request\n Headers.

\n

Consider the following when using request headers:

\n \n\n

For more information about conditional requests, see RFC 7232.

\n\n

\n Permissions\n

\n

You need the s3:GetObject permission for this operation. For more\n information, see Specifying Permissions\n in a Policy. If the object you request does not exist, the error Amazon S3 returns\n depends on whether you also have the s3:ListBucket permission.

\n \n\n

The following action is related to HeadObject:

\n ", "smithy.api#http": { "method": "HEAD", "uri": "/{Bucket}/{Key+}", @@ -5755,7 +5780,7 @@ "LastModified": { "target": "com.amazonaws.s3#LastModified", "traits": { - "smithy.api#documentation": "

Last modified date of the object

", + "smithy.api#documentation": "

Creation date of the object.

", "smithy.api#httpHeader": "Last-Modified" } }, @@ -5934,7 +5959,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The name of the bucket containing the object.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The name of the bucket containing the object.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6026,7 +6051,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -6062,7 +6087,7 @@ "Suffix": { "target": "com.amazonaws.s3#Suffix", "traits": { - "smithy.api#documentation": "

A suffix that is appended to a request that is for a directory on the website endpoint\n (for example,if the suffix is index.html and you make a request to samplebucket/images/ the\n data that is returned will be for the object with the key name images/index.html) The\n suffix must not be empty and must not include a slash character.

", + "smithy.api#documentation": "

A suffix that is appended to a request that is for a directory on the website endpoint\n (for example,if the suffix is index.html and you make a request to samplebucket/images/ the\n data that is returned will be for the object with the key name images/index.html) The\n suffix must not be empty and must not include a slash character.

\n \n

Replacement must be made for object keys containing special characters (such as carriage returns) when using \n XML requests. For more information, see \n XML related object key constraints.

\n
", "smithy.api#required": {} } } @@ -6215,7 +6240,7 @@ "Prefix": { "target": "com.amazonaws.s3#Prefix", "traits": { - "smithy.api#documentation": "

An object key name prefix that identifies the subset of objects to which the rule\n applies.

" + "smithy.api#documentation": "

An object key name prefix that identifies the subset of objects to which the rule\n applies.

\n \n

Replacement must be made for object keys containing special characters (such as carriage returns) when using \n XML requests. For more information, see \n XML related object key constraints.

\n
" } }, "Tag": { @@ -6700,7 +6725,7 @@ "target": "com.amazonaws.s3#Prefix", "traits": { "smithy.api#deprecated": {}, - "smithy.api#documentation": "

Prefix identifying one or more objects to which the rule applies. This is\n No longer used; use Filter instead.

" + "smithy.api#documentation": "

Prefix identifying one or more objects to which the rule applies. This is\n No longer used; use Filter instead.

\n \n

Replacement must be made for object keys containing special characters (such as carriage returns) when using \n XML requests. For more information, see \n XML related object key constraints.

\n
" } }, "Filter": { @@ -6768,7 +6793,7 @@ "Prefix": { "target": "com.amazonaws.s3#Prefix", "traits": { - "smithy.api#documentation": "

Prefix identifying one or more objects to which the rule applies.

" + "smithy.api#documentation": "

Prefix identifying one or more objects to which the rule applies.

\n \n

Replacement must be made for object keys containing special characters (such as carriage returns) when using \n XML requests. For more information, see \n XML related object key constraints.

\n
" } }, "Tag": { @@ -6800,7 +6825,7 @@ "target": "com.amazonaws.s3#ListBucketAnalyticsConfigurationsOutput" }, "traits": { - "smithy.api#documentation": "

Lists the analytics configurations for the bucket. You can have up to 1,000 analytics\n configurations per bucket.

\n\n

This operation supports list pagination and does not return more than 100 configurations\n at a time. You should always check the IsTruncated element in the response. If\n there are no more configurations to list, IsTruncated is set to false. If\n there are more configurations to list, IsTruncated is set to true, and there\n will be a value in NextContinuationToken. You use the\n NextContinuationToken value to continue the pagination of the list by\n passing the value in continuation-token in the request to GET the next\n page.

\n\n

To use this operation, you must have permissions to perform the\n s3:GetAnalyticsConfiguration action. The bucket owner has this permission\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

For information about Amazon S3 analytics feature, see Amazon S3 Analytics – Storage Class\n Analysis.

\n\n

The following operations are related to\n ListBucketAnalyticsConfigurations:

\n ", + "smithy.api#documentation": "

Lists the analytics configurations for the bucket. You can have up to 1,000 analytics\n configurations per bucket.

\n\n

This action supports list pagination and does not return more than 100 configurations\n at a time. You should always check the IsTruncated element in the response. If\n there are no more configurations to list, IsTruncated is set to false. If\n there are more configurations to list, IsTruncated is set to true, and there\n will be a value in NextContinuationToken. You use the\n NextContinuationToken value to continue the pagination of the list by\n passing the value in continuation-token in the request to GET the next\n page.

\n\n

To use this operation, you must have permissions to perform the\n s3:GetAnalyticsConfiguration action. The bucket owner has this permission\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

For information about Amazon S3 analytics feature, see Amazon S3 Analytics – Storage Class\n Analysis.

\n\n

The following operations are related to\n ListBucketAnalyticsConfigurations:

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}?analytics&x-id=ListBucketAnalyticsConfigurations", @@ -6860,7 +6885,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -6943,7 +6968,7 @@ "target": "com.amazonaws.s3#ListBucketInventoryConfigurationsOutput" }, "traits": { - "smithy.api#documentation": "

Returns a list of inventory configurations for the bucket. You can have up to 1,000\n analytics configurations per bucket.

\n\n

This operation supports list pagination and does not return more than 100 configurations\n at a time. Always check the IsTruncated element in the response. If there are\n no more configurations to list, IsTruncated is set to false. If there are more\n configurations to list, IsTruncated is set to true, and there is a value in\n NextContinuationToken. You use the NextContinuationToken value\n to continue the pagination of the list by passing the value in continuation-token in the\n request to GET the next page.

\n\n

To use this operation, you must have permissions to perform the\n s3:GetInventoryConfiguration action. The bucket owner has this permission\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

For information about the Amazon S3 inventory feature, see Amazon S3 Inventory\n

\n\n

The following operations are related to\n ListBucketInventoryConfigurations:

\n ", + "smithy.api#documentation": "

Returns a list of inventory configurations for the bucket. You can have up to 1,000\n analytics configurations per bucket.

\n\n

This action supports list pagination and does not return more than 100 configurations\n at a time. Always check the IsTruncated element in the response. If there are\n no more configurations to list, IsTruncated is set to false. If there are more\n configurations to list, IsTruncated is set to true, and there is a value in\n NextContinuationToken. You use the NextContinuationToken value\n to continue the pagination of the list by passing the value in continuation-token in the\n request to GET the next page.

\n\n

To use this operation, you must have permissions to perform the\n s3:GetInventoryConfiguration action. The bucket owner has this permission\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

For information about the Amazon S3 inventory feature, see Amazon S3 Inventory\n

\n\n

The following operations are related to\n ListBucketInventoryConfigurations:

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}?inventory&x-id=ListBucketInventoryConfigurations", @@ -7003,7 +7028,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -7018,7 +7043,7 @@ "target": "com.amazonaws.s3#ListBucketMetricsConfigurationsOutput" }, "traits": { - "smithy.api#documentation": "

Lists the metrics configurations for the bucket. The metrics configurations are only for\n the request metrics of the bucket and do not provide information on daily storage metrics.\n You can have up to 1,000 configurations per bucket.

\n\n

This operation supports list pagination and does not return more than 100 configurations\n at a time. Always check the IsTruncated element in the response. If there are\n no more configurations to list, IsTruncated is set to false. If there are more\n configurations to list, IsTruncated is set to true, and there is a value in\n NextContinuationToken. You use the NextContinuationToken value\n to continue the pagination of the list by passing the value in\n continuation-token in the request to GET the next page.

\n\n

To use this operation, you must have permissions to perform the\n s3:GetMetricsConfiguration action. The bucket owner has this permission by\n default. The bucket owner can grant this permission to others. For more information about\n permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

For more information about metrics configurations and CloudWatch request metrics, see\n Monitoring Metrics with Amazon\n CloudWatch.

\n\n

The following operations are related to\n ListBucketMetricsConfigurations:

\n ", + "smithy.api#documentation": "

Lists the metrics configurations for the bucket. The metrics configurations are only for\n the request metrics of the bucket and do not provide information on daily storage metrics.\n You can have up to 1,000 configurations per bucket.

\n\n

This action supports list pagination and does not return more than 100 configurations\n at a time. Always check the IsTruncated element in the response. If there are\n no more configurations to list, IsTruncated is set to false. If there are more\n configurations to list, IsTruncated is set to true, and there is a value in\n NextContinuationToken. You use the NextContinuationToken value\n to continue the pagination of the list by passing the value in\n continuation-token in the request to GET the next page.

\n\n

To use this operation, you must have permissions to perform the\n s3:GetMetricsConfiguration action. The bucket owner has this permission by\n default. The bucket owner can grant this permission to others. For more information about\n permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

For more information about metrics configurations and CloudWatch request metrics, see\n Monitoring Metrics with Amazon\n CloudWatch.

\n\n

The following operations are related to\n ListBucketMetricsConfigurations:

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}?metrics&x-id=ListBucketMetricsConfigurations", @@ -7078,7 +7103,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -7124,7 +7149,7 @@ "target": "com.amazonaws.s3#ListMultipartUploadsOutput" }, "traits": { - "smithy.api#documentation": "

This operation lists in-progress multipart uploads. An in-progress multipart upload is a\n multipart upload that has been initiated using the Initiate Multipart Upload request, but\n has not yet been completed or aborted.

\n\n

This operation returns at most 1,000 multipart uploads in the response. 1,000 multipart\n uploads is the maximum number of uploads a response can include, which is also the default\n value. You can further limit the number of uploads in a response by specifying the\n max-uploads parameter in the response. If additional multipart uploads\n satisfy the list criteria, the response will contain an IsTruncated element\n with the value true. To list the additional multipart uploads, use the\n key-marker and upload-id-marker request parameters.

\n\n

In the response, the uploads are sorted by key. If your application has initiated more\n than one multipart upload using the same object key, then uploads in the response are first\n sorted by key. Additionally, uploads are sorted in ascending order within each key by the\n upload initiation time.

\n\n

For more information on multipart uploads, see Uploading Objects Using Multipart\n Upload.

\n\n

For information on permissions required to use the multipart upload API, see Multipart Upload API and\n Permissions.

\n\n

The following operations are related to ListMultipartUploads:

\n ", + "smithy.api#documentation": "

This action lists in-progress multipart uploads. An in-progress multipart upload is a\n multipart upload that has been initiated using the Initiate Multipart Upload request, but\n has not yet been completed or aborted.

\n\n

This action returns at most 1,000 multipart uploads in the response. 1,000 multipart\n uploads is the maximum number of uploads a response can include, which is also the default\n value. You can further limit the number of uploads in a response by specifying the\n max-uploads parameter in the response. If additional multipart uploads\n satisfy the list criteria, the response will contain an IsTruncated element\n with the value true. To list the additional multipart uploads, use the\n key-marker and upload-id-marker request parameters.

\n\n

In the response, the uploads are sorted by key. If your application has initiated more\n than one multipart upload using the same object key, then uploads in the response are first\n sorted by key. Additionally, uploads are sorted in ascending order within each key by the\n upload initiation time.

\n\n

For more information on multipart uploads, see Uploading Objects Using Multipart\n Upload.

\n\n

For information on permissions required to use the multipart upload API, see Multipart Upload and\n Permissions.

\n\n

The following operations are related to ListMultipartUploads:

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}?uploads", @@ -7218,7 +7243,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The name of the bucket to which the multipart upload was initiated.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The name of the bucket to which the multipart upload was initiated.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -7267,7 +7292,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -7412,7 +7437,7 @@ "MaxKeys": { "target": "com.amazonaws.s3#MaxKeys", "traits": { - "smithy.api#documentation": "

Sets the maximum number of keys returned in the response. By default the API returns up\n to 1,000 key names. The response might contain fewer keys but will never contain more. If\n additional keys satisfy the search criteria, but were not returned because max-keys was\n exceeded, the response contains true. To return the\n additional keys, see key-marker and version-id-marker.

", + "smithy.api#documentation": "

Sets the maximum number of keys returned in the response. By default the action returns up\n to 1,000 key names. The response might contain fewer keys but will never contain more. If\n additional keys satisfy the search criteria, but were not returned because max-keys was\n exceeded, the response contains true. To return the\n additional keys, see key-marker and version-id-marker.

", "smithy.api#httpQuery": "max-keys" } }, @@ -7433,7 +7458,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -7453,7 +7478,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns some or all (up to 1,000) of the objects in a bucket. You can use the request\n parameters as selection criteria to return a subset of the objects in a bucket. A 200 OK\n response can contain valid or invalid XML. Be sure to design your application to parse the\n contents of the response and handle it appropriately.

\n \n

This API has been revised. We recommend that you use the newer version, ListObjectsV2, when developing applications. For backward compatibility,\n Amazon S3 continues to support ListObjects.

\n
\n\n\n

The following operations are related to ListObjects:

\n ", + "smithy.api#documentation": "

Returns some or all (up to 1,000) of the objects in a bucket. You can use the request\n parameters as selection criteria to return a subset of the objects in a bucket. A 200 OK\n response can contain valid or invalid XML. Be sure to design your application to parse the\n contents of the response and handle it appropriately.

\n \n

This action has been revised. We recommend that you use the newer version, ListObjectsV2, when developing applications. For backward compatibility,\n Amazon S3 continues to support ListObjects.

\n
\n\n\n

The following operations are related to ListObjects:

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}", @@ -7516,7 +7541,7 @@ "CommonPrefixes": { "target": "com.amazonaws.s3#CommonPrefixList", "traits": { - "smithy.api#documentation": "

All of the keys rolled up in a common prefix count as a single return when calculating\n the number of returns.

\n\n

A response can contain CommonPrefixes only if you specify a delimiter.

\n\n

CommonPrefixes contains all (if there are any) keys between Prefix and the next\n occurrence of the string specified by the delimiter.

\n\n

CommonPrefixes lists keys that act like subdirectories in the directory specified by\n Prefix.

\n\n

For example, if the prefix is notes/ and the delimiter is a slash (/) as in\n notes/summer/july, the common prefix is notes/summer/. All of the keys that roll up into a\n common prefix count as a single return when calculating the number of returns.

", + "smithy.api#documentation": "

All of the keys (up to 1,000) rolled up in a common prefix count as a single return when calculating\n the number of returns.

\n\n

A response can contain CommonPrefixes only if you specify a delimiter.

\n\n

CommonPrefixes contains all (if there are any) keys between Prefix and the next\n occurrence of the string specified by the delimiter.

\n\n

CommonPrefixes lists keys that act like subdirectories in the directory specified by\n Prefix.

\n\n

For example, if the prefix is notes/ and the delimiter is a slash (/) as in\n notes/summer/july, the common prefix is notes/summer/. All of the keys that roll up into a\n common prefix count as a single return when calculating the number of returns.

", "smithy.api#xmlFlattened": {} } }, @@ -7534,7 +7559,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The name of the bucket containing the objects.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The name of the bucket containing the objects.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -7562,7 +7587,7 @@ "MaxKeys": { "target": "com.amazonaws.s3#MaxKeys", "traits": { - "smithy.api#documentation": "

Sets the maximum number of keys returned in the response. By default the API returns up\n to 1,000 key names. The response might contain fewer keys but will never contain more.\n

", + "smithy.api#documentation": "

Sets the maximum number of keys returned in the response. By default the action returns up\n to 1,000 key names. The response might contain fewer keys but will never contain more.\n

", "smithy.api#httpQuery": "max-keys" } }, @@ -7583,7 +7608,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -7603,7 +7628,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns some or all (up to 1,000) of the objects in a bucket. You can use the request\n parameters as selection criteria to return a subset of the objects in a bucket. A 200\n OK response can contain valid or invalid XML. Make sure to design your\n application to parse the contents of the response and handle it appropriately.

\n\n

To use this operation, you must have READ access to the bucket.

\n\n

To use this operation in an AWS Identity and Access Management (IAM) policy, you must\n have permissions to perform the s3:ListBucket action. The bucket owner has\n this permission by default and can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n \n

This section describes the latest revision of the API. We recommend that you use this\n revised API for application development. For backward compatibility, Amazon S3 continues to\n support the prior version of this API, ListObjects.

\n
\n\n

To get a list of your buckets, see ListBuckets.

\n\n

The following operations are related to ListObjectsV2:

\n ", + "smithy.api#documentation": "

Returns some or all (up to 1,000) of the objects in a bucket. You can use the request\n parameters as selection criteria to return a subset of the objects in a bucket. A 200\n OK response can contain valid or invalid XML. Make sure to design your\n application to parse the contents of the response and handle it appropriately. \n Objects are returned sorted in an ascending order of the respective key names in the list.

\n\n

To use this operation, you must have READ access to the bucket.

\n\n

To use this action in an AWS Identity and Access Management (IAM) policy, you must\n have permissions to perform the s3:ListBucket action. The bucket owner has\n this permission by default and can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n \n

This section describes the latest revision of this action. We recommend that you use this\n revised API for application development. For backward compatibility, Amazon S3 continues to\n support the prior version of this API, ListObjects.

\n
\n\n

To get a list of your buckets, see ListBuckets.

\n\n

The following operations are related to ListObjectsV2:

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}?list-type=2", @@ -7635,7 +7660,7 @@ "Name": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The bucket name.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

" + "smithy.api#documentation": "

The bucket name.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

" } }, "Prefix": { @@ -7653,13 +7678,13 @@ "MaxKeys": { "target": "com.amazonaws.s3#MaxKeys", "traits": { - "smithy.api#documentation": "

Sets the maximum number of keys returned in the response. By default the API returns up\n to 1,000 key names. The response might contain fewer keys but will never contain\n more.

" + "smithy.api#documentation": "

Sets the maximum number of keys returned in the response. By default the action returns up\n to 1,000 key names. The response might contain fewer keys but will never contain\n more.

" } }, "CommonPrefixes": { "target": "com.amazonaws.s3#CommonPrefixList", "traits": { - "smithy.api#documentation": "

All of the keys rolled up into a common prefix count as a single return when calculating\n the number of returns.

\n\n

A response can contain CommonPrefixes only if you specify a\n delimiter.

\n\n

\n CommonPrefixes contains all (if there are any) keys between\n Prefix and the next occurrence of the string specified by a\n delimiter.

\n\n

\n CommonPrefixes lists keys that act like subdirectories in the directory\n specified by Prefix.

\n\n

For example, if the prefix is notes/ and the delimiter is a slash\n (/) as in notes/summer/july, the common prefix is\n notes/summer/. All of the keys that roll up into a common prefix count as a\n single return when calculating the number of returns.

", + "smithy.api#documentation": "

All of the keys (up to 1,000) rolled up into a common prefix count as a single return when calculating\n the number of returns.

\n\n

A response can contain CommonPrefixes only if you specify a\n delimiter.

\n\n

\n CommonPrefixes contains all (if there are any) keys between\n Prefix and the next occurrence of the string specified by a\n delimiter.

\n\n

\n CommonPrefixes lists keys that act like subdirectories in the directory\n specified by Prefix.

\n\n

For example, if the prefix is notes/ and the delimiter is a slash\n (/) as in notes/summer/july, the common prefix is\n notes/summer/. All of the keys that roll up into a common prefix count as a\n single return when calculating the number of returns.

", "smithy.api#xmlFlattened": {} } }, @@ -7672,7 +7697,7 @@ "KeyCount": { "target": "com.amazonaws.s3#KeyCount", "traits": { - "smithy.api#documentation": "

KeyCount is the number of keys returned with this request. KeyCount will always be less\n than equals to MaxKeys field. Say you ask for 50 keys, your result will include less than\n equals 50 keys

" + "smithy.api#documentation": "

KeyCount is the number of keys returned with this request. KeyCount will always be less\n than or equals to MaxKeys field. Say you ask for 50 keys, your result will include less than\n equals 50 keys

" } }, "ContinuationToken": { @@ -7701,7 +7726,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

Bucket name to list.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

Bucket name to list.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -7723,7 +7748,7 @@ "MaxKeys": { "target": "com.amazonaws.s3#MaxKeys", "traits": { - "smithy.api#documentation": "

Sets the maximum number of keys returned in the response. By default the API returns up\n to 1,000 key names. The response might contain fewer keys but will never contain\n more.

", + "smithy.api#documentation": "

Sets the maximum number of keys returned in the response. By default the action returns up\n to 1,000 key names. The response might contain fewer keys but will never contain\n more.

", "smithy.api#httpQuery": "max-keys" } }, @@ -7765,7 +7790,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -7780,7 +7805,7 @@ "target": "com.amazonaws.s3#ListPartsOutput" }, "traits": { - "smithy.api#documentation": "

Lists the parts that have been uploaded for a specific multipart upload. This operation\n must include the upload ID, which you obtain by sending the initiate multipart upload\n request (see CreateMultipartUpload).\n This request returns a maximum of 1,000 uploaded parts. The default number of parts\n returned is 1,000 parts. You can restrict the number of parts returned by specifying the\n max-parts request parameter. If your multipart upload consists of more than\n 1,000 parts, the response returns an IsTruncated field with the value of true,\n and a NextPartNumberMarker element. In subsequent ListParts\n requests you can include the part-number-marker query string parameter and set its value to\n the NextPartNumberMarker field value from the previous response.

\n\n

For more information on multipart uploads, see Uploading Objects Using Multipart\n Upload.

\n\n

For information on permissions required to use the multipart upload API, see Multipart Upload API and\n Permissions.

\n\n

The following operations are related to ListParts:

\n ", + "smithy.api#documentation": "

Lists the parts that have been uploaded for a specific multipart upload. This operation\n must include the upload ID, which you obtain by sending the initiate multipart upload\n request (see CreateMultipartUpload).\n This request returns a maximum of 1,000 uploaded parts. The default number of parts\n returned is 1,000 parts. You can restrict the number of parts returned by specifying the\n max-parts request parameter. If your multipart upload consists of more than\n 1,000 parts, the response returns an IsTruncated field with the value of true,\n and a NextPartNumberMarker element. In subsequent ListParts\n requests you can include the part-number-marker query string parameter and set its value to\n the NextPartNumberMarker field value from the previous response.

\n\n

For more information on multipart uploads, see Uploading Objects Using Multipart\n Upload.

\n\n

For information on permissions required to use the multipart upload API, see Multipart Upload and\n Permissions.

\n\n

The following operations are related to ListParts:

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}/{Key+}?x-id=ListParts", @@ -7893,7 +7918,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The name of the bucket to which the parts are being uploaded.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The name of the bucket to which the parts are being uploaded.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -7937,7 +7962,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -8405,7 +8430,7 @@ "LastModified": { "target": "com.amazonaws.s3#LastModified", "traits": { - "smithy.api#documentation": "

The date the Object was Last Modified

" + "smithy.api#documentation": "

Creation date of the object.

" } }, "ETag": { @@ -8441,7 +8466,7 @@ "type": "structure", "members": {}, "traits": { - "smithy.api#documentation": "

This operation is not allowed against this storage tier.

", + "smithy.api#documentation": "

This action is not allowed against this storage tier.

", "smithy.api#error": "client" } }, @@ -8486,7 +8511,7 @@ "Key": { "target": "com.amazonaws.s3#ObjectKey", "traits": { - "smithy.api#documentation": "

Key name of the object to delete.

", + "smithy.api#documentation": "

Key name of the object.

\n \n

Replacement must be made for object keys containing special characters (such as carriage returns) when using \n XML requests. For more information, see \n XML related object key constraints.

\n
", "smithy.api#required": {} } }, @@ -8661,7 +8686,7 @@ "type": "structure", "members": {}, "traits": { - "smithy.api#documentation": "

The source object of the COPY operation is not in the active tier and is only stored in\n Amazon S3 Glacier.

", + "smithy.api#documentation": "

The source object of the COPY action is not in the active tier and is only stored in\n Amazon S3 Glacier.

", "smithy.api#error": "client" } }, @@ -9107,7 +9132,7 @@ } }, "traits": { - "smithy.api#documentation": "

The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket. You can\n enable the configuration options in any combination. For more information about when Amazon S3\n considers a bucket or object public, see The Meaning of \"Public\" in the Amazon Simple Storage Service Developer Guide.

" + "smithy.api#documentation": "

The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket. You can\n enable the configuration options in any combination. For more information about when Amazon S3\n considers a bucket or object public, see The Meaning of \"Public\" in the Amazon S3 User Guide.

" } }, "com.amazonaws.s3#PutBucketAccelerateConfiguration": { @@ -9116,7 +9141,7 @@ "target": "com.amazonaws.s3#PutBucketAccelerateConfigurationRequest" }, "traits": { - "smithy.api#documentation": "

Sets the accelerate configuration of an existing bucket. Amazon S3 Transfer Acceleration is a\n bucket-level feature that enables you to perform faster data transfers to Amazon S3.

\n\n

To use this operation, you must have permission to perform the\n s3:PutAccelerateConfiguration action. The bucket owner has this permission by default. The\n bucket owner can grant this permission to others. For more information about permissions,\n see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

The Transfer Acceleration state of a bucket can be set to one of the following two\n values:

\n \n\n\n

The GetBucketAccelerateConfiguration operation returns the transfer acceleration\n state of a bucket.

\n\n

After setting the Transfer Acceleration state of a bucket to Enabled, it might take up\n to thirty minutes before the data transfer rates to the bucket increase.

\n\n

The name of the bucket used for Transfer Acceleration must be DNS-compliant and must\n not contain periods (\".\").

\n\n

For more information about transfer acceleration, see Transfer Acceleration.

\n\n

The following operations are related to\n PutBucketAccelerateConfiguration:

\n ", + "smithy.api#documentation": "

Sets the accelerate configuration of an existing bucket. Amazon S3 Transfer Acceleration is a\n bucket-level feature that enables you to perform faster data transfers to Amazon S3.

\n\n

To use this operation, you must have permission to perform the\n s3:PutAccelerateConfiguration action. The bucket owner has this permission by default. The\n bucket owner can grant this permission to others. For more information about permissions,\n see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

The Transfer Acceleration state of a bucket can be set to one of the following two\n values:

\n \n\n\n

The GetBucketAccelerateConfiguration action returns the transfer acceleration\n state of a bucket.

\n\n

After setting the Transfer Acceleration state of a bucket to Enabled, it might take up\n to thirty minutes before the data transfer rates to the bucket increase.

\n\n

The name of the bucket used for Transfer Acceleration must be DNS-compliant and must\n not contain periods (\".\").

\n\n

For more information about transfer acceleration, see Transfer Acceleration.

\n\n

The following operations are related to\n PutBucketAccelerateConfiguration:

\n ", "smithy.api#http": { "method": "PUT", "uri": "/{Bucket}?accelerate", @@ -9146,7 +9171,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -9237,7 +9262,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -9249,7 +9274,7 @@ "target": "com.amazonaws.s3#PutBucketAnalyticsConfigurationRequest" }, "traits": { - "smithy.api#documentation": "

Sets an analytics configuration for the bucket (specified by the analytics configuration\n ID). You can have up to 1,000 analytics configurations per bucket.

\n\n

You can choose to have storage class analysis export analysis reports sent to a\n comma-separated values (CSV) flat file. See the DataExport request element.\n Reports are updated daily and are based on the object filters that you configure. When\n selecting data export, you specify a destination bucket and an optional destination prefix\n where the file is written. You can export the data to a destination bucket in a different\n account. However, the destination bucket must be in the same Region as the bucket that you\n are making the PUT analytics configuration to. For more information, see Amazon S3 Analytics – Storage Class\n Analysis.

\n\n \n

You must create a bucket policy on the destination bucket where the exported file is\n written to grant permissions to Amazon S3 to write objects to the bucket. For an example\n policy, see Granting Permissions for Amazon S3 Inventory and Storage Class Analysis.

\n
\n\n

To use this operation, you must have permissions to perform the\n s3:PutAnalyticsConfiguration action. The bucket owner has this permission\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n\n

\n Special Errors\n

\n \n\n \n\n\n\n\n

\n Related Resources\n

\n ", + "smithy.api#documentation": "

Sets an analytics configuration for the bucket (specified by the analytics configuration\n ID). You can have up to 1,000 analytics configurations per bucket.

\n\n

You can choose to have storage class analysis export analysis reports sent to a\n comma-separated values (CSV) flat file. See the DataExport request element.\n Reports are updated daily and are based on the object filters that you configure. When\n selecting data export, you specify a destination bucket and an optional destination prefix\n where the file is written. You can export the data to a destination bucket in a different\n account. However, the destination bucket must be in the same Region as the bucket that you\n are making the PUT analytics configuration to. For more information, see Amazon S3 Analytics – Storage Class\n Analysis.

\n\n \n

You must create a bucket policy on the destination bucket where the exported file is\n written to grant permissions to Amazon S3 to write objects to the bucket. For an example\n policy, see Granting Permissions for Amazon S3 Inventory and Storage Class Analysis.

\n
\n\n

To use this operation, you must have permissions to perform the\n s3:PutAnalyticsConfiguration action. The bucket owner has this permission\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n\n

\n Special Errors\n

\n \n\n \n\n\n\n\n

\n Related Resources\n

\n ", "smithy.api#http": { "method": "PUT", "uri": "/{Bucket}?analytics", @@ -9287,7 +9312,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -9299,7 +9324,7 @@ "target": "com.amazonaws.s3#PutBucketCorsRequest" }, "traits": { - "smithy.api#documentation": "

Sets the cors configuration for your bucket. If the configuration exists,\n Amazon S3 replaces it.

\n

To use this operation, you must be allowed to perform the s3:PutBucketCORS\n action. By default, the bucket owner has this permission and can grant it to others.

\n

You set this configuration on a bucket so that the bucket can service cross-origin\n requests. For example, you might want to enable a request whose origin is\n http://www.example.com to access your Amazon S3 bucket at\n my.example.bucket.com by using the browser's XMLHttpRequest\n capability.

\n

To enable cross-origin resource sharing (CORS) on a bucket, you add the\n cors subresource to the bucket. The cors subresource is an XML\n document in which you configure rules that identify origins and the HTTP methods that can\n be executed on your bucket. The document is limited to 64 KB in size.

\n

When Amazon S3 receives a cross-origin request (or a pre-flight OPTIONS request) against a\n bucket, it evaluates the cors configuration on the bucket and uses the first\n CORSRule rule that matches the incoming browser request to enable a\n cross-origin request. For a rule to match, the following conditions must be met:

\n \n

For more information about CORS, go to Enabling\n Cross-Origin Resource Sharing in the Amazon Simple Storage Service Developer Guide.

\n \n

\n Related Resources\n

\n ", + "smithy.api#documentation": "

Sets the cors configuration for your bucket. If the configuration exists,\n Amazon S3 replaces it.

\n

To use this operation, you must be allowed to perform the s3:PutBucketCORS\n action. By default, the bucket owner has this permission and can grant it to others.

\n

You set this configuration on a bucket so that the bucket can service cross-origin\n requests. For example, you might want to enable a request whose origin is\n http://www.example.com to access your Amazon S3 bucket at\n my.example.bucket.com by using the browser's XMLHttpRequest\n capability.

\n

To enable cross-origin resource sharing (CORS) on a bucket, you add the\n cors subresource to the bucket. The cors subresource is an XML\n document in which you configure rules that identify origins and the HTTP methods that can\n be executed on your bucket. The document is limited to 64 KB in size.

\n

When Amazon S3 receives a cross-origin request (or a pre-flight OPTIONS request) against a\n bucket, it evaluates the cors configuration on the bucket and uses the first\n CORSRule rule that matches the incoming browser request to enable a\n cross-origin request. For a rule to match, the following conditions must be met:

\n \n

For more information about CORS, go to Enabling\n Cross-Origin Resource Sharing in the Amazon S3 User Guide.

\n \n

\n Related Resources\n

\n ", "smithy.api#http": { "method": "PUT", "uri": "/{Bucket}?cors", @@ -9322,7 +9347,7 @@ "CORSConfiguration": { "target": "com.amazonaws.s3#CORSConfiguration", "traits": { - "smithy.api#documentation": "

Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more\n information, see Enabling Cross-Origin Resource\n Sharing in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more\n information, see Enabling Cross-Origin Resource\n Sharing in the Amazon S3 User Guide.

", "smithy.api#httpPayload": {}, "smithy.api#required": {} } @@ -9337,7 +9362,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -9349,7 +9374,7 @@ "target": "com.amazonaws.s3#PutBucketEncryptionRequest" }, "traits": { - "smithy.api#documentation": "

This operation uses the encryption subresource to configure default\n encryption and Amazon S3 Bucket Key for an existing bucket.

\n

Default encryption for a bucket can use server-side encryption with Amazon S3-managed keys\n (SSE-S3) or AWS KMS customer master keys (SSE-KMS). If you specify default encryption\n using SSE-KMS, you can also configure Amazon S3 Bucket Key. For information about default\n encryption, see Amazon S3 default bucket encryption\n in the Amazon Simple Storage Service Developer Guide. For more information about S3 Bucket Keys,\n see Amazon S3 Bucket Keys in the Amazon Simple Storage Service Developer Guide.

\n \n

This operation requires AWS Signature Version 4. For more information, see Authenticating Requests (AWS Signature\n Version 4).

\n
\n

To use this operation, you must have permissions to perform the\n s3:PutEncryptionConfiguration action. The bucket owner has this permission\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources in the Amazon Simple Storage Service Developer Guide.

\n \n

\n Related Resources\n

\n ", + "smithy.api#documentation": "

This action uses the encryption subresource to configure default\n encryption and Amazon S3 Bucket Key for an existing bucket.

\n

Default encryption for a bucket can use server-side encryption with Amazon S3-managed keys\n (SSE-S3) or AWS KMS customer master keys (SSE-KMS). If you specify default encryption\n using SSE-KMS, you can also configure Amazon S3 Bucket Key. For information about default\n encryption, see Amazon S3 default bucket encryption\n in the Amazon S3 User Guide. For more information about S3 Bucket Keys,\n see Amazon S3 Bucket Keys in the Amazon S3 User Guide.

\n \n

This action requires AWS Signature Version 4. For more information, see Authenticating Requests (AWS Signature\n Version 4).

\n
\n

To use this operation, you must have permissions to perform the\n s3:PutEncryptionConfiguration action. The bucket owner has this permission\n by default. The bucket owner can grant this permission to others. For more information\n about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources in the Amazon S3 User Guide.

\n \n

\n Related Resources\n

\n ", "smithy.api#http": { "method": "PUT", "uri": "/{Bucket}?encryption", @@ -9386,7 +9411,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -9398,7 +9423,7 @@ "target": "com.amazonaws.s3#PutBucketIntelligentTieringConfigurationRequest" }, "traits": { - "smithy.api#documentation": "

Puts a S3 Intelligent-Tiering configuration to the specified bucket.

\n

The S3 Intelligent-Tiering storage class is designed to optimize storage costs by automatically moving data to the most cost-effective storage access tier, without additional operational overhead. S3 Intelligent-Tiering delivers automatic cost savings by moving data between access tiers, when access patterns change.

\n

The S3 Intelligent-Tiering storage class is suitable for objects larger than 128 KB that you plan to store for at least 30 days. If the size of an object is less than 128 KB, it is not eligible for auto-tiering. Smaller objects can be stored, but they are always charged at the frequent access tier rates in the S3 Intelligent-Tiering storage class.

\n

If you delete an object before the end of the 30-day minimum storage duration period, you are charged for 30 days. For more information, see Storage class for automatically optimizing frequently and infrequently accessed objects.

\n

Operations related to\n PutBucketIntelligentTieringConfiguration include:

\n ", + "smithy.api#documentation": "

Puts a S3 Intelligent-Tiering configuration to the specified bucket.\n You can have up to 1,000 S3 Intelligent-Tiering configurations per bucket.

\n

The S3 Intelligent-Tiering storage class is designed to optimize storage costs by automatically moving data to the most cost-effective storage access tier, without additional operational overhead. S3 Intelligent-Tiering delivers automatic cost savings by moving data between access tiers, when access patterns change.

\n

The S3 Intelligent-Tiering storage class is suitable for objects larger than 128 KB that you plan to store for at least 30 days. If the size of an object is less than 128 KB, it is not eligible for auto-tiering. Smaller objects can be stored, but they are always charged at the frequent access tier rates in the S3 Intelligent-Tiering storage class.

\n

If you delete an object before the end of the 30-day minimum storage duration period, you are charged for 30 days. For more information, see Storage class for automatically optimizing frequently and infrequently accessed objects.

\n

Operations related to\n PutBucketIntelligentTieringConfiguration include:

\n \n \n

You only need S3 Intelligent-Tiering enabled on a bucket if you want to automatically\n move objects stored in the S3 Intelligent-Tiering storage class to the\n Archive Access or Deep Archive Access tier.

\n
\n \n

\n Special Errors\n

\n ", "smithy.api#http": { "method": "PUT", "uri": "/{Bucket}?intelligent-tiering", @@ -9441,7 +9466,7 @@ "target": "com.amazonaws.s3#PutBucketInventoryConfigurationRequest" }, "traits": { - "smithy.api#documentation": "

This implementation of the PUT operation adds an inventory configuration\n (identified by the inventory ID) to the bucket. You can have up to 1,000 inventory\n configurations per bucket.

\n

Amazon S3 inventory generates inventories of the objects in the bucket on a daily or weekly\n basis, and the results are published to a flat file. The bucket that is inventoried is\n called the source bucket, and the bucket where the inventory flat file\n is stored is called the destination bucket. The\n destination bucket must be in the same AWS Region as the\n source bucket.

\n

When you configure an inventory for a source bucket, you specify\n the destination bucket where you want the inventory to be stored, and\n whether to generate the inventory daily or weekly. You can also configure what object\n metadata to include and whether to inventory all object versions or only current versions.\n For more information, see Amazon S3\n Inventory in the Amazon Simple Storage Service Developer Guide.

\n \n

You must create a bucket policy on the destination bucket to\n grant permissions to Amazon S3 to write objects to the bucket in the defined location. For an\n example policy, see \n Granting Permissions for Amazon S3 Inventory and Storage Class Analysis.

\n
\n

To use this operation, you must have permissions to perform the\n s3:PutInventoryConfiguration action. The bucket owner has this permission\n by default and can grant this permission to others. For more information about permissions,\n see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources in the Amazon Simple Storage Service Developer Guide.

\n \n

\n Special Errors\n

\n \n \n

\n Related Resources\n

\n ", + "smithy.api#documentation": "

This implementation of the PUT action adds an inventory configuration\n (identified by the inventory ID) to the bucket. You can have up to 1,000 inventory\n configurations per bucket.

\n

Amazon S3 inventory generates inventories of the objects in the bucket on a daily or weekly\n basis, and the results are published to a flat file. The bucket that is inventoried is\n called the source bucket, and the bucket where the inventory flat file\n is stored is called the destination bucket. The\n destination bucket must be in the same AWS Region as the\n source bucket.

\n

When you configure an inventory for a source bucket, you specify\n the destination bucket where you want the inventory to be stored, and\n whether to generate the inventory daily or weekly. You can also configure what object\n metadata to include and whether to inventory all object versions or only current versions.\n For more information, see Amazon S3\n Inventory in the Amazon S3 User Guide.

\n \n

You must create a bucket policy on the destination bucket to\n grant permissions to Amazon S3 to write objects to the bucket in the defined location. For an\n example policy, see \n Granting Permissions for Amazon S3 Inventory and Storage Class Analysis.

\n
\n

To use this operation, you must have permissions to perform the\n s3:PutInventoryConfiguration action. The bucket owner has this permission\n by default and can grant this permission to others. For more information about permissions,\n see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources in the Amazon S3 User Guide.

\n \n

\n Special Errors\n

\n \n \n

\n Related Resources\n

\n ", "smithy.api#http": { "method": "PUT", "uri": "/{Bucket}?inventory", @@ -9479,7 +9504,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -9491,7 +9516,7 @@ "target": "com.amazonaws.s3#PutBucketLifecycleConfigurationRequest" }, "traits": { - "smithy.api#documentation": "

Creates a new lifecycle configuration for the bucket or replaces an existing lifecycle\n configuration. For information about lifecycle configuration, see Managing Access Permissions to Your Amazon S3\n Resources.

\n\n \n

Bucket lifecycle configuration now supports specifying a lifecycle rule using an\n object key name prefix, one or more object tags, or a combination of both. Accordingly,\n this section describes the latest API. The previous version of the API supported\n filtering based only on an object key name prefix, which is supported for backward\n compatibility. For the related API description, see PutBucketLifecycle.

\n
\n\n \n\n

\n Rules\n

\n

You specify the lifecycle configuration in your request body. The lifecycle\n configuration is specified as XML consisting of one or more rules. Each rule consists of\n the following:

\n\n \n\n

For more information, see Object\n Lifecycle Management and Lifecycle Configuration Elements.

\n\n\n

\n Permissions\n

\n\n\n

By default, all Amazon S3 resources are private, including buckets, objects, and related\n subresources (for example, lifecycle configuration and website configuration). Only the\n resource owner (that is, the AWS account that created it) can access the resource. The\n resource owner can optionally grant access permissions to others by writing an access\n policy. For this operation, a user must get the s3:PutLifecycleConfiguration\n permission.

\n\n

You can also explicitly deny permissions. Explicit deny also supersedes any other\n permissions. If you want to block users or accounts from removing or deleting objects from\n your bucket, you must deny them permissions for the following actions:

\n\n \n\n\n

For more information about permissions, see Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

The following are related to PutBucketLifecycleConfiguration:

\n ", + "smithy.api#documentation": "

Creates a new lifecycle configuration for the bucket or replaces an existing lifecycle\n configuration. For information about lifecycle configuration, see Managing Access Permissions to Your Amazon S3\n Resources.

\n\n \n

Bucket lifecycle configuration now supports specifying a lifecycle rule using an\n object key name prefix, one or more object tags, or a combination of both. Accordingly,\n this section describes the latest API. The previous version of the API supported\n filtering based only on an object key name prefix, which is supported for backward\n compatibility. For the related API description, see PutBucketLifecycle.

\n
\n\n \n\n

\n Rules\n

\n

You specify the lifecycle configuration in your request body. The lifecycle\n configuration is specified as XML consisting of one or more rules. Each rule consists of\n the following:

\n\n \n\n

For more information, see Object\n Lifecycle Management and Lifecycle Configuration Elements.

\n\n\n

\n Permissions\n

\n\n\n

By default, all Amazon S3 resources are private, including buckets, objects, and related\n subresources (for example, lifecycle configuration and website configuration). Only the\n resource owner (that is, the AWS account that created it) can access the resource. The\n resource owner can optionally grant access permissions to others by writing an access\n policy. For this operation, a user must get the s3:PutLifecycleConfiguration\n permission.

\n\n

You can also explicitly deny permissions. Explicit deny also supersedes any other\n permissions. If you want to block users or accounts from removing or deleting objects from\n your bucket, you must deny them permissions for the following actions:

\n\n \n\n\n

For more information about permissions, see Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

The following are related to PutBucketLifecycleConfiguration:

\n ", "smithy.api#http": { "method": "PUT", "uri": "/{Bucket}?lifecycle", @@ -9521,7 +9546,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -9571,7 +9596,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -9583,7 +9608,7 @@ "target": "com.amazonaws.s3#PutBucketMetricsConfigurationRequest" }, "traits": { - "smithy.api#documentation": "

Sets a metrics configuration (specified by the metrics configuration ID) for the bucket.\n You can have up to 1,000 metrics configurations per bucket. If you're updating an existing\n metrics configuration, note that this is a full replacement of the existing metrics\n configuration. If you don't include the elements you want to keep, they are erased.

\n\n

To use this operation, you must have permissions to perform the\n s3:PutMetricsConfiguration action. The bucket owner has this permission by\n default. The bucket owner can grant this permission to others. For more information about\n permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

For information about CloudWatch request metrics for Amazon S3, see Monitoring Metrics with Amazon\n CloudWatch.

\n\n

The following operations are related to\n PutBucketMetricsConfiguration:

\n \n\n\n\n\n\n\n

\n GetBucketLifecycle has the following special error:

\n ", + "smithy.api#documentation": "

Sets a metrics configuration (specified by the metrics configuration ID) for the bucket.\n You can have up to 1,000 metrics configurations per bucket. If you're updating an existing\n metrics configuration, note that this is a full replacement of the existing metrics\n configuration. If you don't include the elements you want to keep, they are erased.

\n\n

To use this operation, you must have permissions to perform the\n s3:PutMetricsConfiguration action. The bucket owner has this permission by\n default. The bucket owner can grant this permission to others. For more information about\n permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

For information about CloudWatch request metrics for Amazon S3, see Monitoring Metrics with Amazon\n CloudWatch.

\n\n

The following operations are related to\n PutBucketMetricsConfiguration:

\n \n\n

\n GetBucketLifecycle has the following special error:

\n ", "smithy.api#http": { "method": "PUT", "uri": "/{Bucket}?metrics", @@ -9621,7 +9646,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -9633,7 +9658,7 @@ "target": "com.amazonaws.s3#PutBucketNotificationConfigurationRequest" }, "traits": { - "smithy.api#documentation": "

Enables notifications of specified events for a bucket. For more information about event\n notifications, see Configuring Event\n Notifications.

\n\n

Using this API, you can replace an existing notification configuration. The\n configuration is an XML file that defines the event types that you want Amazon S3 to publish and\n the destination where you want Amazon S3 to publish an event notification when it detects an\n event of the specified type.

\n\n

By default, your bucket has no event notifications configured. That is, the notification\n configuration will be an empty NotificationConfiguration.

\n\n

\n \n

\n

\n \n

\n

This operation replaces the existing notification configuration with the configuration\n you include in the request body.

\n\n

After Amazon S3 receives this request, it first verifies that any Amazon Simple Notification\n Service (Amazon SNS) or Amazon Simple Queue Service (Amazon SQS) destination exists, and\n that the bucket owner has permission to publish to it by sending a test notification. In\n the case of AWS Lambda destinations, Amazon S3 verifies that the Lambda function permissions\n grant Amazon S3 permission to invoke the function from the Amazon S3 bucket. For more information,\n see Configuring Notifications for Amazon S3\n Events.

\n\n

You can disable notifications by adding the empty NotificationConfiguration\n element.

\n\n

By default, only the bucket owner can configure notifications on a bucket. However,\n bucket owners can use a bucket policy to grant permission to other users to set this\n configuration with s3:PutBucketNotification permission.

\n\n \n

The PUT notification is an atomic operation. For example, suppose your notification\n configuration includes SNS topic, SQS queue, and Lambda function configurations. When\n you send a PUT request with this configuration, Amazon S3 sends test messages to your SNS\n topic. If the message fails, the entire PUT operation will fail, and Amazon S3 will not add\n the configuration to your bucket.

\n
\n\n

\n Responses\n

\n

If the configuration in the request body includes only one\n TopicConfiguration specifying only the\n s3:ReducedRedundancyLostObject event type, the response will also include\n the x-amz-sns-test-message-id header containing the message ID of the test\n notification sent to the topic.

\n\n

The following operation is related to\n PutBucketNotificationConfiguration:

\n ", + "smithy.api#documentation": "

Enables notifications of specified events for a bucket. For more information about event\n notifications, see Configuring Event\n Notifications.

\n\n

Using this API, you can replace an existing notification configuration. The\n configuration is an XML file that defines the event types that you want Amazon S3 to publish and\n the destination where you want Amazon S3 to publish an event notification when it detects an\n event of the specified type.

\n\n

By default, your bucket has no event notifications configured. That is, the notification\n configuration will be an empty NotificationConfiguration.

\n\n

\n \n

\n

\n \n

\n

This action replaces the existing notification configuration with the configuration\n you include in the request body.

\n\n

After Amazon S3 receives this request, it first verifies that any Amazon Simple Notification\n Service (Amazon SNS) or Amazon Simple Queue Service (Amazon SQS) destination exists, and\n that the bucket owner has permission to publish to it by sending a test notification. In\n the case of AWS Lambda destinations, Amazon S3 verifies that the Lambda function permissions\n grant Amazon S3 permission to invoke the function from the Amazon S3 bucket. For more information,\n see Configuring Notifications for Amazon S3\n Events.

\n\n

You can disable notifications by adding the empty NotificationConfiguration\n element.

\n\n

By default, only the bucket owner can configure notifications on a bucket. However,\n bucket owners can use a bucket policy to grant permission to other users to set this\n configuration with s3:PutBucketNotification permission.

\n\n \n

The PUT notification is an atomic operation. For example, suppose your notification\n configuration includes SNS topic, SQS queue, and Lambda function configurations. When\n you send a PUT request with this configuration, Amazon S3 sends test messages to your SNS\n topic. If the message fails, the entire PUT action will fail, and Amazon S3 will not add\n the configuration to your bucket.

\n
\n\n

\n Responses\n

\n

If the configuration in the request body includes only one\n TopicConfiguration specifying only the\n s3:ReducedRedundancyLostObject event type, the response will also include\n the x-amz-sns-test-message-id header containing the message ID of the test\n notification sent to the topic.

\n\n

The following action is related to\n PutBucketNotificationConfiguration:

\n ", "smithy.api#http": { "method": "PUT", "uri": "/{Bucket}?notification", @@ -9662,7 +9687,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -9704,7 +9729,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } }, @@ -9769,7 +9794,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -9781,7 +9806,7 @@ "target": "com.amazonaws.s3#PutBucketReplicationRequest" }, "traits": { - "smithy.api#documentation": "

Creates a replication configuration or replaces an existing one. For more information,\n see Replication in the Amazon S3 Developer Guide.

\n \n

To perform this operation, the user or role performing the operation must have the\n iam:PassRole permission.

\n
\n

Specify the replication configuration in the request body. In the replication\n configuration, you provide the name of the destination bucket or buckets where you want\n Amazon S3 to replicate objects, the IAM role that Amazon S3 can assume to replicate objects on your\n behalf, and other relevant information.

\n\n\n

A replication configuration must include at least one rule, and can contain a maximum of\n 1,000. Each rule identifies a subset of objects to replicate by filtering the objects in\n the source bucket. To choose additional subsets of objects to replicate, add a rule for\n each subset.

\n\n

To specify a subset of the objects in the source bucket to apply a replication rule to,\n add the Filter element as a child of the Rule element. You can filter objects based on an\n object key prefix, one or more object tags, or both. When you add the Filter element in the\n configuration, you must also add the following elements:\n DeleteMarkerReplication, Status, and\n Priority.

\n \n

If you are using an earlier version of the replication configuration, Amazon S3 handles\n replication of delete markers differently. For more information, see Backward Compatibility.

\n
\n

For information about enabling versioning on a bucket, see Using Versioning.

\n\n

By default, a resource owner, in this case the AWS account that created the bucket, can\n perform this operation. The resource owner can also grant others permissions to perform the\n operation. For more information about permissions, see Specifying Permissions in a Policy\n and Managing Access Permissions to Your\n Amazon S3 Resources.

\n\n

\n Handling Replication of Encrypted Objects\n

\n

By default, Amazon S3 doesn't replicate objects that are stored at rest using server-side\n encryption with CMKs stored in AWS KMS. To replicate AWS KMS-encrypted objects, add the\n following: SourceSelectionCriteria, SseKmsEncryptedObjects,\n Status, EncryptionConfiguration, and\n ReplicaKmsKeyID. For information about replication configuration, see\n Replicating Objects\n Created with SSE Using CMKs stored in AWS KMS.

\n\n

For information on PutBucketReplication errors, see List of\n replication-related error codes\n

\n\n\n

The following operations are related to PutBucketReplication:

\n ", + "smithy.api#documentation": "

Creates a replication configuration or replaces an existing one. For more information,\n see Replication in the Amazon S3 Developer Guide.

\n \n

To perform this operation, the user or role performing the action must have the\n iam:PassRole permission.

\n
\n

Specify the replication configuration in the request body. In the replication\n configuration, you provide the name of the destination bucket or buckets where you want\n Amazon S3 to replicate objects, the IAM role that Amazon S3 can assume to replicate objects on your\n behalf, and other relevant information.

\n\n\n

A replication configuration must include at least one rule, and can contain a maximum of\n 1,000. Each rule identifies a subset of objects to replicate by filtering the objects in\n the source bucket. To choose additional subsets of objects to replicate, add a rule for\n each subset.

\n\n

To specify a subset of the objects in the source bucket to apply a replication rule to,\n add the Filter element as a child of the Rule element. You can filter objects based on an\n object key prefix, one or more object tags, or both. When you add the Filter element in the\n configuration, you must also add the following elements:\n DeleteMarkerReplication, Status, and\n Priority.

\n \n

If you are using an earlier version of the replication configuration, Amazon S3 handles\n replication of delete markers differently. For more information, see Backward Compatibility.

\n
\n

For information about enabling versioning on a bucket, see Using Versioning.

\n\n

By default, a resource owner, in this case the AWS account that created the bucket, can\n perform this operation. The resource owner can also grant others permissions to perform the\n operation. For more information about permissions, see Specifying Permissions in a Policy\n and Managing Access Permissions to Your\n Amazon S3 Resources.

\n\n

\n Handling Replication of Encrypted Objects\n

\n

By default, Amazon S3 doesn't replicate objects that are stored at rest using server-side\n encryption with CMKs stored in AWS KMS. To replicate AWS KMS-encrypted objects, add the\n following: SourceSelectionCriteria, SseKmsEncryptedObjects,\n Status, EncryptionConfiguration, and\n ReplicaKmsKeyID. For information about replication configuration, see\n Replicating Objects\n Created with SSE Using CMKs stored in AWS KMS.

\n\n

For information on PutBucketReplication errors, see List of\n replication-related error codes\n

\n\n\n

The following operations are related to PutBucketReplication:

\n ", "smithy.api#http": { "method": "PUT", "uri": "/{Bucket}?replication", @@ -9825,7 +9850,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -9860,7 +9885,7 @@ "ContentMD5": { "target": "com.amazonaws.s3#ContentMD5", "traits": { - "smithy.api#documentation": "

>The base64-encoded 128-bit MD5 digest of the data. You must use this header as a\n message integrity check to verify that the request body was not corrupted in transit. For\n more information, see RFC\n 1864.

\n

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", + "smithy.api#documentation": "

The base64-encoded 128-bit MD5 digest of the data. You must use this header as a\n message integrity check to verify that the request body was not corrupted in transit. For\n more information, see RFC\n 1864.

\n

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", "smithy.api#httpHeader": "Content-MD5" } }, @@ -9875,7 +9900,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -9887,7 +9912,7 @@ "target": "com.amazonaws.s3#PutBucketTaggingRequest" }, "traits": { - "smithy.api#documentation": "

Sets the tags for a bucket.

\n

Use tags to organize your AWS bill to reflect your own cost structure. To do this, sign\n up to get your AWS account bill with tag key values included. Then, to see the cost of\n combined resources, organize your billing information according to resources with the same\n tag key values. For example, you can tag several resources with a specific application\n name, and then organize your billing information to see the total cost of that application\n across several services. For more information, see Cost Allocation\n and Tagging.

\n\n \n

Within a bucket, if you add a tag that has the same key as an existing tag, the new\n value overwrites the old value. For more information, see Using Cost Allocation in Amazon S3 Bucket\n Tags.

\n
\n

To use this operation, you must have permissions to perform the\n s3:PutBucketTagging action. The bucket owner has this permission by default\n and can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

\n PutBucketTagging has the following special errors:

\n \n\n\n

The following operations are related to PutBucketTagging:

\n ", + "smithy.api#documentation": "

Sets the tags for a bucket.

\n

Use tags to organize your AWS bill to reflect your own cost structure. To do this, sign\n up to get your AWS account bill with tag key values included. Then, to see the cost of\n combined resources, organize your billing information according to resources with the same\n tag key values. For example, you can tag several resources with a specific application\n name, and then organize your billing information to see the total cost of that application\n across several services. For more information, see Cost Allocation\n and Tagging.

\n\n \n

Within a bucket, if you add a tag that has the same key as an existing tag, the new\n value overwrites the old value. For more information, see Using Cost Allocation in Amazon S3 Bucket\n Tags.

\n
\n

To use this operation, you must have permissions to perform the\n s3:PutBucketTagging action. The bucket owner has this permission by default\n and can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n\n

\n PutBucketTagging has the following special errors:

\n \n\n\n

The following operations are related to PutBucketTagging:

\n ", "smithy.api#http": { "method": "PUT", "uri": "/{Bucket}?tagging", @@ -9925,7 +9950,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -9982,7 +10007,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -9994,7 +10019,7 @@ "target": "com.amazonaws.s3#PutBucketWebsiteRequest" }, "traits": { - "smithy.api#documentation": "

Sets the configuration of the website that is specified in the website\n subresource. To configure a bucket as a website, you can add this subresource on the bucket\n with website configuration information such as the file name of the index document and any\n redirect rules. For more information, see Hosting Websites on Amazon S3.

\n\n

This PUT operation requires the S3:PutBucketWebsite permission. By default,\n only the bucket owner can configure the website attached to a bucket; however, bucket\n owners can allow other users to set the website configuration by writing a bucket policy\n that grants them the S3:PutBucketWebsite permission.

\n\n

To redirect all website requests sent to the bucket's website endpoint, you add a\n website configuration with the following elements. Because all requests are sent to another\n website, you don't need to provide index document name for the bucket.

\n \n\n

If you want granular control over redirects, you can use the following elements to add\n routing rules that describe conditions for redirecting requests and information about the\n redirect destination. In this case, the website configuration must provide an index\n document for the bucket, because some requests might not be redirected.

\n \n\n

Amazon S3 has a limitation of 50 routing rules per website configuration. If you require more\n than 50 routing rules, you can use object redirect. For more information, see Configuring an\n Object Redirect in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

Sets the configuration of the website that is specified in the website\n subresource. To configure a bucket as a website, you can add this subresource on the bucket\n with website configuration information such as the file name of the index document and any\n redirect rules. For more information, see Hosting Websites on Amazon S3.

\n\n

This PUT action requires the S3:PutBucketWebsite permission. By default,\n only the bucket owner can configure the website attached to a bucket; however, bucket\n owners can allow other users to set the website configuration by writing a bucket policy\n that grants them the S3:PutBucketWebsite permission.

\n\n

To redirect all website requests sent to the bucket's website endpoint, you add a\n website configuration with the following elements. Because all requests are sent to another\n website, you don't need to provide index document name for the bucket.

\n \n\n

If you want granular control over redirects, you can use the following elements to add\n routing rules that describe conditions for redirecting requests and information about the\n redirect destination. In this case, the website configuration must provide an index\n document for the bucket, because some requests might not be redirected.

\n \n\n

Amazon S3 has a limitation of 50 routing rules per website configuration. If you require more\n than 50 routing rules, you can use object redirect. For more information, see Configuring an\n Object Redirect in the Amazon S3 User Guide.

", "smithy.api#http": { "method": "PUT", "uri": "/{Bucket}?website", @@ -10032,7 +10057,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -10047,7 +10072,7 @@ "target": "com.amazonaws.s3#PutObjectOutput" }, "traits": { - "smithy.api#documentation": "

Adds an object to a bucket. You must have WRITE permissions on a bucket to add an object\n to it.

\n\n\n

Amazon S3 never adds partial objects; if you receive a success response, Amazon S3 added the\n entire object to the bucket.

\n\n

Amazon S3 is a distributed system. If it receives multiple write requests for the same object\n simultaneously, it overwrites all but the last object written. Amazon S3 does not provide object\n locking; if you need this, make sure to build it into your application layer or use\n versioning instead.

\n\n

To ensure that data is not corrupted traversing the network, use the\n Content-MD5 header. When you use this header, Amazon S3 checks the object\n against the provided MD5 value and, if they do not match, returns an error. Additionally,\n you can calculate the MD5 while putting an object to Amazon S3 and compare the returned ETag to\n the calculated MD5 value.

\n \n

The Content-MD5 header is required for any request to upload an object\n with a retention period configured using Amazon S3 Object Lock. For more information about\n Amazon S3 Object Lock, see Amazon S3 Object Lock Overview\n in the Amazon Simple Storage Service Developer Guide.

\n
\n\n\n

\n Server-side Encryption\n

\n

You can optionally request server-side encryption. With server-side encryption, Amazon S3 encrypts your data as it writes it to disks in its data centers and decrypts the data\n when you access it. You have the option to provide your own encryption key or use AWS\n managed encryption keys (SSE-S3 or SSE-KMS). For more information, see Using Server-Side\n Encryption.

\n

If you request server-side encryption using AWS Key Management Service (SSE-KMS), you can enable an S3 Bucket Key at the object-level. For more information, see Amazon S3 Bucket Keys in the Amazon Simple Storage Service Developer Guide.

\n

\n Access Control List (ACL)-Specific Request\n Headers\n

\n

You can use headers to grant ACL- based permissions. By default, all objects are\n private. Only the owner has full access control. When adding a new object, you can grant\n permissions to individual AWS accounts or to predefined groups defined by Amazon S3. These\n permissions are then added to the ACL on the object. For more information, see Access Control List\n (ACL) Overview and Managing ACLs Using the REST\n API.

\n\n

\n Storage Class Options\n

\n

By default, Amazon S3 uses the STANDARD Storage Class to store newly created objects. The\n STANDARD storage class provides high durability and high availability. Depending on\n performance needs, you can specify a different Storage Class. Amazon S3 on Outposts only uses\n the OUTPOSTS Storage Class. For more information, see Storage Classes in the Amazon S3\n Service Developer Guide.

\n\n\n

\n Versioning\n

\n

If you enable versioning for a bucket, Amazon S3 automatically generates a unique version ID\n for the object being stored. Amazon S3 returns this ID in the response. When you enable\n versioning for a bucket, if Amazon S3 receives multiple write requests for the same object\n simultaneously, it stores all of the objects.

\n

For more information about versioning, see Adding Objects to\n Versioning Enabled Buckets. For information about returning the versioning state\n of a bucket, see GetBucketVersioning.

\n\n\n

\n Related Resources\n

\n ", + "smithy.api#documentation": "

Adds an object to a bucket. You must have WRITE permissions on a bucket to add an object\n to it.

\n\n\n

Amazon S3 never adds partial objects; if you receive a success response, Amazon S3 added the\n entire object to the bucket.

\n\n

Amazon S3 is a distributed system. If it receives multiple write requests for the same object\n simultaneously, it overwrites all but the last object written. Amazon S3 does not provide object\n locking; if you need this, make sure to build it into your application layer or use\n versioning instead.

\n\n

To ensure that data is not corrupted traversing the network, use the\n Content-MD5 header. When you use this header, Amazon S3 checks the object\n against the provided MD5 value and, if they do not match, returns an error. Additionally,\n you can calculate the MD5 while putting an object to Amazon S3 and compare the returned ETag to\n the calculated MD5 value.

\n \n

The Content-MD5 header is required for any request to upload an object\n with a retention period configured using Amazon S3 Object Lock. For more information about\n Amazon S3 Object Lock, see Amazon S3 Object Lock Overview\n in the Amazon Simple Storage Service Developer Guide.

\n
\n\n\n

\n Server-side Encryption\n

\n

You can optionally request server-side encryption. With server-side encryption, Amazon S3 encrypts \n your data as it writes it to disks in its data centers and decrypts the data\n when you access it. You have the option to provide your own encryption key or use AWS\n managed encryption keys (SSE-S3 or SSE-KMS). For more information, see Using Server-Side\n Encryption.

\n

If you request server-side encryption using AWS Key Management Service (SSE-KMS), you can enable \n an S3 Bucket Key at the object-level. For more information, see Amazon S3 Bucket Keys in the \n Amazon S3 User Guide.

\n

\n Access Control List (ACL)-Specific Request\n Headers\n

\n

You can use headers to grant ACL- based permissions. By default, all objects are\n private. Only the owner has full access control. When adding a new object, you can grant\n permissions to individual AWS accounts or to predefined groups defined by Amazon S3. These\n permissions are then added to the ACL on the object. For more information, see Access Control List\n (ACL) Overview and Managing ACLs Using the REST\n API.

\n\n

\n Storage Class Options\n

\n

By default, Amazon S3 uses the STANDARD Storage Class to store newly created objects. The\n STANDARD storage class provides high durability and high availability. Depending on\n performance needs, you can specify a different Storage Class. Amazon S3 on Outposts only uses\n the OUTPOSTS Storage Class. For more information, see Storage Classes in the Amazon S3\n Service Developer Guide.

\n\n\n

\n Versioning\n

\n

If you enable versioning for a bucket, Amazon S3 automatically generates a unique version ID\n for the object being stored. Amazon S3 returns this ID in the response. When you enable\n versioning for a bucket, if Amazon S3 receives multiple write requests for the same object\n simultaneously, it stores all of the objects.

\n

For more information about versioning, see Adding Objects to\n Versioning Enabled Buckets. For information about returning the versioning state\n of a bucket, see GetBucketVersioning.

\n\n\n

\n Related Resources\n

\n ", "smithy.api#http": { "method": "PUT", "uri": "/{Bucket}/{Key+}?x-id=PutObject", @@ -10069,7 +10094,7 @@ } ], "traits": { - "smithy.api#documentation": "

Uses the acl subresource to set the access control list (ACL) permissions\n for a new or existing object in an S3 bucket. You must have WRITE_ACP\n permission to set the ACL of an object. For more information, see What\n permissions can I grant? in the Amazon Simple Storage Service Developer Guide.

\n

This action is not supported by Amazon S3 on Outposts.

\n

Depending on your application needs, you can choose to set\n the ACL on an object using either the request body or the headers. For example, if you have\n an existing application that updates a bucket ACL using the request body, you can continue\n to use that approach. For more information, see Access Control List (ACL) Overview in the Amazon S3 Developer\n Guide.

\n\n\n\n

\n Access Permissions\n

\n

You can set access permissions using one of the following methods:

\n \n

You can use either a canned ACL or specify access permissions explicitly. You cannot do\n both.

\n

\n Grantee Values\n

\n

You can specify the person (grantee) to whom you're assigning access rights (using\n request elements) in the following ways:

\n \n

\n Versioning\n

\n

The ACL of an object is set at the object version level. By default, PUT sets the ACL of\n the current version of an object. To set the ACL of a different version, use the\n versionId subresource.

\n

\n Related Resources\n

\n ", + "smithy.api#documentation": "

Uses the acl subresource to set the access control list (ACL) permissions\n for a new or existing object in an S3 bucket. You must have WRITE_ACP\n permission to set the ACL of an object. For more information, see What\n permissions can I grant? in the Amazon S3 User Guide.

\n

This action is not supported by Amazon S3 on Outposts.

\n

Depending on your application needs, you can choose to set\n the ACL on an object using either the request body or the headers. For example, if you have\n an existing application that updates a bucket ACL using the request body, you can continue\n to use that approach. For more information, see Access Control List (ACL) Overview in the Amazon S3 Developer\n Guide.

\n\n\n\n

\n Access Permissions\n

\n

You can set access permissions using one of the following methods:

\n \n

You can use either a canned ACL or specify access permissions explicitly. You cannot do\n both.

\n

\n Grantee Values\n

\n

You can specify the person (grantee) to whom you're assigning access rights (using\n request elements) in the following ways:

\n \n

\n Versioning\n

\n

The ACL of an object is set at the object version level. By default, PUT sets the ACL of\n the current version of an object. To set the ACL of a different version, use the\n versionId subresource.

\n

\n Related Resources\n

\n ", "smithy.api#http": { "method": "PUT", "uri": "/{Bucket}/{Key+}?acl", @@ -10109,7 +10134,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The bucket name that contains the object to which you want to attach the ACL.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The bucket name that contains the object to which you want to attach the ACL.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -10159,7 +10184,7 @@ "Key": { "target": "com.amazonaws.s3#ObjectKey", "traits": { - "smithy.api#documentation": "

Key for which the PUT operation was initiated.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

Key for which the PUT action was initiated.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -10180,7 +10205,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -10221,7 +10246,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The bucket name containing the object that you want to place a Legal Hold on.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The bucket name containing the object that you want to place a Legal Hold on.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -10264,7 +10289,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -10340,7 +10365,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -10440,7 +10465,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The bucket name to which the PUT operation was initiated.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The bucket name to which the PUT action was initiated.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -10532,7 +10557,7 @@ "Key": { "target": "com.amazonaws.s3#ObjectKey", "traits": { - "smithy.api#documentation": "

Object key for which the PUT operation was initiated.

", + "smithy.api#documentation": "

Object key for which the PUT action was initiated.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -10603,7 +10628,7 @@ "BucketKeyEnabled": { "target": "com.amazonaws.s3#BucketKeyEnabled", "traits": { - "smithy.api#documentation": "

Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using AWS KMS (SSE-KMS). Setting this header to true causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS.

\n

Specifying this header with a PUT operation doesn’t affect bucket-level settings for S3 Bucket Key.

", + "smithy.api#documentation": "

Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using AWS KMS (SSE-KMS). Setting this header to true causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS.

\n

Specifying this header with a PUT action doesn’t affect bucket-level settings for S3 Bucket Key.

", "smithy.api#httpHeader": "x-amz-server-side-encryption-bucket-key-enabled" } }, @@ -10644,7 +10669,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -10685,7 +10710,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The bucket name that contains the object you want to apply this Object Retention\n configuration to.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The bucket name that contains the object you want to apply this Object Retention\n configuration to.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -10721,7 +10746,7 @@ "BypassGovernanceRetention": { "target": "com.amazonaws.s3#BypassGovernanceRetention", "traits": { - "smithy.api#documentation": "

Indicates whether this operation should bypass Governance-mode restrictions.

", + "smithy.api#documentation": "

Indicates whether this action should bypass Governance-mode restrictions.

", "smithy.api#httpHeader": "x-amz-bypass-governance-retention" } }, @@ -10735,7 +10760,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -10750,7 +10775,7 @@ "target": "com.amazonaws.s3#PutObjectTaggingOutput" }, "traits": { - "smithy.api#documentation": "

Sets the supplied tag-set to an object that already exists in a bucket.

\n

A tag is a key-value pair. You can associate tags with an object by sending a PUT\n request against the tagging subresource that is associated with the object. You can\n retrieve tags by sending a GET request. For more information, see GetObjectTagging.

\n\n

For tagging-related restrictions related to characters and encodings, see Tag\n Restrictions. Note that Amazon S3 limits the maximum number of tags to 10 tags per\n object.

\n\n

To use this operation, you must have permission to perform the\n s3:PutObjectTagging action. By default, the bucket owner has this\n permission and can grant this permission to others.

\n\n

To put tags of any other version, use the versionId query parameter. You\n also need permission for the s3:PutObjectVersionTagging action.

\n\n

For information about the Amazon S3 object tagging feature, see Object Tagging.

\n\n\n

\n Special Errors\n

\n \n\n \n\n\n\n\n

\n Related Resources\n

\n ", + "smithy.api#documentation": "

Sets the supplied tag-set to an object that already exists in a bucket.

\n

A tag is a key-value pair. You can associate tags with an object by sending a PUT\n request against the tagging subresource that is associated with the object. You can\n retrieve tags by sending a GET request. For more information, see GetObjectTagging.

\n\n

For tagging-related restrictions related to characters and encodings, see Tag\n Restrictions. Note that Amazon S3 limits the maximum number of tags to 10 tags per\n object.

\n\n

To use this operation, you must have permission to perform the\n s3:PutObjectTagging action. By default, the bucket owner has this\n permission and can grant this permission to others.

\n\n

To put tags of any other version, use the versionId query parameter. You\n also need permission for the s3:PutObjectVersionTagging action.

\n\n

For information about the Amazon S3 object tagging feature, see Object Tagging.

\n\n\n

\n Special Errors\n

\n \n\n \n\n\n\n\n

\n Related Resources\n

\n ", "smithy.api#http": { "method": "PUT", "uri": "/{Bucket}/{Key+}?tagging", @@ -10777,7 +10802,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The bucket name containing the object.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The bucket name containing the object.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -10815,9 +10840,15 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } + }, + "RequestPayer": { + "target": "com.amazonaws.s3#RequestPayer", + "traits": { + "smithy.api#httpHeader": "x-amz-request-payer" + } } } }, @@ -10865,7 +10896,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -10980,13 +11011,13 @@ "ReplaceKeyPrefixWith": { "target": "com.amazonaws.s3#ReplaceKeyPrefixWith", "traits": { - "smithy.api#documentation": "

The object key prefix to use in the redirect request. For example, to redirect requests\n for all pages with prefix docs/ (objects in the docs/ folder) to\n documents/, you can set a condition block with KeyPrefixEquals\n set to docs/ and in the Redirect set ReplaceKeyPrefixWith to\n /documents. Not required if one of the siblings is present. Can be present\n only if ReplaceKeyWith is not provided.

" + "smithy.api#documentation": "

The object key prefix to use in the redirect request. For example, to redirect requests\n for all pages with prefix docs/ (objects in the docs/ folder) to\n documents/, you can set a condition block with KeyPrefixEquals\n set to docs/ and in the Redirect set ReplaceKeyPrefixWith to\n /documents. Not required if one of the siblings is present. Can be present\n only if ReplaceKeyWith is not provided.

\n \n

Replacement must be made for object keys containing special characters (such as carriage returns) when using \n XML requests. For more information, see \n XML related object key constraints.

\n
" } }, "ReplaceKeyWith": { "target": "com.amazonaws.s3#ReplaceKeyWith", "traits": { - "smithy.api#documentation": "

The specific object key to use in the redirect request. For example, redirect request to\n error.html. Not required if one of the siblings is present. Can be present\n only if ReplaceKeyPrefixWith is not provided.

" + "smithy.api#documentation": "

The specific object key to use in the redirect request. For example, redirect request to\n error.html. Not required if one of the siblings is present. Can be present\n only if ReplaceKeyPrefixWith is not provided.

\n \n

Replacement must be made for object keys containing special characters (such as carriage returns) when using \n XML requests. For more information, see \n XML related object key constraints.

\n
" } } }, @@ -11097,7 +11128,7 @@ "target": "com.amazonaws.s3#Prefix", "traits": { "smithy.api#deprecated": {}, - "smithy.api#documentation": "

An object key name prefix that identifies the object or objects to which the rule\n applies. The maximum prefix length is 1,024 characters. To include all objects in a bucket,\n specify an empty string.

" + "smithy.api#documentation": "

An object key name prefix that identifies the object or objects to which the rule\n applies. The maximum prefix length is 1,024 characters. To include all objects in a bucket,\n specify an empty string.

\n \n

Replacement must be made for object keys containing special characters (such as carriage returns) when using \n XML requests. For more information, see \n XML related object key constraints.

\n
" } }, "Filter": { @@ -11156,7 +11187,7 @@ } }, "traits": { - "smithy.api#documentation": "

A container for specifying rule filters. The filters determine the subset of objects to\n which the rule applies. This element is required only if you specify more than one filter.

\n

For example:

\n " + "smithy.api#documentation": "

A container for specifying rule filters. The filters determine the subset of objects to\n which the rule applies. This element is required only if you specify more than one filter.

\n

For example:

\n " } }, "com.amazonaws.s3#ReplicationRuleFilter": { @@ -11165,7 +11196,7 @@ "Prefix": { "target": "com.amazonaws.s3#Prefix", "traits": { - "smithy.api#documentation": "

An object key name prefix that identifies the subset of objects to which the rule\n applies.

" + "smithy.api#documentation": "

An object key name prefix that identifies the subset of objects to which the rule\n applies.

\n \n

Replacement must be made for object keys containing special characters (such as carriage returns) when using \n XML requests. For more information, see \n XML related object key constraints.

\n
" } }, "Tag": { @@ -11333,6 +11364,12 @@ "smithy.api#documentation": "

Container for specifying if periodic QueryProgress messages should be\n sent.

" } }, + "com.amazonaws.s3#RequestRoute": { + "type": "string" + }, + "com.amazonaws.s3#RequestToken": { + "type": "string" + }, "com.amazonaws.s3#ResponseCacheControl": { "type": "string" }, @@ -11371,10 +11408,10 @@ } ], "traits": { - "smithy.api#documentation": "

Restores an archived copy of an object back into Amazon S3

\n

This action is not supported by Amazon S3 on Outposts.

\n

This action performs the following types of requests:

\n \n

To use this operation, you must have permissions to perform the\n s3:RestoreObject action. The bucket owner has this permission by default\n and can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources in the Amazon Simple Storage Service Developer Guide.

\n

\n Querying Archives with Select Requests\n

\n

You use a select type of request to perform SQL queries on archived objects. The\n archived objects that are being queried by the select request must be formatted as\n uncompressed comma-separated values (CSV) files. You can run queries and custom analytics\n on your archived data without having to restore your data to a hotter Amazon S3 tier. For an\n overview about select requests, see Querying Archived Objects in the Amazon Simple Storage Service Developer Guide.

\n

When making a select request, do the following:

\n \n

For more information about using SQL with S3 Glacier Select restore, see SQL Reference for Amazon S3 Select and\n S3 Glacier Select in the Amazon Simple Storage Service Developer Guide.

\n

When making a select request, you can also do the following:

\n \n

The following are additional important facts about the select feature:

\n \n

\n Restoring objects\n

\n

Objects that you archive to the S3 Glacier or\n S3 Glacier Deep Archive storage class, and S3 Intelligent-Tiering Archive or\n S3 Intelligent-Tiering Deep Archive tiers are not accessible in real time. For objects in\n Archive Access or Deep Archive Access tiers you must first initiate a restore request, and\n then wait until the object is moved into the Frequent Access tier. For objects in\n S3 Glacier or S3 Glacier Deep Archive storage classes you must\n first initiate a restore request, and then wait until a temporary copy of the object is\n available. To access an archived object, you must restore the object for the duration\n (number of days) that you specify.

\n

To restore a specific object version, you can provide a version ID. If you don't provide\n a version ID, Amazon S3 restores the current version.

\n

When restoring an archived object (or using a select request), you can specify one of\n the following data access tier options in the Tier element of the request\n body:

\n \n

For more information about archive retrieval options and provisioned capacity for\n Expedited data access, see Restoring Archived Objects in the Amazon Simple Storage Service Developer Guide.

\n

You can use Amazon S3 restore speed upgrade to change the restore speed to a faster speed\n while it is in progress. For more information, see \n Upgrading the speed of an in-progress restore in the\n Amazon Simple Storage Service Developer Guide.

\n

To get the status of object restoration, you can send a HEAD request.\n Operations return the x-amz-restore header, which provides information about\n the restoration status, in the response. You can use Amazon S3 event notifications to notify you\n when a restore is initiated or completed. For more information, see Configuring Amazon S3 Event Notifications in\n the Amazon Simple Storage Service Developer Guide.

\n

After restoring an archived object, you can update the restoration period by reissuing\n the request with a new period. Amazon S3 updates the restoration period relative to the current\n time and charges only for the request-there are no data transfer charges. You cannot\n update the restoration period when Amazon S3 is actively processing your current restore request\n for the object.

\n

If your bucket has a lifecycle configuration with a rule that includes an expiration\n action, the object expiration overrides the life span that you specify in a restore\n request. For example, if you restore an object copy for 10 days, but the object is\n scheduled to expire in 3 days, Amazon S3 deletes the object in 3 days. For more information\n about lifecycle configuration, see PutBucketLifecycleConfiguration and Object Lifecycle Management in\n Amazon Simple Storage Service Developer Guide.

\n

\n Responses\n

\n

A successful operation returns either the 200 OK or 202\n Accepted status code.

\n \n

\n Special Errors\n

\n \n \n

\n Related Resources\n

\n ", + "smithy.api#documentation": "

Restores an archived copy of an object back into Amazon S3

\n

This action is not supported by Amazon S3 on Outposts.

\n

This action performs the following types of requests:

\n \n

To use this operation, you must have permissions to perform the\n s3:RestoreObject action. The bucket owner has this permission by default\n and can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources in the Amazon S3 User Guide.

\n

\n Querying Archives with Select Requests\n

\n

You use a select type of request to perform SQL queries on archived objects. The\n archived objects that are being queried by the select request must be formatted as\n uncompressed comma-separated values (CSV) files. You can run queries and custom analytics\n on your archived data without having to restore your data to a hotter Amazon S3 tier. For an\n overview about select requests, see Querying Archived Objects in the Amazon S3 User Guide.

\n

When making a select request, do the following:

\n \n

For more information about using SQL with S3 Glacier Select restore, see SQL Reference for Amazon S3 Select and\n S3 Glacier Select in the Amazon S3 User Guide.

\n

When making a select request, you can also do the following:

\n \n

The following are additional important facts about the select feature:

\n \n

\n Restoring objects\n

\n

Objects that you archive to the S3 Glacier or\n S3 Glacier Deep Archive storage class, and S3 Intelligent-Tiering Archive or\n S3 Intelligent-Tiering Deep Archive tiers are not accessible in real time. For objects in\n Archive Access or Deep Archive Access tiers you must first initiate a restore request, and\n then wait until the object is moved into the Frequent Access tier. For objects in\n S3 Glacier or S3 Glacier Deep Archive storage classes you must\n first initiate a restore request, and then wait until a temporary copy of the object is\n available. To access an archived object, you must restore the object for the duration\n (number of days) that you specify.

\n

To restore a specific object version, you can provide a version ID. If you don't provide\n a version ID, Amazon S3 restores the current version.

\n

When restoring an archived object (or using a select request), you can specify one of\n the following data access tier options in the Tier element of the request\n body:

\n \n

For more information about archive retrieval options and provisioned capacity for\n Expedited data access, see Restoring Archived Objects in the Amazon S3 User Guide.

\n

You can use Amazon S3 restore speed upgrade to change the restore speed to a faster speed\n while it is in progress. For more information, see \n Upgrading the speed of an in-progress restore in the\n Amazon S3 User Guide.

\n

To get the status of object restoration, you can send a HEAD request.\n Operations return the x-amz-restore header, which provides information about\n the restoration status, in the response. You can use Amazon S3 event notifications to notify you\n when a restore is initiated or completed. For more information, see Configuring Amazon S3 Event Notifications in\n the Amazon S3 User Guide.

\n

After restoring an archived object, you can update the restoration period by reissuing\n the request with a new period. Amazon S3 updates the restoration period relative to the current\n time and charges only for the request-there are no data transfer charges. You cannot\n update the restoration period when Amazon S3 is actively processing your current restore request\n for the object.

\n

If your bucket has a lifecycle configuration with a rule that includes an expiration\n action, the object expiration overrides the life span that you specify in a restore\n request. For example, if you restore an object copy for 10 days, but the object is\n scheduled to expire in 3 days, Amazon S3 deletes the object in 3 days. For more information\n about lifecycle configuration, see PutBucketLifecycleConfiguration and Object Lifecycle Management in\n Amazon S3 User Guide.

\n

\n Responses\n

\n

A successful action returns either the 200 OK or 202\n Accepted status code.

\n \n

\n Special Errors\n

\n \n \n

\n Related Resources\n

\n ", "smithy.api#http": { "method": "POST", - "uri": "/{Bucket}/{Key+}?restore", + "uri": "/{Bucket}/{Key+}?restore&x-id=RestoreObject", "code": 200 } } @@ -11403,7 +11440,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The bucket name containing the object to restore.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The bucket name containing the object to restore.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11411,7 +11448,7 @@ "Key": { "target": "com.amazonaws.s3#ObjectKey", "traits": { - "smithy.api#documentation": "

Object key for which the operation was initiated.

", + "smithy.api#documentation": "

Object key for which the action was initiated.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11438,7 +11475,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -11529,7 +11566,7 @@ } }, "traits": { - "smithy.api#documentation": "

Specifies the redirect behavior and when a redirect is applied. For more information\n about routing rules, see Configuring advanced conditional redirects in the\n Amazon Simple Storage Service Developer Guide.

" + "smithy.api#documentation": "

Specifies the redirect behavior and when a redirect is applied. For more information\n about routing rules, see Configuring advanced conditional redirects in the\n Amazon S3 User Guide.

" } }, "com.amazonaws.s3#RoutingRules": { @@ -11688,10 +11725,10 @@ "target": "com.amazonaws.s3#SelectObjectContentOutput" }, "traits": { - "smithy.api#documentation": "

This operation filters the contents of an Amazon S3 object based on a simple structured query\n language (SQL) statement. In the request, along with the SQL expression, you must also\n specify a data serialization format (JSON, CSV, or Apache Parquet) of the object. Amazon S3 uses\n this format to parse object data into records, and returns only records that match the\n specified SQL expression. You must also specify the data serialization format for the\n response.

\n

This action is not supported by Amazon S3 on Outposts.

\n

For more information about Amazon S3 Select,\n see Selecting Content from\n Objects in the Amazon Simple Storage Service Developer Guide.

\n

For more information about using SQL with Amazon S3 Select, see SQL Reference for Amazon S3 Select\n and S3 Glacier Select in the Amazon Simple Storage Service Developer Guide.

\n

\n

\n Permissions\n

\n

You must have s3:GetObject permission for this operation. Amazon S3 Select does\n not support anonymous access. For more information about permissions, see Specifying Permissions in a Policy\n in the Amazon Simple Storage Service Developer Guide.

\n

\n

\n Object Data Formats\n

\n

You can use Amazon S3 Select to query objects that have the following format\n properties:

\n \n\n

\n Working with the Response Body\n

\n

Given the response size is unknown, Amazon S3 Select streams the response as a series of\n messages and includes a Transfer-Encoding header with chunked as\n its value in the response. For more information, see Appendix: SelectObjectContent\n Response\n .

\n\n

\n

\n GetObject Support\n

\n

The SelectObjectContent operation does not support the following\n GetObject functionality. For more information, see GetObject.

\n \n

\n

\n Special Errors\n

\n\n

For a list of special errors for this operation, see List of\n SELECT Object Content Error Codes\n

\n

\n Related Resources\n

\n ", + "smithy.api#documentation": "

This action filters the contents of an Amazon S3 object based on a simple structured query\n language (SQL) statement. In the request, along with the SQL expression, you must also\n specify a data serialization format (JSON, CSV, or Apache Parquet) of the object. Amazon S3 uses\n this format to parse object data into records, and returns only records that match the\n specified SQL expression. You must also specify the data serialization format for the\n response.

\n

This action is not supported by Amazon S3 on Outposts.

\n

For more information about Amazon S3 Select,\n see Selecting Content from\n Objects in the Amazon S3 User Guide.

\n

For more information about using SQL with Amazon S3 Select, see SQL Reference for Amazon S3 Select\n and S3 Glacier Select in the Amazon S3 User Guide.

\n

\n

\n Permissions\n

\n

You must have s3:GetObject permission for this operation. Amazon S3 Select does\n not support anonymous access. For more information about permissions, see Specifying Permissions in a Policy\n in the Amazon S3 User Guide.

\n

\n

\n Object Data Formats\n

\n

You can use Amazon S3 Select to query objects that have the following format\n properties:

\n \n\n

\n Working with the Response Body\n

\n

Given the response size is unknown, Amazon S3 Select streams the response as a series of\n messages and includes a Transfer-Encoding header with chunked as\n its value in the response. For more information, see Appendix: SelectObjectContent\n Response\n .

\n\n

\n

\n GetObject Support\n

\n

The SelectObjectContent action does not support the following\n GetObject functionality. For more information, see GetObject.

\n \n

\n

\n Special Errors\n

\n\n

For a list of special errors for this operation, see List of\n SELECT Object Content Error Codes\n

\n

\n Related Resources\n

\n ", "smithy.api#http": { "method": "POST", - "uri": "/{Bucket}/{Key+}?select&select-type=2", + "uri": "/{Bucket}/{Key+}?select&select-type=2&x-id=SelectObjectContent", "code": 200 } } @@ -11830,7 +11867,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -11940,7 +11977,7 @@ "BucketKeyEnabled": { "target": "com.amazonaws.s3#BucketKeyEnabled", "traits": { - "smithy.api#documentation": "

Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Setting the BucketKeyEnabled element to true causes Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket Key is not enabled.

\n

For more information, see Amazon S3 Bucket Keys in the Amazon Simple Storage Service Developer Guide.

" + "smithy.api#documentation": "

Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Setting the BucketKeyEnabled element to true causes Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket Key is not enabled.

\n

For more information, see Amazon S3 Bucket Keys in the Amazon S3 User Guide.

" } } }, @@ -12324,7 +12361,7 @@ "Events": { "target": "com.amazonaws.s3#EventList", "traits": { - "smithy.api#documentation": "

The Amazon S3 bucket event about which to send notifications. For more information, see\n Supported\n Event Types in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The Amazon S3 bucket event about which to send notifications. For more information, see\n Supported\n Event Types in the Amazon S3 User Guide.

", "smithy.api#required": {}, "smithy.api#xmlFlattened": {}, "smithy.api#xmlName": "Event" @@ -12367,7 +12404,7 @@ } }, "traits": { - "smithy.api#documentation": "

Specifies when an object transitions to a specified storage class. For more information\n about Amazon S3 lifecycle configuration rules, see Transitioning\n Objects Using Amazon S3 Lifecycle in the Amazon Simple Storage Service Developer Guide.

" + "smithy.api#documentation": "

Specifies when an object transitions to a specified storage class. For more information\n about Amazon S3 lifecycle configuration rules, see Transitioning\n Objects Using Amazon S3 Lifecycle in the Amazon S3 User Guide.

" } }, "com.amazonaws.s3#TransitionList": { @@ -12437,7 +12474,7 @@ "target": "com.amazonaws.s3#UploadPartOutput" }, "traits": { - "smithy.api#documentation": "

Uploads a part in a multipart upload.

\n \n

In this operation, you provide part data in your request. However, you have an option\n to specify your existing Amazon S3 object as a data source for the part you are uploading. To\n upload a part from an existing object, you use the UploadPartCopy operation.\n

\n
\n\n

You must initiate a multipart upload (see CreateMultipartUpload)\n before you can upload any part. In response to your initiate request, Amazon S3 returns an\n upload ID, a unique identifier, that you must include in your upload part request.

\n

Part numbers can be any number from 1 to 10,000, inclusive. A part number uniquely\n identifies a part and also defines its position within the object being created. If you\n upload a new part using the same part number that was used with a previous part, the\n previously uploaded part is overwritten. Each part must be at least 5 MB in size, except\n the last part. There is no size limit on the last part of your multipart upload.

\n

To ensure that data is not corrupted when traversing the network, specify the\n Content-MD5 header in the upload part request. Amazon S3 checks the part data\n against the provided MD5 value. If they do not match, Amazon S3 returns an error.

\n\n

If the upload request is signed with Signature Version 4, then AWS S3 uses the\n x-amz-content-sha256 header as a checksum instead of\n Content-MD5. For more information see Authenticating Requests: Using the Authorization Header (AWS Signature Version\n 4).

\n\n\n\n

\n Note: After you initiate multipart upload and upload\n one or more parts, you must either complete or abort multipart upload in order to stop\n getting charged for storage of the uploaded parts. Only after you either complete or abort\n multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts\n storage.

\n\n

For more information on multipart uploads, go to Multipart Upload Overview in the\n Amazon Simple Storage Service Developer Guide .

\n

For information on the permissions required to use the multipart upload API, go to\n Multipart Upload API and\n Permissions in the Amazon Simple Storage Service Developer Guide.

\n\n

You can optionally request server-side encryption where Amazon S3 encrypts your data as it\n writes it to disks in its data centers and decrypts it for you when you access it. You have\n the option of providing your own encryption key, or you can use the AWS managed encryption\n keys. If you choose to provide your own encryption key, the request headers you provide in\n the request must match the headers you used in the request to initiate the upload by using\n CreateMultipartUpload. For more information, go to Using Server-Side Encryption in\n the Amazon Simple Storage Service Developer Guide.

\n\n

Server-side encryption is supported by the S3 Multipart Upload actions. Unless you are\n using a customer-provided encryption key, you don't need to specify the encryption\n parameters in each UploadPart request. Instead, you only need to specify the server-side\n encryption parameters in the initial Initiate Multipart request. For more information, see\n CreateMultipartUpload.

\n\n

If you requested server-side encryption using a customer-provided encryption key in your\n initiate multipart upload request, you must provide identical encryption information in\n each part upload using the following headers.

\n\n\n \n\n

\n Special Errors\n

\n \n\n \n\n\n\n\n

\n Related Resources\n

\n ", + "smithy.api#documentation": "

Uploads a part in a multipart upload.

\n \n

In this operation, you provide part data in your request. However, you have an option\n to specify your existing Amazon S3 object as a data source for the part you are uploading. To\n upload a part from an existing object, you use the UploadPartCopy operation.\n

\n
\n\n

You must initiate a multipart upload (see CreateMultipartUpload)\n before you can upload any part. In response to your initiate request, Amazon S3 returns an\n upload ID, a unique identifier, that you must include in your upload part request.

\n

Part numbers can be any number from 1 to 10,000, inclusive. A part number uniquely\n identifies a part and also defines its position within the object being created. If you\n upload a new part using the same part number that was used with a previous part, the\n previously uploaded part is overwritten. Each part must be at least 5 MB in size, except\n the last part. There is no size limit on the last part of your multipart upload.

\n

To ensure that data is not corrupted when traversing the network, specify the\n Content-MD5 header in the upload part request. Amazon S3 checks the part data\n against the provided MD5 value. If they do not match, Amazon S3 returns an error.

\n\n

If the upload request is signed with Signature Version 4, then AWS S3 uses the\n x-amz-content-sha256 header as a checksum instead of\n Content-MD5. For more information see Authenticating Requests: Using the Authorization Header (AWS Signature Version\n 4).

\n\n\n\n

\n Note: After you initiate multipart upload and upload\n one or more parts, you must either complete or abort multipart upload in order to stop\n getting charged for storage of the uploaded parts. Only after you either complete or abort\n multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts\n storage.

\n\n

For more information on multipart uploads, go to Multipart Upload Overview in the\n Amazon S3 User Guide .

\n

For information on the permissions required to use the multipart upload API, go to\n Multipart Upload and\n Permissions in the Amazon S3 User Guide.

\n\n

You can optionally request server-side encryption where Amazon S3 encrypts your data as it\n writes it to disks in its data centers and decrypts it for you when you access it. You have\n the option of providing your own encryption key, or you can use the AWS managed encryption\n keys. If you choose to provide your own encryption key, the request headers you provide in\n the request must match the headers you used in the request to initiate the upload by using\n CreateMultipartUpload. For more information, go to Using Server-Side Encryption in\n the Amazon S3 User Guide.

\n\n

Server-side encryption is supported by the S3 Multipart Upload actions. Unless you are\n using a customer-provided encryption key, you don't need to specify the encryption\n parameters in each UploadPart request. Instead, you only need to specify the server-side\n encryption parameters in the initial Initiate Multipart request. For more information, see\n CreateMultipartUpload.

\n\n

If you requested server-side encryption using a customer-provided encryption key in your\n initiate multipart upload request, you must provide identical encryption information in\n each part upload using the following headers.

\n\n\n \n\n

\n Special Errors\n

\n \n\n \n\n\n\n\n

\n Related Resources\n

\n ", "smithy.api#http": { "method": "PUT", "uri": "/{Bucket}/{Key+}?x-id=UploadPart", @@ -12454,7 +12491,7 @@ "target": "com.amazonaws.s3#UploadPartCopyOutput" }, "traits": { - "smithy.api#documentation": "

Uploads a part by copying data from an existing object as data source. You specify the\n data source by adding the request header x-amz-copy-source in your request and\n a byte range by adding the request header x-amz-copy-source-range in your\n request.

\n

The minimum allowable part size for a multipart upload is 5 MB. For more information\n about multipart upload limits, go to Quick\n Facts in the Amazon Simple Storage Service Developer Guide.

\n \n

Instead of using an existing object as part data, you might use the UploadPart\n operation and provide data in your request.

\n
\n\n

You must initiate a multipart upload before you can upload any part. In response to your\n initiate request. Amazon S3 returns a unique identifier, the upload ID, that you must include in\n your upload part request.

\n

For more information about using the UploadPartCopy operation, see the\n following:

\n\n \n

Note the following additional considerations about the request headers\n x-amz-copy-source-if-match, x-amz-copy-source-if-none-match,\n x-amz-copy-source-if-unmodified-since, and\n x-amz-copy-source-if-modified-since:

\n

\n \n

\n Versioning\n

\n

If your bucket has versioning enabled, you could have multiple versions of the same\n object. By default, x-amz-copy-source identifies the current version of the\n object to copy. If the current version is a delete marker and you don't specify a versionId\n in the x-amz-copy-source, Amazon S3 returns a 404 error, because the object does\n not exist. If you specify versionId in the x-amz-copy-source and the versionId\n is a delete marker, Amazon S3 returns an HTTP 400 error, because you are not allowed to specify\n a delete marker as a version for the x-amz-copy-source.

\n

You can optionally specify a specific version of the source object to copy by adding the\n versionId subresource as shown in the following example:

\n

\n x-amz-copy-source: /bucket/object?versionId=version id\n

\n\n

\n Special Errors\n

\n \n\n \n\n\n\n\n

\n Related Resources\n

\n ", + "smithy.api#documentation": "

Uploads a part by copying data from an existing object as data source. You specify the\n data source by adding the request header x-amz-copy-source in your request and\n a byte range by adding the request header x-amz-copy-source-range in your\n request.

\n

The minimum allowable part size for a multipart upload is 5 MB. For more information\n about multipart upload limits, go to Quick\n Facts in the Amazon S3 User Guide.

\n \n

Instead of using an existing object as part data, you might use the UploadPart\n action and provide data in your request.

\n
\n\n

You must initiate a multipart upload before you can upload any part. In response to your\n initiate request. Amazon S3 returns a unique identifier, the upload ID, that you must include in\n your upload part request.

\n

For more information about using the UploadPartCopy operation, see the\n following:

\n\n \n

Note the following additional considerations about the request headers\n x-amz-copy-source-if-match, x-amz-copy-source-if-none-match,\n x-amz-copy-source-if-unmodified-since, and\n x-amz-copy-source-if-modified-since:

\n

\n \n

\n Versioning\n

\n

If your bucket has versioning enabled, you could have multiple versions of the same\n object. By default, x-amz-copy-source identifies the current version of the\n object to copy. If the current version is a delete marker and you don't specify a versionId\n in the x-amz-copy-source, Amazon S3 returns a 404 error, because the object does\n not exist. If you specify versionId in the x-amz-copy-source and the versionId\n is a delete marker, Amazon S3 returns an HTTP 400 error, because you are not allowed to specify\n a delete marker as a version for the x-amz-copy-source.

\n

You can optionally specify a specific version of the source object to copy by adding the\n versionId subresource as shown in the following example:

\n

\n x-amz-copy-source: /bucket/object?versionId=version id\n

\n\n

\n Special Errors\n

\n \n\n \n\n\n\n\n

\n Related Resources\n

\n ", "smithy.api#http": { "method": "PUT", "uri": "/{Bucket}/{Key+}?x-id=UploadPartCopy", @@ -12528,7 +12565,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The bucket name.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The bucket name.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -12536,7 +12573,7 @@ "CopySource": { "target": "com.amazonaws.s3#CopySource", "traits": { - "smithy.api#documentation": "

Specifies the source object for the copy operation. You specify the value in one of two\n formats, depending on whether you want to access the source object through an access\n point:

\n \n

To copy a specific version of an object, append ?versionId=\n to the value (for example,\n awsexamplebucket/reports/january.pdf?versionId=QUpfdndhfd8438MNFDN93jdnJFkdmqnh893).\n If you don't specify a version ID, Amazon S3 copies the latest version of the source\n object.

", + "smithy.api#documentation": "

Specifies the source object for the copy operation. You specify the value in one of two\n formats, depending on whether you want to access the source object through an access\n point:

\n \n

To copy a specific version of an object, append ?versionId=\n to the value (for example,\n awsexamplebucket/reports/january.pdf?versionId=QUpfdndhfd8438MNFDN93jdnJFkdmqnh893).\n If you don't specify a version ID, Amazon S3 copies the latest version of the source\n object.

", "smithy.api#httpHeader": "x-amz-copy-source", "smithy.api#required": {} } @@ -12651,14 +12688,14 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected destination bucket owner. If the destination bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected destination bucket owner. If the destination bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } }, "ExpectedSourceBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected source bucket owner. If the source bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected source bucket owner. If the source bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-source-expected-bucket-owner" } } @@ -12730,7 +12767,7 @@ "Bucket": { "target": "com.amazonaws.s3#BucketName", "traits": { - "smithy.api#documentation": "

The name of the bucket to which the multipart upload was initiated.

\n

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The name of the bucket to which the multipart upload was initiated.

\n

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

\n

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -12803,7 +12840,7 @@ "ExpectedBucketOwner": { "target": "com.amazonaws.s3#AccountId", "traits": { - "smithy.api#documentation": "

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", + "smithy.api#documentation": "

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

", "smithy.api#httpHeader": "x-amz-expected-bucket-owner" } } @@ -12880,6 +12917,286 @@ "com.amazonaws.s3#WebsiteRedirectLocation": { "type": "string" }, + "com.amazonaws.s3#WriteGetObjectResponse": { + "type": "operation", + "input": { + "target": "com.amazonaws.s3#WriteGetObjectResponseRequest" + }, + "traits": { + "aws.auth#unsignedPayload": {}, + "smithy.api#auth": [ + "aws.auth#sigv4" + ], + "smithy.api#documentation": "

Passes transformed\n objects to a GetObject operation when using Object Lambda Access Points. For information about\n Object Lambda Access Points, see Transforming objects with\n Object Lambda Access Points in the Amazon S3 User Guide.

\n

This operation supports metadata that can be returned by GetObject, in addition to\n RequestRoute, RequestToken, StatusCode,\n ErrorCode, and ErrorMessage. The GetObject\n response metadata is supported so that the WriteGetObjectResponse caller,\n typically an AWS Lambda function, can provide the same metadata when it internally invokes\n GetObject. When WriteGetObjectResponse is called by a\n customer-owned Lambda function, the metadata returned to the end user\n GetObject call might differ from what Amazon S3 would normally return.

", + "smithy.api#endpoint": { + "hostPrefix": "{RequestRoute}." + }, + "smithy.api#http": { + "method": "POST", + "uri": "/WriteGetObjectResponse?x-id=WriteGetObjectResponse", + "code": 200 + } + } + }, + "com.amazonaws.s3#WriteGetObjectResponseRequest": { + "type": "structure", + "members": { + "RequestRoute": { + "target": "com.amazonaws.s3#RequestRoute", + "traits": { + "smithy.api#documentation": "

Route prefix to the HTTP URL generated.

", + "smithy.api#hostLabel": {}, + "smithy.api#httpHeader": "x-amz-request-route", + "smithy.api#required": {} + } + }, + "RequestToken": { + "target": "com.amazonaws.s3#RequestToken", + "traits": { + "smithy.api#documentation": "

A single use encrypted token that maps WriteGetObjectResponse to the end\n user GetObject request.

", + "smithy.api#httpHeader": "x-amz-request-token", + "smithy.api#required": {} + } + }, + "Body": { + "target": "com.amazonaws.s3#StreamingBlob", + "traits": { + "smithy.api#documentation": "

The object data.

", + "smithy.api#httpPayload": {} + } + }, + "StatusCode": { + "target": "com.amazonaws.s3#GetObjectResponseStatusCode", + "traits": { + "smithy.api#documentation": "

The integer status code for an HTTP response of a corresponding GetObject\n request.

\n

\n Status Codes\n

\n ", + "smithy.api#httpHeader": "x-amz-fwd-status" + } + }, + "ErrorCode": { + "target": "com.amazonaws.s3#ErrorCode", + "traits": { + "smithy.api#documentation": "

A string that uniquely identifies an error condition. Returned in the tag\n of the error XML response for a corresponding GetObject call. Cannot be used\n with a successful StatusCode header or when the transformed object is provided\n in the body.

", + "smithy.api#httpHeader": "x-amz-fwd-error-code" + } + }, + "ErrorMessage": { + "target": "com.amazonaws.s3#ErrorMessage", + "traits": { + "smithy.api#documentation": "

Contains a generic description of the error condition. Returned in the \n tag of the error XML response for a corresponding GetObject call. Cannot be\n used with a successful StatusCode header or when the transformed object is\n provided in body.

", + "smithy.api#httpHeader": "x-amz-fwd-error-message" + } + }, + "AcceptRanges": { + "target": "com.amazonaws.s3#AcceptRanges", + "traits": { + "smithy.api#documentation": "

Indicates that a range of bytes was specified.

", + "smithy.api#httpHeader": "x-amz-fwd-header-accept-ranges" + } + }, + "CacheControl": { + "target": "com.amazonaws.s3#CacheControl", + "traits": { + "smithy.api#documentation": "

Specifies caching behavior along the request/reply chain.

", + "smithy.api#httpHeader": "x-amz-fwd-header-Cache-Control" + } + }, + "ContentDisposition": { + "target": "com.amazonaws.s3#ContentDisposition", + "traits": { + "smithy.api#documentation": "

Specifies presentational information for the object.

", + "smithy.api#httpHeader": "x-amz-fwd-header-Content-Disposition" + } + }, + "ContentEncoding": { + "target": "com.amazonaws.s3#ContentEncoding", + "traits": { + "smithy.api#documentation": "

Specifies what content encodings have been applied to the object and thus what decoding\n mechanisms must be applied to obtain the media-type referenced by the Content-Type header\n field.

", + "smithy.api#httpHeader": "x-amz-fwd-header-Content-Encoding" + } + }, + "ContentLanguage": { + "target": "com.amazonaws.s3#ContentLanguage", + "traits": { + "smithy.api#documentation": "

The language the content is in.

", + "smithy.api#httpHeader": "x-amz-fwd-header-Content-Language" + } + }, + "ContentLength": { + "target": "com.amazonaws.s3#ContentLength", + "traits": { + "smithy.api#documentation": "

The size of the content body in bytes.

", + "smithy.api#httpHeader": "Content-Length" + } + }, + "ContentRange": { + "target": "com.amazonaws.s3#ContentRange", + "traits": { + "smithy.api#documentation": "

The portion of the object returned in the response.

", + "smithy.api#httpHeader": "x-amz-fwd-header-Content-Range" + } + }, + "ContentType": { + "target": "com.amazonaws.s3#ContentType", + "traits": { + "smithy.api#documentation": "

A standard MIME type describing the format of the object data.

", + "smithy.api#httpHeader": "x-amz-fwd-header-Content-Type" + } + }, + "DeleteMarker": { + "target": "com.amazonaws.s3#DeleteMarker", + "traits": { + "smithy.api#documentation": "

Specifies whether an object stored in Amazon S3 is (true) or is not\n (false) a delete marker.

", + "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-delete-marker" + } + }, + "ETag": { + "target": "com.amazonaws.s3#ETag", + "traits": { + "smithy.api#documentation": "

An opaque identifier assigned by a web server to a specific version of a resource found\n at a URL.

", + "smithy.api#httpHeader": "x-amz-fwd-header-ETag" + } + }, + "Expires": { + "target": "com.amazonaws.s3#Expires", + "traits": { + "smithy.api#documentation": "

The date and time at which the object is no longer cacheable.

", + "smithy.api#httpHeader": "x-amz-fwd-header-Expires" + } + }, + "Expiration": { + "target": "com.amazonaws.s3#Expiration", + "traits": { + "smithy.api#documentation": "

If object stored in Amazon S3 expiration is configured (see PUT Bucket lifecycle) it includes expiry-date and rule-id key-value pairs providing object expiration information. The value of the rule-id is URL encoded.

", + "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-expiration" + } + }, + "LastModified": { + "target": "com.amazonaws.s3#LastModified", + "traits": { + "smithy.api#documentation": "

The date and time that the object was last modified.

", + "smithy.api#httpHeader": "x-amz-fwd-header-Last-Modified" + } + }, + "MissingMeta": { + "target": "com.amazonaws.s3#MissingMeta", + "traits": { + "smithy.api#documentation": "

Set to the number of metadata entries not returned in x-amz-meta headers.\n This can happen if you create metadata using an API like SOAP that supports more flexible\n metadata than the REST API. For example, using SOAP, you can create metadata whose values\n are not legal HTTP headers.

", + "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-missing-meta" + } + }, + "Metadata": { + "target": "com.amazonaws.s3#Metadata", + "traits": { + "smithy.api#documentation": "

A map of metadata to store with the object in S3.

", + "smithy.api#httpPrefixHeaders": "x-amz-meta-" + } + }, + "ObjectLockMode": { + "target": "com.amazonaws.s3#ObjectLockMode", + "traits": { + "smithy.api#documentation": "

Indicates whether an object stored in Amazon S3 has Object Lock enabled. For more\n information about S3 Object Lock, see Object Lock.

", + "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-object-lock-mode" + } + }, + "ObjectLockLegalHoldStatus": { + "target": "com.amazonaws.s3#ObjectLockLegalHoldStatus", + "traits": { + "smithy.api#documentation": "

Indicates whether an object stored in Amazon S3 has an active legal hold.

", + "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-object-lock-legal-hold" + } + }, + "ObjectLockRetainUntilDate": { + "target": "com.amazonaws.s3#ObjectLockRetainUntilDate", + "traits": { + "smithy.api#documentation": "

The date and time when Object Lock is configured to expire.

", + "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-object-lock-retain-until-date" + } + }, + "PartsCount": { + "target": "com.amazonaws.s3#PartsCount", + "traits": { + "smithy.api#documentation": "

The count of parts this object has.

", + "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-mp-parts-count" + } + }, + "ReplicationStatus": { + "target": "com.amazonaws.s3#ReplicationStatus", + "traits": { + "smithy.api#documentation": "

Indicates if request involves bucket that is either a source or destination in a Replication rule. For more\n information about S3 Replication, see Replication.

", + "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-replication-status" + } + }, + "RequestCharged": { + "target": "com.amazonaws.s3#RequestCharged", + "traits": { + "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-request-charged" + } + }, + "Restore": { + "target": "com.amazonaws.s3#Restore", + "traits": { + "smithy.api#documentation": "

Provides information about object restoration operation and expiration time of the\n restored object copy.

", + "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-restore" + } + }, + "ServerSideEncryption": { + "target": "com.amazonaws.s3#ServerSideEncryption", + "traits": { + "smithy.api#documentation": "

The server-side encryption algorithm used when storing requested object in Amazon S3 (for example, AES256, aws:kms).

", + "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-server-side-encryption" + } + }, + "SSECustomerAlgorithm": { + "target": "com.amazonaws.s3#SSECustomerAlgorithm", + "traits": { + "smithy.api#documentation": "

Encryption algorithm used if server-side encryption with a customer-provided encryption key was specified for object stored in Amazon S3.

", + "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm" + } + }, + "SSEKMSKeyId": { + "target": "com.amazonaws.s3#SSEKMSKeyId", + "traits": { + "smithy.api#documentation": "

If present, specifies the ID of the AWS Key Management Service (AWS KMS) symmetric customer managed customer master key (CMK) that was used for stored in Amazon S3 object.

", + "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id" + } + }, + "SSECustomerKeyMD5": { + "target": "com.amazonaws.s3#SSECustomerKeyMD5", + "traits": { + "smithy.api#documentation": "

128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to encrypt data\n stored in S3. For more information, see Protecting data\n using server-side encryption with customer-provided encryption keys\n (SSE-C).

", + "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5" + } + }, + "StorageClass": { + "target": "com.amazonaws.s3#StorageClass", + "traits": { + "smithy.api#documentation": "

The class of storage used to store object in Amazon S3.

", + "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-storage-class" + } + }, + "TagCount": { + "target": "com.amazonaws.s3#TagCount", + "traits": { + "smithy.api#documentation": "

The number of tags, if any, on the object.

", + "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-tagging-count" + } + }, + "VersionId": { + "target": "com.amazonaws.s3#ObjectVersionId", + "traits": { + "smithy.api#documentation": "

An ID used to reference a specific version of the object.

", + "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-version-id" + } + }, + "BucketKeyEnabled": { + "target": "com.amazonaws.s3#BucketKeyEnabled", + "traits": { + "smithy.api#documentation": "

Indicates whether the object stored in Amazon S3 uses an S3 bucket key for server-side\n encryption with AWS KMS (SSE-KMS).

", + "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled" + } + } + } + }, "com.amazonaws.s3#Years": { "type": "integer" } diff --git a/codegen/sdk-codegen/aws-models/s3control.2018-08-20.json b/codegen/sdk-codegen/aws-models/s3control.2018-08-20.json index 3784bf6a7a5..2518a1572d3 100644 --- a/codegen/sdk-codegen/aws-models/s3control.2018-08-20.json +++ b/codegen/sdk-codegen/aws-models/s3control.2018-08-20.json @@ -36,6 +36,9 @@ { "target": "com.amazonaws.s3control#CreateAccessPoint" }, + { + "target": "com.amazonaws.s3control#CreateAccessPointForObjectLambda" + }, { "target": "com.amazonaws.s3control#CreateBucket" }, @@ -45,9 +48,15 @@ { "target": "com.amazonaws.s3control#DeleteAccessPoint" }, + { + "target": "com.amazonaws.s3control#DeleteAccessPointForObjectLambda" + }, { "target": "com.amazonaws.s3control#DeleteAccessPointPolicy" }, + { + "target": "com.amazonaws.s3control#DeleteAccessPointPolicyForObjectLambda" + }, { "target": "com.amazonaws.s3control#DeleteBucket" }, @@ -78,12 +87,24 @@ { "target": "com.amazonaws.s3control#GetAccessPoint" }, + { + "target": "com.amazonaws.s3control#GetAccessPointConfigurationForObjectLambda" + }, + { + "target": "com.amazonaws.s3control#GetAccessPointForObjectLambda" + }, { "target": "com.amazonaws.s3control#GetAccessPointPolicy" }, + { + "target": "com.amazonaws.s3control#GetAccessPointPolicyForObjectLambda" + }, { "target": "com.amazonaws.s3control#GetAccessPointPolicyStatus" }, + { + "target": "com.amazonaws.s3control#GetAccessPointPolicyStatusForObjectLambda" + }, { "target": "com.amazonaws.s3control#GetBucket" }, @@ -111,6 +132,9 @@ { "target": "com.amazonaws.s3control#ListAccessPoints" }, + { + "target": "com.amazonaws.s3control#ListAccessPointsForObjectLambda" + }, { "target": "com.amazonaws.s3control#ListJobs" }, @@ -120,9 +144,15 @@ { "target": "com.amazonaws.s3control#ListStorageLensConfigurations" }, + { + "target": "com.amazonaws.s3control#PutAccessPointConfigurationForObjectLambda" + }, { "target": "com.amazonaws.s3control#PutAccessPointPolicy" }, + { + "target": "com.amazonaws.s3control#PutAccessPointPolicyForObjectLambda" + }, { "target": "com.amazonaws.s3control#PutBucketLifecycleConfiguration" }, @@ -163,7 +193,7 @@ "name": "s3" }, "aws.protocols#restXml": {}, - "smithy.api#documentation": "

\n AWS S3 Control provides access to Amazon S3 control plane operations.\n \n

", + "smithy.api#documentation": "

\n AWS S3 Control provides access to Amazon S3 control plane actions.\n \n

", "smithy.api#title": "AWS S3 Control", "smithy.api#xmlNamespace": { "uri": "http://awss3control.amazonaws.com/doc/2018-08-20/" @@ -288,6 +318,30 @@ "smithy.api#documentation": "

A container for the activity metrics.

" } }, + "com.amazonaws.s3control#AwsLambdaTransformation": { + "type": "structure", + "members": { + "FunctionArn": { + "target": "com.amazonaws.s3control#FunctionArnString", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Lambda function.

", + "smithy.api#required": {} + } + }, + "FunctionPayload": { + "target": "com.amazonaws.s3control#AwsLambdaTransformationPayload", + "traits": { + "smithy.api#documentation": "

Additional JSON that provides supplemental data to the Lambda function used to transform objects.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

AWS Lambda function used to transform objects through an Object Lambda Access Point.

" + } + }, + "com.amazonaws.s3control#AwsLambdaTransformationPayload": { + "type": "string" + }, "com.amazonaws.s3control#AwsOrgArn": { "type": "string", "traits": { @@ -469,7 +523,7 @@ "target": "com.amazonaws.s3control#CreateAccessPointResult" }, "traits": { - "smithy.api#documentation": "

Creates an access point and associates it with the specified bucket. For more information, see \n Managing Data Access with Amazon S3 Access \n Points in the Amazon Simple Storage Service Developer Guide.

\n

\n

\n Using this action with Amazon S3 on Outposts\n

\n

This action:

\n \n

For more information, see \n Using Amazon S3 on Outposts in the Amazon Simple Storage Service Developer Guide .

\n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n

\n

The following actions are related to CreateAccessPoint:

\n ", + "smithy.api#documentation": "

Creates an access point and associates it with the specified bucket. For more information, see \n Managing Data Access with Amazon S3 Access \n Points in the Amazon Simple Storage Service User Guide.

\n

\n \n

S3 on Outposts only supports VPC-style Access Points.\n

\n

For more information, see \n Accessing Amazon S3 on Outposts using virtual private cloud (VPC) only Access Points in \n the Amazon Simple Storage Service User Guide.

\n
\n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n

\n

The following actions are related to CreateAccessPoint:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -480,6 +534,66 @@ } } }, + "com.amazonaws.s3control#CreateAccessPointForObjectLambda": { + "type": "operation", + "input": { + "target": "com.amazonaws.s3control#CreateAccessPointForObjectLambdaRequest" + }, + "output": { + "target": "com.amazonaws.s3control#CreateAccessPointForObjectLambdaResult" + }, + "traits": { + "smithy.api#documentation": "

Creates an Object Lambda Access Point. For more information, see \n Transforming objects with Object Lambda Access Points in the Amazon Simple Storage Service User Guide.

\n

The following actions are related to CreateAccessPointForObjectLambda:

\n ", + "smithy.api#endpoint": { + "hostPrefix": "{AccountId}." + }, + "smithy.api#http": { + "method": "PUT", + "uri": "/v20180820/accesspointforobjectlambda/{Name}", + "code": 200 + } + } + }, + "com.amazonaws.s3control#CreateAccessPointForObjectLambdaRequest": { + "type": "structure", + "members": { + "AccountId": { + "target": "com.amazonaws.s3control#AccountId", + "traits": { + "smithy.api#documentation": "

The AWS account ID for owner of the specified Object Lambda Access Point.

", + "smithy.api#hostLabel": {}, + "smithy.api#httpHeader": "x-amz-account-id", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.s3control#ObjectLambdaAccessPointName", + "traits": { + "smithy.api#documentation": "

The name you want to assign to this Object Lambda Access Point.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "Configuration": { + "target": "com.amazonaws.s3control#ObjectLambdaConfiguration", + "traits": { + "smithy.api#documentation": "

Object Lambda Access Point configuration as a JSON document.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.s3control#CreateAccessPointForObjectLambdaResult": { + "type": "structure", + "members": { + "ObjectLambdaAccessPointArn": { + "target": "com.amazonaws.s3control#ObjectLambdaAccessPointArn", + "traits": { + "smithy.api#documentation": "

Specifies the ARN for the Object Lambda Access Point.

" + } + } + } + }, "com.amazonaws.s3control#CreateAccessPointRequest": { "type": "structure", "members": { @@ -546,7 +660,7 @@ } ], "traits": { - "smithy.api#documentation": "\n

This API operation creates an Amazon S3 on Outposts bucket. To create an S3 bucket, see Create Bucket in the Amazon Simple Storage Service API.\n

\n
\n

Creates a new Outposts bucket. By creating the bucket, you become the bucket owner. To create an Outposts bucket, you must have S3 on Outposts. \n For more information, see Using Amazon S3 on Outposts in Amazon Simple Storage Service Developer Guide.

\n

Not every string is an acceptable bucket name. For information on bucket naming restrictions, see Working with Amazon S3 Buckets.

\n \n

S3 on Outposts buckets do not support

\n \n

For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts\n endpoint hostname prefix and x-amz-outpost-id in your API request, see the Examples section.

\n \n

The following actions are related to CreateBucket for Amazon S3 on Outposts:

\n ", + "smithy.api#documentation": "\n

This action creates an Amazon S3 on Outposts bucket. To create an S3 bucket, see Create Bucket in the Amazon Simple Storage Service API.\n

\n
\n

Creates a new Outposts bucket. By creating the bucket, you become the bucket owner. To create an Outposts bucket, you must have S3 on Outposts. \n For more information, see Using Amazon S3 on Outposts in Amazon Simple Storage Service User Guide.

\n

Not every string is an acceptable bucket name. For information on bucket naming restrictions, see Working with Amazon S3 Buckets.

\n

S3 on Outposts buckets support:

\n \n

For a complete list of restrictions and Amazon S3 feature limitations on S3 on Outposts, \n see \n Amazon S3 on Outposts Restrictions and Limitations.

\n

For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts\n endpoint hostname prefix and x-amz-outpost-id in your API request, see the Examples section.

\n \n

The following actions are related to CreateBucket for Amazon S3 on Outposts:

\n ", "smithy.api#http": { "method": "PUT", "uri": "/v20180820/bucket/{Bucket}", @@ -686,7 +800,7 @@ } ], "traits": { - "smithy.api#documentation": "

S3 Batch Operations performs large-scale Batch Operations on Amazon S3 objects. Batch Operations can run a\n single operation or action on lists of Amazon S3 objects that you specify. For more information,\n see S3 Batch Operations in the\n Amazon Simple Storage Service Developer Guide.

\n

This operation creates an S3 Batch Operations job.

\n

\n

Related actions include:

\n ", + "smithy.api#documentation": "

You can use S3 Batch Operations to perform large-scale batch actions on Amazon S3 objects. Batch Operations can run a\n single action on lists of Amazon S3 objects that you specify. For more information,\n see S3 Batch Operations in the\n Amazon Simple Storage Service User Guide.

\n

This action creates a S3 Batch Operations job.

\n

\n

Related actions include:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -719,7 +833,7 @@ "Operation": { "target": "com.amazonaws.s3control#JobOperation", "traits": { - "smithy.api#documentation": "

The operation that you want this job to perform on each object listed in the manifest.\n For more information about the available operations, see Operations in the\n Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The action that you want this job to perform on every object listed in the manifest.\n For more information about the available actions, see Operations in the\n Amazon Simple Storage Service User Guide.

", "smithy.api#required": {} } }, @@ -762,7 +876,7 @@ "RoleArn": { "target": "com.amazonaws.s3control#IAMRoleArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) role\n that Batch Operations will use to run this job's operation on each object in the\n manifest.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) role\n that Batch Operations will use to run this job's action on every object in the\n manifest.

", "smithy.api#required": {} } }, @@ -814,6 +928,45 @@ } } }, + "com.amazonaws.s3control#DeleteAccessPointForObjectLambda": { + "type": "operation", + "input": { + "target": "com.amazonaws.s3control#DeleteAccessPointForObjectLambdaRequest" + }, + "traits": { + "smithy.api#documentation": "

Deletes the specified Object Lambda Access Point.

\n

The following actions are related to DeleteAccessPointForObjectLambda:

\n ", + "smithy.api#endpoint": { + "hostPrefix": "{AccountId}." + }, + "smithy.api#http": { + "method": "DELETE", + "uri": "/v20180820/accesspointforobjectlambda/{Name}", + "code": 200 + } + } + }, + "com.amazonaws.s3control#DeleteAccessPointForObjectLambdaRequest": { + "type": "structure", + "members": { + "AccountId": { + "target": "com.amazonaws.s3control#AccountId", + "traits": { + "smithy.api#documentation": "

The account ID for the account that owns the specified Object Lambda Access Point.

", + "smithy.api#hostLabel": {}, + "smithy.api#httpHeader": "x-amz-account-id", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.s3control#ObjectLambdaAccessPointName", + "traits": { + "smithy.api#documentation": "

The name of the access point you want to delete.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, "com.amazonaws.s3control#DeleteAccessPointPolicy": { "type": "operation", "input": { @@ -831,6 +984,45 @@ } } }, + "com.amazonaws.s3control#DeleteAccessPointPolicyForObjectLambda": { + "type": "operation", + "input": { + "target": "com.amazonaws.s3control#DeleteAccessPointPolicyForObjectLambdaRequest" + }, + "traits": { + "smithy.api#documentation": "

Removes the resource policy for an Object Lambda Access Point.

\n

The following actions are related to DeleteAccessPointPolicyForObjectLambda:

\n ", + "smithy.api#endpoint": { + "hostPrefix": "{AccountId}." + }, + "smithy.api#http": { + "method": "DELETE", + "uri": "/v20180820/accesspointforobjectlambda/{Name}/policy", + "code": 200 + } + } + }, + "com.amazonaws.s3control#DeleteAccessPointPolicyForObjectLambdaRequest": { + "type": "structure", + "members": { + "AccountId": { + "target": "com.amazonaws.s3control#AccountId", + "traits": { + "smithy.api#documentation": "

The account ID for the account that owns the specified Object Lambda Access Point.

", + "smithy.api#hostLabel": {}, + "smithy.api#httpHeader": "x-amz-account-id", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.s3control#ObjectLambdaAccessPointName", + "traits": { + "smithy.api#documentation": "

The name of the Object Lambda Access Point you want to delete the policy for.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, "com.amazonaws.s3control#DeleteAccessPointPolicyRequest": { "type": "structure", "members": { @@ -881,7 +1073,7 @@ "target": "com.amazonaws.s3control#DeleteBucketRequest" }, "traits": { - "smithy.api#documentation": "\n

This API operation deletes an Amazon S3 on Outposts bucket. To delete an S3 bucket, \n see DeleteBucket in the Amazon Simple Storage Service API.\n

\n
\n

Deletes the Amazon S3 on Outposts bucket. All objects (including all object versions and delete markers) in the\n bucket must be deleted before the bucket itself can be deleted. \n For more information, see Using Amazon S3 on Outposts in Amazon Simple Storage Service Developer Guide.

\n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n

\n Related Resources\n

\n ", + "smithy.api#documentation": "\n

This action deletes an Amazon S3 on Outposts bucket. To delete an S3 bucket, \n see DeleteBucket in the Amazon Simple Storage Service API.\n

\n
\n

Deletes the Amazon S3 on Outposts bucket. All objects (including all object versions and delete markers) in the\n bucket must be deleted before the bucket itself can be deleted. \n For more information, see Using Amazon S3 on Outposts in Amazon Simple Storage Service User Guide.

\n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n

\n Related Resources\n

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -898,7 +1090,7 @@ "target": "com.amazonaws.s3control#DeleteBucketLifecycleConfigurationRequest" }, "traits": { - "smithy.api#documentation": "\n

This API action deletes an Amazon S3 on Outposts bucket's lifecycle configuration. To delete an \n S3 bucket's lifecycle configuration, see DeleteBucketLifecycle in the Amazon Simple Storage Service API.\n

\n
\n

Deletes the lifecycle configuration from the specified Outposts bucket. Amazon S3 on Outposts removes all the lifecycle configuration \n rules in the lifecycle subresource associated with the bucket. Your objects never expire, and Amazon S3 on Outposts no longer automatically \n deletes any objects on the basis of rules contained in the deleted lifecycle configuration. \n For more information, see Using Amazon S3 on Outposts in Amazon Simple Storage Service Developer Guide.

\n

To use this operation, you must have permission to perform the\n s3-outposts:DeleteLifecycleConfiguration action. By default, the bucket\n owner has this permission and the Outposts bucket owner can grant this permission to\n others.

\n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

For more information about object expiration, see \n Elements to Describe Lifecycle Actions.

\n

Related actions include:

\n ", + "smithy.api#documentation": "\n

This action deletes an Amazon S3 on Outposts bucket's lifecycle configuration. To delete an \n S3 bucket's lifecycle configuration, see DeleteBucketLifecycle in the Amazon Simple Storage Service API.\n

\n
\n

Deletes the lifecycle configuration from the specified Outposts bucket. Amazon S3 on Outposts removes all the lifecycle configuration \n rules in the lifecycle subresource associated with the bucket. Your objects never expire, and Amazon S3 on Outposts no longer automatically \n deletes any objects on the basis of rules contained in the deleted lifecycle configuration. \n For more information, see Using Amazon S3 on Outposts in Amazon Simple Storage Service User Guide.

\n

To use this action, you must have permission to perform the\n s3-outposts:DeleteLifecycleConfiguration action. By default, the bucket\n owner has this permission and the Outposts bucket owner can grant this permission to\n others.

\n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

For more information about object expiration, see Elements to Describe Lifecycle Actions.

\n

Related actions include:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -937,7 +1129,7 @@ "target": "com.amazonaws.s3control#DeleteBucketPolicyRequest" }, "traits": { - "smithy.api#documentation": "\n

This API operation deletes an Amazon S3 on Outposts bucket policy. To delete an \n S3 bucket policy, see DeleteBucketPolicy in the Amazon Simple Storage Service API.\n

\n
\n

This implementation of the DELETE operation uses the policy subresource to delete the\n policy of a specified Amazon S3 on Outposts bucket. If you are using an identity other than the\n root user of the AWS account that owns the bucket, the calling identity must have the\n s3-outposts:DeleteBucketPolicy permissions on the specified Outposts bucket\n and belong to the bucket owner's account to use this operation. For more information, see\n Using Amazon S3 on Outposts in\n Amazon Simple Storage Service Developer Guide.

\n \n

If you don't have DeleteBucketPolicy permissions, Amazon S3 returns a\n 403 Access Denied error. If you have the correct permissions, but you're\n not using an identity that belongs to the bucket owner's account, Amazon S3 returns a\n 405 Method Not Allowed error.

\n \n \n \n

As a security precaution, the root user of the AWS account that owns a bucket can always use this operation,\n even if the policy explicitly denies the root user the ability to perform this action.

\n
\n \n

For more information about bucket policies, see Using Bucket Policies and User\n Policies.

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to DeleteBucketPolicy:

\n ", + "smithy.api#documentation": "\n

This action deletes an Amazon S3 on Outposts bucket policy. To delete an \n S3 bucket policy, see DeleteBucketPolicy in the Amazon Simple Storage Service API.\n

\n
\n

This implementation of the DELETE action uses the policy subresource to delete the\n policy of a specified Amazon S3 on Outposts bucket. If you are using an identity other than the\n root user of the AWS account that owns the bucket, the calling identity must have the\n s3-outposts:DeleteBucketPolicy permissions on the specified Outposts bucket\n and belong to the bucket owner's account to use this action. For more information, see\n Using Amazon S3 on Outposts in\n Amazon Simple Storage Service User Guide.

\n \n

If you don't have DeleteBucketPolicy permissions, Amazon S3 returns a\n 403 Access Denied error. If you have the correct permissions, but you're\n not using an identity that belongs to the bucket owner's account, Amazon S3 returns a\n 405 Method Not Allowed error.

\n \n \n \n

As a security precaution, the root user of the AWS account that owns a bucket can always use this action,\n even if the policy explicitly denies the root user the ability to perform this action.

\n
\n \n

For more information about bucket policies, see Using Bucket Policies and User Policies.

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to DeleteBucketPolicy:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -998,7 +1190,7 @@ "target": "com.amazonaws.s3control#DeleteBucketTaggingRequest" }, "traits": { - "smithy.api#documentation": "\n

This operation deletes an Amazon S3 on Outposts bucket's tags. To delete an \n S3 bucket tags, see DeleteBucketTagging in the Amazon Simple Storage Service API.\n

\n
\n

Deletes the tags from the Outposts bucket. For more information, see Using Amazon S3 on Outposts in\n Amazon Simple Storage Service Developer Guide.

\n \n

To use this operation, you must have permission to perform the PutBucketTagging action. \n By default, the bucket owner has this permission and can grant this permission to others. \n

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to DeleteBucketTagging:

\n ", + "smithy.api#documentation": "\n

This action deletes an Amazon S3 on Outposts bucket's tags. To delete an \n S3 bucket tags, see DeleteBucketTagging in the Amazon Simple Storage Service API.\n

\n
\n

Deletes the tags from the Outposts bucket. For more information, see Using Amazon S3 on Outposts in\n Amazon Simple Storage Service User Guide.

\n \n

To use this action, you must have permission to perform the PutBucketTagging action. \n By default, the bucket owner has this permission and can grant this permission to others. \n

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to DeleteBucketTagging:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -1051,7 +1243,7 @@ } ], "traits": { - "smithy.api#documentation": "

Removes the entire tag set from the specified S3 Batch Operations job. To use this operation,\n you must have permission to perform the s3:DeleteJobTagging action. For more\n information, see Controlling access and labeling jobs using tags in the\n Amazon Simple Storage Service Developer Guide.

\n

\n

Related actions include:

\n ", + "smithy.api#documentation": "

Removes the entire tag set from the specified S3 Batch Operations job. To use this operation,\n you must have permission to perform the s3:DeleteJobTagging action. For more\n information, see Controlling access and labeling jobs using tags in the\n Amazon Simple Storage Service User Guide.

\n

\n

Related actions include:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -1125,7 +1317,7 @@ "target": "com.amazonaws.s3control#DeleteStorageLensConfigurationRequest" }, "traits": { - "smithy.api#documentation": "

Deletes the Amazon S3 Storage Lens configuration. For more information about S3 Storage Lens, see \n Working with Amazon S3 Storage Lens in the \n Amazon Simple Storage Service Developer Guide.

\n \n

To use this action,\n you must have permission to perform the s3:DeleteStorageLensConfiguration action. For more\n information, see Setting permissions to use Amazon S3 Storage Lens in the\n Amazon Simple Storage Service Developer Guide.

\n
", + "smithy.api#documentation": "

Deletes the Amazon S3 Storage Lens configuration. For more information about S3 Storage Lens, see \n Assessing your storage \n activity and usage with Amazon S3 Storage Lens in the \n Amazon Simple Storage Service User Guide.

\n \n

To use this action,\n you must have permission to perform the s3:DeleteStorageLensConfiguration action. For more\n information, see Setting permissions to use Amazon S3 Storage Lens in the\n Amazon Simple Storage Service User Guide.

\n
", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -1167,7 +1359,7 @@ "target": "com.amazonaws.s3control#DeleteStorageLensConfigurationTaggingResult" }, "traits": { - "smithy.api#documentation": "

Deletes the Amazon S3 Storage Lens configuration tags. For more information about S3 Storage Lens, see \n Working with Amazon S3 Storage Lens in the \n Amazon Simple Storage Service Developer Guide.

\n \n

To use this action,\n you must have permission to perform the s3:DeleteStorageLensConfigurationTagging action. For more\n information, see Setting permissions to use Amazon S3 Storage Lens in the\n Amazon Simple Storage Service Developer Guide.

\n
", + "smithy.api#documentation": "

Deletes the Amazon S3 Storage Lens configuration tags. For more information about S3 Storage Lens, see \n Assessing your storage \n activity and usage with Amazon S3 Storage Lens in the \n Amazon Simple Storage Service User Guide.

\n \n

To use this action,\n you must have permission to perform the s3:DeleteStorageLensConfigurationTagging action. For more\n information, see Setting permissions to use Amazon S3 Storage Lens in the\n Amazon Simple Storage Service User Guide.

\n
", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -1227,7 +1419,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves the configuration parameters and status for a Batch Operations job. For more\n information, see S3 Batch Operations in\n the Amazon Simple Storage Service Developer Guide.

\n

\n

Related actions include:

\n ", + "smithy.api#documentation": "

Retrieves the configuration parameters and status for a Batch Operations job. For more\n information, see S3 Batch Operations in\n the Amazon Simple Storage Service User Guide.

\n

\n

Related actions include:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -1244,7 +1436,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

", + "smithy.api#documentation": "

The AWS account ID associated with the S3 Batch Operations job.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -1363,6 +1555,124 @@ } } }, + "com.amazonaws.s3control#GetAccessPointConfigurationForObjectLambda": { + "type": "operation", + "input": { + "target": "com.amazonaws.s3control#GetAccessPointConfigurationForObjectLambdaRequest" + }, + "output": { + "target": "com.amazonaws.s3control#GetAccessPointConfigurationForObjectLambdaResult" + }, + "traits": { + "smithy.api#documentation": "

Returns configuration for an Object Lambda Access Point.

\n

The following actions are related to GetAccessPointConfigurationForObjectLambda:

\n ", + "smithy.api#endpoint": { + "hostPrefix": "{AccountId}." + }, + "smithy.api#http": { + "method": "GET", + "uri": "/v20180820/accesspointforobjectlambda/{Name}/configuration", + "code": 200 + } + } + }, + "com.amazonaws.s3control#GetAccessPointConfigurationForObjectLambdaRequest": { + "type": "structure", + "members": { + "AccountId": { + "target": "com.amazonaws.s3control#AccountId", + "traits": { + "smithy.api#documentation": "

The account ID for the account that owns the specified Object Lambda Access Point.

", + "smithy.api#hostLabel": {}, + "smithy.api#httpHeader": "x-amz-account-id", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.s3control#ObjectLambdaAccessPointName", + "traits": { + "smithy.api#documentation": "

The name of the Object Lambda Access Point you want to return the configuration for.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.s3control#GetAccessPointConfigurationForObjectLambdaResult": { + "type": "structure", + "members": { + "Configuration": { + "target": "com.amazonaws.s3control#ObjectLambdaConfiguration", + "traits": { + "smithy.api#documentation": "

Object Lambda Access Point configuration document.

" + } + } + } + }, + "com.amazonaws.s3control#GetAccessPointForObjectLambda": { + "type": "operation", + "input": { + "target": "com.amazonaws.s3control#GetAccessPointForObjectLambdaRequest" + }, + "output": { + "target": "com.amazonaws.s3control#GetAccessPointForObjectLambdaResult" + }, + "traits": { + "smithy.api#documentation": "

Returns configuration information about the specified Object Lambda Access Point

\n

The following actions are related to GetAccessPointForObjectLambda:

\n ", + "smithy.api#endpoint": { + "hostPrefix": "{AccountId}." + }, + "smithy.api#http": { + "method": "GET", + "uri": "/v20180820/accesspointforobjectlambda/{Name}", + "code": 200 + } + } + }, + "com.amazonaws.s3control#GetAccessPointForObjectLambdaRequest": { + "type": "structure", + "members": { + "AccountId": { + "target": "com.amazonaws.s3control#AccountId", + "traits": { + "smithy.api#documentation": "

The account ID for the account that owns the specified Object Lambda Access Point.

", + "smithy.api#hostLabel": {}, + "smithy.api#httpHeader": "x-amz-account-id", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.s3control#ObjectLambdaAccessPointName", + "traits": { + "smithy.api#documentation": "

The name of the Object Lambda Access Point.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.s3control#GetAccessPointForObjectLambdaResult": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.s3control#ObjectLambdaAccessPointName", + "traits": { + "smithy.api#documentation": "

The name of the Object Lambda Access Point.

" + } + }, + "PublicAccessBlockConfiguration": { + "target": "com.amazonaws.s3control#PublicAccessBlockConfiguration", + "traits": { + "smithy.api#documentation": "

Configuration to block all public access. This setting is turned on and can not be edited.

" + } + }, + "CreationDate": { + "target": "com.amazonaws.s3control#CreationDate", + "traits": { + "smithy.api#documentation": "

The date and time when the specified Object Lambda Access Point was created.

" + } + } + } + }, "com.amazonaws.s3control#GetAccessPointPolicy": { "type": "operation", "input": { @@ -1383,6 +1693,59 @@ } } }, + "com.amazonaws.s3control#GetAccessPointPolicyForObjectLambda": { + "type": "operation", + "input": { + "target": "com.amazonaws.s3control#GetAccessPointPolicyForObjectLambdaRequest" + }, + "output": { + "target": "com.amazonaws.s3control#GetAccessPointPolicyForObjectLambdaResult" + }, + "traits": { + "smithy.api#documentation": "

Returns the resource policy for an Object Lambda Access Point.

\n

The following actions are related to GetAccessPointPolicyForObjectLambda:

\n ", + "smithy.api#endpoint": { + "hostPrefix": "{AccountId}." + }, + "smithy.api#http": { + "method": "GET", + "uri": "/v20180820/accesspointforobjectlambda/{Name}/policy", + "code": 200 + } + } + }, + "com.amazonaws.s3control#GetAccessPointPolicyForObjectLambdaRequest": { + "type": "structure", + "members": { + "AccountId": { + "target": "com.amazonaws.s3control#AccountId", + "traits": { + "smithy.api#documentation": "

The account ID for the account that owns the specified Object Lambda Access Point.

", + "smithy.api#hostLabel": {}, + "smithy.api#httpHeader": "x-amz-account-id", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.s3control#ObjectLambdaAccessPointName", + "traits": { + "smithy.api#documentation": "

The name of the Object Lambda Access Point.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.s3control#GetAccessPointPolicyForObjectLambdaResult": { + "type": "structure", + "members": { + "Policy": { + "target": "com.amazonaws.s3control#ObjectLambdaPolicy", + "traits": { + "smithy.api#documentation": "

Object Lambda Access Point resource policy document.

" + } + } + } + }, "com.amazonaws.s3control#GetAccessPointPolicyRequest": { "type": "structure", "members": { @@ -1425,7 +1788,7 @@ "target": "com.amazonaws.s3control#GetAccessPointPolicyStatusResult" }, "traits": { - "smithy.api#documentation": "

Indicates whether the specified access point currently has a policy that allows public access. For more information about public access through access points, see Managing Data Access with Amazon S3 Access Points in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

Indicates whether the specified access point currently has a policy that allows public access. For more information about public access through access points, see Managing Data Access with Amazon S3 Access Points in the Amazon Simple Storage Service Developer Guide.

", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -1436,6 +1799,56 @@ } } }, + "com.amazonaws.s3control#GetAccessPointPolicyStatusForObjectLambda": { + "type": "operation", + "input": { + "target": "com.amazonaws.s3control#GetAccessPointPolicyStatusForObjectLambdaRequest" + }, + "output": { + "target": "com.amazonaws.s3control#GetAccessPointPolicyStatusForObjectLambdaResult" + }, + "traits": { + "smithy.api#documentation": "

Returns the status of the resource policy associated with an Object Lambda Access Point.

", + "smithy.api#endpoint": { + "hostPrefix": "{AccountId}." + }, + "smithy.api#http": { + "method": "GET", + "uri": "/v20180820/accesspointforobjectlambda/{Name}/policyStatus", + "code": 200 + } + } + }, + "com.amazonaws.s3control#GetAccessPointPolicyStatusForObjectLambdaRequest": { + "type": "structure", + "members": { + "AccountId": { + "target": "com.amazonaws.s3control#AccountId", + "traits": { + "smithy.api#documentation": "

The account ID for the account that owns the specified Object Lambda Access Point.

", + "smithy.api#hostLabel": {}, + "smithy.api#httpHeader": "x-amz-account-id", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.s3control#ObjectLambdaAccessPointName", + "traits": { + "smithy.api#documentation": "

The name of the Object Lambda Access Point.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.s3control#GetAccessPointPolicyStatusForObjectLambdaResult": { + "type": "structure", + "members": { + "PolicyStatus": { + "target": "com.amazonaws.s3control#PolicyStatus" + } + } + }, "com.amazonaws.s3control#GetAccessPointPolicyStatusRequest": { "type": "structure", "members": { @@ -1538,7 +1951,7 @@ "target": "com.amazonaws.s3control#GetBucketResult" }, "traits": { - "smithy.api#documentation": "

Gets an Amazon S3 on Outposts bucket. For more information, see \n Using Amazon S3 on Outposts in the Amazon Simple Storage Service Developer Guide.

\n

If you are using an identity other than the root user of the AWS account that owns the bucket, the calling identity \n must have the s3-outposts:GetBucket permissions on the specified bucket and belong to the bucket owner's account \n in order to use this operation. Only users from Outposts bucket owner account with the right permissions can perform actions on an Outposts bucket. \n

\n

\n If you don't have s3-outposts:GetBucket permissions or you're not using an identity that belongs to the bucket owner's \n account, Amazon S3 returns a 403 Access Denied error.

\n

The following actions are related to GetBucket for Amazon S3 on Outposts:

\n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n ", + "smithy.api#documentation": "

Gets an Amazon S3 on Outposts bucket. For more information, see \n Using Amazon S3 on Outposts in the Amazon Simple Storage Service User Guide.

\n

If you are using an identity other than the root user of the AWS account \n that owns the Outposts bucket, the calling identity must have the \n s3-outposts:GetBucket permissions on the specified Outposts bucket and \n belong to the Outposts bucket owner's account in order to use this action. Only \n users from Outposts bucket owner account with the right permissions can perform \n actions on an Outposts bucket. \n

\n

\n If you don't have s3-outposts:GetBucket permissions or you're not using an identity that belongs to the bucket owner's \n account, Amazon S3 returns a 403 Access Denied error.

\n

The following actions are related to GetBucket for Amazon S3 on Outposts:

\n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -1558,7 +1971,7 @@ "target": "com.amazonaws.s3control#GetBucketLifecycleConfigurationResult" }, "traits": { - "smithy.api#documentation": "\n

This operation gets an Amazon S3 on Outposts bucket's lifecycle configuration. To get an \n S3 bucket's lifecycle configuration, see GetBucketLifecycleConfiguration in the Amazon Simple Storage Service API.\n

\n
\n

Returns the lifecycle configuration information set on the Outposts bucket. For more\n information, see Using Amazon S3 on Outposts and for\n information about lifecycle configuration, see Object Lifecycle Management in\n Amazon Simple Storage Service Developer Guide.

\n \n

To use this operation, you must have permission to perform the s3-outposts:GetLifecycleConfiguration action. \n The Outposts bucket owner has this permission, by default. The bucket owner can grant this permission to others. For more \n information about permissions, see \n Permissions \n Related to Bucket Subresource Operations and Managing Access \n Permissions to Your Amazon S3 Resources.

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

\n GetBucketLifecycleConfiguration has the following special error:

\n \n

The following actions are related to GetBucketLifecycleConfiguration:

\n ", + "smithy.api#documentation": "\n

This action gets an Amazon S3 on Outposts bucket's lifecycle configuration. To get an \n S3 bucket's lifecycle configuration, see GetBucketLifecycleConfiguration in the Amazon Simple Storage Service API.\n

\n
\n

Returns the lifecycle configuration information set on the Outposts bucket. For more\n information, see Using Amazon S3 on Outposts and for\n information about lifecycle configuration, see Object Lifecycle Management in\n Amazon Simple Storage Service User Guide.

\n \n

To use this action, you must have permission to perform the s3-outposts:GetLifecycleConfiguration action. \n The Outposts bucket owner has this permission, by default. The bucket owner can grant this permission to others. For more \n information about permissions, see Permissions \n Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

\n GetBucketLifecycleConfiguration has the following special error:

\n \n

The following actions are related to GetBucketLifecycleConfiguration:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -1611,7 +2024,7 @@ "target": "com.amazonaws.s3control#GetBucketPolicyResult" }, "traits": { - "smithy.api#documentation": "\n

This action gets a bucket policy for an Amazon S3 on Outposts bucket. To get a policy for an S3\n bucket, see GetBucketPolicy in the\n Amazon Simple Storage Service API.

\n
\n

Returns the policy of a specified Outposts bucket. For more information, see Using Amazon S3 on Outposts in the\n Amazon Simple Storage Service Developer Guide.

\n

If you are using an identity other than the root user of the AWS account that owns the bucket, the calling identity \n must have the GetBucketPolicy permissions on the specified bucket and belong to the bucket owner's account in order to use this operation.

\n \n

Only users from Outposts bucket owner account with the right permissions can perform actions on an Outposts bucket. \n If you don't have s3-outposts:GetBucketPolicy permissions or you're not using an identity that belongs to the bucket owner's \n account, Amazon S3 returns a 403 Access Denied error.

\n \n \n

As a security precaution, the root user of the AWS account that owns a bucket can always use this operation, even if the policy \n explicitly denies the root user the ability to perform this action.

\n
\n \n

For more information about bucket policies, see Using Bucket Policies and User Policies.

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to GetBucketPolicy:

\n ", + "smithy.api#documentation": "\n

This action gets a bucket policy for an Amazon S3 on Outposts bucket. To get a policy for an S3\n bucket, see GetBucketPolicy in the\n Amazon Simple Storage Service API.

\n
\n

Returns the policy of a specified Outposts bucket. For more information, see Using Amazon S3 on Outposts in the\n Amazon Simple Storage Service User Guide.

\n

If you are using an identity other than the root user of the AWS account that owns the bucket, the calling identity \n must have the GetBucketPolicy permissions on the specified bucket and belong to the bucket owner's account in order to use this action.

\n \n

Only users from Outposts bucket owner account with the right permissions can perform actions on an Outposts bucket. \n If you don't have s3-outposts:GetBucketPolicy permissions or you're not using an identity that belongs to the bucket owner's \n account, Amazon S3 returns a 403 Access Denied error.

\n \n \n

As a security precaution, the root user of the AWS account that owns a bucket can always use this action, even if the policy \n explicitly denies the root user the ability to perform this action.

\n
\n \n

For more information about bucket policies, see Using Bucket Policies and User Policies.

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to GetBucketPolicy:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -1709,7 +2122,7 @@ "target": "com.amazonaws.s3control#GetBucketTaggingResult" }, "traits": { - "smithy.api#documentation": "\n

This operation gets an Amazon S3 on Outposts bucket's tags. To get an \n S3 bucket tags, see GetBucketTagging in the Amazon Simple Storage Service API.\n

\n
\n

Returns the tag set associated with the Outposts bucket. For more information, see\n Using Amazon S3 on Outposts in the\n Amazon Simple Storage Service Developer Guide.

\n

To use this operation, you must have permission to perform the GetBucketTagging action. \n By default, the bucket owner has this permission and can grant this permission to others.

\n \n

\n GetBucketTagging has the following special error:

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to GetBucketTagging:

\n ", + "smithy.api#documentation": "\n

This action gets an Amazon S3 on Outposts bucket's tags. To get an \n S3 bucket tags, see GetBucketTagging in the Amazon Simple Storage Service API.\n

\n
\n

Returns the tag set associated with the Outposts bucket. For more information, see\n Using Amazon S3 on Outposts in the\n Amazon Simple Storage Service User Guide.

\n

To use this action, you must have permission to perform the GetBucketTagging action. \n By default, the bucket owner has this permission and can grant this permission to others.

\n \n

\n GetBucketTagging has the following special error:

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to GetBucketTagging:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -1774,7 +2187,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns the tags on an S3 Batch Operations job. To use this operation, you must have\n permission to perform the s3:GetJobTagging action. For more information, see\n Controlling\n access and labeling jobs using tags in the\n Amazon Simple Storage Service Developer Guide.

\n

\n

Related actions include:

\n ", + "smithy.api#documentation": "

Returns the tags on an S3 Batch Operations job. To use this operation, you must have\n permission to perform the s3:GetJobTagging action. For more information, see\n Controlling\n access and labeling jobs using tags in the\n Amazon Simple Storage Service User Guide.

\n

\n

Related actions include:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -1878,7 +2291,7 @@ "target": "com.amazonaws.s3control#GetStorageLensConfigurationResult" }, "traits": { - "smithy.api#documentation": "

Gets the Amazon S3 Storage Lens configuration. For more information, see \n Working with Amazon S3 Storage Lens in the \n Amazon Simple Storage Service Developer Guide.

\n \n

To use this action,\n you must have permission to perform the s3:GetStorageLensConfiguration action. For more\n information, see Setting permissions to use Amazon S3 Storage Lens in the\n Amazon Simple Storage Service Developer Guide.

\n
", + "smithy.api#documentation": "

Gets the Amazon S3 Storage Lens configuration. For more information, see \n Assessing your storage \n activity and usage with Amazon S3 Storage Lens in the \n Amazon Simple Storage Service User Guide.

\n \n

To use this action,\n you must have permission to perform the s3:GetStorageLensConfiguration action. For more\n information, see Setting permissions to use Amazon S3 Storage Lens in the\n Amazon Simple Storage Service User Guide.

\n
", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -1932,7 +2345,7 @@ "target": "com.amazonaws.s3control#GetStorageLensConfigurationTaggingResult" }, "traits": { - "smithy.api#documentation": "

Gets the tags of Amazon S3 Storage Lens configuration. For more information about S3 Storage Lens, see \n Working with Amazon S3 Storage Lens in the \n Amazon Simple Storage Service Developer Guide.

\n \n

To use this action,\n you must have permission to perform the s3:GetStorageLensConfigurationTagging action. For more\n information, see Setting permissions to use Amazon S3 Storage Lens in the\n Amazon Simple Storage Service Developer Guide.

\n
", + "smithy.api#documentation": "

Gets the tags of Amazon S3 Storage Lens configuration. For more information about S3 Storage Lens, see \n Assessing your storage \n activity and usage with Amazon S3 Storage Lens in the Amazon Simple Storage Service User Guide.

\n \n

To use this action,\n you must have permission to perform the s3:GetStorageLensConfigurationTagging action. For more\n information, see Setting permissions to use Amazon S3 Storage Lens in the\n Amazon Simple Storage Service User Guide.

\n
", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -2274,7 +2687,7 @@ "Operation": { "target": "com.amazonaws.s3control#OperationName", "traits": { - "smithy.api#documentation": "

The operation that the specified job is configured to run on each object listed in the manifest.

" + "smithy.api#documentation": "

The operation that the specified job is configured to run on every object listed in the manifest.

" } }, "Priority": { @@ -2390,7 +2803,7 @@ "ObjectArn": { "target": "com.amazonaws.s3control#S3KeyArnString", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for a manifest object.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for a manifest object.

\n \n

Replacement must be made for object keys containing special characters (such as carriage returns) when using \n XML requests. For more information, see \n XML related object key constraints.

\n
", "smithy.api#required": {} } }, @@ -2455,31 +2868,37 @@ "LambdaInvoke": { "target": "com.amazonaws.s3control#LambdaInvokeOperation", "traits": { - "smithy.api#documentation": "

Directs the specified job to invoke an AWS Lambda function on each object in the manifest.

" + "smithy.api#documentation": "

Directs the specified job to invoke an AWS Lambda function on every object in the manifest.

" } }, "S3PutObjectCopy": { "target": "com.amazonaws.s3control#S3CopyObjectOperation", "traits": { - "smithy.api#documentation": "

Directs the specified job to run a PUT Copy object call on each object in the manifest.

" + "smithy.api#documentation": "

Directs the specified job to run a PUT Copy object call on every object in the manifest.

" } }, "S3PutObjectAcl": { "target": "com.amazonaws.s3control#S3SetObjectAclOperation", "traits": { - "smithy.api#documentation": "

Directs the specified job to run a PUT Object acl call on each object in the manifest.

" + "smithy.api#documentation": "

Directs the specified job to run a PUT Object acl call on every object in the manifest.

" } }, "S3PutObjectTagging": { "target": "com.amazonaws.s3control#S3SetObjectTaggingOperation", "traits": { - "smithy.api#documentation": "

Directs the specified job to run a PUT Object tagging call on each object in the manifest.

" + "smithy.api#documentation": "

Directs the specified job to run a PUT Object tagging call on every object in the manifest.

" + } + }, + "S3DeleteObjectTagging": { + "target": "com.amazonaws.s3control#S3DeleteObjectTaggingOperation", + "traits": { + "smithy.api#documentation": "

Directs the specified job to execute a DELETE Object tagging call on every object in the manifest.

" } }, "S3InitiateRestoreObject": { "target": "com.amazonaws.s3control#S3InitiateRestoreObjectOperation", "traits": { - "smithy.api#documentation": "

Directs the specified job to run an Initiate Glacier Restore call on each object in the manifest.

" + "smithy.api#documentation": "

Directs the specified job to initiate restore requests for every archived object in the manifest.

" } }, "S3PutObjectLegalHold": { @@ -2490,7 +2909,7 @@ } }, "traits": { - "smithy.api#documentation": "

The operation that you want this job to perform on each object listed in the manifest.\n For more information about the available operations, see Operations in the\n Amazon Simple Storage Service Developer Guide.

" + "smithy.api#documentation": "

The operation that you want this job to perform on every object listed in the manifest.\n For more information about the available operations, see Operations in the\n Amazon Simple Storage Service User Guide.

" } }, "com.amazonaws.s3control#JobPriority": { @@ -2708,7 +3127,7 @@ "FunctionArn": { "target": "com.amazonaws.s3control#FunctionArnString", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the AWS Lambda function that the specified job will invoke for each object in the manifest.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the AWS Lambda function that the specified job will invoke on every object in the manifest.

" } } }, @@ -2839,7 +3258,7 @@ "Prefix": { "target": "com.amazonaws.s3control#Prefix", "traits": { - "smithy.api#documentation": "

Prefix identifying one or more objects to which the rule applies.

" + "smithy.api#documentation": "

Prefix identifying one or more objects to which the rule applies.

\n \n

Replacement must be made for object keys containing special characters (such as carriage returns) when using \n XML requests. For more information, see \n XML related object key constraints.

\n
" } }, "Tag": { @@ -2865,22 +3284,47 @@ } } }, - "com.amazonaws.s3control#ListAccessPoints": { + "com.amazonaws.s3control#ListAccessPoints": { + "type": "operation", + "input": { + "target": "com.amazonaws.s3control#ListAccessPointsRequest" + }, + "output": { + "target": "com.amazonaws.s3control#ListAccessPointsResult" + }, + "traits": { + "smithy.api#documentation": "

Returns a list of the access points currently associated with the specified bucket. You\n can retrieve up to 1000 access points per call. If the specified bucket has more than 1,000\n access points (or the number specified in maxResults, whichever is less), the\n response will include a continuation token that you can use to list the additional access\n points.

\n

\n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n

The following actions are related to ListAccessPoints:

\n ", + "smithy.api#endpoint": { + "hostPrefix": "{AccountId}." + }, + "smithy.api#http": { + "method": "GET", + "uri": "/v20180820/accesspoint", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.s3control#ListAccessPointsForObjectLambda": { "type": "operation", "input": { - "target": "com.amazonaws.s3control#ListAccessPointsRequest" + "target": "com.amazonaws.s3control#ListAccessPointsForObjectLambdaRequest" }, "output": { - "target": "com.amazonaws.s3control#ListAccessPointsResult" + "target": "com.amazonaws.s3control#ListAccessPointsForObjectLambdaResult" }, "traits": { - "smithy.api#documentation": "

Returns a list of the access points currently associated with the specified bucket. You\n can retrieve up to 1000 access points per call. If the specified bucket has more than 1,000\n access points (or the number specified in maxResults, whichever is less), the\n response will include a continuation token that you can use to list the additional access\n points.

\n

\n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n

The following actions are related to ListAccessPoints:

\n ", + "smithy.api#documentation": "

Returns a list of the access points associated with the Object Lambda Access Point. You\n can retrieve up to 1000 access points per call. If there are more than 1,000\n access points (or the number specified in maxResults, whichever is less), the\n response will include a continuation token that you can use to list the additional access\n points.

\n

The following actions are related to ListAccessPointsForObjectLambda:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, "smithy.api#http": { "method": "GET", - "uri": "/v20180820/accesspoint", + "uri": "/v20180820/accesspointforobjectlambda", "code": 200 }, "smithy.api#paginated": { @@ -2890,6 +3334,51 @@ } } }, + "com.amazonaws.s3control#ListAccessPointsForObjectLambdaRequest": { + "type": "structure", + "members": { + "AccountId": { + "target": "com.amazonaws.s3control#AccountId", + "traits": { + "smithy.api#documentation": "

The account ID for the account that owns the specified Object Lambda Access Point.

", + "smithy.api#hostLabel": {}, + "smithy.api#httpHeader": "x-amz-account-id", + "smithy.api#required": {} + } + }, + "NextToken": { + "target": "com.amazonaws.s3control#NonEmptyMaxLength1024String", + "traits": { + "smithy.api#documentation": "

If the list has more access points than can be returned in one call to this\n API, this field contains a continuation token that you can provide in subsequent calls to\n this API to retrieve additional access points.

", + "smithy.api#httpQuery": "nextToken" + } + }, + "MaxResults": { + "target": "com.amazonaws.s3control#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of access points that you want to include in the list. If there are more than this number of access points, then the response will include a continuation token in the NextToken field that you can use to retrieve the next page of access points.

", + "smithy.api#httpQuery": "maxResults" + } + } + } + }, + "com.amazonaws.s3control#ListAccessPointsForObjectLambdaResult": { + "type": "structure", + "members": { + "ObjectLambdaAccessPointList": { + "target": "com.amazonaws.s3control#ObjectLambdaAccessPointList", + "traits": { + "smithy.api#documentation": "

Returns list of Object Lambda Access Points.

" + } + }, + "NextToken": { + "target": "com.amazonaws.s3control#NonEmptyMaxLength1024String", + "traits": { + "smithy.api#documentation": "

If the list has more access points than can be returned in one call to this\n API, this field contains a continuation token that you can provide in subsequent calls to\n this API to retrieve additional access points.

" + } + } + } + }, "com.amazonaws.s3control#ListAccessPointsRequest": { "type": "structure", "members": { @@ -2962,7 +3451,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists current S3 Batch Operations jobs and jobs that have ended within the last 30 days for\n the AWS account making the request. For more information, see S3 Batch Operations in the\n Amazon Simple Storage Service Developer Guide.

\n

Related actions include:

\n

\n ", + "smithy.api#documentation": "

Lists current S3 Batch Operations jobs and jobs that have ended within the last 30 days for\n the AWS account making the request. For more information, see S3 Batch Operations in the\n Amazon Simple Storage Service User Guide.

\n

Related actions include:

\n

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -2984,7 +3473,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

", + "smithy.api#documentation": "

The AWS account ID associated with the S3 Batch Operations job.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -3040,7 +3529,7 @@ "target": "com.amazonaws.s3control#ListRegionalBucketsResult" }, "traits": { - "smithy.api#documentation": "

Returns a list of all Outposts buckets in an Outpost that are owned by the authenticated\n sender of the request. For more information, see Using Amazon S3 on Outposts in the\n Amazon Simple Storage Service Developer Guide.

\n

For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts\n endpoint hostname prefix and x-amz-outpost-id in your request, see the Examples section.

", + "smithy.api#documentation": "

Returns a list of all Outposts buckets in an Outpost that are owned by the authenticated\n sender of the request. For more information, see Using Amazon S3 on Outposts in the\n Amazon Simple Storage Service User Guide.

\n

For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts\n endpoint hostname prefix and x-amz-outpost-id in your request, see the Examples section.

", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -3152,7 +3641,7 @@ "target": "com.amazonaws.s3control#ListStorageLensConfigurationsResult" }, "traits": { - "smithy.api#documentation": "

Gets a list of Amazon S3 Storage Lens configurations. For more information about S3 Storage Lens, see \n Working with Amazon S3 Storage Lens in the \n Amazon Simple Storage Service Developer Guide.

\n \n

To use this action,\n you must have permission to perform the s3:ListStorageLensConfigurations action. For more\n information, see Setting permissions to use Amazon S3 Storage Lens in the\n Amazon Simple Storage Service Developer Guide.

\n
", + "smithy.api#documentation": "

Gets a list of Amazon S3 Storage Lens configurations. For more information about S3 Storage Lens, see \n Assessing your storage \n activity and usage with Amazon S3 Storage Lens in the \n Amazon Simple Storage Service User Guide.

\n \n

To use this action,\n you must have permission to perform the s3:ListStorageLensConfigurations action. For more\n information, see Setting permissions to use Amazon S3 Storage Lens in the\n Amazon Simple Storage Service User Guide.

\n
", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -3354,6 +3843,192 @@ "smithy.api#error": "client" } }, + "com.amazonaws.s3control#ObjectLambdaAccessPoint": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.s3control#ObjectLambdaAccessPointName", + "traits": { + "smithy.api#documentation": "

The name of the Object Lambda Access Point.

", + "smithy.api#required": {} + } + }, + "ObjectLambdaAccessPointArn": { + "target": "com.amazonaws.s3control#ObjectLambdaAccessPointArn", + "traits": { + "smithy.api#documentation": "

Specifies the ARN for the Object Lambda Access Point.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

An access point with an attached AWS Lambda function used to access transformed data from an Amazon S3 bucket.

" + } + }, + "com.amazonaws.s3control#ObjectLambdaAccessPointArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "arn:[^:]+:s3-object-lambda:[^:]*:\\d{12}:accesspoint/.*" + } + }, + "com.amazonaws.s3control#ObjectLambdaAccessPointList": { + "type": "list", + "member": { + "target": "com.amazonaws.s3control#ObjectLambdaAccessPoint", + "traits": { + "smithy.api#xmlName": "ObjectLambdaAccessPoint" + } + } + }, + "com.amazonaws.s3control#ObjectLambdaAccessPointName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 3, + "max": 45 + }, + "smithy.api#pattern": "^[a-z0-9]([a-z0-9\\-]*[a-z0-9])?$" + } + }, + "com.amazonaws.s3control#ObjectLambdaAllowedFeature": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "GetObject-Range", + "name": "GetObjectRange" + }, + { + "value": "GetObject-PartNumber", + "name": "GetObjectPartNumber" + } + ] + } + }, + "com.amazonaws.s3control#ObjectLambdaAllowedFeaturesList": { + "type": "list", + "member": { + "target": "com.amazonaws.s3control#ObjectLambdaAllowedFeature", + "traits": { + "smithy.api#xmlName": "AllowedFeature" + } + } + }, + "com.amazonaws.s3control#ObjectLambdaConfiguration": { + "type": "structure", + "members": { + "SupportingAccessPoint": { + "target": "com.amazonaws.s3control#ObjectLambdaSupportingAccessPointArn", + "traits": { + "smithy.api#documentation": "

Standard access point associated with the Object Lambda Access Point.

", + "smithy.api#required": {} + } + }, + "CloudWatchMetricsEnabled": { + "target": "com.amazonaws.s3control#Boolean", + "traits": { + "smithy.api#documentation": "

A container for whether the CloudWatch metrics configuration is enabled.

" + } + }, + "AllowedFeatures": { + "target": "com.amazonaws.s3control#ObjectLambdaAllowedFeaturesList", + "traits": { + "smithy.api#documentation": "

A container for allowed features. Valid inputs are GetObject-Range\n and GetObject-PartNumber.

" + } + }, + "TransformationConfigurations": { + "target": "com.amazonaws.s3control#ObjectLambdaTransformationConfigurationsList", + "traits": { + "smithy.api#documentation": "

A container for transformation configurations for an Object Lambda Access Point.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

A configuration used when creating an Object Lambda Access Point.

" + } + }, + "com.amazonaws.s3control#ObjectLambdaContentTransformation": { + "type": "union", + "members": { + "AwsLambda": { + "target": "com.amazonaws.s3control#AwsLambdaTransformation", + "traits": { + "smithy.api#documentation": "

A container for an AWS Lambda function.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A container for AwsLambdaTransformation.

" + } + }, + "com.amazonaws.s3control#ObjectLambdaPolicy": { + "type": "string" + }, + "com.amazonaws.s3control#ObjectLambdaSupportingAccessPointArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "arn:[^:]+:s3:[^:]*:\\d{12}:accesspoint/.*" + } + }, + "com.amazonaws.s3control#ObjectLambdaTransformationConfiguration": { + "type": "structure", + "members": { + "Actions": { + "target": "com.amazonaws.s3control#ObjectLambdaTransformationConfigurationActionsList", + "traits": { + "smithy.api#documentation": "

A container for the action of an Object Lambda Access Point configuration.

", + "smithy.api#required": {} + } + }, + "ContentTransformation": { + "target": "com.amazonaws.s3control#ObjectLambdaContentTransformation", + "traits": { + "smithy.api#documentation": "

A container for the content transformation of an Object Lambda Access Point configuration.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

A configuration used when creating an Object Lambda Access Point transformation.

" + } + }, + "com.amazonaws.s3control#ObjectLambdaTransformationConfigurationAction": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "GetObject", + "name": "GetObject" + } + ] + } + }, + "com.amazonaws.s3control#ObjectLambdaTransformationConfigurationActionsList": { + "type": "list", + "member": { + "target": "com.amazonaws.s3control#ObjectLambdaTransformationConfigurationAction", + "traits": { + "smithy.api#xmlName": "Action" + } + } + }, + "com.amazonaws.s3control#ObjectLambdaTransformationConfigurationsList": { + "type": "list", + "member": { + "target": "com.amazonaws.s3control#ObjectLambdaTransformationConfiguration", + "traits": { + "smithy.api#xmlName": "TransformationConfiguration" + } + } + }, "com.amazonaws.s3control#ObjectLockEnabledForBucket": { "type": "boolean" }, @@ -3377,6 +4052,10 @@ "value": "S3PutObjectTagging", "name": "S3PutObjectTagging" }, + { + "value": "S3DeleteObjectTagging", + "name": "S3DeleteObjectTagging" + }, { "value": "S3InitiateRestoreObject", "name": "S3InitiateRestoreObject" @@ -3418,7 +4097,7 @@ } }, "traits": { - "smithy.api#documentation": "

Indicates whether this access point policy is public. For more information about how Amazon S3 evaluates policies to determine whether they are public, see \n The Meaning of \"Public\" in the \n\t Amazon Simple Storage Service Developer Guide.\n

" + "smithy.api#documentation": "

Indicates whether this access point policy is public. For more information about how Amazon S3 evaluates policies to determine whether they are public, see \n The Meaning of \"Public\" in the \n\t Amazon Simple Storage Service User Guide.\n

" } }, "com.amazonaws.s3control#Prefix": { @@ -3495,6 +4174,52 @@ "com.amazonaws.s3control#PublicAccessBlockEnabled": { "type": "boolean" }, + "com.amazonaws.s3control#PutAccessPointConfigurationForObjectLambda": { + "type": "operation", + "input": { + "target": "com.amazonaws.s3control#PutAccessPointConfigurationForObjectLambdaRequest" + }, + "traits": { + "smithy.api#documentation": "

Replaces configuration for an Object Lambda Access Point.

\n

The following actions are related to PutAccessPointConfigurationForObjectLambda:

\n ", + "smithy.api#endpoint": { + "hostPrefix": "{AccountId}." + }, + "smithy.api#http": { + "method": "PUT", + "uri": "/v20180820/accesspointforobjectlambda/{Name}/configuration", + "code": 200 + } + } + }, + "com.amazonaws.s3control#PutAccessPointConfigurationForObjectLambdaRequest": { + "type": "structure", + "members": { + "AccountId": { + "target": "com.amazonaws.s3control#AccountId", + "traits": { + "smithy.api#documentation": "

The account ID for the account that owns the specified Object Lambda Access Point.

", + "smithy.api#hostLabel": {}, + "smithy.api#httpHeader": "x-amz-account-id", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.s3control#ObjectLambdaAccessPointName", + "traits": { + "smithy.api#documentation": "

The name of the Object Lambda Access Point.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "Configuration": { + "target": "com.amazonaws.s3control#ObjectLambdaConfiguration", + "traits": { + "smithy.api#documentation": "

Object Lambda Access Point configuration document.

", + "smithy.api#required": {} + } + } + } + }, "com.amazonaws.s3control#PutAccessPointPolicy": { "type": "operation", "input": { @@ -3512,6 +4237,52 @@ } } }, + "com.amazonaws.s3control#PutAccessPointPolicyForObjectLambda": { + "type": "operation", + "input": { + "target": "com.amazonaws.s3control#PutAccessPointPolicyForObjectLambdaRequest" + }, + "traits": { + "smithy.api#documentation": "

Creates or replaces resource policy for an Object Lambda Access Point. For an example policy, see \n Creating Object Lambda Access Points in the Amazon Simple Storage Service User Guide.

\n

The following actions are related to PutAccessPointPolicyForObjectLambda:

\n ", + "smithy.api#endpoint": { + "hostPrefix": "{AccountId}." + }, + "smithy.api#http": { + "method": "PUT", + "uri": "/v20180820/accesspointforobjectlambda/{Name}/policy", + "code": 200 + } + } + }, + "com.amazonaws.s3control#PutAccessPointPolicyForObjectLambdaRequest": { + "type": "structure", + "members": { + "AccountId": { + "target": "com.amazonaws.s3control#AccountId", + "traits": { + "smithy.api#documentation": "

The account ID for the account that owns the specified Object Lambda Access Point.

", + "smithy.api#hostLabel": {}, + "smithy.api#httpHeader": "x-amz-account-id", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.s3control#ObjectLambdaAccessPointName", + "traits": { + "smithy.api#documentation": "

The name of the Object Lambda Access Point.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "Policy": { + "target": "com.amazonaws.s3control#ObjectLambdaPolicy", + "traits": { + "smithy.api#documentation": "

Object Lambda Access Point resource policy document.

", + "smithy.api#required": {} + } + } + } + }, "com.amazonaws.s3control#PutAccessPointPolicyRequest": { "type": "structure", "members": { @@ -3535,7 +4306,7 @@ "Policy": { "target": "com.amazonaws.s3control#Policy", "traits": { - "smithy.api#documentation": "

The policy that you want to apply to the specified access point. For more information about access point policies, see Managing data access with Amazon S3 Access Points in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

The policy that you want to apply to the specified access point. For more information about access point policies, see Managing data access with Amazon S3 Access Points in the Amazon Simple Storage Service User Guide.

", "smithy.api#required": {} } } @@ -3547,7 +4318,7 @@ "target": "com.amazonaws.s3control#PutBucketLifecycleConfigurationRequest" }, "traits": { - "smithy.api#documentation": "\n

This action puts a lifecycle configuration to an Amazon S3 on Outposts bucket. To put a lifecycle configuration to an S3 bucket, \n see PutBucketLifecycleConfiguration in the Amazon Simple Storage Service API.\n

\n
\n

Creates a new lifecycle configuration for the Outposts bucket or replaces an existing\n lifecycle configuration. Outposts buckets only support lifecycle configurations that delete/expire objects\n after a certain period of time and abort incomplete multipart uploads. For more information, see Managing Lifecycle Permissions for Amazon S3 on Outposts.

\n

\n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n

The following actions are related to PutBucketLifecycleConfiguration:

\n ", + "smithy.api#documentation": "\n

This action puts a lifecycle configuration to an Amazon S3 on Outposts bucket. To put a lifecycle configuration to an S3 bucket, \n see PutBucketLifecycleConfiguration in the Amazon Simple Storage Service API.\n

\n
\n

Creates a new lifecycle configuration for the S3 on Outposts bucket or replaces an existing\n lifecycle configuration. Outposts buckets only support lifecycle configurations that delete/expire objects\n after a certain period of time and abort incomplete multipart uploads.

\n

\n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n

The following actions are related to PutBucketLifecycleConfiguration:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -3594,7 +4365,7 @@ "target": "com.amazonaws.s3control#PutBucketPolicyRequest" }, "traits": { - "smithy.api#documentation": "\n

This action puts a bucket policy to an Amazon S3 on Outposts bucket. To put a policy on an S3 bucket, \n see PutBucketPolicy in the Amazon Simple Storage Service API.\n

\n
\n

Applies an Amazon S3 bucket policy to an Outposts bucket. For more information, see Using Amazon S3 on Outposts in the\n Amazon Simple Storage Service Developer Guide.

\n

If you are using an identity other than the root user of the AWS account that owns the\n Outposts bucket, the calling identity must have the PutBucketPolicy\n permissions on the specified Outposts bucket and belong to the bucket owner's account in\n order to use this operation.

\n \n

If you don't have PutBucketPolicy permissions, Amazon S3 returns a 403 Access Denied error. If you have the correct permissions, \n but you're not using an identity that belongs to the bucket owner's account, Amazon S3 returns a 405 Method Not Allowed error.

\n \n \n

As a security precaution, the root user of the AWS account that owns a bucket can always use this operation, even if the policy \n explicitly denies the root user the ability to perform this action.\n

\n
\n \n \n

For more information about bucket policies, see Using Bucket Policies and User Policies.

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to PutBucketPolicy:

\n ", + "smithy.api#documentation": "\n

This action puts a bucket policy to an Amazon S3 on Outposts bucket. To put a policy on an S3 bucket, \n see PutBucketPolicy in the Amazon Simple Storage Service API.\n

\n
\n

Applies an Amazon S3 bucket policy to an Outposts bucket. For more information, see Using Amazon S3 on Outposts in the\n Amazon Simple Storage Service User Guide.

\n

If you are using an identity other than the root user of the AWS account that owns the\n Outposts bucket, the calling identity must have the PutBucketPolicy\n permissions on the specified Outposts bucket and belong to the bucket owner's account in\n order to use this action.

\n \n

If you don't have PutBucketPolicy permissions, Amazon S3 returns a 403 Access Denied error. If you have the correct permissions, \n but you're not using an identity that belongs to the bucket owner's account, Amazon S3 returns a 405 Method Not Allowed error.

\n \n \n

As a security precaution, the root user of the AWS account that owns a bucket can always use this action, even if the policy \n explicitly denies the root user the ability to perform this action.\n

\n
\n \n \n

For more information about bucket policies, see Using Bucket Policies and User Policies.

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to PutBucketPolicy:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -3648,7 +4419,7 @@ "target": "com.amazonaws.s3control#PutBucketTaggingRequest" }, "traits": { - "smithy.api#documentation": "\n

This action puts tags on an Amazon S3 on Outposts bucket. To put tags on an S3 bucket, see\n PutBucketTagging in the Amazon Simple Storage Service API.

\n
\n

Sets the tags for an Outposts bucket. For more information, see Using Amazon S3 on Outposts in the\n Amazon Simple Storage Service Developer Guide.

\n

Use tags to organize your AWS bill to reflect your own cost structure. To do this, sign up to get your \n AWS account bill with tag key values included. Then, to see the cost of combined resources, organize your \n billing information according to resources with the same tag key values. For example, you can tag several \n resources with a specific application name, and then organize your billing information to see the total cost \n of that application across several services. For more information, see \n Cost Allocation and Tagging.

\n \n \n

Within a bucket, if you add a tag that has the same key as an existing tag, the new value overwrites \n the old value. For more information, see Using Cost Allocation in Amazon S3 \n Bucket Tags.

\n
\n

To use this operation, you must have permissions to perform the\n s3-outposts:PutBucketTagging action. The Outposts bucket owner has this\n permission by default and can grant this permission to others. For more information about\n permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3\n Resources.

\n \n

\n PutBucketTagging has the following special errors:

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to PutBucketTagging:

\n ", + "smithy.api#documentation": "\n

This action puts tags on an Amazon S3 on Outposts bucket. To put tags on an S3 bucket, see\n PutBucketTagging in the Amazon Simple Storage Service API.

\n
\n

Sets the tags for an S3 on Outposts bucket. For more information, see Using Amazon S3 on Outposts in the\n Amazon Simple Storage Service User Guide.

\n

Use tags to organize your AWS bill to reflect your own cost structure. To do this, sign up to get your \n AWS account bill with tag key values included. Then, to see the cost of combined resources, organize your \n billing information according to resources with the same tag key values. For example, you can tag several \n resources with a specific application name, and then organize your billing information to see the total cost \n of that application across several services. For more information, see \n Cost \n allocation and tagging.

\n \n \n

Within a bucket, if you add a tag that has the same key as an existing tag, the new value overwrites \n the old value. For more information, see \n Using cost allocation in Amazon S3 bucket tags.

\n
\n

To use this action, you must have permissions to perform the\n s3-outposts:PutBucketTagging action. The Outposts bucket owner has this\n permission by default and can grant this permission to others. For more information about\n permissions, see Permissions Related to Bucket Subresource Operations and Managing access permissions to your Amazon S3\n resources.

\n \n

\n PutBucketTagging has the following special errors:

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to PutBucketTagging:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -3713,7 +4484,7 @@ } ], "traits": { - "smithy.api#documentation": "

Sets the supplied tag-set on an S3 Batch Operations job.

\n

A tag is a key-value pair. You can associate S3 Batch Operations tags with any job by sending\n a PUT request against the tagging subresource that is associated with the job. To modify\n the existing tag set, you can either replace the existing tag set entirely, or make changes\n within the existing tag set by retrieving the existing tag set using GetJobTagging, modify that tag set, and use this action to replace the\n tag set with the one you modified. For more information, see Controlling access and\n labeling jobs using tags in the Amazon Simple Storage Service Developer Guide.

\n

\n \n \n \n

\n

To use this operation, you must have permission to perform the s3:PutJobTagging action.

\n

Related actions include:

\n ", + "smithy.api#documentation": "

Sets the supplied tag-set on an S3 Batch Operations job.

\n

A tag is a key-value pair. You can associate S3 Batch Operations tags with any job by sending\n a PUT request against the tagging subresource that is associated with the job. To modify\n the existing tag set, you can either replace the existing tag set entirely, or make changes\n within the existing tag set by retrieving the existing tag set using GetJobTagging, modify that tag set, and use this action to replace the\n tag set with the one you modified. For more information, see Controlling access and\n labeling jobs using tags in the Amazon Simple Storage Service User Guide.

\n

\n \n \n \n

\n

To use this action, you must have permission to perform the s3:PutJobTagging action.

\n

Related actions include:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -3802,7 +4573,7 @@ "target": "com.amazonaws.s3control#PutStorageLensConfigurationRequest" }, "traits": { - "smithy.api#documentation": "

Puts an Amazon S3 Storage Lens configuration. For more information about S3 Storage Lens, see Working with\n Amazon S3 Storage Lens in the Amazon Simple Storage Service Developer Guide.

\n \n

To use this action,\n you must have permission to perform the s3:PutStorageLensConfiguration action. For more\n information, see Setting permissions to use Amazon S3 Storage Lens in the\n Amazon Simple Storage Service Developer Guide.

\n
", + "smithy.api#documentation": "

Puts an Amazon S3 Storage Lens configuration. For more information about S3 Storage Lens, see Working with\n Amazon S3 Storage Lens in the Amazon Simple Storage Service User Guide.

\n \n

To use this action,\n you must have permission to perform the s3:PutStorageLensConfiguration action. For more\n information, see Setting permissions to use Amazon S3 Storage Lens in the\n Amazon Simple Storage Service User Guide.

\n
", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -3857,7 +4628,7 @@ "target": "com.amazonaws.s3control#PutStorageLensConfigurationTaggingResult" }, "traits": { - "smithy.api#documentation": "

Put or replace tags on an existing Amazon S3 Storage Lens configuration. For more information about S3 Storage Lens, see \n Working with Amazon S3 Storage Lens in the \n Amazon Simple Storage Service Developer Guide.

\n \n

To use this action,\n you must have permission to perform the s3:PutStorageLensConfigurationTagging action. For more\n information, see Setting permissions to use Amazon S3 Storage Lens in the\n Amazon Simple Storage Service Developer Guide.

\n
", + "smithy.api#documentation": "

Put or replace tags on an existing Amazon S3 Storage Lens configuration. For more information about S3 Storage Lens, see \n Assessing your storage \n activity and usage with Amazon S3 Storage Lens in the \n Amazon Simple Storage Service User Guide.

\n \n

To use this action,\n you must have permission to perform the s3:PutStorageLensConfigurationTagging action. For more\n information, see Setting permissions to use Amazon S3 Storage Lens in the\n Amazon Simple Storage Service User Guide.

\n
", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -4246,7 +5017,14 @@ } }, "traits": { - "smithy.api#documentation": "

Contains the configuration parameters for a PUT Copy object operation. S3 Batch Operations passes each value through to the underlying PUT Copy object\n API. For more information about the parameters for this operation, see PUT Object - Copy.

" + "smithy.api#documentation": "

Contains the configuration parameters for a PUT Copy object operation. S3 Batch Operations passes every object to the underlying PUT Copy object\n API. For more information about the parameters for this operation, see PUT Object - Copy.

" + } + }, + "com.amazonaws.s3control#S3DeleteObjectTaggingOperation": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#documentation": "

Contains no configuration parameters because the DELETE Object tagging API only accepts the bucket name and key name as parameters, which are defined in the job's manifest.

" } }, "com.amazonaws.s3control#S3ExpirationInDays": { @@ -4349,18 +5127,19 @@ "ExpirationInDays": { "target": "com.amazonaws.s3control#S3ExpirationInDays", "traits": { - "smithy.api#documentation": "

" + "smithy.api#box": {}, + "smithy.api#documentation": "

This argument specifies how long the S3 Glacier or S3 Glacier Deep Archive object remains available in Amazon S3.\n S3 Initiate Restore Object jobs that\n target S3 Glacier and S3 Glacier Deep Archive objects require ExpirationInDays set to 1\n or greater.

\n

Conversely, do not set ExpirationInDays when\n creating S3 Initiate Restore Object jobs that target\n S3 Intelligent-Tiering Archive Access and Deep Archive Access tier objects. Objects in\n S3 Intelligent-Tiering archive access tiers are not subject to restore expiry, so\n specifying ExpirationInDays results in restore request failure.

\n

S3 Batch Operations jobs can operate either on S3 Glacier and S3 Glacier Deep Archive storage class\n objects or on S3 Intelligent-Tiering Archive Access and Deep Archive Access storage tier\n objects, but not both types in the same job. If you need to restore objects of both types\n you must create separate Batch Operations jobs.

" } }, "GlacierJobTier": { "target": "com.amazonaws.s3control#S3GlacierJobTier", "traits": { - "smithy.api#documentation": "

" + "smithy.api#documentation": "

S3 Batch Operations supports STANDARD and BULK retrieval tiers,\n but not the EXPEDITED retrieval tier.

" } } }, "traits": { - "smithy.api#documentation": "

Contains the configuration parameters for an Initiate Glacier Restore job.\n S3 Batch Operations passes each value through to the underlying POST Object restore API. For\n more information about the parameters for this operation, see RestoreObject.

" + "smithy.api#documentation": "

Contains the configuration parameters for an S3 Initiate Restore Object job.\n S3 Batch Operations passes every object to the underlying POST Object restore API. For\n more information about the parameters for this operation, see RestoreObject.

" } }, "com.amazonaws.s3control#S3KeyArnString": { @@ -4605,7 +5384,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains the S3 Object Lock retention mode to be applied to all objects in the\n S3 Batch Operations job. If you don't provide Mode and RetainUntilDate\n data types in your operation, you will remove the retention from your objects. For more\n information, see Using S3 Object Lock retention\n with S3 Batch Operations in the Amazon Simple Storage Service Developer Guide.

" + "smithy.api#documentation": "

Contains the S3 Object Lock retention mode to be applied to all objects in the\n S3 Batch Operations job. If you don't provide Mode and RetainUntilDate\n data types in your operation, you will remove the retention from your objects. For more\n information, see Using S3 Object Lock retention\n with S3 Batch Operations in the Amazon Simple Storage Service User Guide.

" } }, "com.amazonaws.s3control#S3SSEAlgorithm": { @@ -4634,7 +5413,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains the configuration parameters for a Set Object ACL operation. S3 Batch Operations passes each value through to the underlying PUT Object acl API.\n For more information about the parameters for this operation, see PUT Object acl.

" + "smithy.api#documentation": "

Contains the configuration parameters for a Set Object ACL operation. S3 Batch Operations passes every object to the underlying PUT Object acl API.\n For more information about the parameters for this operation, see PUT Object acl.

" } }, "com.amazonaws.s3control#S3SetObjectLegalHoldOperation": { @@ -4649,7 +5428,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains the configuration for an S3 Object Lock legal hold operation that an\n S3 Batch Operations job passes each object through to the underlying\n PutObjectLegalHold API. For more information, see Using\n S3 Object Lock legal hold with S3 Batch Operations in the\n Amazon Simple Storage Service Developer Guide.

" + "smithy.api#documentation": "

Contains the configuration for an S3 Object Lock legal hold operation that an\n S3 Batch Operations job passes every object to the underlying\n PutObjectLegalHold API. For more information, see Using\n S3 Object Lock legal hold with S3 Batch Operations in the\n Amazon Simple Storage Service User Guide.

" } }, "com.amazonaws.s3control#S3SetObjectRetentionOperation": { @@ -4665,13 +5444,13 @@ "Retention": { "target": "com.amazonaws.s3control#S3Retention", "traits": { - "smithy.api#documentation": "

Contains the Object Lock retention mode to be applied to all objects in the Batch Operations\n job. For more information, see Using S3 Object Lock retention\n with S3 Batch Operations in the Amazon Simple Storage Service Developer Guide.

", + "smithy.api#documentation": "

Contains the Object Lock retention mode to be applied to all objects in the Batch Operations\n job. For more information, see Using S3 Object Lock retention\n with S3 Batch Operations in the Amazon Simple Storage Service User Guide.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

Contains the configuration parameters for the Object Lock retention action for an\n S3 Batch Operations job. Batch Operations passes each value through to the underlying\n PutObjectRetention API. For more information, see Using\n S3 Object Lock retention with S3 Batch Operations in the\n Amazon Simple Storage Service Developer Guide.

" + "smithy.api#documentation": "

Contains the configuration parameters for the Object Lock retention action for an\n S3 Batch Operations job. Batch Operations passes every object to the underlying\n PutObjectRetention API. For more information, see Using\n S3 Object Lock retention with S3 Batch Operations in the\n Amazon Simple Storage Service User Guide.

" } }, "com.amazonaws.s3control#S3SetObjectTaggingOperation": { @@ -4685,7 +5464,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains the configuration parameters for a Set Object Tagging operation. S3 Batch Operations passes each value through to the underlying PUT Object tagging API.\n For more information about the parameters for this operation, see PUT Object tagging.

" + "smithy.api#documentation": "

Contains the configuration parameters for a Set Object Tagging operation. S3 Batch Operations passes every object to the underlying PUT Object tagging API.\n For more information about the parameters for this operation, see PUT Object tagging.

" } }, "com.amazonaws.s3control#S3StorageClass": { @@ -4917,7 +5696,7 @@ "S3BucketDestination": { "target": "com.amazonaws.s3control#S3BucketDestination", "traits": { - "smithy.api#documentation": "

A container for the bucket where the S3 Storage Lens metrics export will be located.

", + "smithy.api#documentation": "

A container for the bucket where the S3 Storage Lens metrics export will be located.

\n \n

This bucket must be located in the same Region as the storage lens configuration.

\n
", "smithy.api#required": {} } } @@ -5026,7 +5805,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:=+\\-@%]*)$" + "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@%]*)$" } }, "com.amazonaws.s3control#TagValueString": { @@ -5036,7 +5815,7 @@ "min": 0, "max": 1024 }, - "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:=+\\-@%]*)$" + "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@%]*)$" } }, "com.amazonaws.s3control#Tagging": { @@ -5104,7 +5883,7 @@ } }, "traits": { - "smithy.api#documentation": "

Specifies when an object transitions to a specified storage class. For more information\n about Amazon S3 Lifecycle configuration rules, see \n Transitioning objects using Amazon S3 Lifecycle in the\n Amazon Simple Storage Service Developer Guide.

" + "smithy.api#documentation": "

Specifies when an object transitions to a specified storage class. For more information\n about Amazon S3 Lifecycle configuration rules, see \n Transitioning objects using Amazon S3 Lifecycle in the\n Amazon Simple Storage Service User Guide.

" } }, "com.amazonaws.s3control#TransitionList": { @@ -5166,7 +5945,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates an existing S3 Batch Operations job's priority. For more information, see S3 Batch Operations in the\n Amazon Simple Storage Service Developer Guide.

\n

\n

Related actions include:

\n ", + "smithy.api#documentation": "

Updates an existing S3 Batch Operations job's priority. For more information, see S3 Batch Operations in the\n Amazon Simple Storage Service User Guide.

\n

\n

Related actions include:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -5183,7 +5962,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

", + "smithy.api#documentation": "

The AWS account ID associated with the S3 Batch Operations job.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -5252,7 +6031,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the status for the specified job. Use this operation to confirm that you want to\n run a job or to cancel an existing job. For more information, see S3 Batch Operations in the\n Amazon Simple Storage Service Developer Guide.

\n

\n

Related actions include:

\n ", + "smithy.api#documentation": "

Updates the status for the specified job. Use this action to confirm that you want to\n run a job or to cancel an existing job. For more information, see S3 Batch Operations in the\n Amazon Simple Storage Service User Guide.

\n

\n

Related actions include:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -5269,7 +6048,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

", + "smithy.api#documentation": "

The AWS account ID associated with the S3 Batch Operations job.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsHttpPresignURLClientGenerator.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsHttpPresignURLClientGenerator.java index 7f2650a5595..da00aa2ffed 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsHttpPresignURLClientGenerator.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsHttpPresignURLClientGenerator.java @@ -344,6 +344,7 @@ private void writeConvertToPresignMiddleware( writer.write("stack.Finalize.Clear()"); writer.write("stack.Deserialize.Clear()"); writer.write("stack.Build.Remove(($P)(nil).ID())", requestInvocationID); + writer.write("stack.Build.Remove($S)", "UserAgent"); Symbol middlewareOptionsSymbol = SymbolUtils.createValueSymbolBuilder( "PresignHTTPRequestMiddlewareOptions", AwsGoDependency.AWS_SIGNER_V4).build(); diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/S3ContentSHA256Header.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/S3ContentSHA256Header.java index eb3ac1c0680..31cca220f2b 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/S3ContentSHA256Header.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/S3ContentSHA256Header.java @@ -2,6 +2,7 @@ import java.util.List; import software.amazon.smithy.aws.go.codegen.AwsGoDependency; +import software.amazon.smithy.aws.traits.auth.UnsignedPayloadTrait; import software.amazon.smithy.go.codegen.SymbolUtils; import software.amazon.smithy.go.codegen.integration.GoIntegration; import software.amazon.smithy.go.codegen.integration.MiddlewareRegistrar; @@ -26,8 +27,15 @@ public byte getOrder() { public List getClientPlugins() { return ListUtils.of( RuntimeClientPlugin.builder() - .servicePredicate((model, service) -> S3ModelUtils.isServiceS3(model, service) - || S3ModelUtils.isServiceS3Control(model, service)) + // Only add the middleware if UnsignedPayloadTrait is not specified, as this middleware + // will have already been added. + .operationPredicate((model, service, operation) -> { + if (!(S3ModelUtils.isServiceS3(model, service) + || S3ModelUtils.isServiceS3Control(model, service))) { + return false; + } + return !operation.hasTrait(UnsignedPayloadTrait.class); + }) .registerMiddleware(MiddlewareRegistrar.builder() .resolvedFunction(SymbolUtils.createValueSymbolBuilder( "AddContentSHA256HeaderMiddleware", diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/S3UpdateEndpoint.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/S3UpdateEndpoint.java index ce1c8a65ab4..83114cc2cb2 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/S3UpdateEndpoint.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/S3UpdateEndpoint.java @@ -200,6 +200,8 @@ private static class S3 { "ListBuckets", "CreateBucket", "DeleteBucket" ); + private final Set TARGET_OBJECT_LAMBDAS = SetUtils.of("WriteGetObjectResponse"); + private S3(ServiceShape service) { this.service = service; } @@ -285,14 +287,17 @@ private void writeMiddlewareHelper( addMiddlewareFuncName(symbolProvider.toSymbol(operationShape).getName(), UPDATE_ENDPOINT_INTERNAL_ADDER), () -> { writer.write("return $T(stack, $T{ \n" - + "Accessor : $T{\n " - + "GetBucketFromInput: $L,\n}, \n" - + "UsePathStyle: options.$L,\n " - + "UseAccelerate: options.$L,\n " - + "SupportsAccelerate: $L,\n " - + "EndpointResolver: options.EndpointResolver,\n " + + "Accessor : $T{\n" + + "GetBucketFromInput: $L,\n},\n" + + "UsePathStyle: options.$L,\n" + + "UseAccelerate: options.$L,\n" + + "SupportsAccelerate: $L,\n" + + "TargetS3ObjectLambda: $L,\n" + + "EndpointResolver: options.EndpointResolver,\n" + "EndpointResolverOptions: options.EndpointOptions,\n" - + "UseDualstack: options.$L, \n UseARNRegion: options.$L, \n })", + + "UseDualstack: options.$L,\n" + + "UseARNRegion: options.$L,\n" + + "})", SymbolUtils.createValueSymbolBuilder(UPDATE_ENDPOINT_INTERNAL_ADDER, AwsCustomGoDependency.S3_CUSTOMIZATION).build(), SymbolUtils.createValueSymbolBuilder(UPDATE_ENDPOINT_INTERNAL_OPTIONS, @@ -304,6 +309,7 @@ private void writeMiddlewareHelper( USE_PATH_STYLE_OPTION, USE_ACCELERATE_OPTION, !NOT_SUPPORT_ACCELERATE.contains(operationName), + TARGET_OBJECT_LAMBDAS.contains(operationName), USE_DUALSTACK_OPTION, USE_ARNREGION_OPTION ); diff --git a/config/go.mod b/config/go.mod index 2f04d176203..c18e37b374b 100644 --- a/config/go.mod +++ b/config/go.mod @@ -6,7 +6,6 @@ require ( github.com/aws/aws-sdk-go-v2 v1.2.1 github.com/aws/aws-sdk-go-v2/credentials v1.1.2 github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.0.3 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.3 github.com/aws/aws-sdk-go-v2/service/sso v1.1.2 github.com/aws/aws-sdk-go-v2/service/sts v1.1.2 github.com/aws/smithy-go v1.2.0 diff --git a/credentials/go.mod b/credentials/go.mod index ffbe291fcab..0e945c822cd 100644 --- a/credentials/go.mod +++ b/credentials/go.mod @@ -5,7 +5,6 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.2.1 github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.0.3 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.3 // indirect github.com/aws/aws-sdk-go-v2/service/sso v1.1.2 github.com/aws/aws-sdk-go-v2/service/sts v1.1.2 github.com/aws/smithy-go v1.2.0 diff --git a/example/service/s3/listObjects/go.mod b/example/service/s3/listObjects/go.mod index 3d9c870b1a5..d9c8b308035 100644 --- a/example/service/s3/listObjects/go.mod +++ b/example/service/s3/listObjects/go.mod @@ -3,16 +3,8 @@ module github.com/aws/aws-sdk-go-v2/example/service/s3/listObjects go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v1.2.1 github.com/aws/aws-sdk-go-v2/config v1.1.2 - github.com/aws/aws-sdk-go-v2/credentials v1.1.2 - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.0.3 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.0.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.3 - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.1.1 // indirect github.com/aws/aws-sdk-go-v2/service/s3 v1.2.1 - github.com/aws/aws-sdk-go-v2/service/sso v1.1.2 - github.com/aws/aws-sdk-go-v2/service/sts v1.1.2 ) replace github.com/aws/aws-sdk-go-v2/config => ../../../../config/ diff --git a/example/service/s3/usingPrivateLink/go.mod b/example/service/s3/usingPrivateLink/go.mod index 98d499989d6..1936618bcdc 100644 --- a/example/service/s3/usingPrivateLink/go.mod +++ b/example/service/s3/usingPrivateLink/go.mod @@ -5,15 +5,8 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.2.1 github.com/aws/aws-sdk-go-v2/config v1.1.2 - github.com/aws/aws-sdk-go-v2/credentials v1.1.2 - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.0.3 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.0.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.3 - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.1.1 // indirect github.com/aws/aws-sdk-go-v2/service/s3 v1.2.1 github.com/aws/aws-sdk-go-v2/service/s3control v1.2.1 - github.com/aws/aws-sdk-go-v2/service/sso v1.1.2 - github.com/aws/aws-sdk-go-v2/service/sts v1.1.2 ) replace github.com/aws/aws-sdk-go-v2/config => ../../../../config/ diff --git a/feature/dynamodb/attributevalue/go.mod b/feature/dynamodb/attributevalue/go.mod index 7c3741e46a2..fb2f0bd1600 100644 --- a/feature/dynamodb/attributevalue/go.mod +++ b/feature/dynamodb/attributevalue/go.mod @@ -6,7 +6,6 @@ require ( github.com/aws/aws-sdk-go-v2 v1.2.1 github.com/aws/aws-sdk-go-v2/service/dynamodb v1.1.2 github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.1.2 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.0.2 github.com/google/go-cmp v0.5.4 ) diff --git a/feature/dynamodb/expression/go.mod b/feature/dynamodb/expression/go.mod index a58cb20dfba..17dbf60f11b 100644 --- a/feature/dynamodb/expression/go.mod +++ b/feature/dynamodb/expression/go.mod @@ -6,8 +6,6 @@ require ( github.com/aws/aws-sdk-go-v2 v1.2.1 github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.0.3 github.com/aws/aws-sdk-go-v2/service/dynamodb v1.1.2 - github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.1.2 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.0.2 // indirect ) replace ( diff --git a/feature/dynamodbstreams/attributevalue/go.mod b/feature/dynamodbstreams/attributevalue/go.mod index b892a660b33..1457918d041 100644 --- a/feature/dynamodbstreams/attributevalue/go.mod +++ b/feature/dynamodbstreams/attributevalue/go.mod @@ -6,7 +6,6 @@ require ( github.com/aws/aws-sdk-go-v2 v1.2.1 github.com/aws/aws-sdk-go-v2/service/dynamodb v1.1.2 github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.1.2 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.0.2 github.com/google/go-cmp v0.5.4 ) diff --git a/feature/s3/manager/arn.go b/feature/s3/manager/arn.go new file mode 100644 index 00000000000..d3b828979fc --- /dev/null +++ b/feature/s3/manager/arn.go @@ -0,0 +1,23 @@ +package manager + +import ( + "fmt" + "github.com/aws/aws-sdk-go-v2/aws/arn" +) + +func validateSupportedARNType(bucket string) error { + if !arn.IsARN(bucket) { + return nil + } + + parsedARN, err := arn.Parse(bucket) + if err != nil { + return err + } + + if parsedARN.Service == "s3-object-lambda" { + return fmt.Errorf("manager does not support s3-object-lambda service ARNs") + } + + return nil +} diff --git a/feature/s3/manager/download.go b/feature/s3/manager/download.go index fa16ba5d2fe..5eb52bc9ed2 100644 --- a/feature/s3/manager/download.go +++ b/feature/s3/manager/download.go @@ -172,6 +172,10 @@ func NewDownloader(c DownloadAPIClient, options ...func(*Downloader)) *Downloade // to perform a single GetObjectInput request for that object's range. This will // caused the part size, and concurrency configurations to be ignored. func (d Downloader) Download(ctx context.Context, w io.WriterAt, input *s3.GetObjectInput, options ...func(*Downloader)) (n int64, err error) { + if err := validateSupportedARNType(aws.ToString(input.Bucket)); err != nil { + return 0, err + } + impl := downloader{w: w, in: input, cfg: d, ctx: ctx} // Copy ClientOptions diff --git a/feature/s3/manager/download_test.go b/feature/s3/manager/download_test.go index 1dc6e2da9e6..adb8d5405f3 100644 --- a/feature/s3/manager/download_test.go +++ b/feature/s3/manager/download_test.go @@ -720,6 +720,53 @@ func TestDownloadBufferStrategy_Errors(t *testing.T) { } } +func TestDownloaderValidARN(t *testing.T) { + cases := map[string]struct { + input s3.GetObjectInput + wantErr bool + }{ + "standard bucket": { + input: s3.GetObjectInput{ + Bucket: aws.String("test-bucket"), + Key: aws.String("test-key"), + }, + }, + "accesspoint": { + input: s3.GetObjectInput{ + Bucket: aws.String("arn:aws:s3:us-west-2:123456789012:accesspoint/myap"), + Key: aws.String("test-key"), + }, + }, + "outpost accesspoint": { + input: s3.GetObjectInput{ + Bucket: aws.String("arn:aws:s3-outposts:us-west-2:012345678901:outpost/op-1234567890123456/accesspoint/myaccesspoint"), + Key: aws.String("test-key"), + }, + }, + "s3-object-lambda accesspoint": { + input: s3.GetObjectInput{ + Bucket: aws.String("arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint/myap"), + }, + wantErr: true, + }, + } + + for name, tt := range cases { + t.Run(name, func(t *testing.T) { + client, _ := newDownloadNonRangeClient(buf2MB) + + downloader := manager.NewDownloader(client, func(downloader *manager.Downloader) { + downloader.Concurrency = 1 + }) + + _, err := downloader.Download(context.Background(), &awstesting.DiscardAt{}, &tt.input) + if (err != nil) != tt.wantErr { + t.Errorf("err: %v, wantErr: %v", err, tt.wantErr) + } + }) + } +} + type recordedWriterReadFromProvider struct { callbacksVended uint32 callbacksExecuted uint32 diff --git a/feature/s3/manager/go.mod b/feature/s3/manager/go.mod index 8f3b4eb1475..ef025446b38 100644 --- a/feature/s3/manager/go.mod +++ b/feature/s3/manager/go.mod @@ -5,14 +5,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.2.1 github.com/aws/aws-sdk-go-v2/config v1.1.2 - github.com/aws/aws-sdk-go-v2/credentials v1.1.2 - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.0.3 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.0.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.3 - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.1.1 // indirect github.com/aws/aws-sdk-go-v2/service/s3 v1.2.1 - github.com/aws/aws-sdk-go-v2/service/sso v1.1.2 - github.com/aws/aws-sdk-go-v2/service/sts v1.1.2 github.com/aws/smithy-go v1.2.0 github.com/google/go-cmp v0.5.4 ) diff --git a/feature/s3/manager/upload.go b/feature/s3/manager/upload.go index b08206bd259..491ab2a078e 100644 --- a/feature/s3/manager/upload.go +++ b/feature/s3/manager/upload.go @@ -4,6 +4,7 @@ import ( "bytes" "context" "fmt" + "github.com/aws/aws-sdk-go-v2/aws" "io" "net/http" "sort" @@ -275,6 +276,10 @@ func (u *uploader) upload() (*UploadOutput, error) { // init will initialize all default options. func (u *uploader) init() error { + if err := validateSupportedARNType(aws.ToString(u.in.Bucket)); err != nil { + return err + } + if u.cfg.Concurrency == 0 { u.cfg.Concurrency = DefaultUploadConcurrency } diff --git a/feature/s3/manager/upload_test.go b/feature/s3/manager/upload_test.go index f843e21cbfe..1effe363527 100644 --- a/feature/s3/manager/upload_test.go +++ b/feature/s3/manager/upload_test.go @@ -963,6 +963,57 @@ func TestUploadBufferStrategy(t *testing.T) { } } +func TestUploaderValidARN(t *testing.T) { + cases := map[string]struct { + input s3.PutObjectInput + wantErr bool + }{ + "standard bucket": { + input: s3.PutObjectInput{ + Bucket: aws.String("test-bucket"), + Key: aws.String("test-key"), + Body: bytes.NewReader([]byte("test body content")), + }, + }, + "accesspoint": { + input: s3.PutObjectInput{ + Bucket: aws.String("arn:aws:s3:us-west-2:123456789012:accesspoint/myap"), + Key: aws.String("test-key"), + Body: bytes.NewReader([]byte("test body content")), + }, + }, + "outpost accesspoint": { + input: s3.PutObjectInput{ + Bucket: aws.String("arn:aws:s3-outposts:us-west-2:012345678901:outpost/op-1234567890123456/accesspoint/myaccesspoint"), + Key: aws.String("test-key"), + Body: bytes.NewReader([]byte("test body content")), + }, + }, + "s3-object-lambda accesspoint": { + input: s3.PutObjectInput{ + Bucket: aws.String("arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint/myap"), + Key: aws.String("test-key"), + Body: bytes.NewReader([]byte("test body content")), + }, + wantErr: true, + }, + } + + for name, tt := range cases { + t.Run(name, func(t *testing.T) { + client, _, _ := s3testing.NewUploadLoggingClient(nil) + client.ConsumeBody = true + + uploader := manager.NewUploader(client) + + _, err := uploader.Upload(context.Background(), &tt.input) + if (err != nil) != tt.wantErr { + t.Errorf("err: %v, wantErr: %v", err, tt.wantErr) + } + }) + } +} + type mockS3UploadServer struct { *http.ServeMux diff --git a/service/acm/go.sum b/service/acm/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/acm/go.sum +++ b/service/acm/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/acmpca/go.sum b/service/acmpca/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/acmpca/go.sum +++ b/service/acmpca/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/appstream/go.sum b/service/appstream/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/appstream/go.sum +++ b/service/appstream/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/autoscaling/go.sum b/service/autoscaling/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/autoscaling/go.sum +++ b/service/autoscaling/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/cloudformation/go.sum b/service/cloudformation/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/cloudformation/go.sum +++ b/service/cloudformation/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/cloudfront/go.sum b/service/cloudfront/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/cloudfront/go.sum +++ b/service/cloudfront/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/cloudwatch/go.sum b/service/cloudwatch/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/cloudwatch/go.sum +++ b/service/cloudwatch/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/databasemigrationservice/go.sum b/service/databasemigrationservice/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/databasemigrationservice/go.sum +++ b/service/databasemigrationservice/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/docdb/api_client.go b/service/docdb/api_client.go index 2cf5f9d0430..06d4fc6f60d 100644 --- a/service/docdb/api_client.go +++ b/service/docdb/api_client.go @@ -327,6 +327,7 @@ func (c presignConverter) convertToPresignMiddleware(stack *middleware.Stack, op stack.Finalize.Clear() stack.Deserialize.Clear() stack.Build.Remove((*awsmiddleware.ClientRequestID)(nil).ID()) + stack.Build.Remove("UserAgent") pmw := v4.NewPresignHTTPRequestMiddleware(v4.PresignHTTPRequestMiddlewareOptions{ CredentialsProvider: options.Credentials, Presigner: c.Presigner, diff --git a/service/docdb/go.sum b/service/docdb/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/docdb/go.sum +++ b/service/docdb/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/dynamodb/go.sum b/service/dynamodb/go.sum index 2c31a5feaab..9a086ff90ca 100644 --- a/service/dynamodb/go.sum +++ b/service/dynamodb/go.sum @@ -14,6 +14,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/ec2/api_client.go b/service/ec2/api_client.go index f78ce44000a..369f0516924 100644 --- a/service/ec2/api_client.go +++ b/service/ec2/api_client.go @@ -347,6 +347,7 @@ func (c presignConverter) convertToPresignMiddleware(stack *middleware.Stack, op stack.Finalize.Clear() stack.Deserialize.Clear() stack.Build.Remove((*awsmiddleware.ClientRequestID)(nil).ID()) + stack.Build.Remove("UserAgent") pmw := v4.NewPresignHTTPRequestMiddleware(v4.PresignHTTPRequestMiddlewareOptions{ CredentialsProvider: options.Credentials, Presigner: c.Presigner, diff --git a/service/ec2/go.sum b/service/ec2/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/ec2/go.sum +++ b/service/ec2/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/ecr/go.sum b/service/ecr/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/ecr/go.sum +++ b/service/ecr/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/ecs/go.sum b/service/ecs/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/ecs/go.sum +++ b/service/ecs/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/eks/go.sum b/service/eks/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/eks/go.sum +++ b/service/eks/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/elasticache/go.sum b/service/elasticache/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/elasticache/go.sum +++ b/service/elasticache/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/elasticbeanstalk/go.sum b/service/elasticbeanstalk/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/elasticbeanstalk/go.sum +++ b/service/elasticbeanstalk/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/elasticloadbalancing/go.sum b/service/elasticloadbalancing/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/elasticloadbalancing/go.sum +++ b/service/elasticloadbalancing/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/elastictranscoder/go.sum b/service/elastictranscoder/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/elastictranscoder/go.sum +++ b/service/elastictranscoder/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/emr/go.sum b/service/emr/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/emr/go.sum +++ b/service/emr/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/internal/benchmark/go.mod b/service/internal/benchmark/go.mod index a371a3f7e0a..16bcd2fa0ce 100644 --- a/service/internal/benchmark/go.mod +++ b/service/internal/benchmark/go.mod @@ -6,7 +6,6 @@ require ( github.com/aws/aws-sdk-go v1.34.33 github.com/aws/aws-sdk-go-v2 v1.2.1 github.com/aws/aws-sdk-go-v2/service/dynamodb v1.1.2 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.0.2 // indirect github.com/aws/aws-sdk-go-v2/service/lexruntimeservice v1.1.2 github.com/aws/smithy-go v1.2.0 ) diff --git a/service/internal/integrationtest/go.mod b/service/internal/integrationtest/go.mod index 3c9f3e77fec..bc1b57d6150 100644 --- a/service/internal/integrationtest/go.mod +++ b/service/internal/integrationtest/go.mod @@ -3,8 +3,6 @@ module github.com/aws/aws-sdk-go-v2/service/internal/integrationtest require ( github.com/aws/aws-sdk-go-v2 v1.2.1 github.com/aws/aws-sdk-go-v2/config v1.1.2 - github.com/aws/aws-sdk-go-v2/credentials v1.1.2 - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.0.3 github.com/aws/aws-sdk-go-v2/service/acm v1.1.2 github.com/aws/aws-sdk-go-v2/service/apigateway v1.1.2 github.com/aws/aws-sdk-go-v2/service/applicationautoscaling v1.1.2 @@ -52,9 +50,6 @@ require ( github.com/aws/aws-sdk-go-v2/service/health v1.1.2 github.com/aws/aws-sdk-go-v2/service/iam v1.1.2 github.com/aws/aws-sdk-go-v2/service/inspector v1.1.2 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.0.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.3 - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.1.1 // indirect github.com/aws/aws-sdk-go-v2/service/iot v1.1.2 github.com/aws/aws-sdk-go-v2/service/kinesis v1.1.2 github.com/aws/aws-sdk-go-v2/service/kms v1.1.2 @@ -83,7 +78,6 @@ require ( github.com/aws/aws-sdk-go-v2/service/sns v1.1.2 github.com/aws/aws-sdk-go-v2/service/sqs v1.1.2 github.com/aws/aws-sdk-go-v2/service/ssm v1.1.2 - github.com/aws/aws-sdk-go-v2/service/sso v1.1.2 github.com/aws/aws-sdk-go-v2/service/sts v1.1.2 github.com/aws/aws-sdk-go-v2/service/support v1.1.2 github.com/aws/aws-sdk-go-v2/service/waf v1.1.2 diff --git a/service/internal/s3shared/arn/accesspoint_arn.go b/service/internal/s3shared/arn/accesspoint_arn.go index 93e358a4a1a..95490e68109 100644 --- a/service/internal/s3shared/arn/accesspoint_arn.go +++ b/service/internal/s3shared/arn/accesspoint_arn.go @@ -22,7 +22,7 @@ func (a AccessPointARN) GetARN() arn.ARN { // // Supported Access point resource format: // - Access point format: arn:{partition}:s3:{region}:{accountId}:accesspoint/{accesspointName} -// - example: arn.aws.s3.us-west-2.012345678901:accesspoint/myaccesspoint +// - example: arn:aws:s3:us-west-2:012345678901:accesspoint/myaccesspoint // func ParseAccessPointResource(a arn.ARN, resParts []string) (AccessPointARN, error) { if len(a.Region) == 0 { diff --git a/service/internal/s3shared/arn/arn.go b/service/internal/s3shared/arn/arn.go index c6153464696..06e1a3addd4 100644 --- a/service/internal/s3shared/arn/arn.go +++ b/service/internal/s3shared/arn/arn.go @@ -7,6 +7,21 @@ import ( "github.com/aws/aws-sdk-go-v2/aws/arn" ) +var supportedServiceARN = []string{ + "s3", + "s3-outposts", + "s3-object-lambda", +} + +func isSupportedServiceARN(service string) bool { + for _, name := range supportedServiceARN { + if name == service { + return true + } + } + return false +} + // Resource provides the interfaces abstracting ARNs of specific resource // types. type Resource interface { @@ -24,9 +39,10 @@ func ParseResource(a arn.ARN, resParser ResourceParser) (resARN Resource, err er return nil, InvalidARNError{ARN: a, Reason: "partition not set"} } - if a.Service != "s3" && a.Service != "s3-outposts" { + if !isSupportedServiceARN(a.Service) { return nil, InvalidARNError{ARN: a, Reason: "service is not supported"} } + if len(a.Resource) == 0 { return nil, InvalidARNError{ARN: a, Reason: "resource not set"} } diff --git a/service/internal/s3shared/arn/s3_object_lambda_arn.go b/service/internal/s3shared/arn/s3_object_lambda_arn.go new file mode 100644 index 00000000000..513154cc0e3 --- /dev/null +++ b/service/internal/s3shared/arn/s3_object_lambda_arn.go @@ -0,0 +1,15 @@ +package arn + +// S3ObjectLambdaARN represents an ARN for the s3-object-lambda service +type S3ObjectLambdaARN interface { + Resource + + isS3ObjectLambdasARN() +} + +// S3ObjectLambdaAccessPointARN is an S3ObjectLambdaARN for the Access Point resource type +type S3ObjectLambdaAccessPointARN struct { + AccessPointARN +} + +func (s S3ObjectLambdaAccessPointARN) isS3ObjectLambdasARN() {} diff --git a/service/iotsitewise/go.sum b/service/iotsitewise/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/iotsitewise/go.sum +++ b/service/iotsitewise/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/kinesis/go.sum b/service/kinesis/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/kinesis/go.sum +++ b/service/kinesis/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/lambda/go.sum b/service/lambda/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/lambda/go.sum +++ b/service/lambda/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/medialive/go.sum b/service/medialive/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/medialive/go.sum +++ b/service/medialive/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/neptune/api_client.go b/service/neptune/api_client.go index d97e6557623..a38499740b7 100644 --- a/service/neptune/api_client.go +++ b/service/neptune/api_client.go @@ -326,6 +326,7 @@ func (c presignConverter) convertToPresignMiddleware(stack *middleware.Stack, op stack.Finalize.Clear() stack.Deserialize.Clear() stack.Build.Remove((*awsmiddleware.ClientRequestID)(nil).ID()) + stack.Build.Remove("UserAgent") pmw := v4.NewPresignHTTPRequestMiddleware(v4.PresignHTTPRequestMiddlewareOptions{ CredentialsProvider: options.Credentials, Presigner: c.Presigner, diff --git a/service/neptune/go.sum b/service/neptune/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/neptune/go.sum +++ b/service/neptune/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/opsworks/go.sum b/service/opsworks/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/opsworks/go.sum +++ b/service/opsworks/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/opsworkscm/go.sum b/service/opsworkscm/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/opsworkscm/go.sum +++ b/service/opsworkscm/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/rds/api_client.go b/service/rds/api_client.go index 230eb960450..bd5fb49feee 100644 --- a/service/rds/api_client.go +++ b/service/rds/api_client.go @@ -327,6 +327,7 @@ func (c presignConverter) convertToPresignMiddleware(stack *middleware.Stack, op stack.Finalize.Clear() stack.Deserialize.Clear() stack.Build.Remove((*awsmiddleware.ClientRequestID)(nil).ID()) + stack.Build.Remove("UserAgent") pmw := v4.NewPresignHTTPRequestMiddleware(v4.PresignHTTPRequestMiddlewareOptions{ CredentialsProvider: options.Credentials, Presigner: c.Presigner, diff --git a/service/rds/go.sum b/service/rds/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/rds/go.sum +++ b/service/rds/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/redshift/go.sum b/service/redshift/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/redshift/go.sum +++ b/service/redshift/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/rekognition/go.sum b/service/rekognition/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/rekognition/go.sum +++ b/service/rekognition/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/s3/api_client.go b/service/s3/api_client.go index 3fad5be9d48..8d7d295c49b 100644 --- a/service/s3/api_client.go +++ b/service/s3/api_client.go @@ -412,6 +412,7 @@ func (c presignConverter) convertToPresignMiddleware(stack *middleware.Stack, op stack.Finalize.Clear() stack.Deserialize.Clear() stack.Build.Remove((*awsmiddleware.ClientRequestID)(nil).ID()) + stack.Build.Remove("UserAgent") pmw := v4.NewPresignHTTPRequestMiddleware(v4.PresignHTTPRequestMiddlewareOptions{ CredentialsProvider: options.Credentials, Presigner: c.Presigner, diff --git a/service/s3/api_op_AbortMultipartUpload.go b/service/s3/api_op_AbortMultipartUpload.go index 10886dda6b8..51f4077b4ef 100644 --- a/service/s3/api_op_AbortMultipartUpload.go +++ b/service/s3/api_op_AbortMultipartUpload.go @@ -12,18 +12,17 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// This operation aborts a multipart upload. After a multipart upload is aborted, -// no additional parts can be uploaded using that upload ID. The storage consumed -// by any previously uploaded parts will be freed. However, if any part uploads are +// This action aborts a multipart upload. After a multipart upload is aborted, no +// additional parts can be uploaded using that upload ID. The storage consumed by +// any previously uploaded parts will be freed. However, if any part uploads are // currently in progress, those part uploads might or might not succeed. As a // result, it might be necessary to abort a given multipart upload multiple times // in order to completely free all storage consumed by all parts. To verify that // all parts have been removed, so you don't get charged for the part storage, you // should call the ListParts -// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html) operation -// and ensure that the parts list is empty. For information about permissions -// required to use the multipart upload API, see Multipart Upload API and -// Permissions +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html) action and +// ensure that the parts list is empty. For information about permissions required +// to use the multipart upload, see Multipart Upload and Permissions // (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html). The // following operations are related to AbortMultipartUpload: // @@ -63,22 +62,22 @@ func (c *Client) AbortMultipartUpload(ctx context.Context, params *AbortMultipar type AbortMultipartUploadInput struct { - // The bucket name to which the upload was taking place. When using this API with - // an access point, you must direct requests to the access point hostname. The + // The bucket name to which the upload was taking place. When using this action + // with an access point, you must direct requests to the access point hostname. The // access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. // // This member is required. @@ -94,7 +93,7 @@ type AbortMultipartUploadInput struct { // This member is required. UploadId *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -216,6 +215,7 @@ func addAbortMultipartUploadUpdateEndpoint(stack *middleware.Stack, options Opti UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_CompleteMultipartUpload.go b/service/s3/api_op_CompleteMultipartUpload.go index 0ec9c0c0c31..c3b80ef2f62 100644 --- a/service/s3/api_op_CompleteMultipartUpload.go +++ b/service/s3/api_op_CompleteMultipartUpload.go @@ -16,16 +16,16 @@ import ( // initiate the multipart upload and then upload all parts using the UploadPart // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html) operation. // After successfully uploading all relevant parts of an upload, you call this -// operation to complete the upload. Upon receiving this request, Amazon S3 +// action to complete the upload. Upon receiving this request, Amazon S3 // concatenates all the parts in ascending order by part number to create a new // object. In the Complete Multipart Upload request, you must provide the parts -// list. You must ensure that the parts list is complete. This operation -// concatenates the parts that you provide in the list. For each part in the list, -// you must provide the part number and the ETag value, returned after that part -// was uploaded. Processing of a Complete Multipart Upload request could take -// several minutes to complete. After Amazon S3 begins processing the request, it -// sends an HTTP response header that specifies a 200 OK response. While processing -// is in progress, Amazon S3 periodically sends white space characters to keep the +// list. You must ensure that the parts list is complete. This action concatenates +// the parts that you provide in the list. For each part in the list, you must +// provide the part number and the ETag value, returned after that part was +// uploaded. Processing of a Complete Multipart Upload request could take several +// minutes to complete. After Amazon S3 begins processing the request, it sends an +// HTTP response header that specifies a 200 OK response. While processing is in +// progress, Amazon S3 periodically sends white space characters to keep the // connection from timing out. Because a request could fail after the initial 200 // OK response has been sent, it is important that you check the response body to // determine whether the request succeeded. Note that if CompleteMultipartUpload @@ -35,7 +35,7 @@ import ( // more information about multipart uploads, see Uploading Objects Using Multipart // Upload (https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html). // For information about permissions required to use the multipart upload API, see -// Multipart Upload API and Permissions +// Multipart Upload and Permissions // (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html). // CompleteMultipartUpload has the following special errors: // @@ -127,7 +127,7 @@ type CompleteMultipartUploadInput struct { // This member is required. UploadId *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -146,21 +146,21 @@ type CompleteMultipartUploadInput struct { type CompleteMultipartUploadOutput struct { // The name of the bucket that contains the newly created object. When using this - // API with an access point, you must direct requests to the access point hostname. - // The access point hostname takes the form + // action with an access point, you must direct requests to the access point + // hostname. The access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. Bucket *string @@ -311,6 +311,7 @@ func addCompleteMultipartUploadUpdateEndpoint(stack *middleware.Stack, options O UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_CopyObject.go b/service/s3/api_op_CopyObject.go index 033af456b99..ec4d16f9024 100644 --- a/service/s3/api_op_CopyObject.go +++ b/service/s3/api_op_CopyObject.go @@ -15,10 +15,9 @@ import ( // Creates a copy of an object that is already stored in Amazon S3. You can store // individual objects of up to 5 TB in Amazon S3. You create a copy of your object -// up to 5 GB in size in a single atomic operation using this API. However, to copy -// an object greater than 5 GB, you must use the multipart upload Upload Part - -// Copy API. For more information, see Copy Object Using the REST Multipart Upload -// API +// up to 5 GB in size in a single atomic action using this API. However, to copy an +// object greater than 5 GB, you must use the multipart upload Upload Part - Copy +// API. For more information, see Copy Object Using the REST Multipart Upload API // (https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjctsUsingRESTMPUapi.html). // All copy requests must be authenticated. Additionally, you must have read access // to the source object and write access to the destination bucket. For more @@ -27,7 +26,7 @@ import ( // the Region that you want to copy the object from and the Region that you want to // copy the object to must be enabled for your account. A copy request might return // an error when Amazon S3 receives the copy request or while Amazon S3 is copying -// the files. If the error occurs before the copy operation starts, you receive a +// the files. If the error occurs before the copy action starts, you receive a // standard Amazon S3 error. If the error occurs during the copy operation, the // error response is embedded in the 200 OK response. This means that a 200 OK // response can contain either a success or an error. Design your application to @@ -37,7 +36,7 @@ import ( // not, it would not contain the content-length, and you would need to read the // entire body. The copy request charge is based on the storage class and Region // that you specify for the destination object. For pricing information, see Amazon -// S3 pricing (https://aws.amazon.com/s3/pricing/). Amazon S3 transfer acceleration +// S3 pricing (http://aws.amazon.com/s3/pricing/). Amazon S3 transfer acceleration // does not support cross-Region copies. If you request a cross-Region copy using a // transfer acceleration endpoint, you get a 400 Bad Request error. For more // information, see Transfer Acceleration @@ -104,17 +103,16 @@ import ( // a target object uses SSE-KMS, you can enable an S3 Bucket Key for the object. // For more information, see Amazon S3 Bucket Keys // (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) in the Amazon -// Simple Storage Service Developer Guide. Access Control List (ACL)-Specific -// Request Headers When copying an object, you can optionally use headers to grant -// ACL-based permissions. By default, all objects are private. Only the owner has -// full access control. When adding a new object, you can grant permissions to -// individual AWS accounts or to predefined groups defined by Amazon S3. These -// permissions are then added to the ACL on the object. For more information, see -// Access Control List (ACL) Overview +// S3 User Guide. Access Control List (ACL)-Specific Request Headers When copying +// an object, you can optionally use headers to grant ACL-based permissions. By +// default, all objects are private. Only the owner has full access control. When +// adding a new object, you can grant permissions to individual AWS accounts or to +// predefined groups defined by Amazon S3. These permissions are then added to the +// ACL on the object. For more information, see Access Control List (ACL) Overview // (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html) and Managing // ACLs Using the REST API // (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-using-rest-api.html). -// Storage Class Options You can use the CopyObject operation to change the storage +// Storage Class Options You can use the CopyObject action to change the storage // class of an object that is already stored in Amazon S3 using the StorageClass // parameter. For more information, see Storage Classes // (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html) in @@ -160,21 +158,21 @@ func (c *Client) CopyObject(ctx context.Context, params *CopyObjectInput, optFns type CopyObjectInput struct { - // The name of the destination bucket. When using this API with an access point, + // The name of the destination bucket. When using this action with an access point, // you must direct requests to the access point hostname. The access point hostname // takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. - // When using this operation with an access point through the AWS SDKs, you provide + // When using this action with an access point through the AWS SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. // // This member is required. @@ -183,10 +181,10 @@ type CopyObjectInput struct { // Specifies the source object for the copy operation. You specify the value in one // of two formats, depending on whether you want to access the source object // through an access point - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-points.html): + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html): // - // * For - // objects not accessed through an access point, specify the name of the source + // * + // For objects not accessed through an access point, specify the name of the source // bucket and the key of the source object, separated by a slash (/). For example, // to copy the object reports/january.pdf from the bucket awsexamplebucket, use // awsexamplebucket/reports/january.pdf. The value must be URL encoded. @@ -229,8 +227,8 @@ type CopyObjectInput struct { // Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption // with server-side encryption using AWS KMS (SSE-KMS). Setting this header to true // causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS. - // Specifying this header with a COPY operation doesn’t affect bucket-level - // settings for S3 Bucket Key. + // Specifying this header with a COPY action doesn’t affect bucket-level settings + // for S3 Bucket Key. BucketKeyEnabled bool // Specifies caching behavior along the request/reply chain. @@ -276,12 +274,12 @@ type CopyObjectInput struct { // encryption key was transmitted without error. CopySourceSSECustomerKeyMD5 *string - // The account id of the expected destination bucket owner. If the destination + // The account ID of the expected destination bucket owner. If the destination // bucket is owned by a different account, the request will fail with an HTTP 403 // (Access Denied) error. ExpectedBucketOwner *string - // The account id of the expected source bucket owner. If the source bucket is + // The account ID of the expected source bucket owner. If the source bucket is // owned by a different account, the request will fail with an HTTP 403 (Access // Denied) error. ExpectedSourceBucketOwner *string @@ -537,6 +535,7 @@ func addCopyObjectUpdateEndpoint(stack *middleware.Stack, options Options) error UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_CreateBucket.go b/service/s3/api_op_CreateBucket.go index 0acb6492e07..315da27b696 100644 --- a/service/s3/api_op_CreateBucket.go +++ b/service/s3/api_op_CreateBucket.go @@ -260,6 +260,7 @@ func addCreateBucketUpdateEndpoint(stack *middleware.Stack, options Options) err UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: false, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_CreateMultipartUpload.go b/service/s3/api_op_CreateMultipartUpload.go index d39625e0d67..bfab4f0afe0 100644 --- a/service/s3/api_op_CreateMultipartUpload.go +++ b/service/s3/api_op_CreateMultipartUpload.go @@ -13,10 +13,10 @@ import ( "time" ) -// This operation initiates a multipart upload and returns an upload ID. This -// upload ID is used to associate all of the parts in the specific multipart -// upload. You specify this upload ID in each of your subsequent upload part -// requests (see UploadPart +// This action initiates a multipart upload and returns an upload ID. This upload +// ID is used to associate all of the parts in the specific multipart upload. You +// specify this upload ID in each of your subsequent upload part requests (see +// UploadPart // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html)). You also // include this upload ID in the final request to either complete or abort the // multipart upload request. For more information about multipart uploads, see @@ -25,12 +25,11 @@ import ( // configured a lifecycle rule to abort incomplete multipart uploads, the upload // must complete within the number of days specified in the bucket lifecycle // configuration. Otherwise, the incomplete multipart upload becomes eligible for -// an abort operation and Amazon S3 aborts the multipart upload. For more -// information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle -// Policy +// an abort action and Amazon S3 aborts the multipart upload. For more information, +// see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Policy // (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config). // For information about the permissions required to use the multipart upload API, -// see Multipart Upload API and Permissions +// see Multipart Upload and Permissions // (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html). For // request signing, multipart upload is just a series of regular requests. You // initiate a multipart upload, send one or more requests to upload parts, and then @@ -47,7 +46,9 @@ import ( // its data centers and decrypts it when you access it. You can provide your own // encryption key, or use AWS Key Management Service (AWS KMS) customer master keys // (CMKs) or Amazon S3-managed encryption keys. If you choose to provide your own -// encryption key, the request headers you provide in UploadPart and UploadPartCopy +// encryption key, the request headers you provide in UploadPart +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html) and +// UploadPartCopy // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html) // requests must match the headers you used in the request to initiate the upload // by using CreateMultipartUpload. To perform a multipart upload with encryption @@ -241,22 +242,22 @@ func (c *Client) CreateMultipartUpload(ctx context.Context, params *CreateMultip type CreateMultipartUploadInput struct { - // The name of the bucket to which to initiate the upload When using this API with - // an access point, you must direct requests to the access point hostname. The + // The name of the bucket to which to initiate the upload When using this action + // with an access point, you must direct requests to the access point hostname. The // access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. // // This member is required. @@ -274,7 +275,7 @@ type CreateMultipartUploadInput struct { // Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption // with server-side encryption using AWS KMS (SSE-KMS). Setting this header to true // causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS. - // Specifying this header with an object operation doesn’t affect bucket-level + // Specifying this header with an object action doesn’t affect bucket-level // settings for S3 Bucket Key. BucketKeyEnabled bool @@ -295,7 +296,7 @@ type CreateMultipartUploadInput struct { // A standard MIME type describing the format of the object data. ContentType *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -364,7 +365,7 @@ type CreateMultipartUploadInput struct { // fail if not made via SSL or using SigV4. For information about configuring using // any of the officially supported AWS SDKs and AWS CLI, see Specifying the // Signature Version in Request Authentication - // (https://docs.aws.amazon.com/http:/docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version) + // (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version) // in the Amazon S3 Developer Guide. SSEKMSKeyId *string @@ -409,21 +410,21 @@ type CreateMultipartUploadOutput struct { AbortRuleId *string // The name of the bucket to which the multipart upload was initiated. When using - // this API with an access point, you must direct requests to the access point + // this action with an access point, you must direct requests to the access point // hostname. The access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. Bucket *string @@ -567,6 +568,7 @@ func addCreateMultipartUploadUpdateEndpoint(stack *middleware.Stack, options Opt UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_DeleteBucket.go b/service/s3/api_op_DeleteBucket.go index cd1eee14c48..f123d14e75b 100644 --- a/service/s3/api_op_DeleteBucket.go +++ b/service/s3/api_op_DeleteBucket.go @@ -43,7 +43,7 @@ type DeleteBucketInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -152,6 +152,7 @@ func addDeleteBucketUpdateEndpoint(stack *middleware.Stack, options Options) err UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: false, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_DeleteBucketAnalyticsConfiguration.go b/service/s3/api_op_DeleteBucketAnalyticsConfiguration.go index 77260700a9d..c8af64d9e99 100644 --- a/service/s3/api_op_DeleteBucketAnalyticsConfiguration.go +++ b/service/s3/api_op_DeleteBucketAnalyticsConfiguration.go @@ -17,10 +17,10 @@ import ( // default. The bucket owner can grant this permission to others. For more // information about permissions, see Permissions Related to Bucket Subresource // Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). For -// information about the Amazon S3 analytics feature, see Amazon S3 Analytics – +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). +// For information about the Amazon S3 analytics feature, see Amazon S3 Analytics – // Storage Class Analysis // (https://docs.aws.amazon.com/AmazonS3/latest/dev/analytics-storage-class.html). // The following operations are related to DeleteBucketAnalyticsConfiguration: @@ -63,7 +63,7 @@ type DeleteBucketAnalyticsConfigurationInput struct { // This member is required. Id *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -172,6 +172,7 @@ func addDeleteBucketAnalyticsConfigurationUpdateEndpoint(stack *middleware.Stack UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_DeleteBucketCors.go b/service/s3/api_op_DeleteBucketCors.go index 49eea49b28f..93e0e3afcc2 100644 --- a/service/s3/api_op_DeleteBucketCors.go +++ b/service/s3/api_op_DeleteBucketCors.go @@ -15,8 +15,8 @@ import ( // operation, you must have permission to perform the s3:PutBucketCORS action. The // bucket owner has this permission by default and can grant this permission to // others. For information about cors, see Enabling Cross-Origin Resource Sharing -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the Amazon Simple -// Storage Service Developer Guide. Related Resources: +// (https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the Amazon S3 +// User Guide. Related Resources: // // * PutBucketCors // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketCors.html) @@ -46,7 +46,7 @@ type DeleteBucketCorsInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -155,6 +155,7 @@ func addDeleteBucketCorsUpdateEndpoint(stack *middleware.Stack, options Options) UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_DeleteBucketEncryption.go b/service/s3/api_op_DeleteBucketEncryption.go index 45dc15fab9e..2b802455fb1 100644 --- a/service/s3/api_op_DeleteBucketEncryption.go +++ b/service/s3/api_op_DeleteBucketEncryption.go @@ -11,22 +11,21 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// This implementation of the DELETE operation removes default encryption from the +// This implementation of the DELETE action removes default encryption from the // bucket. For information about the Amazon S3 default encryption feature, see // Amazon S3 Default Bucket Encryption // (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) in the -// Amazon Simple Storage Service Developer Guide. To use this operation, you must -// have permissions to perform the s3:PutEncryptionConfiguration action. The bucket -// owner has this permission by default. The bucket owner can grant this permission -// to others. For more information about permissions, see Permissions Related to -// Bucket Subresource Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// Amazon S3 User Guide. To use this operation, you must have permissions to +// perform the s3:PutEncryptionConfiguration action. The bucket owner has this +// permission by default. The bucket owner can grant this permission to others. For +// more information about permissions, see Permissions Related to Bucket +// Subresource Operations +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) in the -// Amazon Simple Storage Service Developer Guide. Related Resources +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) +// in the Amazon S3 User Guide. Related Resources // -// * -// PutBucketEncryption +// * PutBucketEncryption // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketEncryption.html) // // * @@ -55,7 +54,7 @@ type DeleteBucketEncryptionInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -164,6 +163,7 @@ func addDeleteBucketEncryptionUpdateEndpoint(stack *middleware.Stack, options Op UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_DeleteBucketIntelligentTieringConfiguration.go b/service/s3/api_op_DeleteBucketIntelligentTieringConfiguration.go index 167f0fa571f..2850401f921 100644 --- a/service/s3/api_op_DeleteBucketIntelligentTieringConfiguration.go +++ b/service/s3/api_op_DeleteBucketIntelligentTieringConfiguration.go @@ -171,6 +171,7 @@ func addDeleteBucketIntelligentTieringConfigurationUpdateEndpoint(stack *middlew UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_DeleteBucketInventoryConfiguration.go b/service/s3/api_op_DeleteBucketInventoryConfiguration.go index 0eec2938dd4..5011d73f2cb 100644 --- a/service/s3/api_op_DeleteBucketInventoryConfiguration.go +++ b/service/s3/api_op_DeleteBucketInventoryConfiguration.go @@ -17,10 +17,10 @@ import ( // default. The bucket owner can grant this permission to others. For more // information about permissions, see Permissions Related to Bucket Subresource // Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). For -// information about the Amazon S3 inventory feature, see Amazon S3 Inventory +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). +// For information about the Amazon S3 inventory feature, see Amazon S3 Inventory // (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html). // Operations related to DeleteBucketInventoryConfiguration include: // @@ -62,7 +62,7 @@ type DeleteBucketInventoryConfigurationInput struct { // This member is required. Id *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -171,6 +171,7 @@ func addDeleteBucketInventoryConfigurationUpdateEndpoint(stack *middleware.Stack UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_DeleteBucketLifecycle.go b/service/s3/api_op_DeleteBucketLifecycle.go index d68b5197f25..dfb13348655 100644 --- a/service/s3/api_op_DeleteBucketLifecycle.go +++ b/service/s3/api_op_DeleteBucketLifecycle.go @@ -52,7 +52,7 @@ type DeleteBucketLifecycleInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -161,6 +161,7 @@ func addDeleteBucketLifecycleUpdateEndpoint(stack *middleware.Stack, options Opt UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_DeleteBucketMetricsConfiguration.go b/service/s3/api_op_DeleteBucketMetricsConfiguration.go index 14e7bc4cca8..8d00a82f181 100644 --- a/service/s3/api_op_DeleteBucketMetricsConfiguration.go +++ b/service/s3/api_op_DeleteBucketMetricsConfiguration.go @@ -18,10 +18,10 @@ import ( // has this permission by default. The bucket owner can grant this permission to // others. For more information about permissions, see Permissions Related to // Bucket Subresource Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). For -// information about CloudWatch request metrics for Amazon S3, see Monitoring +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). +// For information about CloudWatch request metrics for Amazon S3, see Monitoring // Metrics with Amazon CloudWatch // (https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html). // The following operations are related to DeleteBucketMetricsConfiguration: @@ -68,7 +68,7 @@ type DeleteBucketMetricsConfigurationInput struct { // This member is required. Id *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -177,6 +177,7 @@ func addDeleteBucketMetricsConfigurationUpdateEndpoint(stack *middleware.Stack, UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_DeleteBucketOwnershipControls.go b/service/s3/api_op_DeleteBucketOwnershipControls.go index 1522ab63ccb..69ae789a33b 100644 --- a/service/s3/api_op_DeleteBucketOwnershipControls.go +++ b/service/s3/api_op_DeleteBucketOwnershipControls.go @@ -45,7 +45,7 @@ type DeleteBucketOwnershipControlsInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -154,6 +154,7 @@ func addDeleteBucketOwnershipControlsUpdateEndpoint(stack *middleware.Stack, opt UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_DeleteBucketPolicy.go b/service/s3/api_op_DeleteBucketPolicy.go index 40f58449f74..3f6bcafb2e1 100644 --- a/service/s3/api_op_DeleteBucketPolicy.go +++ b/service/s3/api_op_DeleteBucketPolicy.go @@ -11,9 +11,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// This implementation of the DELETE operation uses the policy subresource to -// delete the policy of a specified bucket. If you are using an identity other than -// the root user of the AWS account that owns the bucket, the calling identity must +// This implementation of the DELETE action uses the policy subresource to delete +// the policy of a specified bucket. If you are using an identity other than the +// root user of the AWS account that owns the bucket, the calling identity must // have the DeleteBucketPolicy permissions on the specified bucket and belong to // the bucket owner's account to use this operation. If you don't have // DeleteBucketPolicy permissions, Amazon S3 returns a 403 Access Denied error. If @@ -54,7 +54,7 @@ type DeleteBucketPolicyInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -163,6 +163,7 @@ func addDeleteBucketPolicyUpdateEndpoint(stack *middleware.Stack, options Option UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_DeleteBucketReplication.go b/service/s3/api_op_DeleteBucketReplication.go index 805db12a3d3..2a2a0eba6f5 100644 --- a/service/s3/api_op_DeleteBucketReplication.go +++ b/service/s3/api_op_DeleteBucketReplication.go @@ -16,11 +16,11 @@ import ( // The bucket owner has these permissions by default and can grant it to others. // For more information about permissions, see Permissions Related to Bucket // Subresource Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). It can -// take a while for the deletion of a replication configuration to fully propagate. -// For information about replication configuration, see Replication +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). +// It can take a while for the deletion of a replication configuration to fully +// propagate. For information about replication configuration, see Replication // (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html) in the Amazon // S3 Developer Guide. The following operations are related to // DeleteBucketReplication: @@ -53,7 +53,7 @@ type DeleteBucketReplicationInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -162,6 +162,7 @@ func addDeleteBucketReplicationUpdateEndpoint(stack *middleware.Stack, options O UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_DeleteBucketTagging.go b/service/s3/api_op_DeleteBucketTagging.go index fbb8ece1730..cf6b85e552d 100644 --- a/service/s3/api_op_DeleteBucketTagging.go +++ b/service/s3/api_op_DeleteBucketTagging.go @@ -44,7 +44,7 @@ type DeleteBucketTaggingInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -153,6 +153,7 @@ func addDeleteBucketTaggingUpdateEndpoint(stack *middleware.Stack, options Optio UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_DeleteBucketWebsite.go b/service/s3/api_op_DeleteBucketWebsite.go index eafabc3b079..116cab71c2e 100644 --- a/service/s3/api_op_DeleteBucketWebsite.go +++ b/service/s3/api_op_DeleteBucketWebsite.go @@ -11,12 +11,12 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// This operation removes the website configuration for a bucket. Amazon S3 returns -// a 200 OK response upon successfully deleting a website configuration on the +// This action removes the website configuration for a bucket. Amazon S3 returns a +// 200 OK response upon successfully deleting a website configuration on the // specified bucket. You will get a 200 OK response if the website configuration // you are trying to delete does not exist on the bucket. Amazon S3 returns a 404 // response if the bucket specified in the request does not exist. This DELETE -// operation requires the S3:DeleteBucketWebsite permission. By default, only the +// action requires the S3:DeleteBucketWebsite permission. By default, only the // bucket owner can delete the website configuration attached to a bucket. However, // bucket owners can grant other users permission to delete the website // configuration by writing a bucket policy granting them the @@ -53,7 +53,7 @@ type DeleteBucketWebsiteInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -162,6 +162,7 @@ func addDeleteBucketWebsiteUpdateEndpoint(stack *middleware.Stack, options Optio UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_DeleteObject.go b/service/s3/api_op_DeleteObject.go index aae9e85f9e6..7673ecca76d 100644 --- a/service/s3/api_op_DeleteObject.go +++ b/service/s3/api_op_DeleteObject.go @@ -25,13 +25,13 @@ import ( // (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMFADelete.html). To see // sample requests that use versioning, see Sample Request // (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectDELETE.html#ExampleVersionObjectDelete). -// You can delete objects by explicitly calling the DELETE Object API or configure -// its lifecycle (PutBucketLifecycle +// You can delete objects by explicitly calling DELETE Object or configure its +// lifecycle (PutBucketLifecycle // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycle.html)) // to enable Amazon S3 to remove them for you. If you want to block users or // accounts from removing or deleting objects from your bucket, you must deny them // the s3:DeleteObject, s3:DeleteObjectVersion, and s3:PutLifeCycleConfiguration -// actions. The following operation is related to DeleteObject: +// actions. The following action is related to DeleteObject: // // * PutObject // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html) @@ -52,22 +52,22 @@ func (c *Client) DeleteObject(ctx context.Context, params *DeleteObjectInput, op type DeleteObjectInput struct { - // The bucket name of the bucket containing the object. When using this API with an - // access point, you must direct requests to the access point hostname. The access - // point hostname takes the form + // The bucket name of the bucket containing the object. When using this action with + // an access point, you must direct requests to the access point hostname. The + // access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. // // This member is required. @@ -82,7 +82,7 @@ type DeleteObjectInput struct { // process this operation. BypassGovernanceRetention bool - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -220,6 +220,7 @@ func addDeleteObjectUpdateEndpoint(stack *middleware.Stack, options Options) err UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_DeleteObjectTagging.go b/service/s3/api_op_DeleteObjectTagging.go index 4d86e955064..7f402a08be6 100644 --- a/service/s3/api_op_DeleteObjectTagging.go +++ b/service/s3/api_op_DeleteObjectTagging.go @@ -44,32 +44,32 @@ func (c *Client) DeleteObjectTagging(ctx context.Context, params *DeleteObjectTa type DeleteObjectTaggingInput struct { // The bucket name containing the objects from which to remove the tags. When using - // this API with an access point, you must direct requests to the access point + // this action with an access point, you must direct requests to the access point // hostname. The access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. // // This member is required. Bucket *string - // Name of the object key. + // The key that identifies the object in the bucket from which to remove all tags. // // This member is required. Key *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -185,6 +185,7 @@ func addDeleteObjectTaggingUpdateEndpoint(stack *middleware.Stack, options Optio UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_DeleteObjects.go b/service/s3/api_op_DeleteObjects.go index 20f85c0c7ce..dcb70424eb4 100644 --- a/service/s3/api_op_DeleteObjects.go +++ b/service/s3/api_op_DeleteObjects.go @@ -12,27 +12,27 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// This operation enables you to delete multiple objects from a bucket using a -// single HTTP request. If you know the object keys that you want to delete, then -// this operation provides a suitable alternative to sending individual delete -// requests, reducing per-request overhead. The request contains a list of up to -// 1000 keys that you want to delete. In the XML, you provide the object key names, -// and optionally, version IDs if you want to delete a specific version of the -// object from a versioning-enabled bucket. For each key, Amazon S3 performs a -// delete operation and returns the result of that delete, success, or failure, in -// the response. Note that if the object specified in the request is not found, -// Amazon S3 returns the result as deleted. The operation supports two modes for -// the response: verbose and quiet. By default, the operation uses verbose mode in -// which the response includes the result of deletion of each key in your request. -// In quiet mode the response includes only keys where the delete operation -// encountered an error. For a successful deletion, the operation does not return -// any information about the delete in the response body. When performing this -// operation on an MFA Delete enabled bucket, that attempts to delete any versioned -// objects, you must include an MFA token. If you do not provide one, the entire -// request will fail, even if there are non-versioned objects you are trying to -// delete. If you provide an invalid token, whether there are versioned keys in the -// request or not, the entire Multi-Object Delete request will fail. For -// information about MFA Delete, see MFA Delete +// This action enables you to delete multiple objects from a bucket using a single +// HTTP request. If you know the object keys that you want to delete, then this +// action provides a suitable alternative to sending individual delete requests, +// reducing per-request overhead. The request contains a list of up to 1000 keys +// that you want to delete. In the XML, you provide the object key names, and +// optionally, version IDs if you want to delete a specific version of the object +// from a versioning-enabled bucket. For each key, Amazon S3 performs a delete +// action and returns the result of that delete, success, or failure, in the +// response. Note that if the object specified in the request is not found, Amazon +// S3 returns the result as deleted. The action supports two modes for the +// response: verbose and quiet. By default, the action uses verbose mode in which +// the response includes the result of deletion of each key in your request. In +// quiet mode the response includes only keys where the delete action encountered +// an error. For a successful deletion, the action does not return any information +// about the delete in the response body. When performing this action on an MFA +// Delete enabled bucket, that attempts to delete any versioned objects, you must +// include an MFA token. If you do not provide one, the entire request will fail, +// even if there are non-versioned objects you are trying to delete. If you provide +// an invalid token, whether there are versioned keys in the request or not, the +// entire Multi-Object Delete request will fail. For information about MFA Delete, +// see MFA Delete // (https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html#MultiFactorAuthenticationDelete). // Finally, the Content-MD5 header is required for all Multi-Object Delete // requests. Amazon S3 uses the header value to ensure that your request body has @@ -74,22 +74,22 @@ func (c *Client) DeleteObjects(ctx context.Context, params *DeleteObjectsInput, type DeleteObjectsInput struct { - // The bucket name containing the objects to delete. When using this API with an + // The bucket name containing the objects to delete. When using this action with an // access point, you must direct requests to the access point hostname. The access // point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. // // This member is required. @@ -105,7 +105,7 @@ type DeleteObjectsInput struct { // perform this operation. BypassGovernanceRetention bool - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -129,7 +129,7 @@ type DeleteObjectsOutput struct { // successfully deleted. Deleted []types.DeletedObject - // Container for a failed delete operation that describes the object that Amazon S3 + // Container for a failed delete action that describes the object that Amazon S3 // attempted to delete and the error it encountered. Errors []types.Error @@ -243,6 +243,7 @@ func addDeleteObjectsUpdateEndpoint(stack *middleware.Stack, options Options) er UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_DeletePublicAccessBlock.go b/service/s3/api_op_DeletePublicAccessBlock.go index c882c384a7f..b197a8a373e 100644 --- a/service/s3/api_op_DeletePublicAccessBlock.go +++ b/service/s3/api_op_DeletePublicAccessBlock.go @@ -15,13 +15,13 @@ import ( // operation, you must have the s3:PutBucketPublicAccessBlock permission. For more // information about permissions, see Permissions Related to Bucket Subresource // Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). The -// following operations are related to DeletePublicAccessBlock: +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). +// The following operations are related to DeletePublicAccessBlock: // -// * Using Amazon S3 -// Block Public Access +// * Using Amazon +// S3 Block Public Access // (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html) // // * @@ -57,7 +57,7 @@ type DeletePublicAccessBlockInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -166,6 +166,7 @@ func addDeletePublicAccessBlockUpdateEndpoint(stack *middleware.Stack, options O UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetBucketAccelerateConfiguration.go b/service/s3/api_op_GetBucketAccelerateConfiguration.go index bc6fc6a38a5..99a584c602d 100644 --- a/service/s3/api_op_GetBucketAccelerateConfiguration.go +++ b/service/s3/api_op_GetBucketAccelerateConfiguration.go @@ -12,19 +12,19 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// This implementation of the GET operation uses the accelerate subresource to -// return the Transfer Acceleration state of a bucket, which is either Enabled or +// This implementation of the GET action uses the accelerate subresource to return +// the Transfer Acceleration state of a bucket, which is either Enabled or // Suspended. Amazon S3 Transfer Acceleration is a bucket-level feature that // enables you to perform faster data transfers to and from Amazon S3. To use this // operation, you must have permission to perform the s3:GetAccelerateConfiguration // action. The bucket owner has this permission by default. The bucket owner can // grant this permission to others. For more information about permissions, see // Permissions Related to Bucket Subresource Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) in the -// Amazon Simple Storage Service Developer Guide. You set the Transfer Acceleration -// state of an existing bucket to Enabled or Suspended by using the +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) +// in the Amazon S3 User Guide. You set the Transfer Acceleration state of an +// existing bucket to Enabled or Suspended by using the // PutBucketAccelerateConfiguration // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketAccelerateConfiguration.html) // operation. A GET accelerate request does not return a state value for a bucket @@ -32,10 +32,9 @@ import ( // state if a state has never been set on the bucket. For more information about // transfer acceleration, see Transfer Acceleration // (https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html) in -// the Amazon Simple Storage Service Developer Guide. Related Resources +// the Amazon S3 User Guide. Related Resources // -// * -// PutBucketAccelerateConfiguration +// * PutBucketAccelerateConfiguration // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketAccelerateConfiguration.html) func (c *Client) GetBucketAccelerateConfiguration(ctx context.Context, params *GetBucketAccelerateConfigurationInput, optFns ...func(*Options)) (*GetBucketAccelerateConfigurationOutput, error) { if params == nil { @@ -59,7 +58,7 @@ type GetBucketAccelerateConfigurationInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -172,6 +171,7 @@ func addGetBucketAccelerateConfigurationUpdateEndpoint(stack *middleware.Stack, UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetBucketAcl.go b/service/s3/api_op_GetBucketAcl.go index 034cdd279c8..98e235260ca 100644 --- a/service/s3/api_op_GetBucketAcl.go +++ b/service/s3/api_op_GetBucketAcl.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// This implementation of the GET operation uses the acl subresource to return the +// This implementation of the GET action uses the acl subresource to return the // access control list (ACL) of a bucket. To use GET to return the ACL of the // bucket, you must have READ_ACP access to the bucket. If READ_ACP permission is // granted to the anonymous user, you can return the ACL of the bucket without @@ -42,7 +42,7 @@ type GetBucketAclInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -158,6 +158,7 @@ func addGetBucketAclUpdateEndpoint(stack *middleware.Stack, options Options) err UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetBucketAnalyticsConfiguration.go b/service/s3/api_op_GetBucketAnalyticsConfiguration.go index ee01383b3b9..7ddac639655 100644 --- a/service/s3/api_op_GetBucketAnalyticsConfiguration.go +++ b/service/s3/api_op_GetBucketAnalyticsConfiguration.go @@ -12,19 +12,19 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// This implementation of the GET operation returns an analytics configuration +// This implementation of the GET action returns an analytics configuration // (identified by the analytics configuration ID) from the bucket. To use this // operation, you must have permissions to perform the s3:GetAnalyticsConfiguration // action. The bucket owner has this permission by default. The bucket owner can // grant this permission to others. For more information about permissions, see // Permissions Related to Bucket Subresource Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) in the -// Amazon Simple Storage Service Developer Guide. For information about Amazon S3 -// analytics feature, see Amazon S3 Analytics – Storage Class Analysis +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) +// in the Amazon S3 User Guide. For information about Amazon S3 analytics feature, +// see Amazon S3 Analytics – Storage Class Analysis // (https://docs.aws.amazon.com/AmazonS3/latest/dev/analytics-storage-class.html) -// in the Amazon Simple Storage Service Developer Guide. Related Resources +// in the Amazon S3 User Guide. Related Resources // // * // DeleteBucketAnalyticsConfiguration @@ -64,7 +64,7 @@ type GetBucketAnalyticsConfigurationInput struct { // This member is required. Id *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -177,6 +177,7 @@ func addGetBucketAnalyticsConfigurationUpdateEndpoint(stack *middleware.Stack, o UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetBucketCors.go b/service/s3/api_op_GetBucketCors.go index ea1d44eb2e5..95dcfa64239 100644 --- a/service/s3/api_op_GetBucketCors.go +++ b/service/s3/api_op_GetBucketCors.go @@ -47,7 +47,7 @@ type GetBucketCorsInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -161,6 +161,7 @@ func addGetBucketCorsUpdateEndpoint(stack *middleware.Stack, options Options) er UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetBucketEncryption.go b/service/s3/api_op_GetBucketEncryption.go index 8c82020107e..601d85bded6 100644 --- a/service/s3/api_op_GetBucketEncryption.go +++ b/service/s3/api_op_GetBucketEncryption.go @@ -12,21 +12,24 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the default encryption configuration for an Amazon S3 bucket. For -// information about the Amazon S3 default encryption feature, see Amazon S3 -// Default Bucket Encryption +// Returns the default encryption configuration for an Amazon S3 bucket. If the +// bucket does not have a default encryption configuration, GetBucketEncryption +// returns ServerSideEncryptionConfigurationNotFoundError. For information about +// the Amazon S3 default encryption feature, see Amazon S3 Default Bucket +// Encryption // (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html). To use // this operation, you must have permission to perform the // s3:GetEncryptionConfiguration action. The bucket owner has this permission by // default. The bucket owner can grant this permission to others. For more // information about permissions, see Permissions Related to Bucket Subresource // Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). The -// following operations are related to GetBucketEncryption: +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). +// The following operations are related to GetBucketEncryption: // -// * PutBucketEncryption +// * +// PutBucketEncryption // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketEncryption.html) // // * @@ -55,7 +58,7 @@ type GetBucketEncryptionInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -168,6 +171,7 @@ func addGetBucketEncryptionUpdateEndpoint(stack *middleware.Stack, options Optio UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetBucketIntelligentTieringConfiguration.go b/service/s3/api_op_GetBucketIntelligentTieringConfiguration.go index 22cd6debef3..a031da306f5 100644 --- a/service/s3/api_op_GetBucketIntelligentTieringConfiguration.go +++ b/service/s3/api_op_GetBucketIntelligentTieringConfiguration.go @@ -176,6 +176,7 @@ func addGetBucketIntelligentTieringConfigurationUpdateEndpoint(stack *middleware UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetBucketInventoryConfiguration.go b/service/s3/api_op_GetBucketInventoryConfiguration.go index 86104679008..e76e4a478d9 100644 --- a/service/s3/api_op_GetBucketInventoryConfiguration.go +++ b/service/s3/api_op_GetBucketInventoryConfiguration.go @@ -17,10 +17,10 @@ import ( // the s3:GetInventoryConfiguration action. The bucket owner has this permission by // default and can grant this permission to others. For more information about // permissions, see Permissions Related to Bucket Subresource Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). For -// information about the Amazon S3 inventory feature, see Amazon S3 Inventory +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). +// For information about the Amazon S3 inventory feature, see Amazon S3 Inventory // (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html). The // following operations are related to GetBucketInventoryConfiguration: // @@ -62,7 +62,7 @@ type GetBucketInventoryConfigurationInput struct { // This member is required. Id *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -175,6 +175,7 @@ func addGetBucketInventoryConfigurationUpdateEndpoint(stack *middleware.Stack, o UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetBucketLifecycleConfiguration.go b/service/s3/api_op_GetBucketLifecycleConfiguration.go index 28012f7effd..6ebbc04283e 100644 --- a/service/s3/api_op_GetBucketLifecycleConfiguration.go +++ b/service/s3/api_op_GetBucketLifecycleConfiguration.go @@ -17,7 +17,7 @@ import ( // Accordingly, this section describes the latest API. The response describes the // new filter element that you can use to specify a filter to select a subset of // objects to which the rule applies. If you are using a previous version of the -// lifecycle configuration, it still works. For the earlier API description, see +// lifecycle configuration, it still works. For the earlier action, see // GetBucketLifecycle // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycle.html). // Returns the lifecycle configuration information set on the bucket. For @@ -28,9 +28,9 @@ import ( // default. The bucket owner can grant this permission to others. For more // information about permissions, see Permissions Related to Bucket Subresource // Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). // GetBucketLifecycleConfiguration has the following special error: // // * Error code: @@ -79,7 +79,7 @@ type GetBucketLifecycleConfigurationInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -192,6 +192,7 @@ func addGetBucketLifecycleConfigurationUpdateEndpoint(stack *middleware.Stack, o UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetBucketLocation.go b/service/s3/api_op_GetBucketLocation.go index 93df58f4ee0..ecca3d1b418 100644 --- a/service/s3/api_op_GetBucketLocation.go +++ b/service/s3/api_op_GetBucketLocation.go @@ -54,7 +54,7 @@ type GetBucketLocationInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -229,6 +229,7 @@ func addGetBucketLocationUpdateEndpoint(stack *middleware.Stack, options Options UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetBucketLogging.go b/service/s3/api_op_GetBucketLogging.go index b38234cf44b..873dace7b82 100644 --- a/service/s3/api_op_GetBucketLogging.go +++ b/service/s3/api_op_GetBucketLogging.go @@ -44,7 +44,7 @@ type GetBucketLoggingInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -160,6 +160,7 @@ func addGetBucketLoggingUpdateEndpoint(stack *middleware.Stack, options Options) UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetBucketMetricsConfiguration.go b/service/s3/api_op_GetBucketMetricsConfiguration.go index a6f8a5b7863..171e15f32e8 100644 --- a/service/s3/api_op_GetBucketMetricsConfiguration.go +++ b/service/s3/api_op_GetBucketMetricsConfiguration.go @@ -19,10 +19,10 @@ import ( // default. The bucket owner can grant this permission to others. For more // information about permissions, see Permissions Related to Bucket Subresource // Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). For -// information about CloudWatch request metrics for Amazon S3, see Monitoring +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). +// For information about CloudWatch request metrics for Amazon S3, see Monitoring // Metrics with Amazon CloudWatch // (https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html). // The following operations are related to GetBucketMetricsConfiguration: @@ -69,7 +69,7 @@ type GetBucketMetricsConfigurationInput struct { // This member is required. Id *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -182,6 +182,7 @@ func addGetBucketMetricsConfigurationUpdateEndpoint(stack *middleware.Stack, opt UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetBucketNotificationConfiguration.go b/service/s3/api_op_GetBucketNotificationConfiguration.go index 40f29d365a2..33d1c797d95 100644 --- a/service/s3/api_op_GetBucketNotificationConfiguration.go +++ b/service/s3/api_op_GetBucketNotificationConfiguration.go @@ -13,7 +13,7 @@ import ( ) // Returns the notification configuration of a bucket. If notifications are not -// enabled on the bucket, the operation returns an empty NotificationConfiguration +// enabled on the bucket, the action returns an empty NotificationConfiguration // element. By default, you must be the bucket owner to read the notification // configuration of a bucket. However, the bucket owner can use a bucket policy to // grant permission to other users to read this configuration with the @@ -23,10 +23,9 @@ import ( // (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html). For // more information about bucket policies, see Using Bucket Policies // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html). The -// following operation is related to GetBucketNotification: +// following action is related to GetBucketNotification: // -// * -// PutBucketNotification +// * PutBucketNotification // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketNotification.html) func (c *Client) GetBucketNotificationConfiguration(ctx context.Context, params *GetBucketNotificationConfigurationInput, optFns ...func(*Options)) (*GetBucketNotificationConfigurationOutput, error) { if params == nil { @@ -50,7 +49,7 @@ type GetBucketNotificationConfigurationInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -174,6 +173,7 @@ func addGetBucketNotificationConfigurationUpdateEndpoint(stack *middleware.Stack UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetBucketOwnershipControls.go b/service/s3/api_op_GetBucketOwnershipControls.go index 05e94b5d1cb..e1508ad9f92 100644 --- a/service/s3/api_op_GetBucketOwnershipControls.go +++ b/service/s3/api_op_GetBucketOwnershipControls.go @@ -46,7 +46,7 @@ type GetBucketOwnershipControlsInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -160,6 +160,7 @@ func addGetBucketOwnershipControlsUpdateEndpoint(stack *middleware.Stack, option UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetBucketPolicy.go b/service/s3/api_op_GetBucketPolicy.go index e43b4e885e4..1eb68d648d9 100644 --- a/service/s3/api_op_GetBucketPolicy.go +++ b/service/s3/api_op_GetBucketPolicy.go @@ -23,7 +23,7 @@ import ( // the ability to perform this action. For more information about bucket policies, // see Using Bucket Policies and User Policies // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html). The -// following operation is related to GetBucketPolicy: +// following action is related to GetBucketPolicy: // // * GetObject // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html) @@ -49,7 +49,7 @@ type GetBucketPolicyInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -162,6 +162,7 @@ func addGetBucketPolicyUpdateEndpoint(stack *middleware.Stack, options Options) UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetBucketPolicyStatus.go b/service/s3/api_op_GetBucketPolicyStatus.go index aef96762399..7fa60856402 100644 --- a/service/s3/api_op_GetBucketPolicyStatus.go +++ b/service/s3/api_op_GetBucketPolicyStatus.go @@ -59,7 +59,7 @@ type GetBucketPolicyStatusInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -172,6 +172,7 @@ func addGetBucketPolicyStatusUpdateEndpoint(stack *middleware.Stack, options Opt UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetBucketReplication.go b/service/s3/api_op_GetBucketReplication.go index ead3f563da6..20bb214c6bb 100644 --- a/service/s3/api_op_GetBucketReplication.go +++ b/service/s3/api_op_GetBucketReplication.go @@ -17,9 +17,9 @@ import ( // systems. Therefore, a get request soon after put or delete can return a wrong // result. For information about replication configuration, see Replication // (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html) in the Amazon -// Simple Storage Service Developer Guide. This operation requires permissions for -// the s3:GetReplicationConfiguration action. For more information about -// permissions, see Using Bucket Policies and User Policies +// S3 User Guide. This action requires permissions for the +// s3:GetReplicationConfiguration action. For more information about permissions, +// see Using Bucket Policies and User Policies // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html). If // you include the Filter element in a replication configuration, you must also // include the DeleteMarkerReplication and Priority elements. The response also @@ -57,7 +57,7 @@ type GetBucketReplicationInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -171,6 +171,7 @@ func addGetBucketReplicationUpdateEndpoint(stack *middleware.Stack, options Opti UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetBucketRequestPayment.go b/service/s3/api_op_GetBucketRequestPayment.go index 4551dc842f0..be786384140 100644 --- a/service/s3/api_op_GetBucketRequestPayment.go +++ b/service/s3/api_op_GetBucketRequestPayment.go @@ -42,7 +42,7 @@ type GetBucketRequestPaymentInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -155,6 +155,7 @@ func addGetBucketRequestPaymentUpdateEndpoint(stack *middleware.Stack, options O UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetBucketTagging.go b/service/s3/api_op_GetBucketTagging.go index 013c1ad0ca2..8f30935b7ff 100644 --- a/service/s3/api_op_GetBucketTagging.go +++ b/service/s3/api_op_GetBucketTagging.go @@ -54,7 +54,7 @@ type GetBucketTaggingInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -169,6 +169,7 @@ func addGetBucketTaggingUpdateEndpoint(stack *middleware.Stack, options Options) UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetBucketVersioning.go b/service/s3/api_op_GetBucketVersioning.go index 4e2346777c1..0c22dcd8659 100644 --- a/service/s3/api_op_GetBucketVersioning.go +++ b/service/s3/api_op_GetBucketVersioning.go @@ -51,7 +51,7 @@ type GetBucketVersioningInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -169,6 +169,7 @@ func addGetBucketVersioningUpdateEndpoint(stack *middleware.Stack, options Optio UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetBucketWebsite.go b/service/s3/api_op_GetBucketWebsite.go index 383e04ccddd..d55dc54dd47 100644 --- a/service/s3/api_op_GetBucketWebsite.go +++ b/service/s3/api_op_GetBucketWebsite.go @@ -16,11 +16,11 @@ import ( // you can configure a bucket as website by adding a website configuration. For // more information about hosting websites, see Hosting Websites on Amazon S3 // (https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html). This GET -// operation requires the S3:GetBucketWebsite permission. By default, only the -// bucket owner can read the bucket website configuration. However, bucket owners -// can allow other users to read the website configuration by writing a bucket -// policy granting them the S3:GetBucketWebsite permission. The following -// operations are related to DeleteBucketWebsite: +// action requires the S3:GetBucketWebsite permission. By default, only the bucket +// owner can read the bucket website configuration. However, bucket owners can +// allow other users to read the website configuration by writing a bucket policy +// granting them the S3:GetBucketWebsite permission. The following operations are +// related to DeleteBucketWebsite: // // * DeleteBucketWebsite // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketWebsite.html) @@ -50,7 +50,7 @@ type GetBucketWebsiteInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -173,6 +173,7 @@ func addGetBucketWebsiteUpdateEndpoint(stack *middleware.Stack, options Options) UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetObject.go b/service/s3/api_op_GetObject.go index af1c85f6d98..b450f859306 100644 --- a/service/s3/api_op_GetObject.go +++ b/service/s3/api_op_GetObject.go @@ -39,8 +39,8 @@ import ( // Archive tiers, before you can retrieve the object you must first restore a copy // using RestoreObject // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html). -// Otherwise, this operation returns an InvalidObjectStateError error. For -// information about restoring archived objects, see Restoring Archived Objects +// Otherwise, this action returns an InvalidObjectStateError error. For information +// about restoring archived objects, see Restoring Archived Objects // (https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html). // Encryption request headers, like x-amz-server-side-encryption, should not be // sent for GET requests if your object uses server-side encryption with CMKs @@ -82,8 +82,8 @@ import ( // permission, Amazon S3 will return an HTTP status code 403 ("access denied") // error. // -// Versioning By default, the GET operation returns the current version of -// an object. To return a different version, use the versionId subresource. If the +// Versioning By default, the GET action returns the current version of an +// object. To return a different version, use the versionId subresource. If the // current version of the object is a delete marker, Amazon S3 behaves as if the // object was deleted and includes x-amz-delete-marker: true in the response. For // more information about versioning, see PutBucketVersioning @@ -151,21 +151,22 @@ func (c *Client) GetObject(ctx context.Context, params *GetObjectInput, optFns . type GetObjectInput struct { - // The bucket name containing the object. When using this API with an access point, - // you must direct requests to the access point hostname. The access point hostname - // takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. - // When using this operation with an access point through the AWS SDKs, you provide - // the access point ARN in place of the bucket name. For more information about - // access point ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // The bucket name containing the object. When using this action with an access + // point, you must direct requests to the access point hostname. The access point + // hostname takes the form + // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. // // This member is required. @@ -176,7 +177,7 @@ type GetObjectInput struct { // This member is required. Key *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -234,15 +235,15 @@ type GetObjectInput struct { // Sets the Expires header of the response. ResponseExpires *time.Time - // Specifies the algorithm to use to when encrypting the object (for example, + // Specifies the algorithm to use to when decrypting the object (for example, // AES256). SSECustomerAlgorithm *string - // Specifies the customer-provided encryption key for Amazon S3 to use in - // encrypting data. This value is used to store the object and then it is - // discarded; Amazon S3 does not store the encryption key. The key must be - // appropriate for use with the algorithm specified in the - // x-amz-server-side-encryption-customer-algorithm header. + // Specifies the customer-provided encryption key for Amazon S3 used to encrypt the + // data. This value is used to decrypt the object when recovering it and must match + // the one used when storing the data. The key must be appropriate for use with the + // algorithm specified in the x-amz-server-side-encryption-customer-algorithm + // header. SSECustomerKey *string // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. @@ -306,7 +307,7 @@ type GetObjectOutput struct { // The date and time at which the object is no longer cacheable. Expires *time.Time - // Last modified date of the object + // Creation date of the object. LastModified *time.Time // A map of metadata to store with the object in S3. @@ -341,8 +342,8 @@ type GetObjectOutput struct { // request. RequestCharged types.RequestCharged - // Provides information about object restoration operation and expiration time of - // the restored object copy. + // Provides information about object restoration action and expiration time of the + // restored object copy. Restore *string // If server-side encryption with a customer-provided encryption key was requested, @@ -477,6 +478,7 @@ func addGetObjectUpdateEndpoint(stack *middleware.Stack, options Options) error UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetObjectAcl.go b/service/s3/api_op_GetObjectAcl.go index 1cb1b7ad30e..4ed3c8f65e8 100644 --- a/service/s3/api_op_GetObjectAcl.go +++ b/service/s3/api_op_GetObjectAcl.go @@ -46,14 +46,14 @@ func (c *Client) GetObjectAcl(ctx context.Context, params *GetObjectAclInput, op type GetObjectAclInput struct { // The bucket name that contains the object for which to get the ACL information. - // When using this API with an access point, you must direct requests to the access - // point hostname. The access point hostname takes the form + // When using this action with an access point, you must direct requests to the + // access point hostname. The access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. // // This member is required. Bucket *string @@ -63,7 +63,7 @@ type GetObjectAclInput struct { // This member is required. Key *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -194,6 +194,7 @@ func addGetObjectAclUpdateEndpoint(stack *middleware.Stack, options Options) err UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetObjectLegalHold.go b/service/s3/api_op_GetObjectLegalHold.go index 0172da80cac..71a625ef8ef 100644 --- a/service/s3/api_op_GetObjectLegalHold.go +++ b/service/s3/api_op_GetObjectLegalHold.go @@ -33,14 +33,14 @@ func (c *Client) GetObjectLegalHold(ctx context.Context, params *GetObjectLegalH type GetObjectLegalHoldInput struct { // The bucket name containing the object whose Legal Hold status you want to - // retrieve. When using this API with an access point, you must direct requests to - // the access point hostname. The access point hostname takes the form + // retrieve. When using this action with an access point, you must direct requests + // to the access point hostname. The access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. // // This member is required. Bucket *string @@ -50,7 +50,7 @@ type GetObjectLegalHoldInput struct { // This member is required. Key *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -174,6 +174,7 @@ func addGetObjectLegalHoldUpdateEndpoint(stack *middleware.Stack, options Option UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetObjectLockConfiguration.go b/service/s3/api_op_GetObjectLockConfiguration.go index 5d2a4a682f8..863ba308168 100644 --- a/service/s3/api_op_GetObjectLockConfiguration.go +++ b/service/s3/api_op_GetObjectLockConfiguration.go @@ -34,19 +34,19 @@ func (c *Client) GetObjectLockConfiguration(ctx context.Context, params *GetObje type GetObjectLockConfigurationInput struct { // The bucket whose Object Lock configuration you want to retrieve. When using this - // API with an access point, you must direct requests to the access point hostname. - // The access point hostname takes the form + // action with an access point, you must direct requests to the access point + // hostname. The access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. // // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -159,6 +159,7 @@ func addGetObjectLockConfigurationUpdateEndpoint(stack *middleware.Stack, option UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetObjectRetention.go b/service/s3/api_op_GetObjectRetention.go index ce361486a41..e9a81d4ecc8 100644 --- a/service/s3/api_op_GetObjectRetention.go +++ b/service/s3/api_op_GetObjectRetention.go @@ -33,14 +33,14 @@ func (c *Client) GetObjectRetention(ctx context.Context, params *GetObjectRetent type GetObjectRetentionInput struct { // The bucket name containing the object whose retention settings you want to - // retrieve. When using this API with an access point, you must direct requests to - // the access point hostname. The access point hostname takes the form + // retrieve. When using this action with an access point, you must direct requests + // to the access point hostname. The access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. // // This member is required. Bucket *string @@ -50,7 +50,7 @@ type GetObjectRetentionInput struct { // This member is required. Key *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -174,6 +174,7 @@ func addGetObjectRetentionUpdateEndpoint(stack *middleware.Stack, options Option UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetObjectTagging.go b/service/s3/api_op_GetObjectTagging.go index de4098aaad5..282b11f6003 100644 --- a/service/s3/api_op_GetObjectTagging.go +++ b/service/s3/api_op_GetObjectTagging.go @@ -14,18 +14,22 @@ import ( // Returns the tag-set of an object. You send the GET request against the tagging // subresource associated with the object. To use this operation, you must have -// permission to perform the s3:GetObjectTagging action. By default, the GET -// operation returns information about current version of an object. For a -// versioned bucket, you can have multiple versions of an object in your bucket. To -// retrieve tags of any other version, use the versionId query parameter. You also -// need permission for the s3:GetObjectVersionTagging action. By default, the -// bucket owner has this permission and can grant this permission to others. For -// information about the Amazon S3 object tagging feature, see Object Tagging +// permission to perform the s3:GetObjectTagging action. By default, the GET action +// returns information about current version of an object. For a versioned bucket, +// you can have multiple versions of an object in your bucket. To retrieve tags of +// any other version, use the versionId query parameter. You also need permission +// for the s3:GetObjectVersionTagging action. By default, the bucket owner has this +// permission and can grant this permission to others. For information about the +// Amazon S3 object tagging feature, see Object Tagging // (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-tagging.html). The -// following operation is related to GetObjectTagging: +// following action is related to GetObjectTagging: // // * PutObjectTagging // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectTagging.html) +// +// * +// DeleteObjectTagging +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjectTagging.html) func (c *Client) GetObjectTagging(ctx context.Context, params *GetObjectTaggingInput, optFns ...func(*Options)) (*GetObjectTaggingOutput, error) { if params == nil { params = &GetObjectTaggingInput{} @@ -44,21 +48,21 @@ func (c *Client) GetObjectTagging(ctx context.Context, params *GetObjectTaggingI type GetObjectTaggingInput struct { // The bucket name containing the object for which to get the tagging information. - // When using this API with an access point, you must direct requests to the access - // point hostname. The access point hostname takes the form + // When using this action with an access point, you must direct requests to the + // access point hostname. The access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. // // This member is required. @@ -69,10 +73,18 @@ type GetObjectTaggingInput struct { // This member is required. Key *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string + // Confirms that the requester knows that they will be charged for the request. + // Bucket owners need not specify this parameter in their requests. For information + // about downloading objects from requester pays buckets, see Downloading Objects + // in Requestor Pays Buckets + // (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + // in the Amazon S3 Developer Guide. + RequestPayer types.RequestPayer + // The versionId of the object for which to get the tagging information. VersionId *string } @@ -190,6 +202,7 @@ func addGetObjectTaggingUpdateEndpoint(stack *middleware.Stack, options Options) UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetObjectTorrent.go b/service/s3/api_op_GetObjectTorrent.go index 0529c9462f5..25ba828a6ca 100644 --- a/service/s3/api_op_GetObjectTorrent.go +++ b/service/s3/api_op_GetObjectTorrent.go @@ -20,7 +20,7 @@ import ( // torrent only for objects that are less than 5 GB in size, and that are not // encrypted using server-side encryption with a customer-provided encryption key. // To use GET, you must have READ access to the object. This action is not -// supported by Amazon S3 on Outposts. The following operation is related to +// supported by Amazon S3 on Outposts. The following action is related to // GetObjectTorrent: // // * GetObject @@ -52,7 +52,7 @@ type GetObjectTorrentInput struct { // This member is required. Key *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -174,6 +174,7 @@ func addGetObjectTorrentUpdateEndpoint(stack *middleware.Stack, options Options) UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_GetPublicAccessBlock.go b/service/s3/api_op_GetPublicAccessBlock.go index 38d82ac523d..4ee3a754f90 100644 --- a/service/s3/api_op_GetPublicAccessBlock.go +++ b/service/s3/api_op_GetPublicAccessBlock.go @@ -65,7 +65,7 @@ type GetPublicAccessBlockInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -179,6 +179,7 @@ func addGetPublicAccessBlockUpdateEndpoint(stack *middleware.Stack, options Opti UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_HeadBucket.go b/service/s3/api_op_HeadBucket.go index 52d855e10dc..b09484c6285 100644 --- a/service/s3/api_op_HeadBucket.go +++ b/service/s3/api_op_HeadBucket.go @@ -17,17 +17,19 @@ import ( "time" ) -// This operation is useful to determine if a bucket exists and you have permission -// to access it. The operation returns a 200 OK if the bucket exists and you have -// permission to access it. Otherwise, the operation might return responses such as -// 404 Not Found and 403 Forbidden. To use this operation, you must have +// This action is useful to determine if a bucket exists and you have permission to +// access it. The action returns a 200 OK if the bucket exists and you have +// permission to access it. If the bucket does not exist or you do not have +// permission to access it, the HEAD request returns a generic 404 Not Found or 403 +// Forbidden code. A message body is not included, so you cannot determine the +// exception beyond these error codes. To use this operation, you must have // permissions to perform the s3:ListBucket action. The bucket owner has this // permission by default and can grant this permission to others. For more // information about permissions, see Permissions Related to Bucket Subresource // Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). func (c *Client) HeadBucket(ctx context.Context, params *HeadBucketInput, optFns ...func(*Options)) (*HeadBucketOutput, error) { if params == nil { params = &HeadBucketInput{} @@ -45,27 +47,27 @@ func (c *Client) HeadBucket(ctx context.Context, params *HeadBucketInput, optFns type HeadBucketInput struct { - // The bucket name. When using this API with an access point, you must direct + // The bucket name. When using this action with an access point, you must direct // requests to the access point hostname. The access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. // // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -466,6 +468,7 @@ func addHeadBucketUpdateEndpoint(stack *middleware.Stack, options Options) error UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_HeadObject.go b/service/s3/api_op_HeadObject.go index 52dfec90fe9..3af3676f468 100644 --- a/service/s3/api_op_HeadObject.go +++ b/service/s3/api_op_HeadObject.go @@ -18,17 +18,19 @@ import ( "time" ) -// The HEAD operation retrieves metadata from an object without returning the -// object itself. This operation is useful if you're only interested in an object's -// metadata. To use HEAD, you must have READ access to the object. A HEAD request -// has the same options as a GET operation on an object. The response is identical -// to the GET response except that there is no response body. If you encrypt an -// object by using server-side encryption with customer-provided encryption keys -// (SSE-C) when you store the object in Amazon S3, then when you retrieve the -// metadata from the object, you must use the following headers: +// The HEAD action retrieves metadata from an object without returning the object +// itself. This action is useful if you're only interested in an object's metadata. +// To use HEAD, you must have READ access to the object. A HEAD request has the +// same options as a GET action on an object. The response is identical to the GET +// response except that there is no response body. Because of this, if the HEAD +// request generates an error, it returns a generic 404 Not Found or 403 Forbidden +// code. It is not possible to retrieve the exact exception beyond these error +// codes. If you encrypt an object by using server-side encryption with +// customer-provided encryption keys (SSE-C) when you store the object in Amazon +// S3, then when you retrieve the metadata from the object, you must use the +// following headers: // -// * -// x-amz-server-side-encryption-customer-algorithm +// * x-amz-server-side-encryption-customer-algorithm // // * // x-amz-server-side-encryption-customer-key @@ -39,11 +41,18 @@ import ( // For more information about SSE-C, // see Server-Side Encryption (Using Customer-Provided Encryption Keys) // (https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html). +// +// * // Encryption request headers, like x-amz-server-side-encryption, should not be // sent for GET requests if your object uses server-side encryption with CMKs // stored in AWS KMS (SSE-KMS) or server-side encryption with Amazon S3–managed // encryption keys (SSE-S3). If your object does use these types of keys, you’ll -// get an HTTP 400 BadRequest error. Request headers are limited to 8 KB in size. +// get an HTTP 400 BadRequest error. +// +// * The last modified property in this case is +// the creation date of the object. +// +// Request headers are limited to 8 KB in size. // For more information, see Common Request Headers // (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTCommonRequestHeaders.html). // Consider the following when using request headers: @@ -88,7 +97,7 @@ import ( // Amazon S3 returns an HTTP status code 403 ("access denied") error. // // The -// following operation is related to HeadObject: +// following action is related to HeadObject: // // * GetObject // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html) @@ -109,22 +118,22 @@ func (c *Client) HeadObject(ctx context.Context, params *HeadObjectInput, optFns type HeadObjectInput struct { - // The name of the bucket containing the object. When using this API with an access - // point, you must direct requests to the access point hostname. The access point - // hostname takes the form + // The name of the bucket containing the object. When using this action with an + // access point, you must direct requests to the access point hostname. The access + // point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. // // This member is required. @@ -135,7 +144,7 @@ type HeadObjectInput struct { // This member is required. Key *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -245,7 +254,7 @@ type HeadObjectOutput struct { // The date and time at which the object is no longer cacheable. Expires *time.Time - // Last modified date of the object + // Creation date of the object. LastModified *time.Time // A map of metadata to store with the object in S3. @@ -770,6 +779,7 @@ func addHeadObjectUpdateEndpoint(stack *middleware.Stack, options Options) error UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_ListBucketAnalyticsConfigurations.go b/service/s3/api_op_ListBucketAnalyticsConfigurations.go index 68257520c00..5ab1a123d31 100644 --- a/service/s3/api_op_ListBucketAnalyticsConfigurations.go +++ b/service/s3/api_op_ListBucketAnalyticsConfigurations.go @@ -13,7 +13,7 @@ import ( ) // Lists the analytics configurations for the bucket. You can have up to 1,000 -// analytics configurations per bucket. This operation supports list pagination and +// analytics configurations per bucket. This action supports list pagination and // does not return more than 100 configurations at a time. You should always check // the IsTruncated element in the response. If there are no more configurations to // list, IsTruncated is set to false. If there are more configurations to list, @@ -25,11 +25,11 @@ import ( // default. The bucket owner can grant this permission to others. For more // information about permissions, see Permissions Related to Bucket Subresource // Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). For -// information about Amazon S3 analytics feature, see Amazon S3 Analytics – Storage -// Class Analysis +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). +// For information about Amazon S3 analytics feature, see Amazon S3 Analytics – +// Storage Class Analysis // (https://docs.aws.amazon.com/AmazonS3/latest/dev/analytics-storage-class.html). // The following operations are related to ListBucketAnalyticsConfigurations: // @@ -70,7 +70,7 @@ type ListBucketAnalyticsConfigurationsInput struct { // should begin. ContinuationToken *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -197,6 +197,7 @@ func addListBucketAnalyticsConfigurationsUpdateEndpoint(stack *middleware.Stack, UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_ListBucketIntelligentTieringConfigurations.go b/service/s3/api_op_ListBucketIntelligentTieringConfigurations.go index 1d311ab7a5b..4ed2b8f2e90 100644 --- a/service/s3/api_op_ListBucketIntelligentTieringConfigurations.go +++ b/service/s3/api_op_ListBucketIntelligentTieringConfigurations.go @@ -189,6 +189,7 @@ func addListBucketIntelligentTieringConfigurationsUpdateEndpoint(stack *middlewa UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_ListBucketInventoryConfigurations.go b/service/s3/api_op_ListBucketInventoryConfigurations.go index 0260b091ae6..4014db75b9c 100644 --- a/service/s3/api_op_ListBucketInventoryConfigurations.go +++ b/service/s3/api_op_ListBucketInventoryConfigurations.go @@ -13,22 +13,22 @@ import ( ) // Returns a list of inventory configurations for the bucket. You can have up to -// 1,000 analytics configurations per bucket. This operation supports list -// pagination and does not return more than 100 configurations at a time. Always -// check the IsTruncated element in the response. If there are no more -// configurations to list, IsTruncated is set to false. If there are more -// configurations to list, IsTruncated is set to true, and there is a value in -// NextContinuationToken. You use the NextContinuationToken value to continue the -// pagination of the list by passing the value in continuation-token in the request -// to GET the next page. To use this operation, you must have permissions to -// perform the s3:GetInventoryConfiguration action. The bucket owner has this -// permission by default. The bucket owner can grant this permission to others. For -// more information about permissions, see Permissions Related to Bucket -// Subresource Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// 1,000 analytics configurations per bucket. This action supports list pagination +// and does not return more than 100 configurations at a time. Always check the +// IsTruncated element in the response. If there are no more configurations to +// list, IsTruncated is set to false. If there are more configurations to list, +// IsTruncated is set to true, and there is a value in NextContinuationToken. You +// use the NextContinuationToken value to continue the pagination of the list by +// passing the value in continuation-token in the request to GET the next page. To +// use this operation, you must have permissions to perform the +// s3:GetInventoryConfiguration action. The bucket owner has this permission by +// default. The bucket owner can grant this permission to others. For more +// information about permissions, see Permissions Related to Bucket Subresource +// Operations +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). For -// information about the Amazon S3 inventory feature, see Amazon S3 Inventory +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). +// For information about the Amazon S3 inventory feature, see Amazon S3 Inventory // (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html) The // following operations are related to ListBucketInventoryConfigurations: // @@ -71,7 +71,7 @@ type ListBucketInventoryConfigurationsInput struct { // Amazon S3 understands. ContinuationToken *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -198,6 +198,7 @@ func addListBucketInventoryConfigurationsUpdateEndpoint(stack *middleware.Stack, UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_ListBucketMetricsConfigurations.go b/service/s3/api_op_ListBucketMetricsConfigurations.go index 57927ed5a6a..bfb0ea55d30 100644 --- a/service/s3/api_op_ListBucketMetricsConfigurations.go +++ b/service/s3/api_op_ListBucketMetricsConfigurations.go @@ -15,22 +15,22 @@ import ( // Lists the metrics configurations for the bucket. The metrics configurations are // only for the request metrics of the bucket and do not provide information on // daily storage metrics. You can have up to 1,000 configurations per bucket. This -// operation supports list pagination and does not return more than 100 -// configurations at a time. Always check the IsTruncated element in the response. -// If there are no more configurations to list, IsTruncated is set to false. If -// there are more configurations to list, IsTruncated is set to true, and there is -// a value in NextContinuationToken. You use the NextContinuationToken value to -// continue the pagination of the list by passing the value in continuation-token -// in the request to GET the next page. To use this operation, you must have -// permissions to perform the s3:GetMetricsConfiguration action. The bucket owner -// has this permission by default. The bucket owner can grant this permission to -// others. For more information about permissions, see Permissions Related to -// Bucket Subresource Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// action supports list pagination and does not return more than 100 configurations +// at a time. Always check the IsTruncated element in the response. If there are no +// more configurations to list, IsTruncated is set to false. If there are more +// configurations to list, IsTruncated is set to true, and there is a value in +// NextContinuationToken. You use the NextContinuationToken value to continue the +// pagination of the list by passing the value in continuation-token in the request +// to GET the next page. To use this operation, you must have permissions to +// perform the s3:GetMetricsConfiguration action. The bucket owner has this +// permission by default. The bucket owner can grant this permission to others. For +// more information about permissions, see Permissions Related to Bucket +// Subresource Operations +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). For -// more information about metrics configurations and CloudWatch request metrics, -// see Monitoring Metrics with Amazon CloudWatch +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). +// For more information about metrics configurations and CloudWatch request +// metrics, see Monitoring Metrics with Amazon CloudWatch // (https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html). // The following operations are related to ListBucketMetricsConfigurations: // @@ -73,7 +73,7 @@ type ListBucketMetricsConfigurationsInput struct { // Amazon S3 understands. ContinuationToken *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -201,6 +201,7 @@ func addListBucketMetricsConfigurationsUpdateEndpoint(stack *middleware.Stack, o UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_ListBuckets.go b/service/s3/api_op_ListBuckets.go index 127dc70ee94..82b0b955d9f 100644 --- a/service/s3/api_op_ListBuckets.go +++ b/service/s3/api_op_ListBuckets.go @@ -129,6 +129,7 @@ func addListBucketsUpdateEndpoint(stack *middleware.Stack, options Options) erro UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: false, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_ListMultipartUploads.go b/service/s3/api_op_ListMultipartUploads.go index 1ed082f82d7..4d7a1ac3080 100644 --- a/service/s3/api_op_ListMultipartUploads.go +++ b/service/s3/api_op_ListMultipartUploads.go @@ -12,24 +12,24 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// This operation lists in-progress multipart uploads. An in-progress multipart -// upload is a multipart upload that has been initiated using the Initiate -// Multipart Upload request, but has not yet been completed or aborted. This -// operation returns at most 1,000 multipart uploads in the response. 1,000 -// multipart uploads is the maximum number of uploads a response can include, which -// is also the default value. You can further limit the number of uploads in a -// response by specifying the max-uploads parameter in the response. If additional -// multipart uploads satisfy the list criteria, the response will contain an -// IsTruncated element with the value true. To list the additional multipart -// uploads, use the key-marker and upload-id-marker request parameters. In the -// response, the uploads are sorted by key. If your application has initiated more -// than one multipart upload using the same object key, then uploads in the -// response are first sorted by key. Additionally, uploads are sorted in ascending -// order within each key by the upload initiation time. For more information on -// multipart uploads, see Uploading Objects Using Multipart Upload +// This action lists in-progress multipart uploads. An in-progress multipart upload +// is a multipart upload that has been initiated using the Initiate Multipart +// Upload request, but has not yet been completed or aborted. This action returns +// at most 1,000 multipart uploads in the response. 1,000 multipart uploads is the +// maximum number of uploads a response can include, which is also the default +// value. You can further limit the number of uploads in a response by specifying +// the max-uploads parameter in the response. If additional multipart uploads +// satisfy the list criteria, the response will contain an IsTruncated element with +// the value true. To list the additional multipart uploads, use the key-marker and +// upload-id-marker request parameters. In the response, the uploads are sorted by +// key. If your application has initiated more than one multipart upload using the +// same object key, then uploads in the response are first sorted by key. +// Additionally, uploads are sorted in ascending order within each key by the +// upload initiation time. For more information on multipart uploads, see Uploading +// Objects Using Multipart Upload // (https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html). For // information on permissions required to use the multipart upload API, see -// Multipart Upload API and Permissions +// Multipart Upload and Permissions // (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html). The // following operations are related to ListMultipartUploads: // @@ -70,21 +70,21 @@ func (c *Client) ListMultipartUploads(ctx context.Context, params *ListMultipart type ListMultipartUploadsInput struct { // The name of the bucket to which the multipart upload was initiated. When using - // this API with an access point, you must direct requests to the access point + // this action with an access point, you must direct requests to the access point // hostname. The access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. // // This member is required. @@ -106,7 +106,7 @@ type ListMultipartUploadsInput struct { // response. EncodingType types.EncodingType - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -292,6 +292,7 @@ func addListMultipartUploadsUpdateEndpoint(stack *middleware.Stack, options Opti UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_ListObjectVersions.go b/service/s3/api_op_ListObjectVersions.go index 752b51a04d5..108afc8800d 100644 --- a/service/s3/api_op_ListObjectVersions.go +++ b/service/s3/api_op_ListObjectVersions.go @@ -71,14 +71,14 @@ type ListObjectVersionsInput struct { // response. EncodingType types.EncodingType - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string // Specifies the key to start with when listing objects in a bucket. KeyMarker *string - // Sets the maximum number of keys returned in the response. By default the API + // Sets the maximum number of keys returned in the response. By default the action // returns up to 1,000 key names. The response might contain fewer keys but will // never contain more. If additional keys satisfy the search criteria, but were not // returned because max-keys was exceeded, the response contains true. To return @@ -257,6 +257,7 @@ func addListObjectVersionsUpdateEndpoint(stack *middleware.Stack, options Option UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_ListObjects.go b/service/s3/api_op_ListObjects.go index 92e3baacea6..d4cd23c3f2c 100644 --- a/service/s3/api_op_ListObjects.go +++ b/service/s3/api_op_ListObjects.go @@ -16,7 +16,7 @@ import ( // request parameters as selection criteria to return a subset of the objects in a // bucket. A 200 OK response can contain valid or invalid XML. Be sure to design // your application to parse the contents of the response and handle it -// appropriately. This API has been revised. We recommend that you use the newer +// appropriately. This action has been revised. We recommend that you use the newer // version, ListObjectsV2 // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html), when // developing applications. For backward compatibility, Amazon S3 continues to @@ -58,22 +58,22 @@ func (c *Client) ListObjects(ctx context.Context, params *ListObjectsInput, optF type ListObjectsInput struct { - // The name of the bucket containing the objects. When using this API with an + // The name of the bucket containing the objects. When using this action with an // access point, you must direct requests to the access point hostname. The access // point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. // // This member is required. @@ -90,14 +90,14 @@ type ListObjectsInput struct { // response. EncodingType types.EncodingType - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string // Specifies the key to start with when listing objects in a bucket. Marker *string - // Sets the maximum number of keys returned in the response. By default the API + // Sets the maximum number of keys returned in the response. By default the action // returns up to 1,000 key names. The response might contain fewer keys but will // never contain more. MaxKeys int32 @@ -113,15 +113,15 @@ type ListObjectsInput struct { type ListObjectsOutput struct { - // All of the keys rolled up in a common prefix count as a single return when - // calculating the number of returns. A response can contain CommonPrefixes only if - // you specify a delimiter. CommonPrefixes contains all (if there are any) keys - // between Prefix and the next occurrence of the string specified by the delimiter. - // CommonPrefixes lists keys that act like subdirectories in the directory - // specified by Prefix. For example, if the prefix is notes/ and the delimiter is a - // slash (/) as in notes/summer/july, the common prefix is notes/summer/. All of - // the keys that roll up into a common prefix count as a single return when - // calculating the number of returns. + // All of the keys (up to 1,000) rolled up in a common prefix count as a single + // return when calculating the number of returns. A response can contain + // CommonPrefixes only if you specify a delimiter. CommonPrefixes contains all (if + // there are any) keys between Prefix and the next occurrence of the string + // specified by the delimiter. CommonPrefixes lists keys that act like + // subdirectories in the directory specified by Prefix. For example, if the prefix + // is notes/ and the delimiter is a slash (/) as in notes/summer/july, the common + // prefix is notes/summer/. All of the keys that roll up into a common prefix count + // as a single return when calculating the number of returns. CommonPrefixes []types.CommonPrefix // Metadata about each object returned. @@ -266,6 +266,7 @@ func addListObjectsUpdateEndpoint(stack *middleware.Stack, options Options) erro UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_ListObjectsV2.go b/service/s3/api_op_ListObjectsV2.go index a9f17e9f02c..ae273661eb7 100644 --- a/service/s3/api_op_ListObjectsV2.go +++ b/service/s3/api_op_ListObjectsV2.go @@ -17,18 +17,19 @@ import ( // request parameters as selection criteria to return a subset of the objects in a // bucket. A 200 OK response can contain valid or invalid XML. Make sure to design // your application to parse the contents of the response and handle it -// appropriately. To use this operation, you must have READ access to the bucket. -// To use this operation in an AWS Identity and Access Management (IAM) policy, you -// must have permissions to perform the s3:ListBucket action. The bucket owner has -// this permission by default and can grant this permission to others. For more -// information about permissions, see Permissions Related to Bucket Subresource -// Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// appropriately. Objects are returned sorted in an ascending order of the +// respective key names in the list. To use this operation, you must have READ +// access to the bucket. To use this action in an AWS Identity and Access +// Management (IAM) policy, you must have permissions to perform the s3:ListBucket +// action. The bucket owner has this permission by default and can grant this +// permission to others. For more information about permissions, see Permissions +// Related to Bucket Subresource Operations +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). This -// section describes the latest revision of the API. We recommend that you use this -// revised API for application development. For backward compatibility, Amazon S3 -// continues to support the prior version of this API, ListObjects +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). +// This section describes the latest revision of this action. We recommend that you +// use this revised API for application development. For backward compatibility, +// Amazon S3 continues to support the prior version of this API, ListObjects // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html). To get a // list of your buckets, see ListBuckets // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html). The @@ -61,21 +62,21 @@ func (c *Client) ListObjectsV2(ctx context.Context, params *ListObjectsV2Input, type ListObjectsV2Input struct { - // Bucket name to list. When using this API with an access point, you must direct - // requests to the access point hostname. The access point hostname takes the form - // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // Bucket name to list. When using this action with an access point, you must + // direct requests to the access point hostname. The access point hostname takes + // the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When + // using this action with an access point through the AWS SDKs, you provide the + // access point ARN in place of the bucket name. For more information about access + // point ARNs, see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. // // This member is required. @@ -91,7 +92,7 @@ type ListObjectsV2Input struct { // Encoding type used by Amazon S3 to encode object keys in the response. EncodingType types.EncodingType - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -99,7 +100,7 @@ type ListObjectsV2Input struct { // field with each key in the result then set the fetch owner field to true. FetchOwner bool - // Sets the maximum number of keys returned in the response. By default the API + // Sets the maximum number of keys returned in the response. By default the action // returns up to 1,000 key names. The response might contain fewer keys but will // never contain more. MaxKeys int32 @@ -119,15 +120,15 @@ type ListObjectsV2Input struct { type ListObjectsV2Output struct { - // All of the keys rolled up into a common prefix count as a single return when - // calculating the number of returns. A response can contain CommonPrefixes only if - // you specify a delimiter. CommonPrefixes contains all (if there are any) keys - // between Prefix and the next occurrence of the string specified by a delimiter. - // CommonPrefixes lists keys that act like subdirectories in the directory - // specified by Prefix. For example, if the prefix is notes/ and the delimiter is a - // slash (/) as in notes/summer/july, the common prefix is notes/summer/. All of - // the keys that roll up into a common prefix count as a single return when - // calculating the number of returns. + // All of the keys (up to 1,000) rolled up into a common prefix count as a single + // return when calculating the number of returns. A response can contain + // CommonPrefixes only if you specify a delimiter. CommonPrefixes contains all (if + // there are any) keys between Prefix and the next occurrence of the string + // specified by a delimiter. CommonPrefixes lists keys that act like subdirectories + // in the directory specified by Prefix. For example, if the prefix is notes/ and + // the delimiter is a slash (/) as in notes/summer/july, the common prefix is + // notes/summer/. All of the keys that roll up into a common prefix count as a + // single return when calculating the number of returns. CommonPrefixes []types.CommonPrefix // Metadata about each object returned. @@ -155,30 +156,30 @@ type ListObjectsV2Output struct { IsTruncated bool // KeyCount is the number of keys returned with this request. KeyCount will always - // be less than equals to MaxKeys field. Say you ask for 50 keys, your result will - // include less than equals 50 keys + // be less than or equals to MaxKeys field. Say you ask for 50 keys, your result + // will include less than equals 50 keys KeyCount int32 - // Sets the maximum number of keys returned in the response. By default the API + // Sets the maximum number of keys returned in the response. By default the action // returns up to 1,000 key names. The response might contain fewer keys but will // never contain more. MaxKeys int32 - // The bucket name. When using this API with an access point, you must direct + // The bucket name. When using this action with an access point, you must direct // requests to the access point hostname. The access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. Name *string @@ -279,7 +280,7 @@ var _ ListObjectsV2APIClient = (*Client)(nil) // ListObjectsV2PaginatorOptions is the paginator options for ListObjectsV2 type ListObjectsV2PaginatorOptions struct { - // Sets the maximum number of keys returned in the response. By default the API + // Sets the maximum number of keys returned in the response. By default the action // returns up to 1,000 key names. The response might contain fewer keys but will // never contain more. Limit int32 @@ -383,6 +384,7 @@ func addListObjectsV2UpdateEndpoint(stack *middleware.Stack, options Options) er UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_ListParts.go b/service/s3/api_op_ListParts.go index 2632d4c4807..0af8f759cfc 100644 --- a/service/s3/api_op_ListParts.go +++ b/service/s3/api_op_ListParts.go @@ -28,7 +28,7 @@ import ( // information on multipart uploads, see Uploading Objects Using Multipart Upload // (https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html). For // information on permissions required to use the multipart upload API, see -// Multipart Upload API and Permissions +// Multipart Upload and Permissions // (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html). The // following operations are related to ListParts: // @@ -68,21 +68,21 @@ func (c *Client) ListParts(ctx context.Context, params *ListPartsInput, optFns . type ListPartsInput struct { // The name of the bucket to which the parts are being uploaded. When using this - // API with an access point, you must direct requests to the access point hostname. - // The access point hostname takes the form + // action with an access point, you must direct requests to the access point + // hostname. The access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. // // This member is required. @@ -98,7 +98,7 @@ type ListPartsInput struct { // This member is required. UploadId *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -372,6 +372,7 @@ func addListPartsUpdateEndpoint(stack *middleware.Stack, options Options) error UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutBucketAccelerateConfiguration.go b/service/s3/api_op_PutBucketAccelerateConfiguration.go index 38c7ab3e156..fdbad2a6972 100644 --- a/service/s3/api_op_PutBucketAccelerateConfiguration.go +++ b/service/s3/api_op_PutBucketAccelerateConfiguration.go @@ -19,11 +19,11 @@ import ( // permission by default. The bucket owner can grant this permission to others. For // more information about permissions, see Permissions Related to Bucket // Subresource Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). The -// Transfer Acceleration state of a bucket can be set to one of the following two -// values: +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). +// The Transfer Acceleration state of a bucket can be set to one of the following +// two values: // // * Enabled – Enables accelerated data transfers to the bucket. // @@ -33,7 +33,7 @@ import ( // The // GetBucketAccelerateConfiguration // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketAccelerateConfiguration.html) -// operation returns the transfer acceleration state of a bucket. After setting the +// action returns the transfer acceleration state of a bucket. After setting the // Transfer Acceleration state of a bucket to Enabled, it might take up to thirty // minutes before the data transfer rates to the bucket increase. The name of the // bucket used for Transfer Acceleration must be DNS-compliant and must not contain @@ -76,7 +76,7 @@ type PutBucketAccelerateConfigurationInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -185,6 +185,7 @@ func addPutBucketAccelerateConfigurationUpdateEndpoint(stack *middleware.Stack, UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutBucketAcl.go b/service/s3/api_op_PutBucketAcl.go index ac98127702f..032b3b7f5e5 100644 --- a/service/s3/api_op_PutBucketAcl.go +++ b/service/s3/api_op_PutBucketAcl.go @@ -178,7 +178,7 @@ type PutBucketAclInput struct { // Line Interface (CLI) or AWS SDKs, this field is calculated automatically. ContentMD5 *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -306,6 +306,7 @@ func addPutBucketAclUpdateEndpoint(stack *middleware.Stack, options Options) err UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutBucketAnalyticsConfiguration.go b/service/s3/api_op_PutBucketAnalyticsConfiguration.go index 337da2220fd..952ca004702 100644 --- a/service/s3/api_op_PutBucketAnalyticsConfiguration.go +++ b/service/s3/api_op_PutBucketAnalyticsConfiguration.go @@ -34,9 +34,9 @@ import ( // default. The bucket owner can grant this permission to others. For more // information about permissions, see Permissions Related to Bucket Subresource // Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). // Special Errors // // * HTTP Error: HTTP 400 Bad Request @@ -108,7 +108,7 @@ type PutBucketAnalyticsConfigurationInput struct { // This member is required. Id *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -217,6 +217,7 @@ func addPutBucketAnalyticsConfigurationUpdateEndpoint(stack *middleware.Stack, o UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutBucketCors.go b/service/s3/api_op_PutBucketCors.go index f547945d1d5..7712cdc3ea9 100644 --- a/service/s3/api_op_PutBucketCors.go +++ b/service/s3/api_op_PutBucketCors.go @@ -41,8 +41,8 @@ import ( // // For // more information about CORS, go to Enabling Cross-Origin Resource Sharing -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the Amazon Simple -// Storage Service Developer Guide. Related Resources +// (https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the Amazon S3 +// User Guide. Related Resources // // * GetBucketCors // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketCors.html) @@ -78,8 +78,8 @@ type PutBucketCorsInput struct { // Describes the cross-origin access configuration for objects in an Amazon S3 // bucket. For more information, see Enabling Cross-Origin Resource Sharing - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the Amazon Simple - // Storage Service Developer Guide. + // (https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the Amazon S3 + // User Guide. // // This member is required. CORSConfiguration *types.CORSConfiguration @@ -91,7 +91,7 @@ type PutBucketCorsInput struct { // Line Interface (CLI) or AWS SDKs, this field is calculated automatically. ContentMD5 *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -203,6 +203,7 @@ func addPutBucketCorsUpdateEndpoint(stack *middleware.Stack, options Options) er UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutBucketEncryption.go b/service/s3/api_op_PutBucketEncryption.go index 5c9d2c5802d..ff1e1125769 100644 --- a/service/s3/api_op_PutBucketEncryption.go +++ b/service/s3/api_op_PutBucketEncryption.go @@ -12,30 +12,29 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// This operation uses the encryption subresource to configure default encryption -// and Amazon S3 Bucket Key for an existing bucket. Default encryption for a bucket -// can use server-side encryption with Amazon S3-managed keys (SSE-S3) or AWS KMS +// This action uses the encryption subresource to configure default encryption and +// Amazon S3 Bucket Key for an existing bucket. Default encryption for a bucket can +// use server-side encryption with Amazon S3-managed keys (SSE-S3) or AWS KMS // customer master keys (SSE-KMS). If you specify default encryption using SSE-KMS, // you can also configure Amazon S3 Bucket Key. For information about default // encryption, see Amazon S3 default bucket encryption // (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) in the -// Amazon Simple Storage Service Developer Guide. For more information about S3 -// Bucket Keys, see Amazon S3 Bucket Keys -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) in the Amazon -// Simple Storage Service Developer Guide. This operation requires AWS Signature -// Version 4. For more information, see Authenticating Requests (AWS Signature -// Version 4). To use this operation, you must have permissions to perform the +// Amazon S3 User Guide. For more information about S3 Bucket Keys, see Amazon S3 +// Bucket Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) in +// the Amazon S3 User Guide. This action requires AWS Signature Version 4. For more +// information, see Authenticating Requests (AWS Signature Version 4) +// (https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html). +// To use this operation, you must have permissions to perform the // s3:PutEncryptionConfiguration action. The bucket owner has this permission by // default. The bucket owner can grant this permission to others. For more // information about permissions, see Permissions Related to Bucket Subresource // Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) in the -// Amazon Simple Storage Service Developer Guide. Related Resources +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) +// in the Amazon S3 User Guide. Related Resources // -// * -// GetBucketEncryption +// * GetBucketEncryption // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketEncryption.html) // // * @@ -78,7 +77,7 @@ type PutBucketEncryptionInput struct { // AWS SDKs, this field is calculated automatically. ContentMD5 *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -190,6 +189,7 @@ func addPutBucketEncryptionUpdateEndpoint(stack *middleware.Stack, options Optio UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutBucketIntelligentTieringConfiguration.go b/service/s3/api_op_PutBucketIntelligentTieringConfiguration.go index fb8984b91ba..e3dca3abfea 100644 --- a/service/s3/api_op_PutBucketIntelligentTieringConfiguration.go +++ b/service/s3/api_op_PutBucketIntelligentTieringConfiguration.go @@ -12,7 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Puts a S3 Intelligent-Tiering configuration to the specified bucket. The S3 +// Puts a S3 Intelligent-Tiering configuration to the specified bucket. You can +// have up to 1,000 S3 Intelligent-Tiering configurations per bucket. The S3 // Intelligent-Tiering storage class is designed to optimize storage costs by // automatically moving data to the most cost-effective storage access tier, // without additional operational overhead. S3 Intelligent-Tiering delivers @@ -39,6 +40,36 @@ import ( // * // ListBucketIntelligentTieringConfigurations // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketIntelligentTieringConfigurations.html) +// +// You +// only need S3 Intelligent-Tiering enabled on a bucket if you want to +// automatically move objects stored in the S3 Intelligent-Tiering storage class to +// the Archive Access or Deep Archive Access tier. Special Errors +// +// * HTTP 400 Bad +// Request Error +// +// * Code: InvalidArgument +// +// * Cause: Invalid Argument +// +// * HTTP 400 +// Bad Request Error +// +// * Code: TooManyConfigurations +// +// * Cause: You are attempting to +// create a new configuration but have already reached the 1,000-configuration +// limit. +// +// * HTTP 403 Forbidden Error +// +// * Code: AccessDenied +// +// * Cause: You are not +// the owner of the specified bucket, or you do not have the +// s3:PutIntelligentTieringConfiguration bucket permission to set the configuration +// on the bucket. func (c *Client) PutBucketIntelligentTieringConfiguration(ctx context.Context, params *PutBucketIntelligentTieringConfigurationInput, optFns ...func(*Options)) (*PutBucketIntelligentTieringConfigurationOutput, error) { if params == nil { params = &PutBucketIntelligentTieringConfigurationInput{} @@ -177,6 +208,7 @@ func addPutBucketIntelligentTieringConfigurationUpdateEndpoint(stack *middleware UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutBucketInventoryConfiguration.go b/service/s3/api_op_PutBucketInventoryConfiguration.go index 2fd12d8c11f..3c546421212 100644 --- a/service/s3/api_op_PutBucketInventoryConfiguration.go +++ b/service/s3/api_op_PutBucketInventoryConfiguration.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// This implementation of the PUT operation adds an inventory configuration +// This implementation of the PUT action adds an inventory configuration // (identified by the inventory ID) to the bucket. You can have up to 1,000 // inventory configurations per bucket. Amazon S3 inventory generates inventories // of the objects in the bucket on a daily or weekly basis, and the results are @@ -25,48 +25,48 @@ import ( // metadata to include and whether to inventory all object versions or only current // versions. For more information, see Amazon S3 Inventory // (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html) in the -// Amazon Simple Storage Service Developer Guide. You must create a bucket policy -// on the destination bucket to grant permissions to Amazon S3 to write objects to -// the bucket in the defined location. For an example policy, see Granting -// Permissions for Amazon S3 Inventory and Storage Class Analysis +// Amazon S3 User Guide. You must create a bucket policy on the destination bucket +// to grant permissions to Amazon S3 to write objects to the bucket in the defined +// location. For an example policy, see Granting Permissions for Amazon S3 +// Inventory and Storage Class Analysis // (https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html#example-bucket-policies-use-case-9). // To use this operation, you must have permissions to perform the // s3:PutInventoryConfiguration action. The bucket owner has this permission by // default and can grant this permission to others. For more information about // permissions, see Permissions Related to Bucket Subresource Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) in the -// Amazon Simple Storage Service Developer Guide. Special Errors +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) +// in the Amazon S3 User Guide. Special Errors // -// * HTTP 400 Bad -// Request Error +// * HTTP 400 Bad Request Error // -// * Code: InvalidArgument +// * +// Code: InvalidArgument // // * Cause: Invalid Argument // -// * HTTP 400 -// Bad Request Error +// * HTTP 400 Bad Request +// Error // // * Code: TooManyConfigurations // -// * Cause: You are attempting to -// create a new configuration but have already reached the 1,000-configuration -// limit. +// * Cause: You are attempting to create a +// new configuration but have already reached the 1,000-configuration limit. // -// * HTTP 403 Forbidden Error +// * +// HTTP 403 Forbidden Error // // * Code: AccessDenied // -// * Cause: You are not -// the owner of the specified bucket, or you do not have the -// s3:PutInventoryConfiguration bucket permission to set the configuration on the -// bucket. +// * Cause: You are not the owner +// of the specified bucket, or you do not have the s3:PutInventoryConfiguration +// bucket permission to set the configuration on the bucket. // // Related Resources // -// * GetBucketInventoryConfiguration +// * +// GetBucketInventoryConfiguration // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketInventoryConfiguration.html) // // * @@ -108,7 +108,7 @@ type PutBucketInventoryConfigurationInput struct { // This member is required. InventoryConfiguration *types.InventoryConfiguration - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -217,6 +217,7 @@ func addPutBucketInventoryConfigurationUpdateEndpoint(stack *middleware.Stack, o UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutBucketLifecycleConfiguration.go b/service/s3/api_op_PutBucketLifecycleConfiguration.go index dd554732f67..cb4e073c0a7 100644 --- a/service/s3/api_op_PutBucketLifecycleConfiguration.go +++ b/service/s3/api_op_PutBucketLifecycleConfiguration.go @@ -15,12 +15,13 @@ import ( // Creates a new lifecycle configuration for the bucket or replaces an existing // lifecycle configuration. For information about lifecycle configuration, see // Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). Bucket -// lifecycle configuration now supports specifying a lifecycle rule using an object -// key name prefix, one or more object tags, or a combination of both. Accordingly, -// this section describes the latest API. The previous version of the API supported -// filtering based only on an object key name prefix, which is supported for -// backward compatibility. For the related API description, see PutBucketLifecycle +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). +// Bucket lifecycle configuration now supports specifying a lifecycle rule using an +// object key name prefix, one or more object tags, or a combination of both. +// Accordingly, this section describes the latest API. The previous version of the +// API supported filtering based only on an object key name prefix, which is +// supported for backward compatibility. For the related API description, see +// PutBucketLifecycle // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycle.html). // Rules You specify the lifecycle configuration in your request body. The // lifecycle configuration is specified as XML consisting of one or more rules. @@ -64,8 +65,8 @@ import ( // // For more information about permissions, see // Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). The -// following are related to PutBucketLifecycleConfiguration: +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). +// The following are related to PutBucketLifecycleConfiguration: // // * Examples of // Lifecycle Configuration @@ -100,7 +101,7 @@ type PutBucketLifecycleConfigurationInput struct { // This member is required. Bucket *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -215,6 +216,7 @@ func addPutBucketLifecycleConfigurationUpdateEndpoint(stack *middleware.Stack, o UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutBucketLogging.go b/service/s3/api_op_PutBucketLogging.go index b9fc986ff77..fb2be6dded9 100644 --- a/service/s3/api_op_PutBucketLogging.go +++ b/service/s3/api_op_PutBucketLogging.go @@ -90,7 +90,7 @@ type PutBucketLoggingInput struct { // automatically. ContentMD5 *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -202,6 +202,7 @@ func addPutBucketLoggingUpdateEndpoint(stack *middleware.Stack, options Options) UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutBucketMetricsConfiguration.go b/service/s3/api_op_PutBucketMetricsConfiguration.go index ea997182c94..2550c9b8216 100644 --- a/service/s3/api_op_PutBucketMetricsConfiguration.go +++ b/service/s3/api_op_PutBucketMetricsConfiguration.go @@ -21,10 +21,10 @@ import ( // permission by default. The bucket owner can grant this permission to others. For // more information about permissions, see Permissions Related to Bucket // Subresource Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). For -// information about CloudWatch request metrics for Amazon S3, see Monitoring +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). +// For information about CloudWatch request metrics for Amazon S3, see Monitoring // Metrics with Amazon CloudWatch // (https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html). // The following operations are related to PutBucketMetricsConfiguration: @@ -83,7 +83,7 @@ type PutBucketMetricsConfigurationInput struct { // This member is required. MetricsConfiguration *types.MetricsConfiguration - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -192,6 +192,7 @@ func addPutBucketMetricsConfigurationUpdateEndpoint(stack *middleware.Stack, opt UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutBucketNotificationConfiguration.go b/service/s3/api_op_PutBucketNotificationConfiguration.go index f6398222218..86ae6d003be 100644 --- a/service/s3/api_op_PutBucketNotificationConfiguration.go +++ b/service/s3/api_op_PutBucketNotificationConfiguration.go @@ -20,13 +20,13 @@ import ( // S3 to publish and the destination where you want Amazon S3 to publish an event // notification when it detects an event of the specified type. By default, your // bucket has no event notifications configured. That is, the notification -// configuration will be an empty NotificationConfiguration. This operation -// replaces the existing notification configuration with the configuration you -// include in the request body. After Amazon S3 receives this request, it first -// verifies that any Amazon Simple Notification Service (Amazon SNS) or Amazon -// Simple Queue Service (Amazon SQS) destination exists, and that the bucket owner -// has permission to publish to it by sending a test notification. In the case of -// AWS Lambda destinations, Amazon S3 verifies that the Lambda function permissions +// configuration will be an empty NotificationConfiguration. This action replaces +// the existing notification configuration with the configuration you include in +// the request body. After Amazon S3 receives this request, it first verifies that +// any Amazon Simple Notification Service (Amazon SNS) or Amazon Simple Queue +// Service (Amazon SQS) destination exists, and that the bucket owner has +// permission to publish to it by sending a test notification. In the case of AWS +// Lambda destinations, Amazon S3 verifies that the Lambda function permissions // grant Amazon S3 permission to invoke the function from the Amazon S3 bucket. For // more information, see Configuring Notifications for Amazon S3 Events // (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html). You @@ -37,12 +37,12 @@ import ( // PUT notification is an atomic operation. For example, suppose your notification // configuration includes SNS topic, SQS queue, and Lambda function configurations. // When you send a PUT request with this configuration, Amazon S3 sends test -// messages to your SNS topic. If the message fails, the entire PUT operation will +// messages to your SNS topic. If the message fails, the entire PUT action will // fail, and Amazon S3 will not add the configuration to your bucket. Responses If // the configuration in the request body includes only one TopicConfiguration // specifying only the s3:ReducedRedundancyLostObject event type, the response will // also include the x-amz-sns-test-message-id header containing the message ID of -// the test notification sent to the topic. The following operation is related to +// the test notification sent to the topic. The following action is related to // PutBucketNotificationConfiguration: // // * GetBucketNotificationConfiguration @@ -75,7 +75,7 @@ type PutBucketNotificationConfigurationInput struct { // This member is required. NotificationConfiguration *types.NotificationConfiguration - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -184,6 +184,7 @@ func addPutBucketNotificationConfigurationUpdateEndpoint(stack *middleware.Stack UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutBucketOwnershipControls.go b/service/s3/api_op_PutBucketOwnershipControls.go index 90132d8a308..390fd9d6564 100644 --- a/service/s3/api_op_PutBucketOwnershipControls.go +++ b/service/s3/api_op_PutBucketOwnershipControls.go @@ -57,7 +57,7 @@ type PutBucketOwnershipControlsInput struct { // automatically. ContentMD5 *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -169,6 +169,7 @@ func addPutBucketOwnershipControlsUpdateEndpoint(stack *middleware.Stack, option UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutBucketPolicy.go b/service/s3/api_op_PutBucketPolicy.go index aadcfe841cc..50603991ff1 100644 --- a/service/s3/api_op_PutBucketPolicy.go +++ b/service/s3/api_op_PutBucketPolicy.go @@ -66,7 +66,7 @@ type PutBucketPolicyInput struct { // Interface (CLI) or AWS SDKs, this field is calculated automatically. ContentMD5 *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -178,6 +178,7 @@ func addPutBucketPolicyUpdateEndpoint(stack *middleware.Stack, options Options) UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutBucketReplication.go b/service/s3/api_op_PutBucketReplication.go index a44af9b8370..2f5d8395a4d 100644 --- a/service/s3/api_op_PutBucketReplication.go +++ b/service/s3/api_op_PutBucketReplication.go @@ -16,7 +16,7 @@ import ( // information, see Replication // (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html) in the Amazon // S3 Developer Guide. To perform this operation, the user or role performing the -// operation must have the iam:PassRole +// action must have the iam:PassRole // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html) // permission. Specify the replication configuration in the request body. In the // replication configuration, you provide the name of the destination bucket or @@ -42,7 +42,7 @@ import ( // Permissions in a Policy // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html) and // Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). // Handling Replication of Encrypted Objects By default, Amazon S3 doesn't // replicate objects that are stored at rest using server-side encryption with CMKs // stored in AWS KMS. To replicate AWS KMS-encrypted objects, add the following: @@ -98,7 +98,7 @@ type PutBucketReplicationInput struct { // Line Interface (CLI) or AWS SDKs, this field is calculated automatically. ContentMD5 *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -213,6 +213,7 @@ func addPutBucketReplicationUpdateEndpoint(stack *middleware.Stack, options Opti UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutBucketRequestPayment.go b/service/s3/api_op_PutBucketRequestPayment.go index b486030c870..8f4ba379bcb 100644 --- a/service/s3/api_op_PutBucketRequestPayment.go +++ b/service/s3/api_op_PutBucketRequestPayment.go @@ -52,14 +52,14 @@ type PutBucketRequestPaymentInput struct { // This member is required. RequestPaymentConfiguration *types.RequestPaymentConfiguration - // >The base64-encoded 128-bit MD5 digest of the data. You must use this header as - // a message integrity check to verify that the request body was not corrupted in + // The base64-encoded 128-bit MD5 digest of the data. You must use this header as a + // message integrity check to verify that the request body was not corrupted in // transit. For more information, see RFC 1864 // (http://www.ietf.org/rfc/rfc1864.txt). For requests made using the AWS Command // Line Interface (CLI) or AWS SDKs, this field is calculated automatically. ContentMD5 *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -171,6 +171,7 @@ func addPutBucketRequestPaymentUpdateEndpoint(stack *middleware.Stack, options O UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutBucketTagging.go b/service/s3/api_op_PutBucketTagging.go index 33312209b51..e6b4d9cbcaa 100644 --- a/service/s3/api_op_PutBucketTagging.go +++ b/service/s3/api_op_PutBucketTagging.go @@ -28,9 +28,9 @@ import ( // action. The bucket owner has this permission by default and can grant this // permission to others. For more information about permissions, see Permissions // Related to Bucket Subresource Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). // PutBucketTagging has the following special errors: // // * Error code: @@ -52,7 +52,7 @@ import ( // * Error code: OperationAbortedError // // * Description: A conflicting -// conditional operation is currently in progress against this resource. Please try +// conditional action is currently in progress against this resource. Please try // again. // // * Error code: InternalError @@ -103,7 +103,7 @@ type PutBucketTaggingInput struct { // Line Interface (CLI) or AWS SDKs, this field is calculated automatically. ContentMD5 *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -215,6 +215,7 @@ func addPutBucketTaggingUpdateEndpoint(stack *middleware.Stack, options Options) UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutBucketVersioning.go b/service/s3/api_op_PutBucketVersioning.go index 248d379289f..5ea16faf61b 100644 --- a/service/s3/api_op_PutBucketVersioning.go +++ b/service/s3/api_op_PutBucketVersioning.go @@ -77,7 +77,7 @@ type PutBucketVersioningInput struct { // Line Interface (CLI) or AWS SDKs, this field is calculated automatically. ContentMD5 *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -193,6 +193,7 @@ func addPutBucketVersioningUpdateEndpoint(stack *middleware.Stack, options Optio UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutBucketWebsite.go b/service/s3/api_op_PutBucketWebsite.go index 7b36f959d75..21273e9477f 100644 --- a/service/s3/api_op_PutBucketWebsite.go +++ b/service/s3/api_op_PutBucketWebsite.go @@ -18,38 +18,38 @@ import ( // index document and any redirect rules. For more information, see Hosting // Websites on Amazon S3 // (https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html). This PUT -// operation requires the S3:PutBucketWebsite permission. By default, only the -// bucket owner can configure the website attached to a bucket; however, bucket -// owners can allow other users to set the website configuration by writing a -// bucket policy that grants them the S3:PutBucketWebsite permission. To redirect -// all website requests sent to the bucket's website endpoint, you add a website -// configuration with the following elements. Because all requests are sent to -// another website, you don't need to provide index document name for the -// bucket. +// action requires the S3:PutBucketWebsite permission. By default, only the bucket +// owner can configure the website attached to a bucket; however, bucket owners can +// allow other users to set the website configuration by writing a bucket policy +// that grants them the S3:PutBucketWebsite permission. To redirect all website +// requests sent to the bucket's website endpoint, you add a website configuration +// with the following elements. Because all requests are sent to another website, +// you don't need to provide index document name for the bucket. // -// * WebsiteConfiguration +// * +// WebsiteConfiguration // // * RedirectAllRequestsTo // // * HostName // -// * -// Protocol +// * Protocol // -// If you want granular control over redirects, you can use the following -// elements to add routing rules that describe conditions for redirecting requests -// and information about the redirect destination. In this case, the website -// configuration must provide an index document for the bucket, because some -// requests might not be redirected. +// If you +// want granular control over redirects, you can use the following elements to add +// routing rules that describe conditions for redirecting requests and information +// about the redirect destination. In this case, the website configuration must +// provide an index document for the bucket, because some requests might not be +// redirected. // // * WebsiteConfiguration // // * IndexDocument // -// * -// Suffix +// * Suffix // -// * ErrorDocument +// * +// ErrorDocument // // * Key // @@ -82,7 +82,7 @@ import ( // require more than 50 routing rules, you can use object redirect. For more // information, see Configuring an Object Redirect // (https://docs.aws.amazon.com/AmazonS3/latest/dev/how-to-page-redirect.html) in -// the Amazon Simple Storage Service Developer Guide. +// the Amazon S3 User Guide. func (c *Client) PutBucketWebsite(ctx context.Context, params *PutBucketWebsiteInput, optFns ...func(*Options)) (*PutBucketWebsiteOutput, error) { if params == nil { params = &PutBucketWebsiteInput{} @@ -117,7 +117,7 @@ type PutBucketWebsiteInput struct { // Line Interface (CLI) or AWS SDKs, this field is calculated automatically. ContentMD5 *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -229,6 +229,7 @@ func addPutBucketWebsiteUpdateEndpoint(stack *middleware.Stack, options Options) UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutObject.go b/service/s3/api_op_PutObject.go index 291218c91f4..037bda3df86 100644 --- a/service/s3/api_op_PutObject.go +++ b/service/s3/api_op_PutObject.go @@ -41,12 +41,12 @@ import ( // (SSE-KMS), you can enable an S3 Bucket Key at the object-level. For more // information, see Amazon S3 Bucket Keys // (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) in the Amazon -// Simple Storage Service Developer Guide. Access Control List (ACL)-Specific -// Request Headers You can use headers to grant ACL- based permissions. By default, -// all objects are private. Only the owner has full access control. When adding a -// new object, you can grant permissions to individual AWS accounts or to -// predefined groups defined by Amazon S3. These permissions are then added to the -// ACL on the object. For more information, see Access Control List (ACL) Overview +// S3 User Guide. Access Control List (ACL)-Specific Request Headers You can use +// headers to grant ACL- based permissions. By default, all objects are private. +// Only the owner has full access control. When adding a new object, you can grant +// permissions to individual AWS accounts or to predefined groups defined by Amazon +// S3. These permissions are then added to the ACL on the object. For more +// information, see Access Control List (ACL) Overview // (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html) and Managing // ACLs Using the REST API // (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-using-rest-api.html). @@ -91,28 +91,28 @@ func (c *Client) PutObject(ctx context.Context, params *PutObjectInput, optFns . type PutObjectInput struct { - // The bucket name to which the PUT operation was initiated. When using this API + // The bucket name to which the PUT action was initiated. When using this action // with an access point, you must direct requests to the access point hostname. The // access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. // // This member is required. Bucket *string - // Object key for which the PUT operation was initiated. + // Object key for which the PUT action was initiated. // // This member is required. Key *string @@ -131,7 +131,7 @@ type PutObjectInput struct { // Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption // with server-side encryption using AWS KMS (SSE-KMS). Setting this header to true // causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS. - // Specifying this header with a PUT operation doesn’t affect bucket-level settings + // Specifying this header with a PUT action doesn’t affect bucket-level settings // for S3 Bucket Key. BucketKeyEnabled bool @@ -175,7 +175,7 @@ type PutObjectInput struct { // (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17). ContentType *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -438,6 +438,7 @@ func addPutObjectUpdateEndpoint(stack *middleware.Stack, options Options) error UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutObjectAcl.go b/service/s3/api_op_PutObjectAcl.go index 1ce14c11035..b2c5f38a901 100644 --- a/service/s3/api_op_PutObjectAcl.go +++ b/service/s3/api_op_PutObjectAcl.go @@ -17,12 +17,12 @@ import ( // set the ACL of an object. For more information, see What permissions can I // grant? // (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#permissions) -// in the Amazon Simple Storage Service Developer Guide. This action is not -// supported by Amazon S3 on Outposts. Depending on your application needs, you can -// choose to set the ACL on an object using either the request body or the headers. -// For example, if you have an existing application that updates a bucket ACL using -// the request body, you can continue to use that approach. For more information, -// see Access Control List (ACL) Overview +// in the Amazon S3 User Guide. This action is not supported by Amazon S3 on +// Outposts. Depending on your application needs, you can choose to set the ACL on +// an object using either the request body or the headers. For example, if you have +// an existing application that updates a bucket ACL using the request body, you +// can continue to use that approach. For more information, see Access Control List +// (ACL) Overview // (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html) in the // Amazon S3 Developer Guide. Access Permissions You can set access permissions // using one of the following methods: @@ -154,34 +154,34 @@ func (c *Client) PutObjectAcl(ctx context.Context, params *PutObjectAclInput, op type PutObjectAclInput struct { // The bucket name that contains the object to which you want to attach the ACL. - // When using this API with an access point, you must direct requests to the access - // point hostname. The access point hostname takes the form + // When using this action with an access point, you must direct requests to the + // access point hostname. The access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. // // This member is required. Bucket *string - // Key for which the PUT operation was initiated. When using this API with an + // Key for which the PUT action was initiated. When using this action with an // access point, you must direct requests to the access point hostname. The access // point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. // // This member is required. @@ -201,7 +201,7 @@ type PutObjectAclInput struct { // Line Interface (CLI) or AWS SDKs, this field is calculated automatically. ContentMD5 *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -348,6 +348,7 @@ func addPutObjectAclUpdateEndpoint(stack *middleware.Stack, options Options) err UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutObjectLegalHold.go b/service/s3/api_op_PutObjectLegalHold.go index 3a47adabad2..f46ec2d4365 100644 --- a/service/s3/api_op_PutObjectLegalHold.go +++ b/service/s3/api_op_PutObjectLegalHold.go @@ -35,14 +35,14 @@ func (c *Client) PutObjectLegalHold(ctx context.Context, params *PutObjectLegalH type PutObjectLegalHoldInput struct { // The bucket name containing the object that you want to place a Legal Hold on. - // When using this API with an access point, you must direct requests to the access - // point hostname. The access point hostname takes the form + // When using this action with an access point, you must direct requests to the + // access point hostname. The access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. // // This member is required. Bucket *string @@ -56,7 +56,7 @@ type PutObjectLegalHoldInput struct { // Interface (CLI) or AWS SDKs, this field is calculated automatically. ContentMD5 *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -188,6 +188,7 @@ func addPutObjectLegalHoldUpdateEndpoint(stack *middleware.Stack, options Option UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutObjectLockConfiguration.go b/service/s3/api_op_PutObjectLockConfiguration.go index 44148171a9c..66b134a4261 100644 --- a/service/s3/api_op_PutObjectLockConfiguration.go +++ b/service/s3/api_op_PutObjectLockConfiguration.go @@ -45,7 +45,7 @@ type PutObjectLockConfigurationInput struct { // Interface (CLI) or AWS SDKs, this field is calculated automatically. ContentMD5 *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -176,6 +176,7 @@ func addPutObjectLockConfigurationUpdateEndpoint(stack *middleware.Stack, option UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutObjectRetention.go b/service/s3/api_op_PutObjectRetention.go index c4f93ae81ef..38c3f43510b 100644 --- a/service/s3/api_op_PutObjectRetention.go +++ b/service/s3/api_op_PutObjectRetention.go @@ -35,14 +35,14 @@ func (c *Client) PutObjectRetention(ctx context.Context, params *PutObjectRetent type PutObjectRetentionInput struct { // The bucket name that contains the object you want to apply this Object Retention - // configuration to. When using this API with an access point, you must direct + // configuration to. When using this action with an access point, you must direct // requests to the access point hostname. The access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. // // This member is required. Bucket *string @@ -53,14 +53,14 @@ type PutObjectRetentionInput struct { // This member is required. Key *string - // Indicates whether this operation should bypass Governance-mode restrictions. + // Indicates whether this action should bypass Governance-mode restrictions. BypassGovernanceRetention bool // The MD5 hash for the request body. For requests made using the AWS Command Line // Interface (CLI) or AWS SDKs, this field is calculated automatically. ContentMD5 *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -192,6 +192,7 @@ func addPutObjectRetentionUpdateEndpoint(stack *middleware.Stack, options Option UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutObjectTagging.go b/service/s3/api_op_PutObjectTagging.go index b8eb54f982d..532ee13d9a6 100644 --- a/service/s3/api_op_PutObjectTagging.go +++ b/service/s3/api_op_PutObjectTagging.go @@ -45,8 +45,8 @@ import ( // * Code: // OperationAbortedError // -// * Cause: A conflicting conditional operation is currently -// in progress against this resource. Please try again. +// * Cause: A conflicting conditional action is currently in +// progress against this resource. Please try again. // // * Code: InternalError // @@ -58,6 +58,10 @@ import ( // // * GetObjectTagging // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectTagging.html) +// +// * +// DeleteObjectTagging +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjectTagging.html) func (c *Client) PutObjectTagging(ctx context.Context, params *PutObjectTaggingInput, optFns ...func(*Options)) (*PutObjectTaggingOutput, error) { if params == nil { params = &PutObjectTaggingInput{} @@ -75,21 +79,22 @@ func (c *Client) PutObjectTagging(ctx context.Context, params *PutObjectTaggingI type PutObjectTaggingInput struct { - // The bucket name containing the object. When using this API with an access point, - // you must direct requests to the access point hostname. The access point hostname - // takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. - // When using this operation with an access point through the AWS SDKs, you provide - // the access point ARN in place of the bucket name. For more information about - // access point ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // The bucket name containing the object. When using this action with an access + // point, you must direct requests to the access point hostname. The access point + // hostname takes the form + // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. // // This member is required. @@ -109,10 +114,18 @@ type PutObjectTaggingInput struct { // Interface (CLI) or AWS SDKs, this field is calculated automatically. ContentMD5 *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string + // Confirms that the requester knows that they will be charged for the request. + // Bucket owners need not specify this parameter in their requests. For information + // about downloading objects from requester pays buckets, see Downloading Objects + // in Requestor Pays Buckets + // (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + // in the Amazon S3 Developer Guide. + RequestPayer types.RequestPayer + // The versionId of the object that the tag-set will be added to. VersionId *string } @@ -228,6 +241,7 @@ func addPutObjectTaggingUpdateEndpoint(stack *middleware.Stack, options Options) UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_PutPublicAccessBlock.go b/service/s3/api_op_PutPublicAccessBlock.go index b440b9f8f8b..7ed42fe0287 100644 --- a/service/s3/api_op_PutPublicAccessBlock.go +++ b/service/s3/api_op_PutPublicAccessBlock.go @@ -79,7 +79,7 @@ type PutPublicAccessBlockInput struct { // automatically. ContentMD5 *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string } @@ -191,6 +191,7 @@ func addPutPublicAccessBlockUpdateEndpoint(stack *middleware.Stack, options Opti UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_RestoreObject.go b/service/s3/api_op_RestoreObject.go index 063b299646f..8a912c81a8f 100644 --- a/service/s3/api_op_RestoreObject.go +++ b/service/s3/api_op_RestoreObject.go @@ -26,29 +26,29 @@ import ( // permission by default and can grant this permission to others. For more // information about permissions, see Permissions Related to Bucket Subresource // Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) in the -// Amazon Simple Storage Service Developer Guide. Querying Archives with Select -// Requests You use a select type of request to perform SQL queries on archived -// objects. The archived objects that are being queried by the select request must -// be formatted as uncompressed comma-separated values (CSV) files. You can run -// queries and custom analytics on your archived data without having to restore -// your data to a hotter Amazon S3 tier. For an overview about select requests, see -// Querying Archived Objects +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) +// in the Amazon S3 User Guide. Querying Archives with Select Requests You use a +// select type of request to perform SQL queries on archived objects. The archived +// objects that are being queried by the select request must be formatted as +// uncompressed comma-separated values (CSV) files. You can run queries and custom +// analytics on your archived data without having to restore your data to a hotter +// Amazon S3 tier. For an overview about select requests, see Querying Archived +// Objects // (https://docs.aws.amazon.com/AmazonS3/latest/dev/querying-glacier-archives.html) -// in the Amazon Simple Storage Service Developer Guide. When making a select -// request, do the following: -// -// * Define an output location for the select query's -// output. This must be an Amazon S3 bucket in the same AWS Region as the bucket -// that contains the archive object that is being queried. The AWS account that -// initiates the job must have permissions to write to the S3 bucket. You can -// specify the storage class and encryption for the output objects stored in the -// bucket. For more information about output, see Querying Archived Objects +// in the Amazon S3 User Guide. When making a select request, do the following: +// +// * +// Define an output location for the select query's output. This must be an Amazon +// S3 bucket in the same AWS Region as the bucket that contains the archive object +// that is being queried. The AWS account that initiates the job must have +// permissions to write to the S3 bucket. You can specify the storage class and +// encryption for the output objects stored in the bucket. For more information +// about output, see Querying Archived Objects // (https://docs.aws.amazon.com/AmazonS3/latest/dev/querying-glacier-archives.html) -// in the Amazon Simple Storage Service Developer Guide. For more information about -// the S3 structure in the request body, see the following: +// in the Amazon S3 User Guide. For more information about the S3 structure in the +// request body, see the following: // // * PutObject // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html) @@ -56,52 +56,51 @@ import ( // * Managing // Access with ACLs // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html) in the -// Amazon Simple Storage Service Developer Guide +// Amazon S3 User Guide // -// * Protecting Data Using -// Server-Side Encryption +// * Protecting Data Using Server-Side Encryption // (https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html) in -// the Amazon Simple Storage Service Developer Guide +// the Amazon S3 User Guide // -// * Define the SQL expression -// for the SELECT type of restoration for your query in the request body's -// SelectParameters structure. You can use expressions like the following -// examples. +// * Define the SQL expression for the SELECT type of +// restoration for your query in the request body's SelectParameters structure. You +// can use expressions like the following examples. // -// * The following expression returns all records from the specified -// object. SELECT * FROM Object +// * The following expression +// returns all records from the specified object. SELECT * FROM Object // -// * Assuming that you are not using any headers for -// data stored in the object, you can specify columns with positional headers. -// SELECT s._1, s._2 FROM Object s WHERE s._3 > 100 +// * Assuming +// that you are not using any headers for data stored in the object, you can +// specify columns with positional headers. SELECT s._1, s._2 FROM Object s WHERE +// s._3 > 100 // -// * If you have headers and you -// set the fileHeaderInfo in the CSV structure in the request body to USE, you can -// specify headers in the query. (If you set the fileHeaderInfo field to IGNORE, -// the first row is skipped for the query.) You cannot mix ordinal positions with -// header column names. SELECT s.Id, s.FirstName, s.SSN FROM S3Object s +// * If you have headers and you set the fileHeaderInfo in the CSV +// structure in the request body to USE, you can specify headers in the query. (If +// you set the fileHeaderInfo field to IGNORE, the first row is skipped for the +// query.) You cannot mix ordinal positions with header column names. SELECT s.Id, +// s.FirstName, s.SSN FROM S3Object s // -// For more -// information about using SQL with S3 Glacier Select restore, see SQL Reference -// for Amazon S3 Select and S3 Glacier Select +// For more information about using SQL with S3 +// Glacier Select restore, see SQL Reference for Amazon S3 Select and S3 Glacier +// Select // (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference.html) -// in the Amazon Simple Storage Service Developer Guide. When making a select -// request, you can also do the following: +// in the Amazon S3 User Guide. When making a select request, you can also do the +// following: // -// * To expedite your queries, specify the -// Expedited tier. For more information about tiers, see "Restoring Archives," -// later in this topic. +// * To expedite your queries, specify the Expedited tier. For more +// information about tiers, see "Restoring Archives," later in this topic. // -// * Specify details about the data serialization format of -// both the input object that is being queried and the serialization of the -// CSV-encoded query results. +// * +// Specify details about the data serialization format of both the input object +// that is being queried and the serialization of the CSV-encoded query +// results. // -// The following are additional important facts about -// the select feature: +// The following are additional important facts about the select +// feature: // -// * The output results are new Amazon S3 objects. Unlike -// archive retrievals, they are stored until explicitly deleted-manually or through -// a lifecycle policy. +// * The output results are new Amazon S3 objects. Unlike archive +// retrievals, they are stored until explicitly deleted-manually or through a +// lifecycle policy. // // * You can issue more than one select request on the same // Amazon S3 object. Amazon S3 doesn't deduplicate requests, so avoid issuing @@ -158,64 +157,62 @@ import ( // options and provisioned capacity for Expedited data access, see Restoring // Archived Objects // (https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html) in the -// Amazon Simple Storage Service Developer Guide. You can use Amazon S3 restore -// speed upgrade to change the restore speed to a faster speed while it is in -// progress. For more information, see Upgrading the speed of an in-progress -// restore +// Amazon S3 User Guide. You can use Amazon S3 restore speed upgrade to change the +// restore speed to a faster speed while it is in progress. For more information, +// see Upgrading the speed of an in-progress restore // (https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html#restoring-objects-upgrade-tier.title.html) -// in the Amazon Simple Storage Service Developer Guide. To get the status of -// object restoration, you can send a HEAD request. Operations return the -// x-amz-restore header, which provides information about the restoration status, -// in the response. You can use Amazon S3 event notifications to notify you when a -// restore is initiated or completed. For more information, see Configuring Amazon -// S3 Event Notifications +// in the Amazon S3 User Guide. To get the status of object restoration, you can +// send a HEAD request. Operations return the x-amz-restore header, which provides +// information about the restoration status, in the response. You can use Amazon S3 +// event notifications to notify you when a restore is initiated or completed. For +// more information, see Configuring Amazon S3 Event Notifications // (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the -// Amazon Simple Storage Service Developer Guide. After restoring an archived -// object, you can update the restoration period by reissuing the request with a -// new period. Amazon S3 updates the restoration period relative to the current -// time and charges only for the request-there are no data transfer charges. You -// cannot update the restoration period when Amazon S3 is actively processing your -// current restore request for the object. If your bucket has a lifecycle -// configuration with a rule that includes an expiration action, the object -// expiration overrides the life span that you specify in a restore request. For -// example, if you restore an object copy for 10 days, but the object is scheduled -// to expire in 3 days, Amazon S3 deletes the object in 3 days. For more -// information about lifecycle configuration, see PutBucketLifecycleConfiguration +// Amazon S3 User Guide. After restoring an archived object, you can update the +// restoration period by reissuing the request with a new period. Amazon S3 updates +// the restoration period relative to the current time and charges only for the +// request-there are no data transfer charges. You cannot update the restoration +// period when Amazon S3 is actively processing your current restore request for +// the object. If your bucket has a lifecycle configuration with a rule that +// includes an expiration action, the object expiration overrides the life span +// that you specify in a restore request. For example, if you restore an object +// copy for 10 days, but the object is scheduled to expire in 3 days, Amazon S3 +// deletes the object in 3 days. For more information about lifecycle +// configuration, see PutBucketLifecycleConfiguration // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html) // and Object Lifecycle Management // (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) in -// Amazon Simple Storage Service Developer Guide. Responses A successful operation -// returns either the 200 OK or 202 Accepted status code. +// Amazon S3 User Guide. Responses A successful action returns either the 200 OK or +// 202 Accepted status code. // -// * If the object is not -// previously restored, then Amazon S3 returns 202 Accepted in the response. +// * If the object is not previously restored, then +// Amazon S3 returns 202 Accepted in the response. // -// * If -// the object is previously restored, Amazon S3 returns 200 OK in the -// response. +// * If the object is previously +// restored, Amazon S3 returns 200 OK in the response. // // Special Errors // -// * Code: RestoreAlreadyInProgress +// * Code: +// RestoreAlreadyInProgress // -// * Cause: Object -// restore is already in progress. (This error does not apply to SELECT type -// requests.) +// * Cause: Object restore is already in progress. (This +// error does not apply to SELECT type requests.) // -// * HTTP Status Code: 409 Conflict +// * HTTP Status Code: 409 +// Conflict // -// * SOAP Fault Code Prefix: -// Client +// * SOAP Fault Code Prefix: Client // -// * Code: GlacierExpeditedRetrievalNotAvailable +// * Code: +// GlacierExpeditedRetrievalNotAvailable // -// * Cause: expedited -// retrievals are currently not available. Try again later. (Returned if there is -// insufficient capacity to process the Expedited request. This error applies only -// to Expedited retrievals and not to S3 Standard or Bulk retrievals.) +// * Cause: expedited retrievals are +// currently not available. Try again later. (Returned if there is insufficient +// capacity to process the Expedited request. This error applies only to Expedited +// retrievals and not to S3 Standard or Bulk retrievals.) // -// * HTTP -// Status Code: 503 +// * HTTP Status Code: +// 503 // // * SOAP Fault Code Prefix: N/A // @@ -232,7 +229,7 @@ import ( // * // SQL Reference for Amazon S3 Select and S3 Glacier Select // (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference.html) -// in the Amazon Simple Storage Service Developer Guide +// in the Amazon S3 User Guide func (c *Client) RestoreObject(ctx context.Context, params *RestoreObjectInput, optFns ...func(*Options)) (*RestoreObjectOutput, error) { if params == nil { params = &RestoreObjectInput{} @@ -250,33 +247,33 @@ func (c *Client) RestoreObject(ctx context.Context, params *RestoreObjectInput, type RestoreObjectInput struct { - // The bucket name containing the object to restore. When using this API with an + // The bucket name containing the object to restore. When using this action with an // access point, you must direct requests to the access point hostname. The access // point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. // // This member is required. Bucket *string - // Object key for which the operation was initiated. + // Object key for which the action was initiated. // // This member is required. Key *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -408,6 +405,7 @@ func addRestoreObjectUpdateEndpoint(stack *middleware.Stack, options Options) er UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_UploadPart.go b/service/s3/api_op_UploadPart.go index 0ba51668c17..fc2a0979b38 100644 --- a/service/s3/api_op_UploadPart.go +++ b/service/s3/api_op_UploadPart.go @@ -41,26 +41,25 @@ import ( // upload, Amazon S3 frees up the parts storage and stops charging you for the // parts storage. For more information on multipart uploads, go to Multipart Upload // Overview (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html) in -// the Amazon Simple Storage Service Developer Guide . For information on the -// permissions required to use the multipart upload API, go to Multipart Upload API -// and Permissions +// the Amazon S3 User Guide . For information on the permissions required to use +// the multipart upload API, go to Multipart Upload and Permissions // (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) in the -// Amazon Simple Storage Service Developer Guide. You can optionally request -// server-side encryption where Amazon S3 encrypts your data as it writes it to -// disks in its data centers and decrypts it for you when you access it. You have -// the option of providing your own encryption key, or you can use the AWS managed -// encryption keys. If you choose to provide your own encryption key, the request -// headers you provide in the request must match the headers you used in the -// request to initiate the upload by using CreateMultipartUpload +// Amazon S3 User Guide. You can optionally request server-side encryption where +// Amazon S3 encrypts your data as it writes it to disks in its data centers and +// decrypts it for you when you access it. You have the option of providing your +// own encryption key, or you can use the AWS managed encryption keys. If you +// choose to provide your own encryption key, the request headers you provide in +// the request must match the headers you used in the request to initiate the +// upload by using CreateMultipartUpload // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html). // For more information, go to Using Server-Side Encryption // (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) -// in the Amazon Simple Storage Service Developer Guide. Server-side encryption is -// supported by the S3 Multipart Upload actions. Unless you are using a -// customer-provided encryption key, you don't need to specify the encryption -// parameters in each UploadPart request. Instead, you only need to specify the -// server-side encryption parameters in the initial Initiate Multipart request. For -// more information, see CreateMultipartUpload +// in the Amazon S3 User Guide. Server-side encryption is supported by the S3 +// Multipart Upload actions. Unless you are using a customer-provided encryption +// key, you don't need to specify the encryption parameters in each UploadPart +// request. Instead, you only need to specify the server-side encryption parameters +// in the initial Initiate Multipart request. For more information, see +// CreateMultipartUpload // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html). // If you requested server-side encryption using a customer-provided encryption key // in your initiate multipart upload request, you must provide identical encryption @@ -127,21 +126,21 @@ func (c *Client) UploadPart(ctx context.Context, params *UploadPartInput, optFns type UploadPartInput struct { // The name of the bucket to which the multipart upload was initiated. When using - // this API with an access point, you must direct requests to the access point + // this action with an access point, you must direct requests to the access point // hostname. The access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. // // This member is required. @@ -178,7 +177,7 @@ type UploadPartInput struct { // if object lock parameters are specified. ContentMD5 *string - // The account id of the expected bucket owner. If the bucket is owned by a + // The account ID of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. ExpectedBucketOwner *string @@ -340,6 +339,7 @@ func addUploadPartUpdateEndpoint(stack *middleware.Stack, options Options) error UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_UploadPartCopy.go b/service/s3/api_op_UploadPartCopy.go index 5cbdb601f73..750d84bd9f0 100644 --- a/service/s3/api_op_UploadPartCopy.go +++ b/service/s3/api_op_UploadPartCopy.go @@ -18,38 +18,34 @@ import ( // request and a byte range by adding the request header x-amz-copy-source-range in // your request. The minimum allowable part size for a multipart upload is 5 MB. // For more information about multipart upload limits, go to Quick Facts -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/qfacts.html) in the Amazon -// Simple Storage Service Developer Guide. Instead of using an existing object as -// part data, you might use the UploadPart -// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html) operation -// and provide data in your request. You must initiate a multipart upload before -// you can upload any part. In response to your initiate request. Amazon S3 returns -// a unique identifier, the upload ID, that you must include in your upload part -// request. For more information about using the UploadPartCopy operation, see the -// following: +// (https://docs.aws.amazon.com/AmazonS3/latest/dev/qfacts.html) in the Amazon S3 +// User Guide. Instead of using an existing object as part data, you might use the +// UploadPart (https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html) +// action and provide data in your request. You must initiate a multipart upload +// before you can upload any part. In response to your initiate request. Amazon S3 +// returns a unique identifier, the upload ID, that you must include in your upload +// part request. For more information about using the UploadPartCopy operation, see +// the following: // -// * For conceptual information about multipart uploads, see Uploading -// Objects Using Multipart Upload +// * For conceptual information about multipart uploads, see +// Uploading Objects Using Multipart Upload // (https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html) in the -// Amazon Simple Storage Service Developer Guide. +// Amazon S3 User Guide. // -// * For information about -// permissions required to use the multipart upload API, see Multipart Upload API -// and Permissions +// * For information about permissions required to use the +// multipart upload API, see Multipart Upload and Permissions // (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) in the -// Amazon Simple Storage Service Developer Guide. +// Amazon S3 User Guide. // -// * For information about copying -// objects using a single atomic operation vs. the multipart upload, see Operations -// on Objects +// * For information about copying objects using a single +// atomic action vs. the multipart upload, see Operations on Objects // (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectOperations.html) in the -// Amazon Simple Storage Service Developer Guide. +// Amazon S3 User Guide. // -// * For information about using -// server-side encryption with customer-provided encryption keys with the -// UploadPartCopy operation, see CopyObject -// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) and -// UploadPart +// * For information about using server-side encryption with +// customer-provided encryption keys with the UploadPartCopy operation, see +// CopyObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) +// and UploadPart // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html). // // Note the @@ -141,21 +137,21 @@ func (c *Client) UploadPartCopy(ctx context.Context, params *UploadPartCopyInput type UploadPartCopyInput struct { - // The bucket name. When using this API with an access point, you must direct + // The bucket name. When using this action with an access point, you must direct // requests to the access point hostname. The access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this - // operation with an access point through the AWS SDKs, you provide the access - // point ARN in place of the bucket name. For more information about access point - // ARNs, see Using Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in - // the Amazon Simple Storage Service Developer Guide. When using this API with - // Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. - // The S3 on Outposts hostname takes the form + // action with an access point through the AWS SDKs, you provide the access point + // ARN in place of the bucket name. For more information about access point ARNs, + // see Using Access Points + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + // in the Amazon Simple Storage Service Developer Guide. When using this action + // with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts + // hostname. The S3 on Outposts hostname takes the form // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using - // this operation using S3 on Outposts through the AWS SDKs, you provide the - // Outposts bucket ARN in place of the bucket name. For more information about S3 - // on Outposts ARNs, see Using S3 on Outposts - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the + // this action using S3 on Outposts through the AWS SDKs, you provide the Outposts + // bucket ARN in place of the bucket name. For more information about S3 on + // Outposts ARNs, see Using S3 on Outposts + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon Simple Storage Service Developer Guide. // // This member is required. @@ -164,10 +160,10 @@ type UploadPartCopyInput struct { // Specifies the source object for the copy operation. You specify the value in one // of two formats, depending on whether you want to access the source object // through an access point - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-points.html): + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html): // - // * For - // objects not accessed through an access point, specify the name of the source + // * + // For objects not accessed through an access point, specify the name of the source // bucket and key of the source object, separated by a slash (/). For example, to // copy the object reports/january.pdf from the bucket awsexamplebucket, use // awsexamplebucket/reports/january.pdf. The value must be URL encoded. @@ -247,12 +243,12 @@ type UploadPartCopyInput struct { // encryption key was transmitted without error. CopySourceSSECustomerKeyMD5 *string - // The account id of the expected destination bucket owner. If the destination + // The account ID of the expected destination bucket owner. If the destination // bucket is owned by a different account, the request will fail with an HTTP 403 // (Access Denied) error. ExpectedBucketOwner *string - // The account id of the expected source bucket owner. If the source bucket is + // The account ID of the expected source bucket owner. If the source bucket is // owned by a different account, the request will fail with an HTTP 403 (Access // Denied) error. ExpectedSourceBucketOwner *string @@ -424,6 +420,7 @@ func addUploadPartCopyUpdateEndpoint(stack *middleware.Stack, options Options) e UsePathStyle: options.UsePathStyle, UseAccelerate: options.UseAccelerate, SupportsAccelerate: true, + TargetS3ObjectLambda: false, EndpointResolver: options.EndpointResolver, EndpointResolverOptions: options.EndpointOptions, UseDualstack: options.UseDualstack, diff --git a/service/s3/api_op_WriteGetObjectResponse.go b/service/s3/api_op_WriteGetObjectResponse.go new file mode 100644 index 00000000000..d1a1b104d67 --- /dev/null +++ b/service/s3/api_op_WriteGetObjectResponse.go @@ -0,0 +1,369 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package s3 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + s3cust "github.com/aws/aws-sdk-go-v2/service/s3/internal/customizations" + "github.com/aws/aws-sdk-go-v2/service/s3/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "io" + "strings" + "time" +) + +// Passes transformed objects to a GetObject operation when using Object Lambda +// Access Points. For information about Object Lambda Access Points, see +// Transforming objects with Object Lambda Access Points +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/transforming-objects.html) +// in the Amazon S3 User Guide. This operation supports metadata that can be +// returned by GetObject +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html), in +// addition to RequestRoute, RequestToken, StatusCode, ErrorCode, and ErrorMessage. +// The GetObject response metadata is supported so that the WriteGetObjectResponse +// caller, typically an AWS Lambda function, can provide the same metadata when it +// internally invokes GetObject. When WriteGetObjectResponse is called by a +// customer-owned Lambda function, the metadata returned to the end user GetObject +// call might differ from what Amazon S3 would normally return. +func (c *Client) WriteGetObjectResponse(ctx context.Context, params *WriteGetObjectResponseInput, optFns ...func(*Options)) (*WriteGetObjectResponseOutput, error) { + if params == nil { + params = &WriteGetObjectResponseInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "WriteGetObjectResponse", params, optFns, addOperationWriteGetObjectResponseMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*WriteGetObjectResponseOutput) + out.ResultMetadata = metadata + return out, nil +} + +type WriteGetObjectResponseInput struct { + + // Route prefix to the HTTP URL generated. + // + // This member is required. + RequestRoute *string + + // A single use encrypted token that maps WriteGetObjectResponse to the end user + // GetObject request. + // + // This member is required. + RequestToken *string + + // Indicates that a range of bytes was specified. + AcceptRanges *string + + // The object data. + Body io.Reader + + // Indicates whether the object stored in Amazon S3 uses an S3 bucket key for + // server-side encryption with AWS KMS (SSE-KMS). + BucketKeyEnabled bool + + // Specifies caching behavior along the request/reply chain. + CacheControl *string + + // Specifies presentational information for the object. + ContentDisposition *string + + // Specifies what content encodings have been applied to the object and thus what + // decoding mechanisms must be applied to obtain the media-type referenced by the + // Content-Type header field. + ContentEncoding *string + + // The language the content is in. + ContentLanguage *string + + // The size of the content body in bytes. + ContentLength int64 + + // The portion of the object returned in the response. + ContentRange *string + + // A standard MIME type describing the format of the object data. + ContentType *string + + // Specifies whether an object stored in Amazon S3 is (true) or is not (false) a + // delete marker. + DeleteMarker bool + + // An opaque identifier assigned by a web server to a specific version of a + // resource found at a URL. + ETag *string + + // A string that uniquely identifies an error condition. Returned in the tag of + // the error XML response for a corresponding GetObject call. Cannot be used with a + // successful StatusCode header or when the transformed object is provided in the + // body. + ErrorCode *string + + // Contains a generic description of the error condition. Returned in the tag of + // the error XML response for a corresponding GetObject call. Cannot be used with a + // successful StatusCode header or when the transformed object is provided in body. + ErrorMessage *string + + // If object stored in Amazon S3 expiration is configured (see PUT Bucket + // lifecycle) it includes expiry-date and rule-id key-value pairs providing object + // expiration information. The value of the rule-id is URL encoded. + Expiration *string + + // The date and time at which the object is no longer cacheable. + Expires *time.Time + + // The date and time that the object was last modified. + LastModified *time.Time + + // A map of metadata to store with the object in S3. + Metadata map[string]string + + // Set to the number of metadata entries not returned in x-amz-meta headers. This + // can happen if you create metadata using an API like SOAP that supports more + // flexible metadata than the REST API. For example, using SOAP, you can create + // metadata whose values are not legal HTTP headers. + MissingMeta int32 + + // Indicates whether an object stored in Amazon S3 has an active legal hold. + ObjectLockLegalHoldStatus types.ObjectLockLegalHoldStatus + + // Indicates whether an object stored in Amazon S3 has Object Lock enabled. For + // more information about S3 Object Lock, see Object Lock + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html). + ObjectLockMode types.ObjectLockMode + + // The date and time when Object Lock is configured to expire. + ObjectLockRetainUntilDate *time.Time + + // The count of parts this object has. + PartsCount int32 + + // Indicates if request involves bucket that is either a source or destination in a + // Replication rule. For more information about S3 Replication, see Replication + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html). + ReplicationStatus types.ReplicationStatus + + // If present, indicates that the requester was successfully charged for the + // request. + RequestCharged types.RequestCharged + + // Provides information about object restoration operation and expiration time of + // the restored object copy. + Restore *string + + // Encryption algorithm used if server-side encryption with a customer-provided + // encryption key was specified for object stored in Amazon S3. + SSECustomerAlgorithm *string + + // 128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to + // encrypt data stored in S3. For more information, see Protecting data using + // server-side encryption with customer-provided encryption keys (SSE-C) + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html). + SSECustomerKeyMD5 *string + + // If present, specifies the ID of the AWS Key Management Service (AWS KMS) + // symmetric customer managed customer master key (CMK) that was used for stored in + // Amazon S3 object. + SSEKMSKeyId *string + + // The server-side encryption algorithm used when storing requested object in + // Amazon S3 (for example, AES256, aws:kms). + ServerSideEncryption types.ServerSideEncryption + + // The integer status code for an HTTP response of a corresponding GetObject + // request. Status Codes + // + // * 200 - OK + // + // * 206 - Partial Content + // + // * 304 - Not + // Modified + // + // * 400 - Bad Request + // + // * 401 - Unauthorized + // + // * 403 - Forbidden + // + // * 404 - + // Not Found + // + // * 405 - Method Not Allowed + // + // * 409 - Conflict + // + // * 411 - Length + // Required + // + // * 412 - Precondition Failed + // + // * 416 - Range Not Satisfiable + // + // * 500 - + // Internal Server Error + // + // * 503 - Service Unavailable + StatusCode int32 + + // The class of storage used to store object in Amazon S3. + StorageClass types.StorageClass + + // The number of tags, if any, on the object. + TagCount int32 + + // An ID used to reference a specific version of the object. + VersionId *string +} + +type WriteGetObjectResponseOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func addOperationWriteGetObjectResponseMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestxml_serializeOpWriteGetObjectResponse{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpWriteGetObjectResponse{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddUnsignedPayloadMiddleware(stack); err != nil { + return err + } + if err = v4.AddContentSHA256HeaderMiddleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opWriteGetObjectResponseMiddleware(stack); err != nil { + return err + } + if err = addOpWriteGetObjectResponseValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opWriteGetObjectResponse(options.Region), middleware.Before); err != nil { + return err + } + if err = addMetadataRetrieverMiddleware(stack); err != nil { + return err + } + if err = addWriteGetObjectResponseUpdateEndpoint(stack, options); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = disableAcceptEncodingGzip(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +type endpointPrefix_opWriteGetObjectResponseMiddleware struct { +} + +func (*endpointPrefix_opWriteGetObjectResponseMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opWriteGetObjectResponseMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + input, ok := in.Parameters.(*WriteGetObjectResponseInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input type %T", in.Parameters) + } + + var prefix strings.Builder + if input.RequestRoute == nil { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("RequestRoute forms part of the endpoint host and so may not be nil")} + } else if !smithyhttp.ValidHostLabel(*input.RequestRoute) { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("RequestRoute forms part of the endpoint host and so must match \"[a-zA-Z0-9-]{1,63}\", but was \"%s\"", *input.RequestRoute)} + } else { + prefix.WriteString(*input.RequestRoute) + } + prefix.WriteString(".") + req.URL.Host = prefix.String() + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opWriteGetObjectResponseMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opWriteGetObjectResponseMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opWriteGetObjectResponse(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "s3", + OperationName: "WriteGetObjectResponse", + } +} + +func addWriteGetObjectResponseUpdateEndpoint(stack *middleware.Stack, options Options) error { + return s3cust.UpdateEndpoint(stack, s3cust.UpdateEndpointOptions{ + Accessor: s3cust.UpdateEndpointParameterAccessor{ + GetBucketFromInput: nopGetBucketAccessor, + }, + UsePathStyle: options.UsePathStyle, + UseAccelerate: options.UseAccelerate, + SupportsAccelerate: true, + TargetS3ObjectLambda: true, + EndpointResolver: options.EndpointResolver, + EndpointResolverOptions: options.EndpointOptions, + UseDualstack: options.UseDualstack, + UseARNRegion: options.UseARNRegion, + }) +} diff --git a/service/s3/deserializers.go b/service/s3/deserializers.go index cf4405df294..f11b0b68dcd 100644 --- a/service/s3/deserializers.go +++ b/service/s3/deserializers.go @@ -4147,32 +4147,9 @@ func (m *awsRestxml_deserializeOpGetBucketPolicy) HandleDeserialize(ctx context. output := &GetBucketPolicyOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } + err = awsRestxml_deserializeOpDocumentGetBucketPolicyOutput(output, response.Body) if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeOpDocumentGetBucketPolicyOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to deserialize response payload, %w", err)} } return out, metadata, err @@ -4218,52 +4195,17 @@ func awsRestxml_deserializeOpErrorGetBucketPolicy(response *smithyhttp.Response, } } -func awsRestxml_deserializeOpDocumentGetBucketPolicyOutput(v **GetBucketPolicyOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentGetBucketPolicyOutput(v *GetBucketPolicyOutput, body io.ReadCloser) error { if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) + return fmt.Errorf("unsupported deserialization of nil %T", v) } - var sv *GetBucketPolicyOutput - if *v == nil { - sv = &GetBucketPolicyOutput{} - } else { - sv = *v + bs, err := ioutil.ReadAll(body) + if err != nil { + return err } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Policy", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Policy = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder + if len(bs) > 0 { + v.Policy = ptr.String(string(bs)) } - *v = sv return nil } @@ -11450,6 +11392,81 @@ func awsRestxml_deserializeOpDocumentUploadPartCopyOutput(v **UploadPartCopyOutp return nil } +type awsRestxml_deserializeOpWriteGetObjectResponse struct { +} + +func (*awsRestxml_deserializeOpWriteGetObjectResponse) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpWriteGetObjectResponse) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestxml_deserializeOpErrorWriteGetObjectResponse(response, &metadata) + } + output := &WriteGetObjectResponseOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorWriteGetObjectResponse(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := s3shared.GetErrorResponseComponents(errorBody, s3shared.ErrorResponseDeserializerOptions{ + UseStatusCode: true, StatusCode: response.StatusCode, + }) + if err != nil { + return err + } + if hostID := errorComponents.HostID; len(hostID) != 0 { + s3shared.SetHostIDMetadata(metadata, hostID) + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + func awsRestxml_deserializeErrorBucketAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { output := &types.BucketAlreadyExists{} return output @@ -12813,6 +12830,19 @@ func awsRestxml_deserializeDocumentCORSRule(v **types.CORSRule, decoder smithyxm return err } + case strings.EqualFold("ID", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ID = ptr.String(xtv) + } + case strings.EqualFold("MaxAgeSeconds", t.Name.Local): val, err := decoder.Value() if err != nil { diff --git a/service/s3/internal/arn/arn_parser.go b/service/s3/internal/arn/arn_parser.go index dfe5c70f51b..1e655fdd40e 100644 --- a/service/s3/internal/arn/arn_parser.go +++ b/service/s3/internal/arn/arn_parser.go @@ -1,12 +1,19 @@ package arn import ( + "fmt" "strings" awsarn "github.com/aws/aws-sdk-go-v2/aws/arn" "github.com/aws/aws-sdk-go-v2/service/internal/s3shared/arn" ) +const ( + s3Namespace = "s3" + s3ObjectsLambdaNamespace = "s3-object-lambda" + s3OutpostsNamespace = "s3-outposts" +) + // ParseEndpointARN parses a given generic aws ARN into a s3 arn resource. func ParseEndpointARN(v awsarn.ARN) (arn.Resource, error) { return arn.ParseResource(v, accessPointResourceParser) @@ -14,15 +21,20 @@ func ParseEndpointARN(v awsarn.ARN) (arn.Resource, error) { func accessPointResourceParser(a awsarn.ARN) (arn.Resource, error) { resParts := arn.SplitResource(a.Resource) + switch resParts[0] { case "accesspoint": - if a.Service != "s3" { - return arn.AccessPointARN{}, arn.InvalidARNError{ARN: a, Reason: "service is not s3"} + switch a.Service { + case s3Namespace: + return arn.ParseAccessPointResource(a, resParts[1:]) + case s3ObjectsLambdaNamespace: + return parseS3ObjectLambdaAccessPointResource(a, resParts) + default: + return arn.AccessPointARN{}, arn.InvalidARNError{ARN: a, Reason: fmt.Sprintf("service is not %s or %s", s3Namespace, s3ObjectsLambdaNamespace)} } - return arn.ParseAccessPointResource(a, resParts[1:]) case "outpost": - if a.Service != "s3-outposts" { - return arn.OutpostAccessPointARN{}, arn.InvalidARNError{ARN: a, Reason: "service is not s3-outposts"} + if a.Service != s3OutpostsNamespace { + return arn.OutpostAccessPointARN{}, arn.InvalidARNError{ARN: a, Reason: "service is not %s"} } return parseOutpostAccessPointResource(a, resParts[1:]) default: @@ -68,3 +80,22 @@ func parseOutpostAccessPointResource(a awsarn.ARN, resParts []string) (arn.Outpo outpostAccessPointARN.OutpostID = resID return outpostAccessPointARN, nil } + +func parseS3ObjectLambdaAccessPointResource(a awsarn.ARN, resParts []string) (arn.S3ObjectLambdaAccessPointARN, error) { + if a.Service != s3ObjectsLambdaNamespace { + return arn.S3ObjectLambdaAccessPointARN{}, arn.InvalidARNError{ARN: a, Reason: fmt.Sprintf("service is not %s", s3ObjectsLambdaNamespace)} + } + + accessPointARN, err := arn.ParseAccessPointResource(a, resParts[1:]) + if err != nil { + return arn.S3ObjectLambdaAccessPointARN{}, err + } + + if len(accessPointARN.Region) == 0 { + return arn.S3ObjectLambdaAccessPointARN{}, arn.InvalidARNError{ARN: a, Reason: fmt.Sprintf("%s region not set", s3ObjectsLambdaNamespace)} + } + + return arn.S3ObjectLambdaAccessPointARN{ + AccessPointARN: accessPointARN, + }, nil +} diff --git a/service/s3/internal/configtesting/go.mod b/service/s3/internal/configtesting/go.mod index 9acd3ed9790..bbc7faf86d7 100644 --- a/service/s3/internal/configtesting/go.mod +++ b/service/s3/internal/configtesting/go.mod @@ -3,14 +3,8 @@ module github.com/aws/aws-sdk-go-v2/service/s3/internal/configtesting go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v1.2.1 github.com/aws/aws-sdk-go-v2/config v1.1.2 - github.com/aws/aws-sdk-go-v2/credentials v1.1.2 - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.0.3 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.3 github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.1.1 - github.com/aws/aws-sdk-go-v2/service/sso v1.1.2 - github.com/aws/aws-sdk-go-v2/service/sts v1.1.2 ) replace ( diff --git a/service/s3/internal/customizations/host.go b/service/s3/internal/customizations/host.go new file mode 100644 index 00000000000..87f7a22327d --- /dev/null +++ b/service/s3/internal/customizations/host.go @@ -0,0 +1,22 @@ +package customizations + +import ( + "github.com/aws/smithy-go/transport/http" + "strings" +) + +func updateS3HostForS3AccessPoint(req *http.Request) { + updateHostPrefix(req, "s3", s3AccessPoint) +} + +func updateS3HostForS3ObjectLambda(req *http.Request) { + updateHostPrefix(req, "s3", s3ObjectLambda) +} + +func updateHostPrefix(req *http.Request, oldEndpointPrefix, newEndpointPrefix string) { + host := req.URL.Host + if strings.HasPrefix(host, oldEndpointPrefix) { + // For example if oldEndpointPrefix=s3 would replace to newEndpointPrefix + req.URL.Host = newEndpointPrefix + host[len(oldEndpointPrefix):] + } +} diff --git a/service/s3/internal/customizations/process_arn_resource.go b/service/s3/internal/customizations/process_arn_resource.go index 9a40509a433..4679831ee61 100644 --- a/service/s3/internal/customizations/process_arn_resource.go +++ b/service/s3/internal/customizations/process_arn_resource.go @@ -3,6 +3,7 @@ package customizations import ( "context" "fmt" + "github.com/aws/aws-sdk-go-v2/aws" "net/url" "strings" @@ -15,6 +16,11 @@ import ( s3arn "github.com/aws/aws-sdk-go-v2/service/s3/internal/arn" ) +const ( + s3AccessPoint = "s3-accesspoint" + s3ObjectLambda = "s3-object-lambda" +) + // processARNResource is used to process an ARN resource. type processARNResource struct { @@ -117,6 +123,54 @@ func (m *processARNResource) HandleSerialize( return out, metadata, err } + case arn.S3ObjectLambdaAccessPointARN: + // check if accelerate + if m.UseAccelerate { + return out, metadata, s3shared.NewClientConfiguredForAccelerateError(tv, + resourceRequest.PartitionID, resourceRequest.RequestRegion, nil) + } + + // check if dualstack + if m.UseDualstack { + return out, metadata, s3shared.NewClientConfiguredForDualStackError(tv, + resourceRequest.PartitionID, resourceRequest.RequestRegion, nil) + } + + // fetch arn region to resolve request + resolveRegion := tv.Region + + if resourceRequest.UseFips() { + // if use arn region is enabled and request signing region is not same as arn region + if m.UseARNRegion && resourceRequest.IsCrossRegion() { + // FIPS with cross region is not supported, the SDK must fail + // because there is no well defined method for SDK to construct a + // correct FIPS endpoint. + return out, metadata, + s3shared.NewClientConfiguredForCrossRegionFIPSError( + tv, + resourceRequest.PartitionID, + resourceRequest.RequestRegion, + nil, + ) + } + + // if use arn region is NOT set, we should use the request region + resolveRegion = resourceRequest.RequestRegion + } + + // build access point request + ctx, err = buildS3ObjectLambdaAccessPointRequest(ctx, accesspointOptions{ + processARNResource: *m, + request: req, + resource: tv.AccessPointARN, + resolveRegion: resolveRegion, + partitionID: resourceRequest.PartitionID, + requestRegion: resourceRequest.RequestRegion, + }) + if err != nil { + return out, metadata, err + } + // process outpost accesspoint ARN case arn.OutpostAccessPointARN: // check if accelerate @@ -213,9 +267,71 @@ func buildAccessPointRequest(ctx context.Context, options accesspointOptions) (c return ctx, fmt.Errorf("failed to parse endpoint URL: %w", err) } - if len(endpoint.SigningName) != 0 { + if len(endpoint.SigningName) != 0 && endpoint.Source == aws.EndpointSourceCustom { + ctx = awsmiddleware.SetSigningName(ctx, endpoint.SigningName) + } else { + // Must sign with s3-object-lambda + ctx = awsmiddleware.SetSigningName(ctx, resolveService) + } + + if len(endpoint.SigningRegion) != 0 { + ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion) + } else { + ctx = awsmiddleware.SetSigningRegion(ctx, resolveRegion) + } + + // update serviceID to "s3-accesspoint" + ctx = awsmiddleware.SetServiceID(ctx, s3AccessPoint) + + // disable host prefix behavior + ctx = http.DisableEndpointHostPrefix(ctx, true) + + // remove the serialized arn in place of /{Bucket} + ctx = setBucketToRemoveOnContext(ctx, tv.String()) + + // skip arn processing, if arn region resolves to a immutable endpoint + if endpoint.HostnameImmutable { + return ctx, nil + } + + updateS3HostForS3AccessPoint(req) + + ctx, err = buildAccessPointHostPrefix(ctx, req, tv) + if err != nil { + return ctx, err + } + + return ctx, nil +} + +func buildS3ObjectLambdaAccessPointRequest(ctx context.Context, options accesspointOptions) (context.Context, error) { + tv := options.resource + req := options.request + resolveRegion := options.resolveRegion + + resolveService := tv.Service + + // resolve endpoint + endpoint, err := options.EndpointResolver.ResolveEndpoint(resolveRegion, options.EndpointResolverOptions) + if err != nil { + return ctx, s3shared.NewFailedToResolveEndpointError( + tv, + options.partitionID, + options.requestRegion, + err, + ) + } + + // assign resolved endpoint url to request url + req.URL, err = url.Parse(endpoint.URL) + if err != nil { + return ctx, fmt.Errorf("failed to parse endpoint URL: %w", err) + } + + if len(endpoint.SigningName) != 0 && endpoint.Source == aws.EndpointSourceCustom { ctx = awsmiddleware.SetSigningName(ctx, endpoint.SigningName) } else { + // Must sign with s3-object-lambda ctx = awsmiddleware.SetSigningName(ctx, resolveService) } @@ -225,22 +341,34 @@ func buildAccessPointRequest(ctx context.Context, options accesspointOptions) (c ctx = awsmiddleware.SetSigningRegion(ctx, resolveRegion) } + // update serviceID to "s3-object-lambda" + ctx = awsmiddleware.SetServiceID(ctx, s3ObjectLambda) + + // disable host prefix behavior + ctx = http.DisableEndpointHostPrefix(ctx, true) + + // remove the serialized arn in place of /{Bucket} + ctx = setBucketToRemoveOnContext(ctx, tv.String()) + // skip arn processing, if arn region resolves to a immutable endpoint if endpoint.HostnameImmutable { return ctx, nil } - const serviceEndpointLabel = "s3-accesspoint" - cfgHost := req.URL.Host - if strings.HasPrefix(cfgHost, "s3") { - // replace service hostlabel "s3" to "s3-accesspoint" - req.URL.Host = serviceEndpointLabel + cfgHost[len("s3"):] + if endpoint.Source == aws.EndpointSourceServiceMetadata { + updateS3HostForS3ObjectLambda(req) + } - // update serviceID to "s3-accesspoint" - ctx = awsmiddleware.SetServiceID(ctx, serviceEndpointLabel) + ctx, err = buildAccessPointHostPrefix(ctx, req, tv) + if err != nil { + return ctx, err } - // add host prefix for s3-accesspoint + return ctx, nil +} + +func buildAccessPointHostPrefix(ctx context.Context, req *http.Request, tv arn.AccessPointARN) (context.Context, error) { + // add host prefix for access point accessPointHostPrefix := tv.AccessPointName + "-" + tv.AccountID + "." req.URL.Host = accessPointHostPrefix + req.URL.Host if len(req.Host) > 0 { @@ -252,12 +380,6 @@ func buildAccessPointRequest(ctx context.Context, options accesspointOptions) (c return ctx, s3shared.NewInvalidARNError(tv, err) } - // disable host prefix behavior - ctx = http.DisableEndpointHostPrefix(ctx, true) - - // remove the serialized arn in place of /{Bucket} - ctx = setBucketToRemoveOnContext(ctx, tv.String()) - return ctx, nil } @@ -300,10 +422,10 @@ func buildOutpostAccessPointRequest(ctx context.Context, options outpostAccessPo return ctx, fmt.Errorf("failed to parse endpoint URL: %w", err) } - if len(endpoint.SigningName) != 0 { + // assign resolved service from arn as signing name + if len(endpoint.SigningName) != 0 && endpoint.Source == aws.EndpointSourceCustom { ctx = awsmiddleware.SetSigningName(ctx, endpoint.SigningName) } else { - // assign resolved service from arn as signing name ctx = awsmiddleware.SetSigningName(ctx, resolveService) } @@ -314,18 +436,21 @@ func buildOutpostAccessPointRequest(ctx context.Context, options outpostAccessPo ctx = awsmiddleware.SetSigningRegion(ctx, resolveRegion) } + // update serviceID to resolved service id + ctx = awsmiddleware.SetServiceID(ctx, resolveService) + + // disable host prefix behavior + ctx = http.DisableEndpointHostPrefix(ctx, true) + + // remove the serialized arn in place of /{Bucket} + ctx = setBucketToRemoveOnContext(ctx, tv.String()) + // skip further customizations, if arn region resolves to a immutable endpoint if endpoint.HostnameImmutable { return ctx, nil } - cfgHost := req.URL.Host - if strings.HasPrefix(cfgHost, endpointsID) { - // replace service endpointID label with resolved service - req.URL.Host = resolveService + cfgHost[len(endpointsID):] - // update serviceID to resolved service id - ctx = awsmiddleware.SetServiceID(ctx, resolveService) - } + updateHostPrefix(req, endpointsID, resolveService) // add host prefix for s3-outposts outpostAPHostPrefix := tv.AccessPointName + "-" + tv.AccountID + "." + tv.OutpostID + "." @@ -339,10 +464,5 @@ func buildOutpostAccessPointRequest(ctx context.Context, options outpostAccessPo return ctx, s3shared.NewInvalidARNError(tv, err) } - // disable host prefix behavior - ctx = http.DisableEndpointHostPrefix(ctx, true) - - // remove the serialized arn in place of /{Bucket} - ctx = setBucketToRemoveOnContext(ctx, tv.String()) return ctx, nil } diff --git a/service/s3/internal/customizations/s3_object_lambda.go b/service/s3/internal/customizations/s3_object_lambda.go new file mode 100644 index 00000000000..6e17438286a --- /dev/null +++ b/service/s3/internal/customizations/s3_object_lambda.go @@ -0,0 +1,85 @@ +package customizations + +import ( + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/smithy-go/middleware" + "github.com/aws/smithy-go/transport/http" + "net/url" +) + +type s3ObjectLambdaEndpoint struct { + // whether the operation should use the s3-object-lambda endpoint + UseEndpoint bool + + // use dualstack + UseDualstack bool + + // use transfer acceleration + UseAccelerate bool + + EndpointResolver EndpointResolver + EndpointResolverOptions EndpointResolverOptions +} + +func (t *s3ObjectLambdaEndpoint) ID() string { + return "S3:ObjectLambdaEndpoint" +} + +func (t *s3ObjectLambdaEndpoint) HandleSerialize( + ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler, +) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if !t.UseEndpoint { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*http.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type: %T", in.Request) + } + + if t.UseDualstack { + return out, metadata, fmt.Errorf("client configured for dualstack but not supported for operation") + } + + if t.UseAccelerate { + return out, metadata, fmt.Errorf("client configured for accelerate but not supported for operation") + } + + region := awsmiddleware.GetRegion(ctx) + + endpoint, err := t.EndpointResolver.ResolveEndpoint(region, t.EndpointResolverOptions) + if err != nil { + return out, metadata, err + } + + // Set the ServiceID and SigningName + ctx = awsmiddleware.SetServiceID(ctx, s3ObjectLambda) + + if len(endpoint.SigningName) > 0 && endpoint.Source == aws.EndpointSourceCustom { + ctx = awsmiddleware.SetSigningName(ctx, endpoint.SigningName) + } else { + ctx = awsmiddleware.SetSigningName(ctx, s3ObjectLambda) + } + + req.URL, err = url.Parse(endpoint.URL) + if err != nil { + return out, metadata, err + } + + if len(endpoint.SigningRegion) > 0 { + ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion) + } else { + ctx = awsmiddleware.SetSigningRegion(ctx, region) + } + + if endpoint.Source == aws.EndpointSourceServiceMetadata || !endpoint.HostnameImmutable { + updateS3HostForS3ObjectLambda(req) + } + + return next.HandleSerialize(ctx, in) +} diff --git a/service/s3/internal/customizations/update_endpoint.go b/service/s3/internal/customizations/update_endpoint.go index 1e10c19ec82..fcce7055201 100644 --- a/service/s3/internal/customizations/update_endpoint.go +++ b/service/s3/internal/customizations/update_endpoint.go @@ -56,6 +56,10 @@ type UpdateEndpointOptions struct { // use ARN region UseARNRegion bool + // Indicates that the operation should target the s3-object-lambda endpoint. + // Used to direct operations that do not route based on an input ARN. + TargetS3ObjectLambda bool + // EndpointResolver used to resolve endpoints. This may be a custom endpoint resolver EndpointResolver EndpointResolver @@ -85,6 +89,20 @@ func UpdateEndpoint(stack *middleware.Stack, options UpdateEndpointOptions) (err return err } + // process whether the operation requires the s3-object-lambda endpoint + // Occurs before operation serializer so that hostPrefix mutations + // can be handled correctly. + err = stack.Serialize.Insert(&s3ObjectLambdaEndpoint{ + UseEndpoint: options.TargetS3ObjectLambda, + UseAccelerate: options.UseAccelerate, + UseDualstack: options.UseDualstack, + EndpointResolver: options.EndpointResolver, + EndpointResolverOptions: options.EndpointResolverOptions, + }, "OperationSerializer", middleware.Before) + if err != nil { + return err + } + // remove bucket arn middleware err = stack.Serialize.Insert(&removeBucketFromPathMiddleware{}, "OperationSerializer", middleware.After) if err != nil { diff --git a/service/s3/internal/customizations/update_endpoint_test.go b/service/s3/internal/customizations/update_endpoint_test.go index a13ca15edb7..f5b7bc3ffb2 100644 --- a/service/s3/internal/customizations/update_endpoint_test.go +++ b/service/s3/internal/customizations/update_endpoint_test.go @@ -239,6 +239,121 @@ func TestUpdateEndpointBuild(t *testing.T) { func TestEndpointWithARN(t *testing.T) { // test cases cases := map[string]testCaseForEndpointCustomization{ + "Object Lambda with no UseARNRegion flag set": { + bucket: "arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint/myap", + options: s3.Options{ + Region: "us-west-2", + }, + expectedReqURL: "https://myap-123456789012.s3-object-lambda.us-west-2.amazonaws.com/testkey?x-id=GetObject", + expectedSigningName: "s3-object-lambda", + expectedSigningRegion: "us-west-2", + }, + "Object Lambda with UseARNRegion flag set": { + bucket: "arn:aws:s3-object-lambda:us-east-1:123456789012:accesspoint/myap", + options: s3.Options{ + Region: "us-west-2", + UseARNRegion: true, + }, + expectedReqURL: "https://myap-123456789012.s3-object-lambda.us-east-1.amazonaws.com/testkey?x-id=GetObject", + expectedSigningName: "s3-object-lambda", + expectedSigningRegion: "us-east-1", + }, + "Object Lambda with Cross-Region error": { + bucket: "arn:aws:s3-object-lambda:us-east-1:123456789012:accesspoint/myap", + options: s3.Options{ + Region: "us-west-2", + }, + expectedErr: "client region does not match provided ARN region", + }, + "Object Lambda Pseudo-Region with UseARNRegion flag set": { + bucket: "arn:aws:s3-object-lambda:us-east-1:123456789012:accesspoint/myap", + options: s3.Options{ + Region: "aws-global", + UseARNRegion: true, + }, + expectedReqURL: "https://myap-123456789012.s3-object-lambda.us-east-1.amazonaws.com/testkey?x-id=GetObject", + expectedSigningRegion: "us-east-1", + expectedSigningName: "s3-object-lambda", + }, + "Object Lambda Cross-Region DualStack error": { + bucket: "arn:aws:s3-object-lambda:us-east-1:123456789012:accesspoint/myap", + options: s3.Options{ + Region: "us-west-2", + UseDualstack: true, + UseARNRegion: true, + }, + expectedErr: "client configured for S3 Dual-stack but is not supported with resource ARN", + }, + "Object Lambda Cross-Partition error": { + bucket: "arn:aws-cn:s3-object-lambda:cn-north-1:123456789012:accesspoint/myap", + options: s3.Options{ + Region: "us-west-2", + UseARNRegion: true, + }, + expectedErr: "client partition does not match provided ARN partition", + }, + "Object Lambda FIPS Pseudo-Region": { + bucket: "arn:aws-us-gov:s3-object-lambda:us-gov-west-1:123456789012:accesspoint/myap", + options: s3.Options{ + Region: "fips-us-gov-west-1", + }, + expectedReqURL: "https://myap-123456789012.s3-object-lambda-fips.us-gov-west-1.amazonaws.com/testkey?x-id=GetObject", + expectedSigningRegion: "us-gov-west-1", + expectedSigningName: "s3-object-lambda", + }, + "Object Lambda FIPS Pseudo-Region with UseARNRegion flag set": { + bucket: "arn:aws-us-gov:s3-object-lambda:us-gov-west-1:123456789012:accesspoint/myap", + options: s3.Options{ + Region: "fips-us-gov-west-1", + UseARNRegion: true, + }, + expectedReqURL: "https://myap-123456789012.s3-object-lambda-fips.us-gov-west-1.amazonaws.com/testkey?x-id=GetObject", + expectedSigningRegion: "us-gov-west-1", + expectedSigningName: "s3-object-lambda", + }, + "Object Lambda with Accelerate": { + bucket: "arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint:myendpoint", + options: s3.Options{ + Region: "us-west-2", + UseAccelerate: true, + }, + expectedErr: "client configured for S3 Accelerate but is not supported with resource ARN", + }, + "Object Lambda with Custom Endpoint Source": { + bucket: "arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint:myendpoint", + options: s3.Options{ + Region: "us-west-2", + EndpointResolver: EndpointResolverFunc(func(region string, options s3.EndpointResolverOptions) (aws.Endpoint, error) { + return aws.Endpoint{ + URL: "https://my-domain.com", + Source: aws.EndpointSourceCustom, + SigningName: "custom-sign-name", + SigningRegion: region, + }, nil + }), + }, + expectedReqURL: "https://myendpoint-123456789012.my-domain.com/testkey?x-id=GetObject", + expectedSigningName: "custom-sign-name", + expectedSigningRegion: "us-west-2", + }, + "Object Lambda with Custom Endpoint Source Immutable": { + bucket: "arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint:myendpoint", + options: s3.Options{ + Region: "us-west-2", + EndpointResolver: EndpointResolverFunc(func(region string, options s3.EndpointResolverOptions) (aws.Endpoint, error) { + return aws.Endpoint{ + URL: "https://myendpoint-123456789012.my-domain.com", + Source: aws.EndpointSourceCustom, + SigningName: "custom-sign-name", + SigningRegion: region, + HostnameImmutable: true, + }, nil + }), + }, + expectedReqURL: "https://myendpoint-123456789012.my-domain.com/testkey?x-id=GetObject", + expectedSigningName: "custom-sign-name", + expectedSigningRegion: "us-west-2", + }, "Outpost AccessPoint with no S3UseARNRegion flag set": { bucket: "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint", options: s3.Options{ @@ -282,6 +397,41 @@ func TestEndpointWithARN(t *testing.T) { expectedSigningName: "s3-outposts", expectedSigningRegion: "cn-north-1", }, + "Outpost AccessPoint Custom Endpoint Source": { + bucket: "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint", + options: s3.Options{ + Region: "us-west-2", + EndpointResolver: EndpointResolverFunc(func(region string, options s3.EndpointResolverOptions) (aws.Endpoint, error) { + return aws.Endpoint{ + URL: "https://my-domain.com", + Source: aws.EndpointSourceCustom, + SigningName: "custom-sign-name", + SigningRegion: region, + }, nil + }), + }, + expectedReqURL: "https://myaccesspoint-123456789012.op-01234567890123456.my-domain.com/testkey?x-id=GetObject", + expectedSigningName: "custom-sign-name", + expectedSigningRegion: "us-west-2", + }, + "Outpost AccessPoint Custom Endpoint Source Immutable": { + bucket: "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint", + options: s3.Options{ + Region: "us-west-2", + EndpointResolver: EndpointResolverFunc(func(region string, options s3.EndpointResolverOptions) (aws.Endpoint, error) { + return aws.Endpoint{ + URL: "https://myaccesspoint-123456789012.op-01234567890123456.my-domain.com", + Source: aws.EndpointSourceCustom, + SigningName: "custom-sign-name", + SigningRegion: region, + HostnameImmutable: true, + }, nil + }), + }, + expectedReqURL: "https://myaccesspoint-123456789012.op-01234567890123456.my-domain.com/testkey?x-id=GetObject", + expectedSigningName: "custom-sign-name", + expectedSigningRegion: "us-west-2", + }, "Outpost AccessPoint us-gov region": { bucket: "arn:aws-us-gov:s3-outposts:us-gov-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint", options: s3.Options{ @@ -318,6 +468,22 @@ func TestEndpointWithARN(t *testing.T) { expectedSigningName: "s3-outposts", expectedSigningRegion: "us-gov-east-1", }, + "Outpost AccessPoint with Immutable Endpoint": { + bucket: "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint", + options: s3.Options{ + Region: "us-west-2", + EndpointResolver: EndpointResolverFunc(func(region string, options s3.EndpointResolverOptions) (aws.Endpoint, error) { + return aws.Endpoint{ + URL: "https://myaccesspoint-123456789012.op-01234567890123456.my-domain.com", + SigningRegion: region, + HostnameImmutable: true, + }, nil + }), + }, + expectedReqURL: "https://myaccesspoint-123456789012.op-01234567890123456.my-domain.com/testkey?x-id=GetObject", + expectedSigningName: "s3-outposts", + expectedSigningRegion: "us-west-2", + }, "Outpost AccessPoint with DualStack": { bucket: "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint", options: s3.Options{ @@ -461,6 +627,40 @@ func TestEndpointWithARN(t *testing.T) { expectedSigningName: "s3", expectedSigningRegion: "us-gov-west-1", }, + "AccessPoint Immutable Endpoint": { + bucket: "arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", + options: s3.Options{ + Region: "us-west-2", + EndpointResolver: EndpointResolverFunc(func(region string, options s3.EndpointResolverOptions) (aws.Endpoint, error) { + return aws.Endpoint{ + URL: "https://myendpoint-123456789012.s3-accesspoint.us-east-1.amazonaws.com", + SigningRegion: region, + HostnameImmutable: true, + }, nil + }), + }, + expectedReqURL: "https://myendpoint-123456789012.s3-accesspoint.us-east-1.amazonaws.com/testkey?x-id=GetObject", + expectedSigningName: "s3", + expectedSigningRegion: "us-west-2", + }, + "AccessPoint Custom Endpoint Source": { + bucket: "arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", + options: s3.Options{ + Region: "us-west-2", + EndpointResolver: EndpointResolverFunc(func(region string, options s3.EndpointResolverOptions) (aws.Endpoint, error) { + return aws.Endpoint{ + URL: "https://myendpoint-123456789012.my-domain.com", + Source: aws.EndpointSourceCustom, + SigningName: "custom-sign-name", + SigningRegion: region, + HostnameImmutable: true, + }, nil + }), + }, + expectedReqURL: "https://myendpoint-123456789012.my-domain.com/testkey?x-id=GetObject", + expectedSigningName: "custom-sign-name", + expectedSigningRegion: "us-west-2", + }, "AccessPoint FIPS cross region not supported": { bucket: "arn:aws-us-gov:s3:us-gov-east-1:123456789012:accesspoint:myendpoint", options: s3.Options{ @@ -789,6 +989,84 @@ func TestVPC_CustomEndpoint(t *testing.T) { } } +func TestWriteGetObjectResponse_UpdateEndpoint(t *testing.T) { + cases := map[string]testCaseForEndpointCustomization{ + "standard endpoint": { + options: s3.Options{ + Region: "us-west-2", + }, + expectedReqURL: "https://test-route.s3-object-lambda.us-west-2.amazonaws.com/WriteGetObjectResponse?x-id=WriteGetObjectResponse", + expectedSigningRegion: "us-west-2", + expectedSigningName: "s3-object-lambda", + }, + "fips endpoint": { + options: s3.Options{ + Region: "fips-us-gov-west-1", + }, + expectedReqURL: "https://test-route.s3-object-lambda-fips.us-gov-west-1.amazonaws.com/WriteGetObjectResponse?x-id=WriteGetObjectResponse", + expectedSigningRegion: "us-gov-west-1", + expectedSigningName: "s3-object-lambda", + }, + "duakstack endpoint": { + options: s3.Options{ + Region: "us-west-2", + UseDualstack: true, + }, + expectedErr: "client configured for dualstack but not supported for operation", + }, + "accelerate endpoint": { + options: s3.Options{ + Region: "us-west-2", + UseAccelerate: true, + }, + expectedErr: "client configured for accelerate but not supported for operation", + }, + "custom endpoint": { + options: s3.Options{ + Region: "us-west-2", + EndpointResolver: EndpointResolverFunc(func(region string, options s3.EndpointResolverOptions) (aws.Endpoint, error) { + return aws.Endpoint{ + URL: "https://my-domain.com", + SigningRegion: region, + SigningName: "s3", // incorrect signing name gets overwritten + }, nil + }), + }, + expectedReqURL: "https://test-route.my-domain.com/WriteGetObjectResponse?x-id=WriteGetObjectResponse", + expectedSigningRegion: "us-west-2", + expectedSigningName: "s3-object-lambda", + }, + "custom endpoint immutable": { + options: s3.Options{ + Region: "us-west-2", + EndpointResolver: EndpointResolverFunc(func(region string, options s3.EndpointResolverOptions) (aws.Endpoint, error) { + return aws.Endpoint{ + URL: "https://test-route.my-domain.com", + SigningRegion: region, + SigningName: "s3", // incorrect signing name gets overwritten + HostnameImmutable: true, + }, nil + }), + }, + expectedReqURL: "https://test-route.my-domain.com/WriteGetObjectResponse?x-id=WriteGetObjectResponse", + expectedSigningRegion: "us-west-2", + expectedSigningName: "s3-object-lambda", + }, + } + + for name, c := range cases { + t.Run(name, func(t *testing.T) { + runValidations(t, c, func(ctx context.Context, client *s3.Client, retrieverMiddleware *requestRetrieverMiddleware) (interface{}, error) { + return client.WriteGetObjectResponse(context.Background(), + &s3.WriteGetObjectResponseInput{ + RequestRoute: aws.String("test-route"), + RequestToken: aws.String("test-token"), + }, addRequestRetriever(retrieverMiddleware)) + }) + }) + } +} + func runValidations(t *testing.T, c testCaseForEndpointCustomization, operation func( context.Context, *s3.Client, *requestRetrieverMiddleware) (interface{}, error)) { // options diff --git a/service/s3/internal/customizations/write_get_object_response_test.go b/service/s3/internal/customizations/write_get_object_response_test.go new file mode 100644 index 00000000000..3acc274ed9c --- /dev/null +++ b/service/s3/internal/customizations/write_get_object_response_test.go @@ -0,0 +1,216 @@ +package customizations_test + +import ( + "bytes" + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/service/s3" + "github.com/google/go-cmp/cmp" + "io/ioutil" + "net/http" + "net/http/httptest" + "testing" +) + +type readSeeker struct { + br *bytes.Reader +} + +func (r *readSeeker) Read(p []byte) (int, error) { + return r.br.Read(p) +} + +func (r *readSeeker) Seek(offset int64, whence int) (int64, error) { + return r.br.Seek(offset, whence) +} + +type readOnlyReader struct { + br *bytes.Reader +} + +func (r *readOnlyReader) Read(p []byte) (int, error) { + return r.br.Read(p) +} + +type lenReader struct { + br *bytes.Reader +} + +func (r *lenReader) Read(p []byte) (int, error) { + return r.br.Read(p) +} + +func (r *lenReader) Len() int { + return r.br.Len() +} + +func TestWriteGetObjectResponse(t *testing.T) { + const contentLength = "Content-Length" + const contentSha256 = "X-Amz-Content-Sha256" + const unsignedPayload = "UNSIGNED-PAYLOAD" + + cases := map[string]struct { + Handler func(*testing.T) http.Handler + Input s3.WriteGetObjectResponseInput + }{ + "Content-Length seekable": { + Handler: func(t *testing.T) http.Handler { + return http.HandlerFunc(func(writer http.ResponseWriter, request *http.Request) { + expectedInput := []byte("test input") + + if len(request.TransferEncoding) != 0 { + t.Errorf("expect no transfer-encoding") + } + + if diff := cmp.Diff(request.Header.Get(contentLength), fmt.Sprintf("%d", len(expectedInput))); len(diff) > 0 { + t.Error(diff) + } + + if diff := cmp.Diff(request.Header.Get(contentSha256), unsignedPayload); len(diff) > 0 { + t.Error(diff) + } + + all, err := ioutil.ReadAll(request.Body) + if err != nil { + t.Errorf("expect no error, got %v", err) + } + if diff := cmp.Diff(all, expectedInput); len(diff) > 0 { + t.Error(diff) + } + writer.WriteHeader(200) + }) + }, + Input: s3.WriteGetObjectResponseInput{ + RequestRoute: aws.String("route"), + RequestToken: aws.String("token"), + Body: &readSeeker{br: bytes.NewReader([]byte("test input"))}, + }, + }, + "Content-Length Len Interface": { + Handler: func(t *testing.T) http.Handler { + return http.HandlerFunc(func(writer http.ResponseWriter, request *http.Request) { + expectedInput := []byte("test input") + + if len(request.TransferEncoding) != 0 { + t.Errorf("expect no transfer-encoding") + } + + if diff := cmp.Diff(request.Header.Get(contentLength), fmt.Sprintf("%d", len(expectedInput))); len(diff) > 0 { + t.Error(diff) + } + + if diff := cmp.Diff(request.Header.Get(contentSha256), unsignedPayload); len(diff) > 0 { + t.Error(diff) + } + + all, err := ioutil.ReadAll(request.Body) + if err != nil { + t.Errorf("expect no error, got %v", err) + } + if diff := cmp.Diff(all, expectedInput); len(diff) > 0 { + t.Error(diff) + } + writer.WriteHeader(200) + }) + }, + Input: s3.WriteGetObjectResponseInput{ + RequestRoute: aws.String("route"), + RequestToken: aws.String("token"), + Body: &lenReader{bytes.NewReader([]byte("test input"))}, + }, + }, + "Content-Length Input Parameter": { + Handler: func(t *testing.T) http.Handler { + return http.HandlerFunc(func(writer http.ResponseWriter, request *http.Request) { + expectedInput := []byte("test input") + + if len(request.TransferEncoding) != 0 { + t.Errorf("expect no transfer-encoding") + } + + if diff := cmp.Diff(request.Header.Get(contentLength), fmt.Sprintf("%d", len(expectedInput))); len(diff) > 0 { + t.Error(diff) + } + + if diff := cmp.Diff(request.Header.Get(contentSha256), unsignedPayload); len(diff) > 0 { + t.Error(diff) + } + + all, err := ioutil.ReadAll(request.Body) + if err != nil { + t.Errorf("expect no error, got %v", err) + } + if diff := cmp.Diff(all, expectedInput); len(diff) > 0 { + t.Error(diff) + } + writer.WriteHeader(200) + }) + }, + Input: s3.WriteGetObjectResponseInput{ + RequestRoute: aws.String("route"), + RequestToken: aws.String("token"), + Body: &readOnlyReader{bytes.NewReader([]byte("test input"))}, + ContentLength: 10, + }, + }, + "Content-Length Not Provided": { + Handler: func(t *testing.T) http.Handler { + return http.HandlerFunc(func(writer http.ResponseWriter, request *http.Request) { + expectedInput := []byte("test input") + + if diff := cmp.Diff(request.TransferEncoding, []string{"chunked"}); len(diff) > 0 { + t.Error(diff) + } + + if diff := cmp.Diff(request.Header.Get(contentLength), ""); len(diff) > 0 { + t.Error(diff) + } + + if diff := cmp.Diff(request.Header.Get(contentSha256), unsignedPayload); len(diff) > 0 { + t.Error(diff) + } + + all, err := ioutil.ReadAll(request.Body) + if err != nil { + t.Errorf("expect no error, got %v", err) + } + if diff := cmp.Diff(all, expectedInput); len(diff) > 0 { + t.Error(diff) + } + writer.WriteHeader(200) + }) + }, + Input: s3.WriteGetObjectResponseInput{ + RequestRoute: aws.String("route"), + RequestToken: aws.String("token"), + Body: &readOnlyReader{bytes.NewReader([]byte("test input"))}, + }, + }, + } + + for name, tt := range cases { + t.Run(name, func(t *testing.T) { + server := httptest.NewServer(tt.Handler(t)) + defer server.Close() + + client := s3.New(s3.Options{ + Region: "us-west-2", + EndpointResolver: s3.EndpointResolverFunc(func(region string, options s3.EndpointResolverOptions) (aws.Endpoint, error) { + return aws.Endpoint{ + URL: server.URL, + SigningName: "s3-object-lambda", + SigningRegion: region, + Source: aws.EndpointSourceCustom, + HostnameImmutable: true, + }, nil + }), + }) + + _, err := client.WriteGetObjectResponse(context.Background(), &tt.Input) + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + }) + } +} diff --git a/service/s3/serializers.go b/service/s3/serializers.go index 6382025a276..bebd064538b 100644 --- a/service/s3/serializers.go +++ b/service/s3/serializers.go @@ -124,7 +124,7 @@ func (m *awsRestxml_serializeOpCompleteMultipartUpload) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/{Bucket}/{Key+}") + opPath, opQuery := httpbinding.SplitURI("/{Bucket}/{Key+}?x-id=CompleteMultipartUpload") request.URL.Path = opPath if len(request.URL.RawQuery) > 0 { request.URL.RawQuery = "&" + opQuery @@ -620,7 +620,7 @@ func (m *awsRestxml_serializeOpCreateMultipartUpload) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/{Bucket}/{Key+}?uploads") + opPath, opQuery := httpbinding.SplitURI("/{Bucket}/{Key+}?uploads&x-id=CreateMultipartUpload") request.URL.Path = opPath if len(request.URL.RawQuery) > 0 { request.URL.RawQuery = "&" + opQuery @@ -1822,7 +1822,7 @@ func (m *awsRestxml_serializeOpDeleteObjects) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/{Bucket}?delete") + opPath, opQuery := httpbinding.SplitURI("/{Bucket}?delete&x-id=DeleteObjects") request.URL.Path = opPath if len(request.URL.RawQuery) > 0 { request.URL.RawQuery = "&" + opQuery @@ -3981,6 +3981,11 @@ func awsRestxml_serializeOpHttpBindingsGetObjectTaggingInput(v *GetObjectTagging } } + if len(v.RequestPayer) > 0 { + locationName := "X-Amz-Request-Payer" + encoder.SetHeader(locationName).String(string(v.RequestPayer)) + } + if v.VersionId != nil { encoder.SetQuery("versionId").String(*v.VersionId) } @@ -7695,6 +7700,11 @@ func awsRestxml_serializeOpHttpBindingsPutObjectTaggingInput(v *PutObjectTagging } } + if len(v.RequestPayer) > 0 { + locationName := "X-Amz-Request-Payer" + encoder.SetHeader(locationName).String(string(v.RequestPayer)) + } + if v.VersionId != nil { encoder.SetQuery("versionId").String(*v.VersionId) } @@ -7819,7 +7829,7 @@ func (m *awsRestxml_serializeOpRestoreObject) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/{Bucket}/{Key+}?restore") + opPath, opQuery := httpbinding.SplitURI("/{Bucket}/{Key+}?restore&x-id=RestoreObject") request.URL.Path = opPath if len(request.URL.RawQuery) > 0 { request.URL.RawQuery = "&" + opQuery @@ -8188,6 +8198,250 @@ func awsRestxml_serializeOpHttpBindingsUploadPartCopyInput(v *UploadPartCopyInpu return nil } +type awsRestxml_serializeOpWriteGetObjectResponse struct { +} + +func (*awsRestxml_serializeOpWriteGetObjectResponse) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpWriteGetObjectResponse) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*WriteGetObjectResponseInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/WriteGetObjectResponse?x-id=WriteGetObjectResponse") + request.URL.Path = opPath + if len(request.URL.RawQuery) > 0 { + request.URL.RawQuery = "&" + opQuery + } else { + request.URL.RawQuery = opQuery + } + + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsWriteGetObjectResponseInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if input.Body != nil { + if !restEncoder.HasHeader("Content-Type") { + restEncoder.SetHeader("Content-Type").String("application/octet-stream") + } + + payload := input.Body + if request, err = request.SetStream(payload); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsWriteGetObjectResponseInput(v *WriteGetObjectResponseInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AcceptRanges != nil && len(*v.AcceptRanges) > 0 { + locationName := "X-Amz-Fwd-Header-Accept-Ranges" + encoder.SetHeader(locationName).String(*v.AcceptRanges) + } + + if v.BucketKeyEnabled { + locationName := "X-Amz-Fwd-Header-X-Amz-Server-Side-Encryption-Bucket-Key-Enabled" + encoder.SetHeader(locationName).Boolean(v.BucketKeyEnabled) + } + + if v.CacheControl != nil && len(*v.CacheControl) > 0 { + locationName := "X-Amz-Fwd-Header-Cache-Control" + encoder.SetHeader(locationName).String(*v.CacheControl) + } + + if v.ContentDisposition != nil && len(*v.ContentDisposition) > 0 { + locationName := "X-Amz-Fwd-Header-Content-Disposition" + encoder.SetHeader(locationName).String(*v.ContentDisposition) + } + + if v.ContentEncoding != nil && len(*v.ContentEncoding) > 0 { + locationName := "X-Amz-Fwd-Header-Content-Encoding" + encoder.SetHeader(locationName).String(*v.ContentEncoding) + } + + if v.ContentLanguage != nil && len(*v.ContentLanguage) > 0 { + locationName := "X-Amz-Fwd-Header-Content-Language" + encoder.SetHeader(locationName).String(*v.ContentLanguage) + } + + if v.ContentLength != 0 { + locationName := "Content-Length" + encoder.SetHeader(locationName).Long(v.ContentLength) + } + + if v.ContentRange != nil && len(*v.ContentRange) > 0 { + locationName := "X-Amz-Fwd-Header-Content-Range" + encoder.SetHeader(locationName).String(*v.ContentRange) + } + + if v.ContentType != nil && len(*v.ContentType) > 0 { + locationName := "X-Amz-Fwd-Header-Content-Type" + encoder.SetHeader(locationName).String(*v.ContentType) + } + + if v.DeleteMarker { + locationName := "X-Amz-Fwd-Header-X-Amz-Delete-Marker" + encoder.SetHeader(locationName).Boolean(v.DeleteMarker) + } + + if v.ErrorCode != nil && len(*v.ErrorCode) > 0 { + locationName := "X-Amz-Fwd-Error-Code" + encoder.SetHeader(locationName).String(*v.ErrorCode) + } + + if v.ErrorMessage != nil && len(*v.ErrorMessage) > 0 { + locationName := "X-Amz-Fwd-Error-Message" + encoder.SetHeader(locationName).String(*v.ErrorMessage) + } + + if v.ETag != nil && len(*v.ETag) > 0 { + locationName := "X-Amz-Fwd-Header-Etag" + encoder.SetHeader(locationName).String(*v.ETag) + } + + if v.Expiration != nil && len(*v.Expiration) > 0 { + locationName := "X-Amz-Fwd-Header-X-Amz-Expiration" + encoder.SetHeader(locationName).String(*v.Expiration) + } + + if v.Expires != nil { + locationName := "X-Amz-Fwd-Header-Expires" + encoder.SetHeader(locationName).String(smithytime.FormatHTTPDate(*v.Expires)) + } + + if v.LastModified != nil { + locationName := "X-Amz-Fwd-Header-Last-Modified" + encoder.SetHeader(locationName).String(smithytime.FormatHTTPDate(*v.LastModified)) + } + + if v.Metadata != nil { + hv := encoder.Headers("X-Amz-Meta-") + for mapKey, mapVal := range v.Metadata { + if len(mapVal) > 0 { + hv.SetHeader(http.CanonicalHeaderKey(mapKey)).String(mapVal) + } + } + } + + if v.MissingMeta != 0 { + locationName := "X-Amz-Fwd-Header-X-Amz-Missing-Meta" + encoder.SetHeader(locationName).Integer(v.MissingMeta) + } + + if len(v.ObjectLockLegalHoldStatus) > 0 { + locationName := "X-Amz-Fwd-Header-X-Amz-Object-Lock-Legal-Hold" + encoder.SetHeader(locationName).String(string(v.ObjectLockLegalHoldStatus)) + } + + if len(v.ObjectLockMode) > 0 { + locationName := "X-Amz-Fwd-Header-X-Amz-Object-Lock-Mode" + encoder.SetHeader(locationName).String(string(v.ObjectLockMode)) + } + + if v.ObjectLockRetainUntilDate != nil { + locationName := "X-Amz-Fwd-Header-X-Amz-Object-Lock-Retain-Until-Date" + encoder.SetHeader(locationName).String(smithytime.FormatDateTime(*v.ObjectLockRetainUntilDate)) + } + + if v.PartsCount != 0 { + locationName := "X-Amz-Fwd-Header-X-Amz-Mp-Parts-Count" + encoder.SetHeader(locationName).Integer(v.PartsCount) + } + + if len(v.ReplicationStatus) > 0 { + locationName := "X-Amz-Fwd-Header-X-Amz-Replication-Status" + encoder.SetHeader(locationName).String(string(v.ReplicationStatus)) + } + + if len(v.RequestCharged) > 0 { + locationName := "X-Amz-Fwd-Header-X-Amz-Request-Charged" + encoder.SetHeader(locationName).String(string(v.RequestCharged)) + } + + if v.RequestRoute != nil && len(*v.RequestRoute) > 0 { + locationName := "X-Amz-Request-Route" + encoder.SetHeader(locationName).String(*v.RequestRoute) + } + + if v.RequestToken != nil && len(*v.RequestToken) > 0 { + locationName := "X-Amz-Request-Token" + encoder.SetHeader(locationName).String(*v.RequestToken) + } + + if v.Restore != nil && len(*v.Restore) > 0 { + locationName := "X-Amz-Fwd-Header-X-Amz-Restore" + encoder.SetHeader(locationName).String(*v.Restore) + } + + if len(v.ServerSideEncryption) > 0 { + locationName := "X-Amz-Fwd-Header-X-Amz-Server-Side-Encryption" + encoder.SetHeader(locationName).String(string(v.ServerSideEncryption)) + } + + if v.SSECustomerAlgorithm != nil && len(*v.SSECustomerAlgorithm) > 0 { + locationName := "X-Amz-Fwd-Header-X-Amz-Server-Side-Encryption-Customer-Algorithm" + encoder.SetHeader(locationName).String(*v.SSECustomerAlgorithm) + } + + if v.SSECustomerKeyMD5 != nil && len(*v.SSECustomerKeyMD5) > 0 { + locationName := "X-Amz-Fwd-Header-X-Amz-Server-Side-Encryption-Customer-Key-Md5" + encoder.SetHeader(locationName).String(*v.SSECustomerKeyMD5) + } + + if v.SSEKMSKeyId != nil && len(*v.SSEKMSKeyId) > 0 { + locationName := "X-Amz-Fwd-Header-X-Amz-Server-Side-Encryption-Aws-Kms-Key-Id" + encoder.SetHeader(locationName).String(*v.SSEKMSKeyId) + } + + if v.StatusCode != 0 { + locationName := "X-Amz-Fwd-Status" + encoder.SetHeader(locationName).Integer(v.StatusCode) + } + + if len(v.StorageClass) > 0 { + locationName := "X-Amz-Fwd-Header-X-Amz-Storage-Class" + encoder.SetHeader(locationName).String(string(v.StorageClass)) + } + + if v.TagCount != 0 { + locationName := "X-Amz-Fwd-Header-X-Amz-Tagging-Count" + encoder.SetHeader(locationName).Integer(v.TagCount) + } + + if v.VersionId != nil && len(*v.VersionId) > 0 { + locationName := "X-Amz-Fwd-Header-X-Amz-Version-Id" + encoder.SetHeader(locationName).String(*v.VersionId) + } + + return nil +} + func awsRestxml_serializeDocumentAbortIncompleteMultipartUpload(v *types.AbortIncompleteMultipartUpload, value smithyxml.Value) error { defer value.Close() if v.DaysAfterInitiation != 0 { @@ -8686,6 +8940,17 @@ func awsRestxml_serializeDocumentCORSRule(v *types.CORSRule, value smithyxml.Val return err } } + if v.ID != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "ID", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + el.String(*v.ID) + } if v.MaxAgeSeconds != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ diff --git a/service/s3/types/errors.go b/service/s3/types/errors.go index 57c599ec391..c1b188d58f9 100644 --- a/service/s3/types/errors.go +++ b/service/s3/types/errors.go @@ -134,7 +134,7 @@ func (e *NotFound) ErrorMessage() string { func (e *NotFound) ErrorCode() string { return "NotFound" } func (e *NotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// This operation is not allowed against this storage tier. +// This action is not allowed against this storage tier. type ObjectAlreadyInActiveTierError struct { Message *string } @@ -151,7 +151,7 @@ func (e *ObjectAlreadyInActiveTierError) ErrorMessage() string { func (e *ObjectAlreadyInActiveTierError) ErrorCode() string { return "ObjectAlreadyInActiveTierError" } func (e *ObjectAlreadyInActiveTierError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The source object of the COPY operation is not in the active tier and is only +// The source object of the COPY action is not in the active tier and is only // stored in Amazon S3 Glacier. type ObjectNotInActiveTierError struct { Message *string diff --git a/service/s3/types/types.go b/service/s3/types/types.go index fca2d4c047e..d84713c6e81 100644 --- a/service/s3/types/types.go +++ b/service/s3/types/types.go @@ -233,7 +233,10 @@ type Condition struct { // /docs, which identifies all objects in the docs/ folder. Required when the // parent element Condition is specified and sibling HttpErrorCodeReturnedEquals is // not specified. If both conditions are specified, both must be true for the - // redirect to be applied. + // redirect to be applied. Replacement must be made for object keys containing + // special characters (such as carriage returns) when using XML requests. For more + // information, see XML related object key constraints + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). KeyPrefixEquals *string } @@ -242,10 +245,10 @@ type CopyObjectResult struct { // Returns the ETag of the new object. The ETag reflects only changes to the // contents of an object, not its metadata. The source and destination ETag is - // identical for a successfully copied object. + // identical for a successfully copied non-multipart object. ETag *string - // Returns the date that the object was last modified. + // Creation date of the object. LastModified *time.Time } @@ -295,6 +298,9 @@ type CORSRule struct { // from their applications (for example, from a JavaScript XMLHttpRequest object). ExposeHeaders []string + // Unique identifier for the rule. The value cannot be longer than 255 characters. + ID *string + // The time in seconds that your browser is to cache the preflight response for the // specified resource. MaxAgeSeconds int32 @@ -579,8 +585,8 @@ type Error struct { // Code: AccountProblem // // * Description: There is a problem with your AWS account - // that prevents the operation from completing successfully. Contact AWS Support - // for further assistance. + // that prevents the action from completing successfully. Contact AWS Support for + // further assistance. // // * HTTP Status Code: 403 Forbidden // @@ -855,154 +861,154 @@ type Error struct { // * Code: // InvalidObjectState // - // * Description: The operation is not valid for the current - // state of the object. + // * Description: The action is not valid for the current state + // of the object. // // * HTTP Status Code: 403 Forbidden // - // * SOAP Fault Code - // Prefix: Client + // * SOAP Fault Code Prefix: + // Client // // * Code: InvalidPart // - // * Description: One or more of the specified - // parts could not be found. The part might not have been uploaded, or the - // specified entity tag might not have matched the part's entity tag. + // * Description: One or more of the specified parts + // could not be found. The part might not have been uploaded, or the specified + // entity tag might not have matched the part's entity tag. // - // * HTTP - // Status Code: 400 Bad Request + // * HTTP Status Code: + // 400 Bad Request // // * SOAP Fault Code Prefix: Client // - // * Code: - // InvalidPartOrder + // * Code: InvalidPartOrder // - // * Description: The list of parts was not in ascending order. - // Parts list must be specified in order by part number. + // * + // Description: The list of parts was not in ascending order. Parts list must be + // specified in order by part number. // - // * HTTP Status Code: 400 - // Bad Request + // * HTTP Status Code: 400 Bad Request // - // * SOAP Fault Code Prefix: Client + // * SOAP + // Fault Code Prefix: Client // // * Code: InvalidPayer // - // * - // Description: All access to this object has been disabled. Please contact AWS - // Support for further assistance. + // * Description: All access to + // this object has been disabled. Please contact AWS Support for further + // assistance. // // * HTTP Status Code: 403 Forbidden // - // * SOAP Fault - // Code Prefix: Client + // * SOAP Fault Code Prefix: + // Client // // * Code: InvalidPolicyDocument // - // * Description: The content - // of the form does not meet the conditions specified in the policy document. + // * Description: The content of the form + // does not meet the conditions specified in the policy document. // - // * - // HTTP Status Code: 400 Bad Request + // * HTTP Status + // Code: 400 Bad Request // // * SOAP Fault Code Prefix: Client // - // * Code: - // InvalidRange + // * Code: InvalidRange // - // * Description: The requested range cannot be satisfied. + // * + // Description: The requested range cannot be satisfied. // - // * HTTP - // Status Code: 416 Requested Range Not Satisfiable + // * HTTP Status Code: 416 + // Requested Range Not Satisfiable // - // * SOAP Fault Code Prefix: - // Client + // * SOAP Fault Code Prefix: Client // - // * Code: InvalidRequest + // * Code: + // InvalidRequest // // * Description: Please use AWS4-HMAC-SHA256. // - // * - // HTTP Status Code: 400 Bad Request + // * HTTP Status Code: + // 400 Bad Request // // * Code: N/A // // * Code: InvalidRequest // - // * - // Description: SOAP requests must be made over an HTTPS connection. + // * Description: SOAP + // requests must be made over an HTTPS connection. // - // * HTTP Status - // Code: 400 Bad Request + // * HTTP Status Code: 400 Bad + // Request // // * SOAP Fault Code Prefix: Client // - // * Code: - // InvalidRequest + // * Code: InvalidRequest // - // * Description: Amazon S3 Transfer Acceleration is not supported - // for buckets with non-DNS compliant names. + // * + // Description: Amazon S3 Transfer Acceleration is not supported for buckets with + // non-DNS compliant names. // - // * HTTP Status Code: 400 Bad - // Request + // * HTTP Status Code: 400 Bad Request // // * Code: N/A // - // * Code: InvalidRequest + // * + // Code: InvalidRequest // - // * Description: Amazon S3 Transfer - // Acceleration is not supported for buckets with periods (.) in their names. + // * Description: Amazon S3 Transfer Acceleration is not + // supported for buckets with periods (.) in their names. // - // * - // HTTP Status Code: 400 Bad Request + // * HTTP Status Code: 400 + // Bad Request // // * Code: N/A // // * Code: InvalidRequest // - // * - // Description: Amazon S3 Transfer Accelerate endpoint only supports virtual style - // requests. + // * Description: Amazon S3 + // Transfer Accelerate endpoint only supports virtual style requests. // - // * HTTP Status Code: 400 Bad Request + // * HTTP + // Status Code: 400 Bad Request // // * Code: N/A // - // * Code: - // InvalidRequest + // * Code: InvalidRequest // - // * Description: Amazon S3 Transfer Accelerate is not configured - // on this bucket. + // * + // Description: Amazon S3 Transfer Accelerate is not configured on this bucket. // - // * HTTP Status Code: 400 Bad Request + // * + // HTTP Status Code: 400 Bad Request // // * Code: N/A // - // * Code: - // InvalidRequest + // * Code: InvalidRequest // - // * Description: Amazon S3 Transfer Accelerate is disabled on this - // bucket. + // * + // Description: Amazon S3 Transfer Accelerate is disabled on this bucket. // - // * HTTP Status Code: 400 Bad Request + // * HTTP + // Status Code: 400 Bad Request // // * Code: N/A // - // * Code: - // InvalidRequest + // * Code: InvalidRequest // - // * Description: Amazon S3 Transfer Acceleration is not supported - // on this bucket. Contact AWS Support for more information. + // * + // Description: Amazon S3 Transfer Acceleration is not supported on this bucket. + // Contact AWS Support for more information. // - // * HTTP Status Code: - // 400 Bad Request + // * HTTP Status Code: 400 Bad + // Request // // * Code: N/A // // * Code: InvalidRequest // - // * Description: Amazon S3 - // Transfer Acceleration cannot be enabled on this bucket. Contact AWS Support for - // more information. + // * Description: Amazon S3 Transfer + // Acceleration cannot be enabled on this bucket. Contact AWS Support for more + // information. // // * HTTP Status Code: 400 Bad Request // @@ -1303,32 +1309,32 @@ type Error struct { // * Code: OperationAborted // // * Description: A - // conflicting conditional operation is currently in progress against this - // resource. Try again. + // conflicting conditional action is currently in progress against this resource. + // Try again. // // * HTTP Status Code: 409 Conflict // - // * SOAP Fault Code - // Prefix: Client + // * SOAP Fault Code Prefix: + // Client // // * Code: PermanentRedirect // - // * Description: The bucket you are - // attempting to access must be addressed using the specified endpoint. Send all - // future requests to this endpoint. + // * Description: The bucket you are attempting + // to access must be addressed using the specified endpoint. Send all future + // requests to this endpoint. // // * HTTP Status Code: 301 Moved Permanently // - // * - // SOAP Fault Code Prefix: Client + // * SOAP + // Fault Code Prefix: Client // // * Code: PreconditionFailed // - // * Description: At - // least one of the preconditions you specified did not hold. + // * Description: At least + // one of the preconditions you specified did not hold. // - // * HTTP Status Code: - // 412 Precondition Failed + // * HTTP Status Code: 412 + // Precondition Failed // // * SOAP Fault Code Prefix: Client // @@ -1510,7 +1516,11 @@ type Error struct { // The error information. type ErrorDocument struct { - // The object key name to use when a 4XX class error occurs. + // The object key name to use when a 4XX class error occurs. Replacement must be + // made for object keys containing special characters (such as carriage returns) + // when using XML requests. For more information, see XML related object key + // constraints + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). // // This member is required. Key *string @@ -1616,7 +1626,10 @@ type IndexDocument struct { // endpoint (for example,if the suffix is index.html and you make a request to // samplebucket/images/ the data that is returned will be for the object with the // key name images/index.html) The suffix must not be empty and must not include a - // slash character. + // slash character. Replacement must be made for object keys containing special + // characters (such as carriage returns) when using XML requests. For more + // information, see XML related object key constraints + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). // // This member is required. Suffix *string @@ -1699,7 +1712,10 @@ type IntelligentTieringFilter struct { And *IntelligentTieringAndOperator // An object key name prefix that identifies the subset of objects to which the - // rule applies. + // rule applies. Replacement must be made for object keys containing special + // characters (such as carriage returns) when using XML requests. For more + // information, see XML related object key constraints + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). Prefix *string // A container of a key value name pair. @@ -1922,7 +1938,10 @@ type LifecycleRule struct { NoncurrentVersionTransitions []NoncurrentVersionTransition // Prefix identifying one or more objects to which the rule applies. This is No - // longer used; use Filter instead. + // longer used; use Filter instead. Replacement must be made for object keys + // containing special characters (such as carriage returns) when using XML + // requests. For more information, see XML related object key constraints + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). // // Deprecated: This member has been deprecated. Prefix *string @@ -1955,7 +1974,11 @@ type LifecycleRuleFilter interface { isLifecycleRuleFilter() } -// Prefix identifying one or more objects to which the rule applies. +// Prefix identifying one or more objects to which the rule applies. Replacement +// must be made for object keys containing special characters (such as carriage +// returns) when using XML requests. For more information, see XML related object +// key constraints +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). type LifecycleRuleFilterMemberPrefix struct { Value string } @@ -2207,7 +2230,7 @@ type Object struct { // object. Key *string - // The date the Object was Last Modified + // Creation date of the object. LastModified *time.Time // The owner of the object @@ -2223,7 +2246,10 @@ type Object struct { // Object Identifier is unique value to identify objects. type ObjectIdentifier struct { - // Key name of the object to delete. + // Key name of the object. Replacement must be made for object keys containing + // special characters (such as carriage returns) when using XML requests. For more + // information, see XML related object key constraints + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). // // This member is required. Key *string @@ -2379,7 +2405,7 @@ type PolicyStatus struct { // information about when Amazon S3 considers a bucket or object public, see The // Meaning of "Public" // (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status) -// in the Amazon Simple Storage Service Developer Guide. +// in the Amazon S3 User Guide. type PublicAccessBlockConfiguration struct { // Specifies whether Amazon S3 should block public access control lists (ACLs) for @@ -2466,11 +2492,19 @@ type Redirect struct { // documents/, you can set a condition block with KeyPrefixEquals set to docs/ and // in the Redirect set ReplaceKeyPrefixWith to /documents. Not required if one of // the siblings is present. Can be present only if ReplaceKeyWith is not provided. + // Replacement must be made for object keys containing special characters (such as + // carriage returns) when using XML requests. For more information, see XML + // related object key constraints + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). ReplaceKeyPrefixWith *string // The specific object key to use in the redirect request. For example, redirect // request to error.html. Not required if one of the siblings is present. Can be - // present only if ReplaceKeyPrefixWith is not provided. + // present only if ReplaceKeyPrefixWith is not provided. Replacement must be made + // for object keys containing special characters (such as carriage returns) when + // using XML requests. For more information, see XML related object key + // constraints + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). ReplaceKeyWith *string } @@ -2565,7 +2599,10 @@ type ReplicationRule struct { // An object key name prefix that identifies the object or objects to which the // rule applies. The maximum prefix length is 1,024 characters. To include all - // objects in a bucket, specify an empty string. + // objects in a bucket, specify an empty string. Replacement must be made for + // object keys containing special characters (such as carriage returns) when using + // XML requests. For more information, see XML related object key constraints + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). // // Deprecated: This member has been deprecated. Prefix *string @@ -2596,7 +2633,7 @@ type ReplicationRule struct { // filter, wrap these filters in an And tag. // // * If you specify a filter based on -// multiple tags, wrap the Tag elements in an And tag +// multiple tags, wrap the Tag elements in an And tag. type ReplicationRuleAndOperator struct { // An object key name prefix that identifies the subset of objects to which the @@ -2619,7 +2656,10 @@ type ReplicationRuleFilter interface { } // An object key name prefix that identifies the subset of objects to which the -// rule applies. +// rule applies. Replacement must be made for object keys containing special +// characters (such as carriage returns) when using XML requests. For more +// information, see XML related object key constraints +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). type ReplicationRuleFilterMemberPrefix struct { Value string } @@ -2714,7 +2754,7 @@ type RestoreRequest struct { // Specifies the redirect behavior and when a redirect is applied. For more // information about routing rules, see Configuring advanced conditional redirects // (https://docs.aws.amazon.com/AmazonS3/latest/dev/how-to-page-redirect.html#advanced-conditional-redirects) -// in the Amazon Simple Storage Service Developer Guide. +// in the Amazon S3 User Guide. type RoutingRule struct { // Container for redirect information. You can redirect requests to another host, @@ -2855,7 +2895,7 @@ type ServerSideEncryptionRule struct { // to use an S3 Bucket Key. By default, S3 Bucket Key is not enabled. For more // information, see Amazon S3 Bucket Keys // (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) in the Amazon - // Simple Storage Service Developer Guide. + // S3 User Guide. BucketKeyEnabled bool } @@ -2995,7 +3035,7 @@ type TopicConfiguration struct { // The Amazon S3 bucket event about which to send notifications. For more // information, see Supported Event Types // (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the - // Amazon Simple Storage Service Developer Guide. + // Amazon S3 User Guide. // // This member is required. Events []Event @@ -3021,7 +3061,7 @@ type TopicConfiguration struct { // information about Amazon S3 lifecycle configuration rules, see Transitioning // Objects Using Amazon S3 Lifecycle // (https://docs.aws.amazon.com/AmazonS3/latest/dev/lifecycle-transition-general-considerations.html) -// in the Amazon Simple Storage Service Developer Guide. +// in the Amazon S3 User Guide. type Transition struct { // Indicates when objects are transitioned to the specified storage class. The date diff --git a/service/s3/validators.go b/service/s3/validators.go index c48199ca9c5..615f459b511 100644 --- a/service/s3/validators.go +++ b/service/s3/validators.go @@ -1790,6 +1790,26 @@ func (m *validateOpUploadPart) HandleInitialize(ctx context.Context, in middlewa return next.HandleInitialize(ctx, in) } +type validateOpWriteGetObjectResponse struct { +} + +func (*validateOpWriteGetObjectResponse) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpWriteGetObjectResponse) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*WriteGetObjectResponseInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpWriteGetObjectResponseInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + func addOpAbortMultipartUploadValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAbortMultipartUpload{}, middleware.After) } @@ -2146,6 +2166,10 @@ func addOpUploadPartValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUploadPart{}, middleware.After) } +func addOpWriteGetObjectResponseValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpWriteGetObjectResponse{}, middleware.After) +} + func validateAccessControlPolicy(v *types.AccessControlPolicy) error { if v == nil { return nil @@ -5351,3 +5375,21 @@ func validateOpUploadPartInput(v *UploadPartInput) error { return nil } } + +func validateOpWriteGetObjectResponseInput(v *WriteGetObjectResponseInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "WriteGetObjectResponseInput"} + if v.RequestRoute == nil { + invalidParams.Add(smithy.NewErrParamRequired("RequestRoute")) + } + if v.RequestToken == nil { + invalidParams.Add(smithy.NewErrParamRequired("RequestToken")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} diff --git a/service/s3control/api_op_CreateAccessPoint.go b/service/s3control/api_op_CreateAccessPoint.go index 031c450d6bd..27093b75431 100644 --- a/service/s3control/api_op_CreateAccessPoint.go +++ b/service/s3control/api_op_CreateAccessPoint.go @@ -17,29 +17,17 @@ import ( // Creates an access point and associates it with the specified bucket. For more // information, see Managing Data Access with Amazon S3 Access Points -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-points.html) in the -// Amazon Simple Storage Service Developer Guide. Using this action with Amazon S3 -// on Outposts This action: -// -// * Requires a virtual private cloud (VPC) configuration -// as S3 on Outposts only supports VPC style access points. -// -// * Does not support ACL -// on S3 on Outposts buckets. -// -// * Does not support Public Access on S3 on Outposts -// buckets. -// -// * Does not support object lock for S3 on Outposts buckets. -// -// For more -// information, see Using Amazon S3 on Outposts in the Amazon Simple Storage -// Service Developer Guide . All Amazon S3 on Outposts REST API requests for this -// action require an additional parameter of x-amz-outpost-id to be passed with the -// request and an S3 on Outposts endpoint hostname prefix instead of s3-control. -// For an example of the request syntax for Amazon S3 on Outposts that uses the S3 -// on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the -// access point ARN, see the Examples +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html) in +// the Amazon Simple Storage Service User Guide. S3 on Outposts only supports +// VPC-style Access Points. For more information, see Accessing Amazon S3 on +// Outposts using virtual private cloud (VPC) only Access Points +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the +// Amazon Simple Storage Service User Guide. All Amazon S3 on Outposts REST API +// requests for this action require an additional parameter of x-amz-outpost-id to +// be passed with the request and an S3 on Outposts endpoint hostname prefix +// instead of s3-control. For an example of the request syntax for Amazon S3 on +// Outposts that uses the S3 on Outposts endpoint hostname prefix and the +// x-amz-outpost-id derived using the access point ARN, see the Examples // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateAccessPoint.html#API_control_CreateAccessPoint_Examples) // section. The following actions are related to CreateAccessPoint: // diff --git a/service/s3control/api_op_CreateAccessPointForObjectLambda.go b/service/s3control/api_op_CreateAccessPointForObjectLambda.go new file mode 100644 index 00000000000..fe380def396 --- /dev/null +++ b/service/s3control/api_op_CreateAccessPointForObjectLambda.go @@ -0,0 +1,230 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package s3control + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + s3controlcust "github.com/aws/aws-sdk-go-v2/service/s3control/internal/customizations" + "github.com/aws/aws-sdk-go-v2/service/s3control/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "strings" +) + +// Creates an Object Lambda Access Point. For more information, see Transforming +// objects with Object Lambda Access Points +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/transforming-objects.html) +// in the Amazon Simple Storage Service User Guide. The following actions are +// related to CreateAccessPointForObjectLambda: +// +// * DeleteAccessPointForObjectLambda +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPointForObjectLambda.html) +// +// * +// GetAccessPointForObjectLambda +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPointForObjectLambda.html) +// +// * +// ListAccessPointsForObjectLambda +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListAccessPointsForObjectLambda.html) +func (c *Client) CreateAccessPointForObjectLambda(ctx context.Context, params *CreateAccessPointForObjectLambdaInput, optFns ...func(*Options)) (*CreateAccessPointForObjectLambdaOutput, error) { + if params == nil { + params = &CreateAccessPointForObjectLambdaInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateAccessPointForObjectLambda", params, optFns, addOperationCreateAccessPointForObjectLambdaMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateAccessPointForObjectLambdaOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateAccessPointForObjectLambdaInput struct { + + // The AWS account ID for owner of the specified Object Lambda Access Point. + // + // This member is required. + AccountId *string + + // Object Lambda Access Point configuration as a JSON document. + // + // This member is required. + Configuration *types.ObjectLambdaConfiguration + + // The name you want to assign to this Object Lambda Access Point. + // + // This member is required. + Name *string +} + +type CreateAccessPointForObjectLambdaOutput struct { + + // Specifies the ARN for the Object Lambda Access Point. + ObjectLambdaAccessPointArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func addOperationCreateAccessPointForObjectLambdaMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestxml_serializeOpCreateAccessPointForObjectLambda{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpCreateAccessPointForObjectLambda{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opCreateAccessPointForObjectLambdaMiddleware(stack); err != nil { + return err + } + if err = addOpCreateAccessPointForObjectLambdaValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateAccessPointForObjectLambda(options.Region), middleware.Before); err != nil { + return err + } + if err = addMetadataRetrieverMiddleware(stack); err != nil { + return err + } + if err = addCreateAccessPointForObjectLambdaUpdateEndpoint(stack, options); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = v4.AddContentSHA256HeaderMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +type endpointPrefix_opCreateAccessPointForObjectLambdaMiddleware struct { +} + +func (*endpointPrefix_opCreateAccessPointForObjectLambdaMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opCreateAccessPointForObjectLambdaMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + input, ok := in.Parameters.(*CreateAccessPointForObjectLambdaInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input type %T", in.Parameters) + } + + var prefix strings.Builder + if input.AccountId == nil { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("AccountId forms part of the endpoint host and so may not be nil")} + } else if !smithyhttp.ValidHostLabel(*input.AccountId) { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("AccountId forms part of the endpoint host and so must match \"[a-zA-Z0-9-]{1,63}\", but was \"%s\"", *input.AccountId)} + } else { + prefix.WriteString(*input.AccountId) + } + prefix.WriteString(".") + req.URL.Host = prefix.String() + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opCreateAccessPointForObjectLambdaMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opCreateAccessPointForObjectLambdaMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opCreateAccessPointForObjectLambda(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "s3", + OperationName: "CreateAccessPointForObjectLambda", + } +} + +func copyCreateAccessPointForObjectLambdaInputForUpdateEndpoint(params interface{}) (interface{}, error) { + input, ok := params.(*CreateAccessPointForObjectLambdaInput) + if !ok { + return nil, fmt.Errorf("expect *CreateAccessPointForObjectLambdaInput type, got %T", params) + } + cpy := *input + return &cpy, nil +} +func backFillCreateAccessPointForObjectLambdaAccountID(input interface{}, v string) error { + in := input.(*CreateAccessPointForObjectLambdaInput) + if in.AccountId != nil { + if !strings.EqualFold(*in.AccountId, v) { + return fmt.Errorf("error backfilling account id") + } + return nil + } + in.AccountId = &v + return nil +} +func addCreateAccessPointForObjectLambdaUpdateEndpoint(stack *middleware.Stack, options Options) error { + return s3controlcust.UpdateEndpoint(stack, s3controlcust.UpdateEndpointOptions{ + Accessor: s3controlcust.UpdateEndpointParameterAccessor{GetARNInput: nopGetARNAccessor, + BackfillAccountID: nopBackfillAccountIDAccessor, + GetOutpostIDInput: nopGetOutpostIDFromInput, + UpdateARNField: nopSetARNAccessor, + CopyInput: copyCreateAccessPointForObjectLambdaInputForUpdateEndpoint, + }, + EndpointResolver: options.EndpointResolver, + EndpointResolverOptions: options.EndpointOptions, + UseDualstack: options.UseDualstack, + UseARNRegion: options.UseARNRegion, + }) +} diff --git a/service/s3control/api_op_CreateBucket.go b/service/s3control/api_op_CreateBucket.go index 819c85fa2ff..7497cffae00 100644 --- a/service/s3control/api_op_CreateBucket.go +++ b/service/s3control/api_op_CreateBucket.go @@ -13,32 +13,31 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// This API operation creates an Amazon S3 on Outposts bucket. To create an S3 -// bucket, see Create Bucket +// This action creates an Amazon S3 on Outposts bucket. To create an S3 bucket, see +// Create Bucket // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html) in the // Amazon Simple Storage Service API. Creates a new Outposts bucket. By creating // the bucket, you become the bucket owner. To create an Outposts bucket, you must // have S3 on Outposts. For more information, see Using Amazon S3 on Outposts -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in Amazon -// Simple Storage Service Developer Guide. Not every string is an acceptable bucket -// name. For information on bucket naming restrictions, see Working with Amazon S3 -// Buckets -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html#bucketnamingrules). -// S3 on Outposts buckets do not support +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in +// Amazon Simple Storage Service User Guide. Not every string is an acceptable +// bucket name. For information on bucket naming restrictions, see Working with +// Amazon S3 Buckets +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/BucketRestrictions.html#bucketnamingrules). +// S3 on Outposts buckets support: // -// * ACLs. Instead, configure access point -// policies to manage access to buckets. +// * Tags // -// * Public access. +// * LifecycleConfigurations for deleting +// expired objects // -// * Object Lock -// -// * Bucket -// Location constraint -// -// For an example of the request syntax for Amazon S3 on -// Outposts that uses the S3 on Outposts endpoint hostname prefix and -// x-amz-outpost-id in your API request, see the Examples +// For a complete list of restrictions and Amazon S3 feature +// limitations on S3 on Outposts, see Amazon S3 on Outposts Restrictions and +// Limitations +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3OnOutpostsRestrictionsLimitations.html). +// For an example of the request syntax for Amazon S3 on Outposts that uses the S3 +// on Outposts endpoint hostname prefix and x-amz-outpost-id in your API request, +// see the Examples // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateBucket.html#API_control_CreateBucket_Examples) // section. The following actions are related to CreateBucket for Amazon S3 on // Outposts: diff --git a/service/s3control/api_op_CreateJob.go b/service/s3control/api_op_CreateJob.go index 1ef455f2cc2..517f78c2f34 100644 --- a/service/s3control/api_op_CreateJob.go +++ b/service/s3control/api_op_CreateJob.go @@ -15,12 +15,12 @@ import ( "strings" ) -// S3 Batch Operations performs large-scale Batch Operations on Amazon S3 objects. -// Batch Operations can run a single operation or action on lists of Amazon S3 +// You can use S3 Batch Operations to perform large-scale batch actions on Amazon +// S3 objects. Batch Operations can run a single action on lists of Amazon S3 // objects that you specify. For more information, see S3 Batch Operations // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-basics.html) in the -// Amazon Simple Storage Service Developer Guide. This operation creates an S3 -// Batch Operations job. Related actions include: +// Amazon Simple Storage Service User Guide. This action creates a S3 Batch +// Operations job. Related actions include: // // * DescribeJob // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DescribeJob.html) @@ -36,6 +36,10 @@ import ( // * // UpdateJobStatus // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_UpdateJobStatus.html) +// +// * +// JobOperation +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_JobOperation.html) func (c *Client) CreateJob(ctx context.Context, params *CreateJobInput, optFns ...func(*Options)) (*CreateJobOutput, error) { if params == nil { params = &CreateJobInput{} @@ -69,10 +73,10 @@ type CreateJobInput struct { // This member is required. Manifest *types.JobManifest - // The operation that you want this job to perform on each object listed in the - // manifest. For more information about the available operations, see Operations - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-operations.html) in - // the Amazon Simple Storage Service Developer Guide. + // The action that you want this job to perform on every object listed in the + // manifest. For more information about the available actions, see Operations + // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-actions.html) in the + // Amazon Simple Storage Service User Guide. // // This member is required. Operation *types.JobOperation @@ -88,8 +92,8 @@ type CreateJobInput struct { Report *types.JobReport // The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) - // role that Batch Operations will use to run this job's operation on each object - // in the manifest. + // role that Batch Operations will use to run this job's action on every object in + // the manifest. // // This member is required. RoleArn *string diff --git a/service/s3control/api_op_DeleteAccessPointForObjectLambda.go b/service/s3control/api_op_DeleteAccessPointForObjectLambda.go new file mode 100644 index 00000000000..8880211e80a --- /dev/null +++ b/service/s3control/api_op_DeleteAccessPointForObjectLambda.go @@ -0,0 +1,218 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package s3control + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + s3controlcust "github.com/aws/aws-sdk-go-v2/service/s3control/internal/customizations" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "strings" +) + +// Deletes the specified Object Lambda Access Point. The following actions are +// related to DeleteAccessPointForObjectLambda: +// +// * CreateAccessPointForObjectLambda +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateAccessPointForObjectLambda.html) +// +// * +// GetAccessPointForObjectLambda +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPointForObjectLambda.html) +// +// * +// ListAccessPointsForObjectLambda +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListAccessPointsForObjectLambda.html) +func (c *Client) DeleteAccessPointForObjectLambda(ctx context.Context, params *DeleteAccessPointForObjectLambdaInput, optFns ...func(*Options)) (*DeleteAccessPointForObjectLambdaOutput, error) { + if params == nil { + params = &DeleteAccessPointForObjectLambdaInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteAccessPointForObjectLambda", params, optFns, addOperationDeleteAccessPointForObjectLambdaMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteAccessPointForObjectLambdaOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteAccessPointForObjectLambdaInput struct { + + // The account ID for the account that owns the specified Object Lambda Access + // Point. + // + // This member is required. + AccountId *string + + // The name of the access point you want to delete. + // + // This member is required. + Name *string +} + +type DeleteAccessPointForObjectLambdaOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func addOperationDeleteAccessPointForObjectLambdaMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestxml_serializeOpDeleteAccessPointForObjectLambda{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpDeleteAccessPointForObjectLambda{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opDeleteAccessPointForObjectLambdaMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteAccessPointForObjectLambdaValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteAccessPointForObjectLambda(options.Region), middleware.Before); err != nil { + return err + } + if err = addMetadataRetrieverMiddleware(stack); err != nil { + return err + } + if err = addDeleteAccessPointForObjectLambdaUpdateEndpoint(stack, options); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = v4.AddContentSHA256HeaderMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +type endpointPrefix_opDeleteAccessPointForObjectLambdaMiddleware struct { +} + +func (*endpointPrefix_opDeleteAccessPointForObjectLambdaMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opDeleteAccessPointForObjectLambdaMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + input, ok := in.Parameters.(*DeleteAccessPointForObjectLambdaInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input type %T", in.Parameters) + } + + var prefix strings.Builder + if input.AccountId == nil { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("AccountId forms part of the endpoint host and so may not be nil")} + } else if !smithyhttp.ValidHostLabel(*input.AccountId) { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("AccountId forms part of the endpoint host and so must match \"[a-zA-Z0-9-]{1,63}\", but was \"%s\"", *input.AccountId)} + } else { + prefix.WriteString(*input.AccountId) + } + prefix.WriteString(".") + req.URL.Host = prefix.String() + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opDeleteAccessPointForObjectLambdaMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opDeleteAccessPointForObjectLambdaMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opDeleteAccessPointForObjectLambda(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "s3", + OperationName: "DeleteAccessPointForObjectLambda", + } +} + +func copyDeleteAccessPointForObjectLambdaInputForUpdateEndpoint(params interface{}) (interface{}, error) { + input, ok := params.(*DeleteAccessPointForObjectLambdaInput) + if !ok { + return nil, fmt.Errorf("expect *DeleteAccessPointForObjectLambdaInput type, got %T", params) + } + cpy := *input + return &cpy, nil +} +func backFillDeleteAccessPointForObjectLambdaAccountID(input interface{}, v string) error { + in := input.(*DeleteAccessPointForObjectLambdaInput) + if in.AccountId != nil { + if !strings.EqualFold(*in.AccountId, v) { + return fmt.Errorf("error backfilling account id") + } + return nil + } + in.AccountId = &v + return nil +} +func addDeleteAccessPointForObjectLambdaUpdateEndpoint(stack *middleware.Stack, options Options) error { + return s3controlcust.UpdateEndpoint(stack, s3controlcust.UpdateEndpointOptions{ + Accessor: s3controlcust.UpdateEndpointParameterAccessor{GetARNInput: nopGetARNAccessor, + BackfillAccountID: nopBackfillAccountIDAccessor, + GetOutpostIDInput: nopGetOutpostIDFromInput, + UpdateARNField: nopSetARNAccessor, + CopyInput: copyDeleteAccessPointForObjectLambdaInputForUpdateEndpoint, + }, + EndpointResolver: options.EndpointResolver, + EndpointResolverOptions: options.EndpointOptions, + UseDualstack: options.UseDualstack, + UseARNRegion: options.UseARNRegion, + }) +} diff --git a/service/s3control/api_op_DeleteAccessPointPolicyForObjectLambda.go b/service/s3control/api_op_DeleteAccessPointPolicyForObjectLambda.go new file mode 100644 index 00000000000..191942d1e29 --- /dev/null +++ b/service/s3control/api_op_DeleteAccessPointPolicyForObjectLambda.go @@ -0,0 +1,215 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package s3control + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + s3controlcust "github.com/aws/aws-sdk-go-v2/service/s3control/internal/customizations" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "strings" +) + +// Removes the resource policy for an Object Lambda Access Point. The following +// actions are related to DeleteAccessPointPolicyForObjectLambda: +// +// * +// GetAccessPointPolicyForObjectLambda +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPointPolicyForObjectLambda.html) +// +// * +// PutAccessPointPolicyForObjectLambda +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutAccessPointPolicyForObjectLambda.html) +func (c *Client) DeleteAccessPointPolicyForObjectLambda(ctx context.Context, params *DeleteAccessPointPolicyForObjectLambdaInput, optFns ...func(*Options)) (*DeleteAccessPointPolicyForObjectLambdaOutput, error) { + if params == nil { + params = &DeleteAccessPointPolicyForObjectLambdaInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteAccessPointPolicyForObjectLambda", params, optFns, addOperationDeleteAccessPointPolicyForObjectLambdaMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteAccessPointPolicyForObjectLambdaOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteAccessPointPolicyForObjectLambdaInput struct { + + // The account ID for the account that owns the specified Object Lambda Access + // Point. + // + // This member is required. + AccountId *string + + // The name of the Object Lambda Access Point you want to delete the policy for. + // + // This member is required. + Name *string +} + +type DeleteAccessPointPolicyForObjectLambdaOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func addOperationDeleteAccessPointPolicyForObjectLambdaMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestxml_serializeOpDeleteAccessPointPolicyForObjectLambda{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpDeleteAccessPointPolicyForObjectLambda{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opDeleteAccessPointPolicyForObjectLambdaMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteAccessPointPolicyForObjectLambdaValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteAccessPointPolicyForObjectLambda(options.Region), middleware.Before); err != nil { + return err + } + if err = addMetadataRetrieverMiddleware(stack); err != nil { + return err + } + if err = addDeleteAccessPointPolicyForObjectLambdaUpdateEndpoint(stack, options); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = v4.AddContentSHA256HeaderMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +type endpointPrefix_opDeleteAccessPointPolicyForObjectLambdaMiddleware struct { +} + +func (*endpointPrefix_opDeleteAccessPointPolicyForObjectLambdaMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opDeleteAccessPointPolicyForObjectLambdaMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + input, ok := in.Parameters.(*DeleteAccessPointPolicyForObjectLambdaInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input type %T", in.Parameters) + } + + var prefix strings.Builder + if input.AccountId == nil { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("AccountId forms part of the endpoint host and so may not be nil")} + } else if !smithyhttp.ValidHostLabel(*input.AccountId) { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("AccountId forms part of the endpoint host and so must match \"[a-zA-Z0-9-]{1,63}\", but was \"%s\"", *input.AccountId)} + } else { + prefix.WriteString(*input.AccountId) + } + prefix.WriteString(".") + req.URL.Host = prefix.String() + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opDeleteAccessPointPolicyForObjectLambdaMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opDeleteAccessPointPolicyForObjectLambdaMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opDeleteAccessPointPolicyForObjectLambda(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "s3", + OperationName: "DeleteAccessPointPolicyForObjectLambda", + } +} + +func copyDeleteAccessPointPolicyForObjectLambdaInputForUpdateEndpoint(params interface{}) (interface{}, error) { + input, ok := params.(*DeleteAccessPointPolicyForObjectLambdaInput) + if !ok { + return nil, fmt.Errorf("expect *DeleteAccessPointPolicyForObjectLambdaInput type, got %T", params) + } + cpy := *input + return &cpy, nil +} +func backFillDeleteAccessPointPolicyForObjectLambdaAccountID(input interface{}, v string) error { + in := input.(*DeleteAccessPointPolicyForObjectLambdaInput) + if in.AccountId != nil { + if !strings.EqualFold(*in.AccountId, v) { + return fmt.Errorf("error backfilling account id") + } + return nil + } + in.AccountId = &v + return nil +} +func addDeleteAccessPointPolicyForObjectLambdaUpdateEndpoint(stack *middleware.Stack, options Options) error { + return s3controlcust.UpdateEndpoint(stack, s3controlcust.UpdateEndpointOptions{ + Accessor: s3controlcust.UpdateEndpointParameterAccessor{GetARNInput: nopGetARNAccessor, + BackfillAccountID: nopBackfillAccountIDAccessor, + GetOutpostIDInput: nopGetOutpostIDFromInput, + UpdateARNField: nopSetARNAccessor, + CopyInput: copyDeleteAccessPointPolicyForObjectLambdaInputForUpdateEndpoint, + }, + EndpointResolver: options.EndpointResolver, + EndpointResolverOptions: options.EndpointOptions, + UseDualstack: options.UseDualstack, + UseARNRegion: options.UseARNRegion, + }) +} diff --git a/service/s3control/api_op_DeleteBucket.go b/service/s3control/api_op_DeleteBucket.go index 0dd2ee86ebf..333d1a09892 100644 --- a/service/s3control/api_op_DeleteBucket.go +++ b/service/s3control/api_op_DeleteBucket.go @@ -14,15 +14,15 @@ import ( "strings" ) -// This API operation deletes an Amazon S3 on Outposts bucket. To delete an S3 -// bucket, see DeleteBucket +// This action deletes an Amazon S3 on Outposts bucket. To delete an S3 bucket, see +// DeleteBucket // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucket.html) in the // Amazon Simple Storage Service API. Deletes the Amazon S3 on Outposts bucket. All // objects (including all object versions and delete markers) in the bucket must be // deleted before the bucket itself can be deleted. For more information, see Using // Amazon S3 on Outposts -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in Amazon -// Simple Storage Service Developer Guide. All Amazon S3 on Outposts REST API +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in +// Amazon Simple Storage Service User Guide. All Amazon S3 on Outposts REST API // requests for this action require an additional parameter of x-amz-outpost-id to // be passed with the request and an S3 on Outposts endpoint hostname prefix // instead of s3-control. For an example of the request syntax for Amazon S3 on diff --git a/service/s3control/api_op_DeleteBucketLifecycleConfiguration.go b/service/s3control/api_op_DeleteBucketLifecycleConfiguration.go index d0489f2d5cc..ead8d253148 100644 --- a/service/s3control/api_op_DeleteBucketLifecycleConfiguration.go +++ b/service/s3control/api_op_DeleteBucketLifecycleConfiguration.go @@ -14,9 +14,8 @@ import ( "strings" ) -// This API action deletes an Amazon S3 on Outposts bucket's lifecycle -// configuration. To delete an S3 bucket's lifecycle configuration, see -// DeleteBucketLifecycle +// This action deletes an Amazon S3 on Outposts bucket's lifecycle configuration. +// To delete an S3 bucket's lifecycle configuration, see DeleteBucketLifecycle // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketLifecycle.html) // in the Amazon Simple Storage Service API. Deletes the lifecycle configuration // from the specified Outposts bucket. Amazon S3 on Outposts removes all the @@ -24,8 +23,8 @@ import ( // bucket. Your objects never expire, and Amazon S3 on Outposts no longer // automatically deletes any objects on the basis of rules contained in the deleted // lifecycle configuration. For more information, see Using Amazon S3 on Outposts -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in Amazon -// Simple Storage Service Developer Guide. To use this operation, you must have +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in +// Amazon Simple Storage Service User Guide. To use this action, you must have // permission to perform the s3-outposts:DeleteLifecycleConfiguration action. By // default, the bucket owner has this permission and the Outposts bucket owner can // grant this permission to others. All Amazon S3 on Outposts REST API requests for @@ -35,7 +34,7 @@ import ( // uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id // derived using the access point ARN, see the Examples // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteBucketLifecycleConfiguration.html#API_control_DeleteBucketLifecycleConfiguration_Examples) -// section. For more information about object expiration, see Elements to Describe +// section. For more information about object expiration, see Elements to Describe // Lifecycle Actions // (https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#intro-lifecycle-rules-actions). // Related actions include: diff --git a/service/s3control/api_op_DeleteBucketPolicy.go b/service/s3control/api_op_DeleteBucketPolicy.go index 721d95eb866..2b4ae242b03 100644 --- a/service/s3control/api_op_DeleteBucketPolicy.go +++ b/service/s3control/api_op_DeleteBucketPolicy.go @@ -14,24 +14,24 @@ import ( "strings" ) -// This API operation deletes an Amazon S3 on Outposts bucket policy. To delete an -// S3 bucket policy, see DeleteBucketPolicy +// This action deletes an Amazon S3 on Outposts bucket policy. To delete an S3 +// bucket policy, see DeleteBucketPolicy // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketPolicy.html) in -// the Amazon Simple Storage Service API. This implementation of the DELETE -// operation uses the policy subresource to delete the policy of a specified Amazon -// S3 on Outposts bucket. If you are using an identity other than the root user of -// the AWS account that owns the bucket, the calling identity must have the +// the Amazon Simple Storage Service API. This implementation of the DELETE action +// uses the policy subresource to delete the policy of a specified Amazon S3 on +// Outposts bucket. If you are using an identity other than the root user of the +// AWS account that owns the bucket, the calling identity must have the // s3-outposts:DeleteBucketPolicy permissions on the specified Outposts bucket and -// belong to the bucket owner's account to use this operation. For more -// information, see Using Amazon S3 on Outposts -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in Amazon -// Simple Storage Service Developer Guide. If you don't have DeleteBucketPolicy +// belong to the bucket owner's account to use this action. For more information, +// see Using Amazon S3 on Outposts +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in +// Amazon Simple Storage Service User Guide. If you don't have DeleteBucketPolicy // permissions, Amazon S3 returns a 403 Access Denied error. If you have the // correct permissions, but you're not using an identity that belongs to the bucket // owner's account, Amazon S3 returns a 405 Method Not Allowed error. As a security // precaution, the root user of the AWS account that owns a bucket can always use -// this operation, even if the policy explicitly denies the root user the ability -// to perform this action. For more information about bucket policies, see Using +// this action, even if the policy explicitly denies the root user the ability to +// perform this action. For more information about bucket policies, see Using // Bucket Policies and User Policies // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html). All // Amazon S3 on Outposts REST API requests for this action require an additional diff --git a/service/s3control/api_op_DeleteBucketTagging.go b/service/s3control/api_op_DeleteBucketTagging.go index 3fde9459b48..f93c4ffcdae 100644 --- a/service/s3control/api_op_DeleteBucketTagging.go +++ b/service/s3control/api_op_DeleteBucketTagging.go @@ -14,13 +14,13 @@ import ( "strings" ) -// This operation deletes an Amazon S3 on Outposts bucket's tags. To delete an S3 +// This action deletes an Amazon S3 on Outposts bucket's tags. To delete an S3 // bucket tags, see DeleteBucketTagging // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketTagging.html) // in the Amazon Simple Storage Service API. Deletes the tags from the Outposts // bucket. For more information, see Using Amazon S3 on Outposts -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in Amazon -// Simple Storage Service Developer Guide. To use this operation, you must have +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in +// Amazon Simple Storage Service User Guide. To use this action, you must have // permission to perform the PutBucketTagging action. By default, the bucket owner // has this permission and can grant this permission to others. All Amazon S3 on // Outposts REST API requests for this action require an additional parameter of diff --git a/service/s3control/api_op_DeleteJobTagging.go b/service/s3control/api_op_DeleteJobTagging.go index c6c6a80bd41..49c1ae67457 100644 --- a/service/s3control/api_op_DeleteJobTagging.go +++ b/service/s3control/api_op_DeleteJobTagging.go @@ -19,10 +19,10 @@ import ( // action. For more information, see Controlling access and labeling jobs using // tags // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-managing-jobs.html#batch-ops-job-tags) -// in the Amazon Simple Storage Service Developer Guide. Related actions -// include: +// in the Amazon Simple Storage Service User Guide. Related actions include: // -// * CreateJob +// * +// CreateJob // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateJob.html) // // * diff --git a/service/s3control/api_op_DeleteStorageLensConfiguration.go b/service/s3control/api_op_DeleteStorageLensConfiguration.go index c66c8ceed19..d047990ca82 100644 --- a/service/s3control/api_op_DeleteStorageLensConfiguration.go +++ b/service/s3control/api_op_DeleteStorageLensConfiguration.go @@ -15,13 +15,14 @@ import ( ) // Deletes the Amazon S3 Storage Lens configuration. For more information about S3 -// Storage Lens, see Working with Amazon S3 Storage Lens -// (https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html) -// in the Amazon Simple Storage Service Developer Guide. To use this action, you -// must have permission to perform the s3:DeleteStorageLensConfiguration action. -// For more information, see Setting permissions to use Amazon S3 Storage Lens -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html#storage_lens_IAM) -// in the Amazon Simple Storage Service Developer Guide. +// Storage Lens, see Assessing your storage activity and usage with Amazon S3 +// Storage Lens +// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html) in the +// Amazon Simple Storage Service User Guide. To use this action, you must have +// permission to perform the s3:DeleteStorageLensConfiguration action. For more +// information, see Setting permissions to use Amazon S3 Storage Lens +// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens_iam_permissions.html) +// in the Amazon Simple Storage Service User Guide. func (c *Client) DeleteStorageLensConfiguration(ctx context.Context, params *DeleteStorageLensConfigurationInput, optFns ...func(*Options)) (*DeleteStorageLensConfigurationOutput, error) { if params == nil { params = &DeleteStorageLensConfigurationInput{} diff --git a/service/s3control/api_op_DeleteStorageLensConfigurationTagging.go b/service/s3control/api_op_DeleteStorageLensConfigurationTagging.go index 6c9d27325c6..f8592057139 100644 --- a/service/s3control/api_op_DeleteStorageLensConfigurationTagging.go +++ b/service/s3control/api_op_DeleteStorageLensConfigurationTagging.go @@ -15,14 +15,14 @@ import ( ) // Deletes the Amazon S3 Storage Lens configuration tags. For more information -// about S3 Storage Lens, see Working with Amazon S3 Storage Lens -// (https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html) -// in the Amazon Simple Storage Service Developer Guide. To use this action, you -// must have permission to perform the s3:DeleteStorageLensConfigurationTagging -// action. For more information, see Setting permissions to use Amazon S3 Storage -// Lens -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html#storage_lens_IAM) -// in the Amazon Simple Storage Service Developer Guide. +// about S3 Storage Lens, see Assessing your storage activity and usage with Amazon +// S3 Storage Lens +// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html) in the +// Amazon Simple Storage Service User Guide. To use this action, you must have +// permission to perform the s3:DeleteStorageLensConfigurationTagging action. For +// more information, see Setting permissions to use Amazon S3 Storage Lens +// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens_iam_permissions.html) +// in the Amazon Simple Storage Service User Guide. func (c *Client) DeleteStorageLensConfigurationTagging(ctx context.Context, params *DeleteStorageLensConfigurationTaggingInput, optFns ...func(*Options)) (*DeleteStorageLensConfigurationTaggingOutput, error) { if params == nil { params = &DeleteStorageLensConfigurationTaggingInput{} diff --git a/service/s3control/api_op_DescribeJob.go b/service/s3control/api_op_DescribeJob.go index eb720f9f3e9..56ca24657ab 100644 --- a/service/s3control/api_op_DescribeJob.go +++ b/service/s3control/api_op_DescribeJob.go @@ -18,10 +18,9 @@ import ( // Retrieves the configuration parameters and status for a Batch Operations job. // For more information, see S3 Batch Operations // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-basics.html) in the -// Amazon Simple Storage Service Developer Guide. Related actions include: +// Amazon Simple Storage Service User Guide. Related actions include: // -// * -// CreateJob +// * CreateJob // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateJob.html) // // * @@ -52,7 +51,7 @@ func (c *Client) DescribeJob(ctx context.Context, params *DescribeJobInput, optF type DescribeJobInput struct { - // + // The AWS account ID associated with the S3 Batch Operations job. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_GetAccessPointConfigurationForObjectLambda.go b/service/s3control/api_op_GetAccessPointConfigurationForObjectLambda.go new file mode 100644 index 00000000000..4905530e3b9 --- /dev/null +++ b/service/s3control/api_op_GetAccessPointConfigurationForObjectLambda.go @@ -0,0 +1,217 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package s3control + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + s3controlcust "github.com/aws/aws-sdk-go-v2/service/s3control/internal/customizations" + "github.com/aws/aws-sdk-go-v2/service/s3control/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "strings" +) + +// Returns configuration for an Object Lambda Access Point. The following actions +// are related to GetAccessPointConfigurationForObjectLambda: +// +// * +// PutAccessPointConfigurationForObjectLambda +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutAccessPointConfigurationForObjectLambda.html) +func (c *Client) GetAccessPointConfigurationForObjectLambda(ctx context.Context, params *GetAccessPointConfigurationForObjectLambdaInput, optFns ...func(*Options)) (*GetAccessPointConfigurationForObjectLambdaOutput, error) { + if params == nil { + params = &GetAccessPointConfigurationForObjectLambdaInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetAccessPointConfigurationForObjectLambda", params, optFns, addOperationGetAccessPointConfigurationForObjectLambdaMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetAccessPointConfigurationForObjectLambdaOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetAccessPointConfigurationForObjectLambdaInput struct { + + // The account ID for the account that owns the specified Object Lambda Access + // Point. + // + // This member is required. + AccountId *string + + // The name of the Object Lambda Access Point you want to return the configuration + // for. + // + // This member is required. + Name *string +} + +type GetAccessPointConfigurationForObjectLambdaOutput struct { + + // Object Lambda Access Point configuration document. + Configuration *types.ObjectLambdaConfiguration + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func addOperationGetAccessPointConfigurationForObjectLambdaMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestxml_serializeOpGetAccessPointConfigurationForObjectLambda{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpGetAccessPointConfigurationForObjectLambda{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opGetAccessPointConfigurationForObjectLambdaMiddleware(stack); err != nil { + return err + } + if err = addOpGetAccessPointConfigurationForObjectLambdaValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetAccessPointConfigurationForObjectLambda(options.Region), middleware.Before); err != nil { + return err + } + if err = addMetadataRetrieverMiddleware(stack); err != nil { + return err + } + if err = addGetAccessPointConfigurationForObjectLambdaUpdateEndpoint(stack, options); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = v4.AddContentSHA256HeaderMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +type endpointPrefix_opGetAccessPointConfigurationForObjectLambdaMiddleware struct { +} + +func (*endpointPrefix_opGetAccessPointConfigurationForObjectLambdaMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opGetAccessPointConfigurationForObjectLambdaMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + input, ok := in.Parameters.(*GetAccessPointConfigurationForObjectLambdaInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input type %T", in.Parameters) + } + + var prefix strings.Builder + if input.AccountId == nil { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("AccountId forms part of the endpoint host and so may not be nil")} + } else if !smithyhttp.ValidHostLabel(*input.AccountId) { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("AccountId forms part of the endpoint host and so must match \"[a-zA-Z0-9-]{1,63}\", but was \"%s\"", *input.AccountId)} + } else { + prefix.WriteString(*input.AccountId) + } + prefix.WriteString(".") + req.URL.Host = prefix.String() + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opGetAccessPointConfigurationForObjectLambdaMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opGetAccessPointConfigurationForObjectLambdaMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opGetAccessPointConfigurationForObjectLambda(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "s3", + OperationName: "GetAccessPointConfigurationForObjectLambda", + } +} + +func copyGetAccessPointConfigurationForObjectLambdaInputForUpdateEndpoint(params interface{}) (interface{}, error) { + input, ok := params.(*GetAccessPointConfigurationForObjectLambdaInput) + if !ok { + return nil, fmt.Errorf("expect *GetAccessPointConfigurationForObjectLambdaInput type, got %T", params) + } + cpy := *input + return &cpy, nil +} +func backFillGetAccessPointConfigurationForObjectLambdaAccountID(input interface{}, v string) error { + in := input.(*GetAccessPointConfigurationForObjectLambdaInput) + if in.AccountId != nil { + if !strings.EqualFold(*in.AccountId, v) { + return fmt.Errorf("error backfilling account id") + } + return nil + } + in.AccountId = &v + return nil +} +func addGetAccessPointConfigurationForObjectLambdaUpdateEndpoint(stack *middleware.Stack, options Options) error { + return s3controlcust.UpdateEndpoint(stack, s3controlcust.UpdateEndpointOptions{ + Accessor: s3controlcust.UpdateEndpointParameterAccessor{GetARNInput: nopGetARNAccessor, + BackfillAccountID: nopBackfillAccountIDAccessor, + GetOutpostIDInput: nopGetOutpostIDFromInput, + UpdateARNField: nopSetARNAccessor, + CopyInput: copyGetAccessPointConfigurationForObjectLambdaInputForUpdateEndpoint, + }, + EndpointResolver: options.EndpointResolver, + EndpointResolverOptions: options.EndpointOptions, + UseDualstack: options.UseDualstack, + UseARNRegion: options.UseARNRegion, + }) +} diff --git a/service/s3control/api_op_GetAccessPointForObjectLambda.go b/service/s3control/api_op_GetAccessPointForObjectLambda.go new file mode 100644 index 00000000000..2fcece929ed --- /dev/null +++ b/service/s3control/api_op_GetAccessPointForObjectLambda.go @@ -0,0 +1,232 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package s3control + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + s3controlcust "github.com/aws/aws-sdk-go-v2/service/s3control/internal/customizations" + "github.com/aws/aws-sdk-go-v2/service/s3control/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "strings" + "time" +) + +// Returns configuration information about the specified Object Lambda Access Point +// The following actions are related to GetAccessPointForObjectLambda: +// +// * +// CreateAccessPointForObjectLambda +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateAccessPointForObjectLambda.html) +// +// * +// DeleteAccessPointForObjectLambda +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPointForObjectLambda.html) +// +// * +// ListAccessPointsForObjectLambda +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListAccessPointsForObjectLambda.html) +func (c *Client) GetAccessPointForObjectLambda(ctx context.Context, params *GetAccessPointForObjectLambdaInput, optFns ...func(*Options)) (*GetAccessPointForObjectLambdaOutput, error) { + if params == nil { + params = &GetAccessPointForObjectLambdaInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetAccessPointForObjectLambda", params, optFns, addOperationGetAccessPointForObjectLambdaMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetAccessPointForObjectLambdaOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetAccessPointForObjectLambdaInput struct { + + // The account ID for the account that owns the specified Object Lambda Access + // Point. + // + // This member is required. + AccountId *string + + // The name of the Object Lambda Access Point. + // + // This member is required. + Name *string +} + +type GetAccessPointForObjectLambdaOutput struct { + + // The date and time when the specified Object Lambda Access Point was created. + CreationDate *time.Time + + // The name of the Object Lambda Access Point. + Name *string + + // Configuration to block all public access. This setting is turned on and can not + // be edited. + PublicAccessBlockConfiguration *types.PublicAccessBlockConfiguration + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func addOperationGetAccessPointForObjectLambdaMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestxml_serializeOpGetAccessPointForObjectLambda{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpGetAccessPointForObjectLambda{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opGetAccessPointForObjectLambdaMiddleware(stack); err != nil { + return err + } + if err = addOpGetAccessPointForObjectLambdaValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetAccessPointForObjectLambda(options.Region), middleware.Before); err != nil { + return err + } + if err = addMetadataRetrieverMiddleware(stack); err != nil { + return err + } + if err = addGetAccessPointForObjectLambdaUpdateEndpoint(stack, options); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = v4.AddContentSHA256HeaderMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +type endpointPrefix_opGetAccessPointForObjectLambdaMiddleware struct { +} + +func (*endpointPrefix_opGetAccessPointForObjectLambdaMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opGetAccessPointForObjectLambdaMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + input, ok := in.Parameters.(*GetAccessPointForObjectLambdaInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input type %T", in.Parameters) + } + + var prefix strings.Builder + if input.AccountId == nil { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("AccountId forms part of the endpoint host and so may not be nil")} + } else if !smithyhttp.ValidHostLabel(*input.AccountId) { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("AccountId forms part of the endpoint host and so must match \"[a-zA-Z0-9-]{1,63}\", but was \"%s\"", *input.AccountId)} + } else { + prefix.WriteString(*input.AccountId) + } + prefix.WriteString(".") + req.URL.Host = prefix.String() + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opGetAccessPointForObjectLambdaMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opGetAccessPointForObjectLambdaMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opGetAccessPointForObjectLambda(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "s3", + OperationName: "GetAccessPointForObjectLambda", + } +} + +func copyGetAccessPointForObjectLambdaInputForUpdateEndpoint(params interface{}) (interface{}, error) { + input, ok := params.(*GetAccessPointForObjectLambdaInput) + if !ok { + return nil, fmt.Errorf("expect *GetAccessPointForObjectLambdaInput type, got %T", params) + } + cpy := *input + return &cpy, nil +} +func backFillGetAccessPointForObjectLambdaAccountID(input interface{}, v string) error { + in := input.(*GetAccessPointForObjectLambdaInput) + if in.AccountId != nil { + if !strings.EqualFold(*in.AccountId, v) { + return fmt.Errorf("error backfilling account id") + } + return nil + } + in.AccountId = &v + return nil +} +func addGetAccessPointForObjectLambdaUpdateEndpoint(stack *middleware.Stack, options Options) error { + return s3controlcust.UpdateEndpoint(stack, s3controlcust.UpdateEndpointOptions{ + Accessor: s3controlcust.UpdateEndpointParameterAccessor{GetARNInput: nopGetARNAccessor, + BackfillAccountID: nopBackfillAccountIDAccessor, + GetOutpostIDInput: nopGetOutpostIDFromInput, + UpdateARNField: nopSetARNAccessor, + CopyInput: copyGetAccessPointForObjectLambdaInputForUpdateEndpoint, + }, + EndpointResolver: options.EndpointResolver, + EndpointResolverOptions: options.EndpointOptions, + UseDualstack: options.UseDualstack, + UseARNRegion: options.UseARNRegion, + }) +} diff --git a/service/s3control/api_op_GetAccessPointPolicyForObjectLambda.go b/service/s3control/api_op_GetAccessPointPolicyForObjectLambda.go new file mode 100644 index 00000000000..838663a090e --- /dev/null +++ b/service/s3control/api_op_GetAccessPointPolicyForObjectLambda.go @@ -0,0 +1,219 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package s3control + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + s3controlcust "github.com/aws/aws-sdk-go-v2/service/s3control/internal/customizations" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "strings" +) + +// Returns the resource policy for an Object Lambda Access Point. The following +// actions are related to GetAccessPointPolicyForObjectLambda: +// +// * +// DeleteAccessPointPolicyForObjectLambda +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPointPolicyForObjectLambda.html) +// +// * +// PutAccessPointPolicyForObjectLambda +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutAccessPointPolicyForObjectLambda.html) +func (c *Client) GetAccessPointPolicyForObjectLambda(ctx context.Context, params *GetAccessPointPolicyForObjectLambdaInput, optFns ...func(*Options)) (*GetAccessPointPolicyForObjectLambdaOutput, error) { + if params == nil { + params = &GetAccessPointPolicyForObjectLambdaInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetAccessPointPolicyForObjectLambda", params, optFns, addOperationGetAccessPointPolicyForObjectLambdaMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetAccessPointPolicyForObjectLambdaOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetAccessPointPolicyForObjectLambdaInput struct { + + // The account ID for the account that owns the specified Object Lambda Access + // Point. + // + // This member is required. + AccountId *string + + // The name of the Object Lambda Access Point. + // + // This member is required. + Name *string +} + +type GetAccessPointPolicyForObjectLambdaOutput struct { + + // Object Lambda Access Point resource policy document. + Policy *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func addOperationGetAccessPointPolicyForObjectLambdaMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestxml_serializeOpGetAccessPointPolicyForObjectLambda{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpGetAccessPointPolicyForObjectLambda{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opGetAccessPointPolicyForObjectLambdaMiddleware(stack); err != nil { + return err + } + if err = addOpGetAccessPointPolicyForObjectLambdaValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetAccessPointPolicyForObjectLambda(options.Region), middleware.Before); err != nil { + return err + } + if err = addMetadataRetrieverMiddleware(stack); err != nil { + return err + } + if err = addGetAccessPointPolicyForObjectLambdaUpdateEndpoint(stack, options); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = v4.AddContentSHA256HeaderMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +type endpointPrefix_opGetAccessPointPolicyForObjectLambdaMiddleware struct { +} + +func (*endpointPrefix_opGetAccessPointPolicyForObjectLambdaMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opGetAccessPointPolicyForObjectLambdaMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + input, ok := in.Parameters.(*GetAccessPointPolicyForObjectLambdaInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input type %T", in.Parameters) + } + + var prefix strings.Builder + if input.AccountId == nil { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("AccountId forms part of the endpoint host and so may not be nil")} + } else if !smithyhttp.ValidHostLabel(*input.AccountId) { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("AccountId forms part of the endpoint host and so must match \"[a-zA-Z0-9-]{1,63}\", but was \"%s\"", *input.AccountId)} + } else { + prefix.WriteString(*input.AccountId) + } + prefix.WriteString(".") + req.URL.Host = prefix.String() + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opGetAccessPointPolicyForObjectLambdaMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opGetAccessPointPolicyForObjectLambdaMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opGetAccessPointPolicyForObjectLambda(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "s3", + OperationName: "GetAccessPointPolicyForObjectLambda", + } +} + +func copyGetAccessPointPolicyForObjectLambdaInputForUpdateEndpoint(params interface{}) (interface{}, error) { + input, ok := params.(*GetAccessPointPolicyForObjectLambdaInput) + if !ok { + return nil, fmt.Errorf("expect *GetAccessPointPolicyForObjectLambdaInput type, got %T", params) + } + cpy := *input + return &cpy, nil +} +func backFillGetAccessPointPolicyForObjectLambdaAccountID(input interface{}, v string) error { + in := input.(*GetAccessPointPolicyForObjectLambdaInput) + if in.AccountId != nil { + if !strings.EqualFold(*in.AccountId, v) { + return fmt.Errorf("error backfilling account id") + } + return nil + } + in.AccountId = &v + return nil +} +func addGetAccessPointPolicyForObjectLambdaUpdateEndpoint(stack *middleware.Stack, options Options) error { + return s3controlcust.UpdateEndpoint(stack, s3controlcust.UpdateEndpointOptions{ + Accessor: s3controlcust.UpdateEndpointParameterAccessor{GetARNInput: nopGetARNAccessor, + BackfillAccountID: nopBackfillAccountIDAccessor, + GetOutpostIDInput: nopGetOutpostIDFromInput, + UpdateARNField: nopSetARNAccessor, + CopyInput: copyGetAccessPointPolicyForObjectLambdaInputForUpdateEndpoint, + }, + EndpointResolver: options.EndpointResolver, + EndpointResolverOptions: options.EndpointOptions, + UseDualstack: options.UseDualstack, + UseARNRegion: options.UseARNRegion, + }) +} diff --git a/service/s3control/api_op_GetAccessPointPolicyStatus.go b/service/s3control/api_op_GetAccessPointPolicyStatus.go index 2c4e51fa799..1a759a855f3 100644 --- a/service/s3control/api_op_GetAccessPointPolicyStatus.go +++ b/service/s3control/api_op_GetAccessPointPolicyStatus.go @@ -18,8 +18,8 @@ import ( // Indicates whether the specified access point currently has a policy that allows // public access. For more information about public access through access points, // see Managing Data Access with Amazon S3 Access Points -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-points.html) in the -// Amazon Simple Storage Service Developer Guide. +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html) in +// the Amazon Simple Storage Service Developer Guide. func (c *Client) GetAccessPointPolicyStatus(ctx context.Context, params *GetAccessPointPolicyStatusInput, optFns ...func(*Options)) (*GetAccessPointPolicyStatusOutput, error) { if params == nil { params = &GetAccessPointPolicyStatusInput{} diff --git a/service/s3control/api_op_GetAccessPointPolicyStatusForObjectLambda.go b/service/s3control/api_op_GetAccessPointPolicyStatusForObjectLambda.go new file mode 100644 index 00000000000..7484dec4f2a --- /dev/null +++ b/service/s3control/api_op_GetAccessPointPolicyStatusForObjectLambda.go @@ -0,0 +1,216 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package s3control + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + s3controlcust "github.com/aws/aws-sdk-go-v2/service/s3control/internal/customizations" + "github.com/aws/aws-sdk-go-v2/service/s3control/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "strings" +) + +// Returns the status of the resource policy associated with an Object Lambda +// Access Point. +func (c *Client) GetAccessPointPolicyStatusForObjectLambda(ctx context.Context, params *GetAccessPointPolicyStatusForObjectLambdaInput, optFns ...func(*Options)) (*GetAccessPointPolicyStatusForObjectLambdaOutput, error) { + if params == nil { + params = &GetAccessPointPolicyStatusForObjectLambdaInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetAccessPointPolicyStatusForObjectLambda", params, optFns, addOperationGetAccessPointPolicyStatusForObjectLambdaMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetAccessPointPolicyStatusForObjectLambdaOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetAccessPointPolicyStatusForObjectLambdaInput struct { + + // The account ID for the account that owns the specified Object Lambda Access + // Point. + // + // This member is required. + AccountId *string + + // The name of the Object Lambda Access Point. + // + // This member is required. + Name *string +} + +type GetAccessPointPolicyStatusForObjectLambdaOutput struct { + + // Indicates whether this access point policy is public. For more information about + // how Amazon S3 evaluates policies to determine whether they are public, see The + // Meaning of "Public" + // (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status) + // in the Amazon Simple Storage Service User Guide. + PolicyStatus *types.PolicyStatus + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func addOperationGetAccessPointPolicyStatusForObjectLambdaMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestxml_serializeOpGetAccessPointPolicyStatusForObjectLambda{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpGetAccessPointPolicyStatusForObjectLambda{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opGetAccessPointPolicyStatusForObjectLambdaMiddleware(stack); err != nil { + return err + } + if err = addOpGetAccessPointPolicyStatusForObjectLambdaValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetAccessPointPolicyStatusForObjectLambda(options.Region), middleware.Before); err != nil { + return err + } + if err = addMetadataRetrieverMiddleware(stack); err != nil { + return err + } + if err = addGetAccessPointPolicyStatusForObjectLambdaUpdateEndpoint(stack, options); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = v4.AddContentSHA256HeaderMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +type endpointPrefix_opGetAccessPointPolicyStatusForObjectLambdaMiddleware struct { +} + +func (*endpointPrefix_opGetAccessPointPolicyStatusForObjectLambdaMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opGetAccessPointPolicyStatusForObjectLambdaMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + input, ok := in.Parameters.(*GetAccessPointPolicyStatusForObjectLambdaInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input type %T", in.Parameters) + } + + var prefix strings.Builder + if input.AccountId == nil { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("AccountId forms part of the endpoint host and so may not be nil")} + } else if !smithyhttp.ValidHostLabel(*input.AccountId) { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("AccountId forms part of the endpoint host and so must match \"[a-zA-Z0-9-]{1,63}\", but was \"%s\"", *input.AccountId)} + } else { + prefix.WriteString(*input.AccountId) + } + prefix.WriteString(".") + req.URL.Host = prefix.String() + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opGetAccessPointPolicyStatusForObjectLambdaMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opGetAccessPointPolicyStatusForObjectLambdaMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opGetAccessPointPolicyStatusForObjectLambda(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "s3", + OperationName: "GetAccessPointPolicyStatusForObjectLambda", + } +} + +func copyGetAccessPointPolicyStatusForObjectLambdaInputForUpdateEndpoint(params interface{}) (interface{}, error) { + input, ok := params.(*GetAccessPointPolicyStatusForObjectLambdaInput) + if !ok { + return nil, fmt.Errorf("expect *GetAccessPointPolicyStatusForObjectLambdaInput type, got %T", params) + } + cpy := *input + return &cpy, nil +} +func backFillGetAccessPointPolicyStatusForObjectLambdaAccountID(input interface{}, v string) error { + in := input.(*GetAccessPointPolicyStatusForObjectLambdaInput) + if in.AccountId != nil { + if !strings.EqualFold(*in.AccountId, v) { + return fmt.Errorf("error backfilling account id") + } + return nil + } + in.AccountId = &v + return nil +} +func addGetAccessPointPolicyStatusForObjectLambdaUpdateEndpoint(stack *middleware.Stack, options Options) error { + return s3controlcust.UpdateEndpoint(stack, s3controlcust.UpdateEndpointOptions{ + Accessor: s3controlcust.UpdateEndpointParameterAccessor{GetARNInput: nopGetARNAccessor, + BackfillAccountID: nopBackfillAccountIDAccessor, + GetOutpostIDInput: nopGetOutpostIDFromInput, + UpdateARNField: nopSetARNAccessor, + CopyInput: copyGetAccessPointPolicyStatusForObjectLambdaInputForUpdateEndpoint, + }, + EndpointResolver: options.EndpointResolver, + EndpointResolverOptions: options.EndpointOptions, + UseDualstack: options.UseDualstack, + UseARNRegion: options.UseARNRegion, + }) +} diff --git a/service/s3control/api_op_GetBucket.go b/service/s3control/api_op_GetBucket.go index 9bf101f8ada..7ace1758064 100644 --- a/service/s3control/api_op_GetBucket.go +++ b/service/s3control/api_op_GetBucket.go @@ -16,12 +16,13 @@ import ( ) // Gets an Amazon S3 on Outposts bucket. For more information, see Using Amazon S3 -// on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) -// in the Amazon Simple Storage Service Developer Guide. If you are using an -// identity other than the root user of the AWS account that owns the bucket, the -// calling identity must have the s3-outposts:GetBucket permissions on the -// specified bucket and belong to the bucket owner's account in order to use this -// operation. Only users from Outposts bucket owner account with the right +// on Outposts +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the +// Amazon Simple Storage Service User Guide. If you are using an identity other +// than the root user of the AWS account that owns the Outposts bucket, the calling +// identity must have the s3-outposts:GetBucket permissions on the specified +// Outposts bucket and belong to the Outposts bucket owner's account in order to +// use this action. Only users from Outposts bucket owner account with the right // permissions can perform actions on an Outposts bucket. If you don't have // s3-outposts:GetBucket permissions or you're not using an identity that belongs // to the bucket owner's account, Amazon S3 returns a 403 Access Denied error. The diff --git a/service/s3control/api_op_GetBucketLifecycleConfiguration.go b/service/s3control/api_op_GetBucketLifecycleConfiguration.go index 5cfc0abc018..40ecdb6c40c 100644 --- a/service/s3control/api_op_GetBucketLifecycleConfiguration.go +++ b/service/s3control/api_op_GetBucketLifecycleConfiguration.go @@ -15,30 +15,29 @@ import ( "strings" ) -// This operation gets an Amazon S3 on Outposts bucket's lifecycle configuration. -// To get an S3 bucket's lifecycle configuration, see -// GetBucketLifecycleConfiguration +// This action gets an Amazon S3 on Outposts bucket's lifecycle configuration. To +// get an S3 bucket's lifecycle configuration, see GetBucketLifecycleConfiguration // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycleConfiguration.html) // in the Amazon Simple Storage Service API. Returns the lifecycle configuration // information set on the Outposts bucket. For more information, see Using Amazon // S3 on Outposts -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) and for -// information about lifecycle configuration, see Object Lifecycle Management +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) and +// for information about lifecycle configuration, see Object Lifecycle Management // (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) in -// Amazon Simple Storage Service Developer Guide. To use this operation, you must -// have permission to perform the s3-outposts:GetLifecycleConfiguration action. The +// Amazon Simple Storage Service User Guide. To use this action, you must have +// permission to perform the s3-outposts:GetLifecycleConfiguration action. The // Outposts bucket owner has this permission, by default. The bucket owner can // grant this permission to others. For more information about permissions, see // Permissions Related to Bucket Subresource Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). All -// Amazon S3 on Outposts REST API requests for this action require an additional -// parameter of x-amz-outpost-id to be passed with the request and an S3 on -// Outposts endpoint hostname prefix instead of s3-control. For an example of the -// request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint -// hostname prefix and the x-amz-outpost-id derived using the access point ARN, see -// the Examples +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). +// All Amazon S3 on Outposts REST API requests for this action require an +// additional parameter of x-amz-outpost-id to be passed with the request and an S3 +// on Outposts endpoint hostname prefix instead of s3-control. For an example of +// the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts +// endpoint hostname prefix and the x-amz-outpost-id derived using the access point +// ARN, see the Examples // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketLifecycleConfiguration.html#API_control_GetBucketLifecycleConfiguration_Examples) // section. GetBucketLifecycleConfiguration has the following special error: // diff --git a/service/s3control/api_op_GetBucketPolicy.go b/service/s3control/api_op_GetBucketPolicy.go index 6d966af654a..402d3eee4c9 100644 --- a/service/s3control/api_op_GetBucketPolicy.go +++ b/service/s3control/api_op_GetBucketPolicy.go @@ -19,19 +19,19 @@ import ( // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketPolicy.html) in // the Amazon Simple Storage Service API. Returns the policy of a specified // Outposts bucket. For more information, see Using Amazon S3 on Outposts -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the -// Amazon Simple Storage Service Developer Guide. If you are using an identity -// other than the root user of the AWS account that owns the bucket, the calling -// identity must have the GetBucketPolicy permissions on the specified bucket and -// belong to the bucket owner's account in order to use this operation. Only users -// from Outposts bucket owner account with the right permissions can perform -// actions on an Outposts bucket. If you don't have s3-outposts:GetBucketPolicy -// permissions or you're not using an identity that belongs to the bucket owner's -// account, Amazon S3 returns a 403 Access Denied error. As a security precaution, -// the root user of the AWS account that owns a bucket can always use this -// operation, even if the policy explicitly denies the root user the ability to -// perform this action. For more information about bucket policies, see Using -// Bucket Policies and User Policies +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the +// Amazon Simple Storage Service User Guide. If you are using an identity other +// than the root user of the AWS account that owns the bucket, the calling identity +// must have the GetBucketPolicy permissions on the specified bucket and belong to +// the bucket owner's account in order to use this action. Only users from Outposts +// bucket owner account with the right permissions can perform actions on an +// Outposts bucket. If you don't have s3-outposts:GetBucketPolicy permissions or +// you're not using an identity that belongs to the bucket owner's account, Amazon +// S3 returns a 403 Access Denied error. As a security precaution, the root user of +// the AWS account that owns a bucket can always use this action, even if the +// policy explicitly denies the root user the ability to perform this action. For +// more information about bucket policies, see Using Bucket Policies and User +// Policies // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html). All // Amazon S3 on Outposts REST API requests for this action require an additional // parameter of x-amz-outpost-id to be passed with the request and an S3 on diff --git a/service/s3control/api_op_GetBucketTagging.go b/service/s3control/api_op_GetBucketTagging.go index df438cf6ec8..24c3e41d488 100644 --- a/service/s3control/api_op_GetBucketTagging.go +++ b/service/s3control/api_op_GetBucketTagging.go @@ -15,29 +15,28 @@ import ( "strings" ) -// This operation gets an Amazon S3 on Outposts bucket's tags. To get an S3 bucket +// This action gets an Amazon S3 on Outposts bucket's tags. To get an S3 bucket // tags, see GetBucketTagging // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketTagging.html) in // the Amazon Simple Storage Service API. Returns the tag set associated with the // Outposts bucket. For more information, see Using Amazon S3 on Outposts -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the -// Amazon Simple Storage Service Developer Guide. To use this operation, you must -// have permission to perform the GetBucketTagging action. By default, the bucket -// owner has this permission and can grant this permission to others. -// GetBucketTagging has the following special error: +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the +// Amazon Simple Storage Service User Guide. To use this action, you must have +// permission to perform the GetBucketTagging action. By default, the bucket owner +// has this permission and can grant this permission to others. GetBucketTagging +// has the following special error: // -// * Error code: -// NoSuchTagSetError +// * Error code: NoSuchTagSetError // -// * Description: There is no tag set associated with the -// bucket. +// * +// Description: There is no tag set associated with the bucket. // -// All Amazon S3 on Outposts REST API requests for this action require an -// additional parameter of x-amz-outpost-id to be passed with the request and an S3 -// on Outposts endpoint hostname prefix instead of s3-control. For an example of -// the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts -// endpoint hostname prefix and the x-amz-outpost-id derived using the access point -// ARN, see the Examples +// All Amazon S3 on +// Outposts REST API requests for this action require an additional parameter of +// x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint +// hostname prefix instead of s3-control. For an example of the request syntax for +// Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and +// the x-amz-outpost-id derived using the access point ARN, see the Examples // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketTagging.html#API_control_GetBucketTagging_Examples) // section. The following actions are related to GetBucketTagging: // diff --git a/service/s3control/api_op_GetJobTagging.go b/service/s3control/api_op_GetJobTagging.go index eaa614b8843..a585e8ea0a1 100644 --- a/service/s3control/api_op_GetJobTagging.go +++ b/service/s3control/api_op_GetJobTagging.go @@ -19,10 +19,10 @@ import ( // have permission to perform the s3:GetJobTagging action. For more information, // see Controlling access and labeling jobs using tags // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-managing-jobs.html#batch-ops-job-tags) -// in the Amazon Simple Storage Service Developer Guide. Related actions -// include: +// in the Amazon Simple Storage Service User Guide. Related actions include: // -// * CreateJob +// * +// CreateJob // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateJob.html) // // * diff --git a/service/s3control/api_op_GetStorageLensConfiguration.go b/service/s3control/api_op_GetStorageLensConfiguration.go index f461e88f045..02f6941b032 100644 --- a/service/s3control/api_op_GetStorageLensConfiguration.go +++ b/service/s3control/api_op_GetStorageLensConfiguration.go @@ -15,14 +15,14 @@ import ( "strings" ) -// Gets the Amazon S3 Storage Lens configuration. For more information, see Working -// with Amazon S3 Storage Lens -// (https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html) -// in the Amazon Simple Storage Service Developer Guide. To use this action, you -// must have permission to perform the s3:GetStorageLensConfiguration action. For -// more information, see Setting permissions to use Amazon S3 Storage Lens -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html#storage_lens_IAM) -// in the Amazon Simple Storage Service Developer Guide. +// Gets the Amazon S3 Storage Lens configuration. For more information, see +// Assessing your storage activity and usage with Amazon S3 Storage Lens +// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html) in the +// Amazon Simple Storage Service User Guide. To use this action, you must have +// permission to perform the s3:GetStorageLensConfiguration action. For more +// information, see Setting permissions to use Amazon S3 Storage Lens +// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens_iam_permissions.html) +// in the Amazon Simple Storage Service User Guide. func (c *Client) GetStorageLensConfiguration(ctx context.Context, params *GetStorageLensConfigurationInput, optFns ...func(*Options)) (*GetStorageLensConfigurationOutput, error) { if params == nil { params = &GetStorageLensConfigurationInput{} diff --git a/service/s3control/api_op_GetStorageLensConfigurationTagging.go b/service/s3control/api_op_GetStorageLensConfigurationTagging.go index 89e24aaf7d2..af949f4614a 100644 --- a/service/s3control/api_op_GetStorageLensConfigurationTagging.go +++ b/service/s3control/api_op_GetStorageLensConfigurationTagging.go @@ -16,14 +16,14 @@ import ( ) // Gets the tags of Amazon S3 Storage Lens configuration. For more information -// about S3 Storage Lens, see Working with Amazon S3 Storage Lens -// (https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html) -// in the Amazon Simple Storage Service Developer Guide. To use this action, you -// must have permission to perform the s3:GetStorageLensConfigurationTagging -// action. For more information, see Setting permissions to use Amazon S3 Storage -// Lens -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html#storage_lens_IAM) -// in the Amazon Simple Storage Service Developer Guide. +// about S3 Storage Lens, see Assessing your storage activity and usage with Amazon +// S3 Storage Lens +// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html) in the +// Amazon Simple Storage Service User Guide. To use this action, you must have +// permission to perform the s3:GetStorageLensConfigurationTagging action. For more +// information, see Setting permissions to use Amazon S3 Storage Lens +// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens_iam_permissions.html) +// in the Amazon Simple Storage Service User Guide. func (c *Client) GetStorageLensConfigurationTagging(ctx context.Context, params *GetStorageLensConfigurationTaggingInput, optFns ...func(*Options)) (*GetStorageLensConfigurationTaggingOutput, error) { if params == nil { params = &GetStorageLensConfigurationTaggingInput{} diff --git a/service/s3control/api_op_ListAccessPointsForObjectLambda.go b/service/s3control/api_op_ListAccessPointsForObjectLambda.go new file mode 100644 index 00000000000..4a93d9850f3 --- /dev/null +++ b/service/s3control/api_op_ListAccessPointsForObjectLambda.go @@ -0,0 +1,326 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package s3control + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + s3controlcust "github.com/aws/aws-sdk-go-v2/service/s3control/internal/customizations" + "github.com/aws/aws-sdk-go-v2/service/s3control/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "strings" +) + +// Returns a list of the access points associated with the Object Lambda Access +// Point. You can retrieve up to 1000 access points per call. If there are more +// than 1,000 access points (or the number specified in maxResults, whichever is +// less), the response will include a continuation token that you can use to list +// the additional access points. The following actions are related to +// ListAccessPointsForObjectLambda: +// +// * CreateAccessPointForObjectLambda +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateAccessPointForObjectLambda.html) +// +// * +// DeleteAccessPointForObjectLambda +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPointForObjectLambda.html) +// +// * +// GetAccessPointForObjectLambda +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPointForObjectLambda.html) +func (c *Client) ListAccessPointsForObjectLambda(ctx context.Context, params *ListAccessPointsForObjectLambdaInput, optFns ...func(*Options)) (*ListAccessPointsForObjectLambdaOutput, error) { + if params == nil { + params = &ListAccessPointsForObjectLambdaInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListAccessPointsForObjectLambda", params, optFns, addOperationListAccessPointsForObjectLambdaMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListAccessPointsForObjectLambdaOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListAccessPointsForObjectLambdaInput struct { + + // The account ID for the account that owns the specified Object Lambda Access + // Point. + // + // This member is required. + AccountId *string + + // The maximum number of access points that you want to include in the list. If + // there are more than this number of access points, then the response will include + // a continuation token in the NextToken field that you can use to retrieve the + // next page of access points. + MaxResults int32 + + // If the list has more access points than can be returned in one call to this API, + // this field contains a continuation token that you can provide in subsequent + // calls to this API to retrieve additional access points. + NextToken *string +} + +type ListAccessPointsForObjectLambdaOutput struct { + + // If the list has more access points than can be returned in one call to this API, + // this field contains a continuation token that you can provide in subsequent + // calls to this API to retrieve additional access points. + NextToken *string + + // Returns list of Object Lambda Access Points. + ObjectLambdaAccessPointList []types.ObjectLambdaAccessPoint + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func addOperationListAccessPointsForObjectLambdaMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestxml_serializeOpListAccessPointsForObjectLambda{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpListAccessPointsForObjectLambda{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opListAccessPointsForObjectLambdaMiddleware(stack); err != nil { + return err + } + if err = addOpListAccessPointsForObjectLambdaValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListAccessPointsForObjectLambda(options.Region), middleware.Before); err != nil { + return err + } + if err = addMetadataRetrieverMiddleware(stack); err != nil { + return err + } + if err = addListAccessPointsForObjectLambdaUpdateEndpoint(stack, options); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = v4.AddContentSHA256HeaderMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +type endpointPrefix_opListAccessPointsForObjectLambdaMiddleware struct { +} + +func (*endpointPrefix_opListAccessPointsForObjectLambdaMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opListAccessPointsForObjectLambdaMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + input, ok := in.Parameters.(*ListAccessPointsForObjectLambdaInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input type %T", in.Parameters) + } + + var prefix strings.Builder + if input.AccountId == nil { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("AccountId forms part of the endpoint host and so may not be nil")} + } else if !smithyhttp.ValidHostLabel(*input.AccountId) { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("AccountId forms part of the endpoint host and so must match \"[a-zA-Z0-9-]{1,63}\", but was \"%s\"", *input.AccountId)} + } else { + prefix.WriteString(*input.AccountId) + } + prefix.WriteString(".") + req.URL.Host = prefix.String() + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opListAccessPointsForObjectLambdaMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opListAccessPointsForObjectLambdaMiddleware{}, `OperationSerializer`, middleware.After) +} + +// ListAccessPointsForObjectLambdaAPIClient is a client that implements the +// ListAccessPointsForObjectLambda operation. +type ListAccessPointsForObjectLambdaAPIClient interface { + ListAccessPointsForObjectLambda(context.Context, *ListAccessPointsForObjectLambdaInput, ...func(*Options)) (*ListAccessPointsForObjectLambdaOutput, error) +} + +var _ ListAccessPointsForObjectLambdaAPIClient = (*Client)(nil) + +// ListAccessPointsForObjectLambdaPaginatorOptions is the paginator options for +// ListAccessPointsForObjectLambda +type ListAccessPointsForObjectLambdaPaginatorOptions struct { + // The maximum number of access points that you want to include in the list. If + // there are more than this number of access points, then the response will include + // a continuation token in the NextToken field that you can use to retrieve the + // next page of access points. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListAccessPointsForObjectLambdaPaginator is a paginator for +// ListAccessPointsForObjectLambda +type ListAccessPointsForObjectLambdaPaginator struct { + options ListAccessPointsForObjectLambdaPaginatorOptions + client ListAccessPointsForObjectLambdaAPIClient + params *ListAccessPointsForObjectLambdaInput + nextToken *string + firstPage bool +} + +// NewListAccessPointsForObjectLambdaPaginator returns a new +// ListAccessPointsForObjectLambdaPaginator +func NewListAccessPointsForObjectLambdaPaginator(client ListAccessPointsForObjectLambdaAPIClient, params *ListAccessPointsForObjectLambdaInput, optFns ...func(*ListAccessPointsForObjectLambdaPaginatorOptions)) *ListAccessPointsForObjectLambdaPaginator { + if params == nil { + params = &ListAccessPointsForObjectLambdaInput{} + } + + options := ListAccessPointsForObjectLambdaPaginatorOptions{} + if params.MaxResults != 0 { + options.Limit = params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListAccessPointsForObjectLambdaPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListAccessPointsForObjectLambdaPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListAccessPointsForObjectLambda page. +func (p *ListAccessPointsForObjectLambdaPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListAccessPointsForObjectLambdaOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + params.MaxResults = p.options.Limit + + result, err := p.client.ListAccessPointsForObjectLambda(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListAccessPointsForObjectLambda(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "s3", + OperationName: "ListAccessPointsForObjectLambda", + } +} + +func copyListAccessPointsForObjectLambdaInputForUpdateEndpoint(params interface{}) (interface{}, error) { + input, ok := params.(*ListAccessPointsForObjectLambdaInput) + if !ok { + return nil, fmt.Errorf("expect *ListAccessPointsForObjectLambdaInput type, got %T", params) + } + cpy := *input + return &cpy, nil +} +func backFillListAccessPointsForObjectLambdaAccountID(input interface{}, v string) error { + in := input.(*ListAccessPointsForObjectLambdaInput) + if in.AccountId != nil { + if !strings.EqualFold(*in.AccountId, v) { + return fmt.Errorf("error backfilling account id") + } + return nil + } + in.AccountId = &v + return nil +} +func addListAccessPointsForObjectLambdaUpdateEndpoint(stack *middleware.Stack, options Options) error { + return s3controlcust.UpdateEndpoint(stack, s3controlcust.UpdateEndpointOptions{ + Accessor: s3controlcust.UpdateEndpointParameterAccessor{GetARNInput: nopGetARNAccessor, + BackfillAccountID: nopBackfillAccountIDAccessor, + GetOutpostIDInput: nopGetOutpostIDFromInput, + UpdateARNField: nopSetARNAccessor, + CopyInput: copyListAccessPointsForObjectLambdaInputForUpdateEndpoint, + }, + EndpointResolver: options.EndpointResolver, + EndpointResolverOptions: options.EndpointOptions, + UseDualstack: options.UseDualstack, + UseARNRegion: options.UseARNRegion, + }) +} diff --git a/service/s3control/api_op_ListJobs.go b/service/s3control/api_op_ListJobs.go index 8676a6f9c3a..8558136a46b 100644 --- a/service/s3control/api_op_ListJobs.go +++ b/service/s3control/api_op_ListJobs.go @@ -19,10 +19,9 @@ import ( // 30 days for the AWS account making the request. For more information, see S3 // Batch Operations // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-basics.html) in the -// Amazon Simple Storage Service Developer Guide. Related actions include: +// Amazon Simple Storage Service User Guide. Related actions include: // -// * -// CreateJob +// * CreateJob // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateJob.html) // // * @@ -53,7 +52,7 @@ func (c *Client) ListJobs(ctx context.Context, params *ListJobsInput, optFns ... type ListJobsInput struct { - // + // The AWS account ID associated with the S3 Batch Operations job. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_ListRegionalBuckets.go b/service/s3control/api_op_ListRegionalBuckets.go index 218087a2d4b..647029d749f 100644 --- a/service/s3control/api_op_ListRegionalBuckets.go +++ b/service/s3control/api_op_ListRegionalBuckets.go @@ -17,10 +17,11 @@ import ( // Returns a list of all Outposts buckets in an Outpost that are owned by the // authenticated sender of the request. For more information, see Using Amazon S3 -// on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) -// in the Amazon Simple Storage Service Developer Guide. For an example of the -// request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint -// hostname prefix and x-amz-outpost-id in your request, see the Examples +// on Outposts +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the +// Amazon Simple Storage Service User Guide. For an example of the request syntax +// for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix +// and x-amz-outpost-id in your request, see the Examples // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListRegionalBuckets.html#API_control_ListRegionalBuckets_Examples) // section. func (c *Client) ListRegionalBuckets(ctx context.Context, params *ListRegionalBucketsInput, optFns ...func(*Options)) (*ListRegionalBucketsOutput, error) { diff --git a/service/s3control/api_op_ListStorageLensConfigurations.go b/service/s3control/api_op_ListStorageLensConfigurations.go index 10ec290e2d7..27b49c8f665 100644 --- a/service/s3control/api_op_ListStorageLensConfigurations.go +++ b/service/s3control/api_op_ListStorageLensConfigurations.go @@ -16,13 +16,14 @@ import ( ) // Gets a list of Amazon S3 Storage Lens configurations. For more information about -// S3 Storage Lens, see Working with Amazon S3 Storage Lens -// (https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html) -// in the Amazon Simple Storage Service Developer Guide. To use this action, you -// must have permission to perform the s3:ListStorageLensConfigurations action. For -// more information, see Setting permissions to use Amazon S3 Storage Lens -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html#storage_lens_IAM) -// in the Amazon Simple Storage Service Developer Guide. +// S3 Storage Lens, see Assessing your storage activity and usage with Amazon S3 +// Storage Lens +// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html) in the +// Amazon Simple Storage Service User Guide. To use this action, you must have +// permission to perform the s3:ListStorageLensConfigurations action. For more +// information, see Setting permissions to use Amazon S3 Storage Lens +// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens_iam_permissions.html) +// in the Amazon Simple Storage Service User Guide. func (c *Client) ListStorageLensConfigurations(ctx context.Context, params *ListStorageLensConfigurationsInput, optFns ...func(*Options)) (*ListStorageLensConfigurationsOutput, error) { if params == nil { params = &ListStorageLensConfigurationsInput{} diff --git a/service/s3control/api_op_PutAccessPointConfigurationForObjectLambda.go b/service/s3control/api_op_PutAccessPointConfigurationForObjectLambda.go new file mode 100644 index 00000000000..c0437c22595 --- /dev/null +++ b/service/s3control/api_op_PutAccessPointConfigurationForObjectLambda.go @@ -0,0 +1,217 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package s3control + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + s3controlcust "github.com/aws/aws-sdk-go-v2/service/s3control/internal/customizations" + "github.com/aws/aws-sdk-go-v2/service/s3control/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "strings" +) + +// Replaces configuration for an Object Lambda Access Point. The following actions +// are related to PutAccessPointConfigurationForObjectLambda: +// +// * +// GetAccessPointConfigurationForObjectLambda +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPointConfigurationForObjectLambda.html) +func (c *Client) PutAccessPointConfigurationForObjectLambda(ctx context.Context, params *PutAccessPointConfigurationForObjectLambdaInput, optFns ...func(*Options)) (*PutAccessPointConfigurationForObjectLambdaOutput, error) { + if params == nil { + params = &PutAccessPointConfigurationForObjectLambdaInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "PutAccessPointConfigurationForObjectLambda", params, optFns, addOperationPutAccessPointConfigurationForObjectLambdaMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*PutAccessPointConfigurationForObjectLambdaOutput) + out.ResultMetadata = metadata + return out, nil +} + +type PutAccessPointConfigurationForObjectLambdaInput struct { + + // The account ID for the account that owns the specified Object Lambda Access + // Point. + // + // This member is required. + AccountId *string + + // Object Lambda Access Point configuration document. + // + // This member is required. + Configuration *types.ObjectLambdaConfiguration + + // The name of the Object Lambda Access Point. + // + // This member is required. + Name *string +} + +type PutAccessPointConfigurationForObjectLambdaOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func addOperationPutAccessPointConfigurationForObjectLambdaMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestxml_serializeOpPutAccessPointConfigurationForObjectLambda{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpPutAccessPointConfigurationForObjectLambda{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opPutAccessPointConfigurationForObjectLambdaMiddleware(stack); err != nil { + return err + } + if err = addOpPutAccessPointConfigurationForObjectLambdaValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutAccessPointConfigurationForObjectLambda(options.Region), middleware.Before); err != nil { + return err + } + if err = addMetadataRetrieverMiddleware(stack); err != nil { + return err + } + if err = addPutAccessPointConfigurationForObjectLambdaUpdateEndpoint(stack, options); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = v4.AddContentSHA256HeaderMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +type endpointPrefix_opPutAccessPointConfigurationForObjectLambdaMiddleware struct { +} + +func (*endpointPrefix_opPutAccessPointConfigurationForObjectLambdaMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opPutAccessPointConfigurationForObjectLambdaMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + input, ok := in.Parameters.(*PutAccessPointConfigurationForObjectLambdaInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input type %T", in.Parameters) + } + + var prefix strings.Builder + if input.AccountId == nil { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("AccountId forms part of the endpoint host and so may not be nil")} + } else if !smithyhttp.ValidHostLabel(*input.AccountId) { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("AccountId forms part of the endpoint host and so must match \"[a-zA-Z0-9-]{1,63}\", but was \"%s\"", *input.AccountId)} + } else { + prefix.WriteString(*input.AccountId) + } + prefix.WriteString(".") + req.URL.Host = prefix.String() + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opPutAccessPointConfigurationForObjectLambdaMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opPutAccessPointConfigurationForObjectLambdaMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opPutAccessPointConfigurationForObjectLambda(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "s3", + OperationName: "PutAccessPointConfigurationForObjectLambda", + } +} + +func copyPutAccessPointConfigurationForObjectLambdaInputForUpdateEndpoint(params interface{}) (interface{}, error) { + input, ok := params.(*PutAccessPointConfigurationForObjectLambdaInput) + if !ok { + return nil, fmt.Errorf("expect *PutAccessPointConfigurationForObjectLambdaInput type, got %T", params) + } + cpy := *input + return &cpy, nil +} +func backFillPutAccessPointConfigurationForObjectLambdaAccountID(input interface{}, v string) error { + in := input.(*PutAccessPointConfigurationForObjectLambdaInput) + if in.AccountId != nil { + if !strings.EqualFold(*in.AccountId, v) { + return fmt.Errorf("error backfilling account id") + } + return nil + } + in.AccountId = &v + return nil +} +func addPutAccessPointConfigurationForObjectLambdaUpdateEndpoint(stack *middleware.Stack, options Options) error { + return s3controlcust.UpdateEndpoint(stack, s3controlcust.UpdateEndpointOptions{ + Accessor: s3controlcust.UpdateEndpointParameterAccessor{GetARNInput: nopGetARNAccessor, + BackfillAccountID: nopBackfillAccountIDAccessor, + GetOutpostIDInput: nopGetOutpostIDFromInput, + UpdateARNField: nopSetARNAccessor, + CopyInput: copyPutAccessPointConfigurationForObjectLambdaInputForUpdateEndpoint, + }, + EndpointResolver: options.EndpointResolver, + EndpointResolverOptions: options.EndpointOptions, + UseDualstack: options.UseDualstack, + UseARNRegion: options.UseARNRegion, + }) +} diff --git a/service/s3control/api_op_PutAccessPointPolicy.go b/service/s3control/api_op_PutAccessPointPolicy.go index 004c74867d8..cb8febd0dc5 100644 --- a/service/s3control/api_op_PutAccessPointPolicy.go +++ b/service/s3control/api_op_PutAccessPointPolicy.go @@ -72,8 +72,8 @@ type PutAccessPointPolicyInput struct { // The policy that you want to apply to the specified access point. For more // information about access point policies, see Managing data access with Amazon S3 // Access Points - // (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-points.html) in the - // Amazon Simple Storage Service Developer Guide. + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html) in + // the Amazon Simple Storage Service User Guide. // // This member is required. Policy *string diff --git a/service/s3control/api_op_PutAccessPointPolicyForObjectLambda.go b/service/s3control/api_op_PutAccessPointPolicyForObjectLambda.go new file mode 100644 index 00000000000..f543d1e04d6 --- /dev/null +++ b/service/s3control/api_op_PutAccessPointPolicyForObjectLambda.go @@ -0,0 +1,223 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package s3control + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + s3controlcust "github.com/aws/aws-sdk-go-v2/service/s3control/internal/customizations" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "strings" +) + +// Creates or replaces resource policy for an Object Lambda Access Point. For an +// example policy, see Creating Object Lambda Access Points +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/olap-create.html#olap-create-cli) +// in the Amazon Simple Storage Service User Guide. The following actions are +// related to PutAccessPointPolicyForObjectLambda: +// +// * +// DeleteAccessPointPolicyForObjectLambda +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPointPolicyForObjectLambda.html) +// +// * +// GetAccessPointPolicyForObjectLambda +// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPointPolicyForObjectLambda.html) +func (c *Client) PutAccessPointPolicyForObjectLambda(ctx context.Context, params *PutAccessPointPolicyForObjectLambdaInput, optFns ...func(*Options)) (*PutAccessPointPolicyForObjectLambdaOutput, error) { + if params == nil { + params = &PutAccessPointPolicyForObjectLambdaInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "PutAccessPointPolicyForObjectLambda", params, optFns, addOperationPutAccessPointPolicyForObjectLambdaMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*PutAccessPointPolicyForObjectLambdaOutput) + out.ResultMetadata = metadata + return out, nil +} + +type PutAccessPointPolicyForObjectLambdaInput struct { + + // The account ID for the account that owns the specified Object Lambda Access + // Point. + // + // This member is required. + AccountId *string + + // The name of the Object Lambda Access Point. + // + // This member is required. + Name *string + + // Object Lambda Access Point resource policy document. + // + // This member is required. + Policy *string +} + +type PutAccessPointPolicyForObjectLambdaOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func addOperationPutAccessPointPolicyForObjectLambdaMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestxml_serializeOpPutAccessPointPolicyForObjectLambda{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpPutAccessPointPolicyForObjectLambda{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opPutAccessPointPolicyForObjectLambdaMiddleware(stack); err != nil { + return err + } + if err = addOpPutAccessPointPolicyForObjectLambdaValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutAccessPointPolicyForObjectLambda(options.Region), middleware.Before); err != nil { + return err + } + if err = addMetadataRetrieverMiddleware(stack); err != nil { + return err + } + if err = addPutAccessPointPolicyForObjectLambdaUpdateEndpoint(stack, options); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = v4.AddContentSHA256HeaderMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +type endpointPrefix_opPutAccessPointPolicyForObjectLambdaMiddleware struct { +} + +func (*endpointPrefix_opPutAccessPointPolicyForObjectLambdaMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opPutAccessPointPolicyForObjectLambdaMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + input, ok := in.Parameters.(*PutAccessPointPolicyForObjectLambdaInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input type %T", in.Parameters) + } + + var prefix strings.Builder + if input.AccountId == nil { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("AccountId forms part of the endpoint host and so may not be nil")} + } else if !smithyhttp.ValidHostLabel(*input.AccountId) { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("AccountId forms part of the endpoint host and so must match \"[a-zA-Z0-9-]{1,63}\", but was \"%s\"", *input.AccountId)} + } else { + prefix.WriteString(*input.AccountId) + } + prefix.WriteString(".") + req.URL.Host = prefix.String() + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opPutAccessPointPolicyForObjectLambdaMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opPutAccessPointPolicyForObjectLambdaMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opPutAccessPointPolicyForObjectLambda(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "s3", + OperationName: "PutAccessPointPolicyForObjectLambda", + } +} + +func copyPutAccessPointPolicyForObjectLambdaInputForUpdateEndpoint(params interface{}) (interface{}, error) { + input, ok := params.(*PutAccessPointPolicyForObjectLambdaInput) + if !ok { + return nil, fmt.Errorf("expect *PutAccessPointPolicyForObjectLambdaInput type, got %T", params) + } + cpy := *input + return &cpy, nil +} +func backFillPutAccessPointPolicyForObjectLambdaAccountID(input interface{}, v string) error { + in := input.(*PutAccessPointPolicyForObjectLambdaInput) + if in.AccountId != nil { + if !strings.EqualFold(*in.AccountId, v) { + return fmt.Errorf("error backfilling account id") + } + return nil + } + in.AccountId = &v + return nil +} +func addPutAccessPointPolicyForObjectLambdaUpdateEndpoint(stack *middleware.Stack, options Options) error { + return s3controlcust.UpdateEndpoint(stack, s3controlcust.UpdateEndpointOptions{ + Accessor: s3controlcust.UpdateEndpointParameterAccessor{GetARNInput: nopGetARNAccessor, + BackfillAccountID: nopBackfillAccountIDAccessor, + GetOutpostIDInput: nopGetOutpostIDFromInput, + UpdateARNField: nopSetARNAccessor, + CopyInput: copyPutAccessPointPolicyForObjectLambdaInputForUpdateEndpoint, + }, + EndpointResolver: options.EndpointResolver, + EndpointResolverOptions: options.EndpointOptions, + UseDualstack: options.UseDualstack, + UseARNRegion: options.UseARNRegion, + }) +} diff --git a/service/s3control/api_op_PutBucketLifecycleConfiguration.go b/service/s3control/api_op_PutBucketLifecycleConfiguration.go index 2bf6dd995bc..61e4f6ba0c0 100644 --- a/service/s3control/api_op_PutBucketLifecycleConfiguration.go +++ b/service/s3control/api_op_PutBucketLifecycleConfiguration.go @@ -20,11 +20,9 @@ import ( // PutBucketLifecycleConfiguration // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html) // in the Amazon Simple Storage Service API. Creates a new lifecycle configuration -// for the Outposts bucket or replaces an existing lifecycle configuration. +// for the S3 on Outposts bucket or replaces an existing lifecycle configuration. // Outposts buckets only support lifecycle configurations that delete/expire // objects after a certain period of time and abort incomplete multipart uploads. -// For more information, see Managing Lifecycle Permissions for Amazon S3 on -// Outposts (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html). // All Amazon S3 on Outposts REST API requests for this action require an // additional parameter of x-amz-outpost-id to be passed with the request and an S3 // on Outposts endpoint hostname prefix instead of s3-control. For an example of diff --git a/service/s3control/api_op_PutBucketPolicy.go b/service/s3control/api_op_PutBucketPolicy.go index 8e8f00553ee..2c0878c6038 100644 --- a/service/s3control/api_op_PutBucketPolicy.go +++ b/service/s3control/api_op_PutBucketPolicy.go @@ -19,16 +19,16 @@ import ( // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketPolicy.html) in // the Amazon Simple Storage Service API. Applies an Amazon S3 bucket policy to an // Outposts bucket. For more information, see Using Amazon S3 on Outposts -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the -// Amazon Simple Storage Service Developer Guide. If you are using an identity -// other than the root user of the AWS account that owns the Outposts bucket, the -// calling identity must have the PutBucketPolicy permissions on the specified -// Outposts bucket and belong to the bucket owner's account in order to use this -// operation. If you don't have PutBucketPolicy permissions, Amazon S3 returns a -// 403 Access Denied error. If you have the correct permissions, but you're not -// using an identity that belongs to the bucket owner's account, Amazon S3 returns -// a 405 Method Not Allowed error. As a security precaution, the root user of the -// AWS account that owns a bucket can always use this operation, even if the policy +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the +// Amazon Simple Storage Service User Guide. If you are using an identity other +// than the root user of the AWS account that owns the Outposts bucket, the calling +// identity must have the PutBucketPolicy permissions on the specified Outposts +// bucket and belong to the bucket owner's account in order to use this action. If +// you don't have PutBucketPolicy permissions, Amazon S3 returns a 403 Access +// Denied error. If you have the correct permissions, but you're not using an +// identity that belongs to the bucket owner's account, Amazon S3 returns a 405 +// Method Not Allowed error. As a security precaution, the root user of the AWS +// account that owns a bucket can always use this action, even if the policy // explicitly denies the root user the ability to perform this action. For more // information about bucket policies, see Using Bucket Policies and User Policies // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html). All diff --git a/service/s3control/api_op_PutBucketTagging.go b/service/s3control/api_op_PutBucketTagging.go index 2b326ec3faa..5f5e3e86aa8 100644 --- a/service/s3control/api_op_PutBucketTagging.go +++ b/service/s3control/api_op_PutBucketTagging.go @@ -18,30 +18,30 @@ import ( // This action puts tags on an Amazon S3 on Outposts bucket. To put tags on an S3 // bucket, see PutBucketTagging // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketTagging.html) in -// the Amazon Simple Storage Service API. Sets the tags for an Outposts bucket. For -// more information, see Using Amazon S3 on Outposts -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html) in the -// Amazon Simple Storage Service Developer Guide. Use tags to organize your AWS -// bill to reflect your own cost structure. To do this, sign up to get your AWS -// account bill with tag key values included. Then, to see the cost of combined -// resources, organize your billing information according to resources with the -// same tag key values. For example, you can tag several resources with a specific -// application name, and then organize your billing information to see the total -// cost of that application across several services. For more information, see Cost -// Allocation and Tagging +// the Amazon Simple Storage Service API. Sets the tags for an S3 on Outposts +// bucket. For more information, see Using Amazon S3 on Outposts +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the +// Amazon Simple Storage Service User Guide. Use tags to organize your AWS bill to +// reflect your own cost structure. To do this, sign up to get your AWS account +// bill with tag key values included. Then, to see the cost of combined resources, +// organize your billing information according to resources with the same tag key +// values. For example, you can tag several resources with a specific application +// name, and then organize your billing information to see the total cost of that +// application across several services. For more information, see Cost allocation +// and tagging // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html). // Within a bucket, if you add a tag that has the same key as an existing tag, the -// new value overwrites the old value. For more information, see Using Cost -// Allocation in Amazon S3 Bucket Tags -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/CostAllocTagging.html). To use -// this operation, you must have permissions to perform the +// new value overwrites the old value. For more information, see Using cost +// allocation in Amazon S3 bucket tags +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/CostAllocTagging.html). +// To use this action, you must have permissions to perform the // s3-outposts:PutBucketTagging action. The Outposts bucket owner has this // permission by default and can grant this permission to others. For more // information about permissions, see Permissions Related to Bucket Subresource // Operations -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) -// and Managing Access Permissions to Your Amazon S3 Resources -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// and Managing access permissions to your Amazon S3 resources +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). // PutBucketTagging has the following special errors: // // * Error code: @@ -63,20 +63,20 @@ import ( // * Error code: OperationAbortedError // // * Description: A conflicting -// conditional operation is currently in progress against this resource. Try -// again. +// conditional action is currently in progress against this resource. Try again. // -// * Error code: InternalError +// * +// Error code: InternalError // -// * Description: The service was unable to -// apply the provided tag to the bucket. +// * Description: The service was unable to apply the +// provided tag to the bucket. // -// All Amazon S3 on Outposts REST API -// requests for this action require an additional parameter of x-amz-outpost-id to -// be passed with the request and an S3 on Outposts endpoint hostname prefix -// instead of s3-control. For an example of the request syntax for Amazon S3 on -// Outposts that uses the S3 on Outposts endpoint hostname prefix and the -// x-amz-outpost-id derived using the access point ARN, see the Examples +// All Amazon S3 on Outposts REST API requests for +// this action require an additional parameter of x-amz-outpost-id to be passed +// with the request and an S3 on Outposts endpoint hostname prefix instead of +// s3-control. For an example of the request syntax for Amazon S3 on Outposts that +// uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id +// derived using the access point ARN, see the Examples // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutBucketTagging.html#API_control_PutBucketTagging_Examples) // section. The following actions are related to PutBucketTagging: // diff --git a/service/s3control/api_op_PutJobTagging.go b/service/s3control/api_op_PutJobTagging.go index fdbb1b44067..f0fc0a29679 100644 --- a/service/s3control/api_op_PutJobTagging.go +++ b/service/s3control/api_op_PutJobTagging.go @@ -26,12 +26,12 @@ import ( // modified. For more information, see Controlling access and labeling jobs using // tags // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-managing-jobs.html#batch-ops-job-tags) -// in the Amazon Simple Storage Service Developer Guide. +// in the Amazon Simple Storage Service User Guide. // -// * If you send this -// request with an empty tag set, Amazon S3 deletes the existing tag set on the -// Batch Operations job. If you use this method, you are charged for a Tier 1 -// Request (PUT). For more information, see Amazon S3 pricing +// * If you send this request +// with an empty tag set, Amazon S3 deletes the existing tag set on the Batch +// Operations job. If you use this method, you are charged for a Tier 1 Request +// (PUT). For more information, see Amazon S3 pricing // (http://aws.amazon.com/s3/pricing/). // // * For deleting existing tags for your @@ -60,8 +60,8 @@ import ( // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html) // in the AWS Billing and Cost Management User Guide. // -// To use this operation, you -// must have permission to perform the s3:PutJobTagging action. Related actions +// To use this action, you must +// have permission to perform the s3:PutJobTagging action. Related actions // include: // // * CreatJob diff --git a/service/s3control/api_op_PutStorageLensConfiguration.go b/service/s3control/api_op_PutStorageLensConfiguration.go index 5f6717c3232..d57a279f5ba 100644 --- a/service/s3control/api_op_PutStorageLensConfiguration.go +++ b/service/s3control/api_op_PutStorageLensConfiguration.go @@ -17,12 +17,12 @@ import ( // Puts an Amazon S3 Storage Lens configuration. For more information about S3 // Storage Lens, see Working with Amazon S3 Storage Lens -// (https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html) -// in the Amazon Simple Storage Service Developer Guide. To use this action, you -// must have permission to perform the s3:PutStorageLensConfiguration action. For -// more information, see Setting permissions to use Amazon S3 Storage Lens -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html#storage_lens_IAM) -// in the Amazon Simple Storage Service Developer Guide. +// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html) in the +// Amazon Simple Storage Service User Guide. To use this action, you must have +// permission to perform the s3:PutStorageLensConfiguration action. For more +// information, see Setting permissions to use Amazon S3 Storage Lens +// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens_iam_permissions.html) +// in the Amazon Simple Storage Service User Guide. func (c *Client) PutStorageLensConfiguration(ctx context.Context, params *PutStorageLensConfigurationInput, optFns ...func(*Options)) (*PutStorageLensConfigurationOutput, error) { if params == nil { params = &PutStorageLensConfigurationInput{} diff --git a/service/s3control/api_op_PutStorageLensConfigurationTagging.go b/service/s3control/api_op_PutStorageLensConfigurationTagging.go index 61b6ce44d80..0d17e82f29a 100644 --- a/service/s3control/api_op_PutStorageLensConfigurationTagging.go +++ b/service/s3control/api_op_PutStorageLensConfigurationTagging.go @@ -16,14 +16,14 @@ import ( ) // Put or replace tags on an existing Amazon S3 Storage Lens configuration. For -// more information about S3 Storage Lens, see Working with Amazon S3 Storage Lens -// (https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html) -// in the Amazon Simple Storage Service Developer Guide. To use this action, you -// must have permission to perform the s3:PutStorageLensConfigurationTagging -// action. For more information, see Setting permissions to use Amazon S3 Storage -// Lens -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html#storage_lens_IAM) -// in the Amazon Simple Storage Service Developer Guide. +// more information about S3 Storage Lens, see Assessing your storage activity and +// usage with Amazon S3 Storage Lens +// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html) in the +// Amazon Simple Storage Service User Guide. To use this action, you must have +// permission to perform the s3:PutStorageLensConfigurationTagging action. For more +// information, see Setting permissions to use Amazon S3 Storage Lens +// (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens_iam_permissions.html) +// in the Amazon Simple Storage Service User Guide. func (c *Client) PutStorageLensConfigurationTagging(ctx context.Context, params *PutStorageLensConfigurationTaggingInput, optFns ...func(*Options)) (*PutStorageLensConfigurationTaggingOutput, error) { if params == nil { params = &PutStorageLensConfigurationTaggingInput{} diff --git a/service/s3control/api_op_UpdateJobPriority.go b/service/s3control/api_op_UpdateJobPriority.go index 783ed562027..0df124fdd7b 100644 --- a/service/s3control/api_op_UpdateJobPriority.go +++ b/service/s3control/api_op_UpdateJobPriority.go @@ -17,10 +17,9 @@ import ( // Updates an existing S3 Batch Operations job's priority. For more information, // see S3 Batch Operations // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-basics.html) in the -// Amazon Simple Storage Service Developer Guide. Related actions include: +// Amazon Simple Storage Service User Guide. Related actions include: // -// * -// CreateJob +// * CreateJob // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateJob.html) // // * @@ -51,7 +50,7 @@ func (c *Client) UpdateJobPriority(ctx context.Context, params *UpdateJobPriorit type UpdateJobPriorityInput struct { - // + // The AWS account ID associated with the S3 Batch Operations job. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_UpdateJobStatus.go b/service/s3control/api_op_UpdateJobStatus.go index 9ce62e90816..f6a9971242e 100644 --- a/service/s3control/api_op_UpdateJobStatus.go +++ b/service/s3control/api_op_UpdateJobStatus.go @@ -15,14 +15,13 @@ import ( "strings" ) -// Updates the status for the specified job. Use this operation to confirm that you +// Updates the status for the specified job. Use this action to confirm that you // want to run a job or to cancel an existing job. For more information, see S3 // Batch Operations // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-basics.html) in the -// Amazon Simple Storage Service Developer Guide. Related actions include: +// Amazon Simple Storage Service User Guide. Related actions include: // -// * -// CreateJob +// * CreateJob // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateJob.html) // // * @@ -53,7 +52,7 @@ func (c *Client) UpdateJobStatus(ctx context.Context, params *UpdateJobStatusInp type UpdateJobStatusInput struct { - // + // The AWS account ID associated with the S3 Batch Operations job. // // This member is required. AccountId *string diff --git a/service/s3control/deserializers.go b/service/s3control/deserializers.go index fc6e83bc5bc..fc81669c69c 100644 --- a/service/s3control/deserializers.go +++ b/service/s3control/deserializers.go @@ -169,6 +169,152 @@ func awsRestxml_deserializeOpDocumentCreateAccessPointOutput(v **CreateAccessPoi return nil } +type awsRestxml_deserializeOpCreateAccessPointForObjectLambda struct { +} + +func (*awsRestxml_deserializeOpCreateAccessPointForObjectLambda) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpCreateAccessPointForObjectLambda) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestxml_deserializeOpErrorCreateAccessPointForObjectLambda(response, &metadata) + } + output := &CreateAccessPointForObjectLambdaOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsRestxml_deserializeOpDocumentCreateAccessPointForObjectLambdaOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorCreateAccessPointForObjectLambda(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := s3shared.GetErrorResponseComponents(errorBody, s3shared.ErrorResponseDeserializerOptions{ + IsWrappedWithErrorTag: true, + }) + if err != nil { + return err + } + if hostID := errorComponents.HostID; len(hostID) != 0 { + s3shared.SetHostIDMetadata(metadata, hostID) + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestxml_deserializeOpDocumentCreateAccessPointForObjectLambdaOutput(v **CreateAccessPointForObjectLambdaOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *CreateAccessPointForObjectLambdaOutput + if *v == nil { + sv = &CreateAccessPointForObjectLambdaOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ObjectLambdaAccessPointArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ObjectLambdaAccessPointArn = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + type awsRestxml_deserializeOpCreateBucket struct { } @@ -571,14 +717,14 @@ func awsRestxml_deserializeOpErrorDeleteAccessPoint(response *smithyhttp.Respons } } -type awsRestxml_deserializeOpDeleteAccessPointPolicy struct { +type awsRestxml_deserializeOpDeleteAccessPointForObjectLambda struct { } -func (*awsRestxml_deserializeOpDeleteAccessPointPolicy) ID() string { +func (*awsRestxml_deserializeOpDeleteAccessPointForObjectLambda) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpDeleteAccessPointPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpDeleteAccessPointForObjectLambda) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -592,9 +738,9 @@ func (m *awsRestxml_deserializeOpDeleteAccessPointPolicy) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorDeleteAccessPointPolicy(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorDeleteAccessPointForObjectLambda(response, &metadata) } - output := &DeleteAccessPointPolicyOutput{} + output := &DeleteAccessPointForObjectLambdaOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -606,7 +752,7 @@ func (m *awsRestxml_deserializeOpDeleteAccessPointPolicy) HandleDeserialize(ctx return out, metadata, err } -func awsRestxml_deserializeOpErrorDeleteAccessPointPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorDeleteAccessPointForObjectLambda(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -646,14 +792,14 @@ func awsRestxml_deserializeOpErrorDeleteAccessPointPolicy(response *smithyhttp.R } } -type awsRestxml_deserializeOpDeleteBucket struct { +type awsRestxml_deserializeOpDeleteAccessPointPolicy struct { } -func (*awsRestxml_deserializeOpDeleteBucket) ID() string { +func (*awsRestxml_deserializeOpDeleteAccessPointPolicy) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpDeleteBucket) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpDeleteAccessPointPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -667,9 +813,9 @@ func (m *awsRestxml_deserializeOpDeleteBucket) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorDeleteBucket(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorDeleteAccessPointPolicy(response, &metadata) } - output := &DeleteBucketOutput{} + output := &DeleteAccessPointPolicyOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -681,7 +827,7 @@ func (m *awsRestxml_deserializeOpDeleteBucket) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsRestxml_deserializeOpErrorDeleteBucket(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorDeleteAccessPointPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -721,14 +867,14 @@ func awsRestxml_deserializeOpErrorDeleteBucket(response *smithyhttp.Response, me } } -type awsRestxml_deserializeOpDeleteBucketLifecycleConfiguration struct { +type awsRestxml_deserializeOpDeleteAccessPointPolicyForObjectLambda struct { } -func (*awsRestxml_deserializeOpDeleteBucketLifecycleConfiguration) ID() string { +func (*awsRestxml_deserializeOpDeleteAccessPointPolicyForObjectLambda) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpDeleteBucketLifecycleConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpDeleteAccessPointPolicyForObjectLambda) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -742,9 +888,9 @@ func (m *awsRestxml_deserializeOpDeleteBucketLifecycleConfiguration) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorDeleteBucketLifecycleConfiguration(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorDeleteAccessPointPolicyForObjectLambda(response, &metadata) } - output := &DeleteBucketLifecycleConfigurationOutput{} + output := &DeleteAccessPointPolicyForObjectLambdaOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -756,7 +902,7 @@ func (m *awsRestxml_deserializeOpDeleteBucketLifecycleConfiguration) HandleDeser return out, metadata, err } -func awsRestxml_deserializeOpErrorDeleteBucketLifecycleConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorDeleteAccessPointPolicyForObjectLambda(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -796,14 +942,14 @@ func awsRestxml_deserializeOpErrorDeleteBucketLifecycleConfiguration(response *s } } -type awsRestxml_deserializeOpDeleteBucketPolicy struct { +type awsRestxml_deserializeOpDeleteBucket struct { } -func (*awsRestxml_deserializeOpDeleteBucketPolicy) ID() string { +func (*awsRestxml_deserializeOpDeleteBucket) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpDeleteBucketPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpDeleteBucket) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -817,9 +963,9 @@ func (m *awsRestxml_deserializeOpDeleteBucketPolicy) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorDeleteBucketPolicy(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorDeleteBucket(response, &metadata) } - output := &DeleteBucketPolicyOutput{} + output := &DeleteBucketOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -831,7 +977,7 @@ func (m *awsRestxml_deserializeOpDeleteBucketPolicy) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestxml_deserializeOpErrorDeleteBucketPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorDeleteBucket(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -871,14 +1017,14 @@ func awsRestxml_deserializeOpErrorDeleteBucketPolicy(response *smithyhttp.Respon } } -type awsRestxml_deserializeOpDeleteBucketTagging struct { +type awsRestxml_deserializeOpDeleteBucketLifecycleConfiguration struct { } -func (*awsRestxml_deserializeOpDeleteBucketTagging) ID() string { +func (*awsRestxml_deserializeOpDeleteBucketLifecycleConfiguration) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpDeleteBucketTagging) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpDeleteBucketLifecycleConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -892,9 +1038,9 @@ func (m *awsRestxml_deserializeOpDeleteBucketTagging) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorDeleteBucketTagging(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorDeleteBucketLifecycleConfiguration(response, &metadata) } - output := &DeleteBucketTaggingOutput{} + output := &DeleteBucketLifecycleConfigurationOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -906,7 +1052,7 @@ func (m *awsRestxml_deserializeOpDeleteBucketTagging) HandleDeserialize(ctx cont return out, metadata, err } -func awsRestxml_deserializeOpErrorDeleteBucketTagging(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorDeleteBucketLifecycleConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -946,14 +1092,14 @@ func awsRestxml_deserializeOpErrorDeleteBucketTagging(response *smithyhttp.Respo } } -type awsRestxml_deserializeOpDeleteJobTagging struct { +type awsRestxml_deserializeOpDeleteBucketPolicy struct { } -func (*awsRestxml_deserializeOpDeleteJobTagging) ID() string { +func (*awsRestxml_deserializeOpDeleteBucketPolicy) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpDeleteJobTagging) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpDeleteBucketPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -967,15 +1113,21 @@ func (m *awsRestxml_deserializeOpDeleteJobTagging) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorDeleteJobTagging(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorDeleteBucketPolicy(response, &metadata) } - output := &DeleteJobTaggingOutput{} + output := &DeleteBucketPolicyOutput{} out.Result = output + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + return out, metadata, err } -func awsRestxml_deserializeOpErrorDeleteJobTagging(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorDeleteBucketPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1005,15 +1157,6 @@ func awsRestxml_deserializeOpErrorDeleteJobTagging(response *smithyhttp.Response } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("InternalServiceException", errorCode): - return awsRestxml_deserializeErrorInternalServiceException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsRestxml_deserializeErrorNotFoundException(response, errorBody) - - case strings.EqualFold("TooManyRequestsException", errorCode): - return awsRestxml_deserializeErrorTooManyRequestsException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -1024,14 +1167,14 @@ func awsRestxml_deserializeOpErrorDeleteJobTagging(response *smithyhttp.Response } } -type awsRestxml_deserializeOpDeletePublicAccessBlock struct { +type awsRestxml_deserializeOpDeleteBucketTagging struct { } -func (*awsRestxml_deserializeOpDeletePublicAccessBlock) ID() string { +func (*awsRestxml_deserializeOpDeleteBucketTagging) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpDeletePublicAccessBlock) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpDeleteBucketTagging) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1045,9 +1188,9 @@ func (m *awsRestxml_deserializeOpDeletePublicAccessBlock) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorDeletePublicAccessBlock(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorDeleteBucketTagging(response, &metadata) } - output := &DeletePublicAccessBlockOutput{} + output := &DeleteBucketTaggingOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -1059,7 +1202,7 @@ func (m *awsRestxml_deserializeOpDeletePublicAccessBlock) HandleDeserialize(ctx return out, metadata, err } -func awsRestxml_deserializeOpErrorDeletePublicAccessBlock(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorDeleteBucketTagging(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1099,14 +1242,14 @@ func awsRestxml_deserializeOpErrorDeletePublicAccessBlock(response *smithyhttp.R } } -type awsRestxml_deserializeOpDeleteStorageLensConfiguration struct { +type awsRestxml_deserializeOpDeleteJobTagging struct { } -func (*awsRestxml_deserializeOpDeleteStorageLensConfiguration) ID() string { +func (*awsRestxml_deserializeOpDeleteJobTagging) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpDeleteStorageLensConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpDeleteJobTagging) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1120,21 +1263,15 @@ func (m *awsRestxml_deserializeOpDeleteStorageLensConfiguration) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorDeleteStorageLensConfiguration(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorDeleteJobTagging(response, &metadata) } - output := &DeleteStorageLensConfigurationOutput{} + output := &DeleteJobTaggingOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - return out, metadata, err } -func awsRestxml_deserializeOpErrorDeleteStorageLensConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorDeleteJobTagging(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1164,6 +1301,15 @@ func awsRestxml_deserializeOpErrorDeleteStorageLensConfiguration(response *smith } errorBody.Seek(0, io.SeekStart) switch { + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestxml_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("NotFoundException", errorCode): + return awsRestxml_deserializeErrorNotFoundException(response, errorBody) + + case strings.EqualFold("TooManyRequestsException", errorCode): + return awsRestxml_deserializeErrorTooManyRequestsException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -1174,14 +1320,14 @@ func awsRestxml_deserializeOpErrorDeleteStorageLensConfiguration(response *smith } } -type awsRestxml_deserializeOpDeleteStorageLensConfigurationTagging struct { +type awsRestxml_deserializeOpDeletePublicAccessBlock struct { } -func (*awsRestxml_deserializeOpDeleteStorageLensConfigurationTagging) ID() string { +func (*awsRestxml_deserializeOpDeletePublicAccessBlock) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpDeleteStorageLensConfigurationTagging) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpDeletePublicAccessBlock) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1195,7 +1341,157 @@ func (m *awsRestxml_deserializeOpDeleteStorageLensConfigurationTagging) HandleDe } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorDeleteStorageLensConfigurationTagging(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorDeletePublicAccessBlock(response, &metadata) + } + output := &DeletePublicAccessBlockOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorDeletePublicAccessBlock(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := s3shared.GetErrorResponseComponents(errorBody, s3shared.ErrorResponseDeserializerOptions{ + IsWrappedWithErrorTag: true, + }) + if err != nil { + return err + } + if hostID := errorComponents.HostID; len(hostID) != 0 { + s3shared.SetHostIDMetadata(metadata, hostID) + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestxml_deserializeOpDeleteStorageLensConfiguration struct { +} + +func (*awsRestxml_deserializeOpDeleteStorageLensConfiguration) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpDeleteStorageLensConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestxml_deserializeOpErrorDeleteStorageLensConfiguration(response, &metadata) + } + output := &DeleteStorageLensConfigurationOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorDeleteStorageLensConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := s3shared.GetErrorResponseComponents(errorBody, s3shared.ErrorResponseDeserializerOptions{ + IsWrappedWithErrorTag: true, + }) + if err != nil { + return err + } + if hostID := errorComponents.HostID; len(hostID) != 0 { + s3shared.SetHostIDMetadata(metadata, hostID) + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestxml_deserializeOpDeleteStorageLensConfigurationTagging struct { +} + +func (*awsRestxml_deserializeOpDeleteStorageLensConfigurationTagging) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpDeleteStorageLensConfigurationTagging) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestxml_deserializeOpErrorDeleteStorageLensConfigurationTagging(response, &metadata) } output := &DeleteStorageLensConfigurationTaggingOutput{} out.Result = output @@ -1595,14 +1891,14 @@ func awsRestxml_deserializeOpDocumentGetAccessPointOutput(v **GetAccessPointOutp return nil } -type awsRestxml_deserializeOpGetAccessPointPolicy struct { +type awsRestxml_deserializeOpGetAccessPointConfigurationForObjectLambda struct { } -func (*awsRestxml_deserializeOpGetAccessPointPolicy) ID() string { +func (*awsRestxml_deserializeOpGetAccessPointConfigurationForObjectLambda) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpGetAccessPointPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpGetAccessPointConfigurationForObjectLambda) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1616,9 +1912,9 @@ func (m *awsRestxml_deserializeOpGetAccessPointPolicy) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorGetAccessPointPolicy(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorGetAccessPointConfigurationForObjectLambda(response, &metadata) } - output := &GetAccessPointPolicyOutput{} + output := &GetAccessPointConfigurationForObjectLambdaOutput{} out.Result = output var buff [1024]byte @@ -1639,7 +1935,7 @@ func (m *awsRestxml_deserializeOpGetAccessPointPolicy) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeOpDocumentGetAccessPointPolicyOutput(&output, decoder) + err = awsRestxml_deserializeOpDocumentGetAccessPointConfigurationForObjectLambdaOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1652,7 +1948,7 @@ func (m *awsRestxml_deserializeOpGetAccessPointPolicy) HandleDeserialize(ctx con return out, metadata, err } -func awsRestxml_deserializeOpErrorGetAccessPointPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorGetAccessPointConfigurationForObjectLambda(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1692,13 +1988,13 @@ func awsRestxml_deserializeOpErrorGetAccessPointPolicy(response *smithyhttp.Resp } } -func awsRestxml_deserializeOpDocumentGetAccessPointPolicyOutput(v **GetAccessPointPolicyOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentGetAccessPointConfigurationForObjectLambdaOutput(v **GetAccessPointConfigurationForObjectLambdaOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *GetAccessPointPolicyOutput + var sv *GetAccessPointConfigurationForObjectLambdaOutput if *v == nil { - sv = &GetAccessPointPolicyOutput{} + sv = &GetAccessPointConfigurationForObjectLambdaOutput{} } else { sv = *v } @@ -1714,18 +2010,11 @@ func awsRestxml_deserializeOpDocumentGetAccessPointPolicyOutput(v **GetAccessPoi originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Policy", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("Configuration", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentObjectLambdaConfiguration(&sv.Configuration, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Policy = ptr.String(xtv) - } default: // Do nothing and ignore the unexpected tag element @@ -1741,14 +2030,14 @@ func awsRestxml_deserializeOpDocumentGetAccessPointPolicyOutput(v **GetAccessPoi return nil } -type awsRestxml_deserializeOpGetAccessPointPolicyStatus struct { +type awsRestxml_deserializeOpGetAccessPointForObjectLambda struct { } -func (*awsRestxml_deserializeOpGetAccessPointPolicyStatus) ID() string { +func (*awsRestxml_deserializeOpGetAccessPointForObjectLambda) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpGetAccessPointPolicyStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpGetAccessPointForObjectLambda) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1762,9 +2051,9 @@ func (m *awsRestxml_deserializeOpGetAccessPointPolicyStatus) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorGetAccessPointPolicyStatus(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorGetAccessPointForObjectLambda(response, &metadata) } - output := &GetAccessPointPolicyStatusOutput{} + output := &GetAccessPointForObjectLambdaOutput{} out.Result = output var buff [1024]byte @@ -1785,7 +2074,7 @@ func (m *awsRestxml_deserializeOpGetAccessPointPolicyStatus) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeOpDocumentGetAccessPointPolicyStatusOutput(&output, decoder) + err = awsRestxml_deserializeOpDocumentGetAccessPointForObjectLambdaOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1798,7 +2087,7 @@ func (m *awsRestxml_deserializeOpGetAccessPointPolicyStatus) HandleDeserialize(c return out, metadata, err } -func awsRestxml_deserializeOpErrorGetAccessPointPolicyStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorGetAccessPointForObjectLambda(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1838,13 +2127,13 @@ func awsRestxml_deserializeOpErrorGetAccessPointPolicyStatus(response *smithyhtt } } -func awsRestxml_deserializeOpDocumentGetAccessPointPolicyStatusOutput(v **GetAccessPointPolicyStatusOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentGetAccessPointForObjectLambdaOutput(v **GetAccessPointForObjectLambdaOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *GetAccessPointPolicyStatusOutput + var sv *GetAccessPointForObjectLambdaOutput if *v == nil { - sv = &GetAccessPointPolicyStatusOutput{} + sv = &GetAccessPointForObjectLambdaOutput{} } else { sv = *v } @@ -1860,9 +2149,39 @@ func awsRestxml_deserializeOpDocumentGetAccessPointPolicyStatusOutput(v **GetAcc originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("PolicyStatus", t.Name.Local): + case strings.EqualFold("CreationDate", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.CreationDate = ptr.Time(t) + } + + case strings.EqualFold("Name", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Name = ptr.String(xtv) + } + + case strings.EqualFold("PublicAccessBlockConfiguration", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentPolicyStatus(&sv.PolicyStatus, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentPublicAccessBlockConfiguration(&sv.PublicAccessBlockConfiguration, nodeDecoder); err != nil { return err } @@ -1880,14 +2199,14 @@ func awsRestxml_deserializeOpDocumentGetAccessPointPolicyStatusOutput(v **GetAcc return nil } -type awsRestxml_deserializeOpGetBucket struct { +type awsRestxml_deserializeOpGetAccessPointPolicy struct { } -func (*awsRestxml_deserializeOpGetBucket) ID() string { +func (*awsRestxml_deserializeOpGetAccessPointPolicy) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpGetBucket) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpGetAccessPointPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1901,9 +2220,9 @@ func (m *awsRestxml_deserializeOpGetBucket) HandleDeserialize(ctx context.Contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorGetBucket(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorGetAccessPointPolicy(response, &metadata) } - output := &GetBucketOutput{} + output := &GetAccessPointPolicyOutput{} out.Result = output var buff [1024]byte @@ -1924,7 +2243,7 @@ func (m *awsRestxml_deserializeOpGetBucket) HandleDeserialize(ctx context.Contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeOpDocumentGetBucketOutput(&output, decoder) + err = awsRestxml_deserializeOpDocumentGetAccessPointPolicyOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1937,7 +2256,7 @@ func (m *awsRestxml_deserializeOpGetBucket) HandleDeserialize(ctx context.Contex return out, metadata, err } -func awsRestxml_deserializeOpErrorGetBucket(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorGetAccessPointPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1977,13 +2296,13 @@ func awsRestxml_deserializeOpErrorGetBucket(response *smithyhttp.Response, metad } } -func awsRestxml_deserializeOpDocumentGetBucketOutput(v **GetBucketOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentGetAccessPointPolicyOutput(v **GetAccessPointPolicyOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *GetBucketOutput + var sv *GetAccessPointPolicyOutput if *v == nil { - sv = &GetBucketOutput{} + sv = &GetAccessPointPolicyOutput{} } else { sv = *v } @@ -1999,7 +2318,7 @@ func awsRestxml_deserializeOpDocumentGetBucketOutput(v **GetBucketOutput, decode originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Bucket", t.Name.Local): + case strings.EqualFold("Policy", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -2009,45 +2328,12 @@ func awsRestxml_deserializeOpDocumentGetBucketOutput(v **GetBucketOutput, decode } { xtv := string(val) - sv.Bucket = ptr.String(xtv) + sv.Policy = ptr.String(xtv) } - case strings.EqualFold("CreationDate", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.CreationDate = ptr.Time(t) - } - - case strings.EqualFold("PublicAccessBlockEnabled", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected PublicAccessBlockEnabled to be of type *bool, got %T instead", val) - } - sv.PublicAccessBlockEnabled = xtv - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } @@ -2059,14 +2345,14 @@ func awsRestxml_deserializeOpDocumentGetBucketOutput(v **GetBucketOutput, decode return nil } -type awsRestxml_deserializeOpGetBucketLifecycleConfiguration struct { +type awsRestxml_deserializeOpGetAccessPointPolicyForObjectLambda struct { } -func (*awsRestxml_deserializeOpGetBucketLifecycleConfiguration) ID() string { +func (*awsRestxml_deserializeOpGetAccessPointPolicyForObjectLambda) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpGetBucketLifecycleConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpGetAccessPointPolicyForObjectLambda) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2080,9 +2366,9 @@ func (m *awsRestxml_deserializeOpGetBucketLifecycleConfiguration) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorGetBucketLifecycleConfiguration(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorGetAccessPointPolicyForObjectLambda(response, &metadata) } - output := &GetBucketLifecycleConfigurationOutput{} + output := &GetAccessPointPolicyForObjectLambdaOutput{} out.Result = output var buff [1024]byte @@ -2103,7 +2389,7 @@ func (m *awsRestxml_deserializeOpGetBucketLifecycleConfiguration) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeOpDocumentGetBucketLifecycleConfigurationOutput(&output, decoder) + err = awsRestxml_deserializeOpDocumentGetAccessPointPolicyForObjectLambdaOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2116,7 +2402,7 @@ func (m *awsRestxml_deserializeOpGetBucketLifecycleConfiguration) HandleDeserial return out, metadata, err } -func awsRestxml_deserializeOpErrorGetBucketLifecycleConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorGetAccessPointPolicyForObjectLambda(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2156,13 +2442,13 @@ func awsRestxml_deserializeOpErrorGetBucketLifecycleConfiguration(response *smit } } -func awsRestxml_deserializeOpDocumentGetBucketLifecycleConfigurationOutput(v **GetBucketLifecycleConfigurationOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentGetAccessPointPolicyForObjectLambdaOutput(v **GetAccessPointPolicyForObjectLambdaOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *GetBucketLifecycleConfigurationOutput + var sv *GetAccessPointPolicyForObjectLambdaOutput if *v == nil { - sv = &GetBucketLifecycleConfigurationOutput{} + sv = &GetAccessPointPolicyForObjectLambdaOutput{} } else { sv = *v } @@ -2178,11 +2464,18 @@ func awsRestxml_deserializeOpDocumentGetBucketLifecycleConfigurationOutput(v **G originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Rules", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentLifecycleRules(&sv.Rules, nodeDecoder); err != nil { + case strings.EqualFold("Policy", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.Policy = ptr.String(xtv) + } default: // Do nothing and ignore the unexpected tag element @@ -2198,14 +2491,14 @@ func awsRestxml_deserializeOpDocumentGetBucketLifecycleConfigurationOutput(v **G return nil } -type awsRestxml_deserializeOpGetBucketPolicy struct { +type awsRestxml_deserializeOpGetAccessPointPolicyStatus struct { } -func (*awsRestxml_deserializeOpGetBucketPolicy) ID() string { +func (*awsRestxml_deserializeOpGetAccessPointPolicyStatus) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpGetBucketPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpGetAccessPointPolicyStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2219,9 +2512,9 @@ func (m *awsRestxml_deserializeOpGetBucketPolicy) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorGetBucketPolicy(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorGetAccessPointPolicyStatus(response, &metadata) } - output := &GetBucketPolicyOutput{} + output := &GetAccessPointPolicyStatusOutput{} out.Result = output var buff [1024]byte @@ -2242,7 +2535,7 @@ func (m *awsRestxml_deserializeOpGetBucketPolicy) HandleDeserialize(ctx context. } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeOpDocumentGetBucketPolicyOutput(&output, decoder) + err = awsRestxml_deserializeOpDocumentGetAccessPointPolicyStatusOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2255,7 +2548,7 @@ func (m *awsRestxml_deserializeOpGetBucketPolicy) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestxml_deserializeOpErrorGetBucketPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorGetAccessPointPolicyStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2295,13 +2588,13 @@ func awsRestxml_deserializeOpErrorGetBucketPolicy(response *smithyhttp.Response, } } -func awsRestxml_deserializeOpDocumentGetBucketPolicyOutput(v **GetBucketPolicyOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentGetAccessPointPolicyStatusOutput(v **GetAccessPointPolicyStatusOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *GetBucketPolicyOutput + var sv *GetAccessPointPolicyStatusOutput if *v == nil { - sv = &GetBucketPolicyOutput{} + sv = &GetAccessPointPolicyStatusOutput{} } else { sv = *v } @@ -2317,18 +2610,11 @@ func awsRestxml_deserializeOpDocumentGetBucketPolicyOutput(v **GetBucketPolicyOu originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Policy", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("PolicyStatus", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentPolicyStatus(&sv.PolicyStatus, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Policy = ptr.String(xtv) - } default: // Do nothing and ignore the unexpected tag element @@ -2344,14 +2630,14 @@ func awsRestxml_deserializeOpDocumentGetBucketPolicyOutput(v **GetBucketPolicyOu return nil } -type awsRestxml_deserializeOpGetBucketTagging struct { +type awsRestxml_deserializeOpGetAccessPointPolicyStatusForObjectLambda struct { } -func (*awsRestxml_deserializeOpGetBucketTagging) ID() string { +func (*awsRestxml_deserializeOpGetAccessPointPolicyStatusForObjectLambda) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpGetBucketTagging) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpGetAccessPointPolicyStatusForObjectLambda) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2365,9 +2651,9 @@ func (m *awsRestxml_deserializeOpGetBucketTagging) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorGetBucketTagging(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorGetAccessPointPolicyStatusForObjectLambda(response, &metadata) } - output := &GetBucketTaggingOutput{} + output := &GetAccessPointPolicyStatusForObjectLambdaOutput{} out.Result = output var buff [1024]byte @@ -2388,7 +2674,7 @@ func (m *awsRestxml_deserializeOpGetBucketTagging) HandleDeserialize(ctx context } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeOpDocumentGetBucketTaggingOutput(&output, decoder) + err = awsRestxml_deserializeOpDocumentGetAccessPointPolicyStatusForObjectLambdaOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2401,7 +2687,7 @@ func (m *awsRestxml_deserializeOpGetBucketTagging) HandleDeserialize(ctx context return out, metadata, err } -func awsRestxml_deserializeOpErrorGetBucketTagging(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorGetAccessPointPolicyStatusForObjectLambda(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2441,13 +2727,13 @@ func awsRestxml_deserializeOpErrorGetBucketTagging(response *smithyhttp.Response } } -func awsRestxml_deserializeOpDocumentGetBucketTaggingOutput(v **GetBucketTaggingOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentGetAccessPointPolicyStatusForObjectLambdaOutput(v **GetAccessPointPolicyStatusForObjectLambdaOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *GetBucketTaggingOutput + var sv *GetAccessPointPolicyStatusForObjectLambdaOutput if *v == nil { - sv = &GetBucketTaggingOutput{} + sv = &GetAccessPointPolicyStatusForObjectLambdaOutput{} } else { sv = *v } @@ -2463,9 +2749,9 @@ func awsRestxml_deserializeOpDocumentGetBucketTaggingOutput(v **GetBucketTagging originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("TagSet", t.Name.Local): + case strings.EqualFold("PolicyStatus", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentS3TagSet(&sv.TagSet, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentPolicyStatus(&sv.PolicyStatus, nodeDecoder); err != nil { return err } @@ -2483,14 +2769,14 @@ func awsRestxml_deserializeOpDocumentGetBucketTaggingOutput(v **GetBucketTagging return nil } -type awsRestxml_deserializeOpGetJobTagging struct { +type awsRestxml_deserializeOpGetBucket struct { } -func (*awsRestxml_deserializeOpGetJobTagging) ID() string { +func (*awsRestxml_deserializeOpGetBucket) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpGetJobTagging) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpGetBucket) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2504,9 +2790,9 @@ func (m *awsRestxml_deserializeOpGetJobTagging) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorGetJobTagging(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorGetBucket(response, &metadata) } - output := &GetJobTaggingOutput{} + output := &GetBucketOutput{} out.Result = output var buff [1024]byte @@ -2527,7 +2813,7 @@ func (m *awsRestxml_deserializeOpGetJobTagging) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeOpDocumentGetJobTaggingOutput(&output, decoder) + err = awsRestxml_deserializeOpDocumentGetBucketOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2540,7 +2826,7 @@ func (m *awsRestxml_deserializeOpGetJobTagging) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsRestxml_deserializeOpErrorGetJobTagging(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorGetBucket(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2570,15 +2856,6 @@ func awsRestxml_deserializeOpErrorGetJobTagging(response *smithyhttp.Response, m } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("InternalServiceException", errorCode): - return awsRestxml_deserializeErrorInternalServiceException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsRestxml_deserializeErrorNotFoundException(response, errorBody) - - case strings.EqualFold("TooManyRequestsException", errorCode): - return awsRestxml_deserializeErrorTooManyRequestsException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -2589,13 +2866,13 @@ func awsRestxml_deserializeOpErrorGetJobTagging(response *smithyhttp.Response, m } } -func awsRestxml_deserializeOpDocumentGetJobTaggingOutput(v **GetJobTaggingOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentGetBucketOutput(v **GetBucketOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *GetJobTaggingOutput + var sv *GetBucketOutput if *v == nil { - sv = &GetJobTaggingOutput{} + sv = &GetBucketOutput{} } else { sv = *v } @@ -2611,11 +2888,51 @@ func awsRestxml_deserializeOpDocumentGetJobTaggingOutput(v **GetJobTaggingOutput originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Tags", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentS3TagSet(&sv.Tags, nodeDecoder); err != nil { + case strings.EqualFold("Bucket", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Bucket = ptr.String(xtv) + } + + case strings.EqualFold("CreationDate", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.CreationDate = ptr.Time(t) + } + + case strings.EqualFold("PublicAccessBlockEnabled", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected PublicAccessBlockEnabled to be of type *bool, got %T instead", val) + } + sv.PublicAccessBlockEnabled = xtv + } default: // Do nothing and ignore the unexpected tag element @@ -2631,14 +2948,14 @@ func awsRestxml_deserializeOpDocumentGetJobTaggingOutput(v **GetJobTaggingOutput return nil } -type awsRestxml_deserializeOpGetPublicAccessBlock struct { +type awsRestxml_deserializeOpGetBucketLifecycleConfiguration struct { } -func (*awsRestxml_deserializeOpGetPublicAccessBlock) ID() string { +func (*awsRestxml_deserializeOpGetBucketLifecycleConfiguration) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpGetPublicAccessBlock) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpGetBucketLifecycleConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2652,9 +2969,9 @@ func (m *awsRestxml_deserializeOpGetPublicAccessBlock) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorGetPublicAccessBlock(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorGetBucketLifecycleConfiguration(response, &metadata) } - output := &GetPublicAccessBlockOutput{} + output := &GetBucketLifecycleConfigurationOutput{} out.Result = output var buff [1024]byte @@ -2675,7 +2992,7 @@ func (m *awsRestxml_deserializeOpGetPublicAccessBlock) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentPublicAccessBlockConfiguration(&output.PublicAccessBlockConfiguration, decoder) + err = awsRestxml_deserializeOpDocumentGetBucketLifecycleConfigurationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2688,7 +3005,7 @@ func (m *awsRestxml_deserializeOpGetPublicAccessBlock) HandleDeserialize(ctx con return out, metadata, err } -func awsRestxml_deserializeOpErrorGetPublicAccessBlock(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorGetBucketLifecycleConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2718,9 +3035,6 @@ func awsRestxml_deserializeOpErrorGetPublicAccessBlock(response *smithyhttp.Resp } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("NoSuchPublicAccessBlockConfiguration", errorCode): - return awsRestxml_deserializeErrorNoSuchPublicAccessBlockConfiguration(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -2731,13 +3045,13 @@ func awsRestxml_deserializeOpErrorGetPublicAccessBlock(response *smithyhttp.Resp } } -func awsRestxml_deserializeOpDocumentGetPublicAccessBlockOutput(v **GetPublicAccessBlockOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentGetBucketLifecycleConfigurationOutput(v **GetBucketLifecycleConfigurationOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *GetPublicAccessBlockOutput + var sv *GetBucketLifecycleConfigurationOutput if *v == nil { - sv = &GetPublicAccessBlockOutput{} + sv = &GetBucketLifecycleConfigurationOutput{} } else { sv = *v } @@ -2753,9 +3067,9 @@ func awsRestxml_deserializeOpDocumentGetPublicAccessBlockOutput(v **GetPublicAcc originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("PublicAccessBlockConfiguration", t.Name.Local): + case strings.EqualFold("Rules", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentPublicAccessBlockConfiguration(&sv.PublicAccessBlockConfiguration, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentLifecycleRules(&sv.Rules, nodeDecoder); err != nil { return err } @@ -2773,14 +3087,14 @@ func awsRestxml_deserializeOpDocumentGetPublicAccessBlockOutput(v **GetPublicAcc return nil } -type awsRestxml_deserializeOpGetStorageLensConfiguration struct { +type awsRestxml_deserializeOpGetBucketPolicy struct { } -func (*awsRestxml_deserializeOpGetStorageLensConfiguration) ID() string { +func (*awsRestxml_deserializeOpGetBucketPolicy) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpGetStorageLensConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpGetBucketPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2794,9 +3108,9 @@ func (m *awsRestxml_deserializeOpGetStorageLensConfiguration) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorGetStorageLensConfiguration(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorGetBucketPolicy(response, &metadata) } - output := &GetStorageLensConfigurationOutput{} + output := &GetBucketPolicyOutput{} out.Result = output var buff [1024]byte @@ -2817,7 +3131,7 @@ func (m *awsRestxml_deserializeOpGetStorageLensConfiguration) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentStorageLensConfiguration(&output.StorageLensConfiguration, decoder) + err = awsRestxml_deserializeOpDocumentGetBucketPolicyOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2830,7 +3144,7 @@ func (m *awsRestxml_deserializeOpGetStorageLensConfiguration) HandleDeserialize( return out, metadata, err } -func awsRestxml_deserializeOpErrorGetStorageLensConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorGetBucketPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2870,13 +3184,13 @@ func awsRestxml_deserializeOpErrorGetStorageLensConfiguration(response *smithyht } } -func awsRestxml_deserializeOpDocumentGetStorageLensConfigurationOutput(v **GetStorageLensConfigurationOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentGetBucketPolicyOutput(v **GetBucketPolicyOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *GetStorageLensConfigurationOutput + var sv *GetBucketPolicyOutput if *v == nil { - sv = &GetStorageLensConfigurationOutput{} + sv = &GetBucketPolicyOutput{} } else { sv = *v } @@ -2892,11 +3206,18 @@ func awsRestxml_deserializeOpDocumentGetStorageLensConfigurationOutput(v **GetSt originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("StorageLensConfiguration", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentStorageLensConfiguration(&sv.StorageLensConfiguration, nodeDecoder); err != nil { + case strings.EqualFold("Policy", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.Policy = ptr.String(xtv) + } default: // Do nothing and ignore the unexpected tag element @@ -2912,14 +3233,14 @@ func awsRestxml_deserializeOpDocumentGetStorageLensConfigurationOutput(v **GetSt return nil } -type awsRestxml_deserializeOpGetStorageLensConfigurationTagging struct { +type awsRestxml_deserializeOpGetBucketTagging struct { } -func (*awsRestxml_deserializeOpGetStorageLensConfigurationTagging) ID() string { +func (*awsRestxml_deserializeOpGetBucketTagging) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpGetStorageLensConfigurationTagging) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpGetBucketTagging) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2933,9 +3254,9 @@ func (m *awsRestxml_deserializeOpGetStorageLensConfigurationTagging) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorGetStorageLensConfigurationTagging(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorGetBucketTagging(response, &metadata) } - output := &GetStorageLensConfigurationTaggingOutput{} + output := &GetBucketTaggingOutput{} out.Result = output var buff [1024]byte @@ -2956,7 +3277,7 @@ func (m *awsRestxml_deserializeOpGetStorageLensConfigurationTagging) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeOpDocumentGetStorageLensConfigurationTaggingOutput(&output, decoder) + err = awsRestxml_deserializeOpDocumentGetBucketTaggingOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2969,7 +3290,7 @@ func (m *awsRestxml_deserializeOpGetStorageLensConfigurationTagging) HandleDeser return out, metadata, err } -func awsRestxml_deserializeOpErrorGetStorageLensConfigurationTagging(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorGetBucketTagging(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3009,13 +3330,13 @@ func awsRestxml_deserializeOpErrorGetStorageLensConfigurationTagging(response *s } } -func awsRestxml_deserializeOpDocumentGetStorageLensConfigurationTaggingOutput(v **GetStorageLensConfigurationTaggingOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentGetBucketTaggingOutput(v **GetBucketTaggingOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *GetStorageLensConfigurationTaggingOutput + var sv *GetBucketTaggingOutput if *v == nil { - sv = &GetStorageLensConfigurationTaggingOutput{} + sv = &GetBucketTaggingOutput{} } else { sv = *v } @@ -3031,9 +3352,9 @@ func awsRestxml_deserializeOpDocumentGetStorageLensConfigurationTaggingOutput(v originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Tags", t.Name.Local): + case strings.EqualFold("TagSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentStorageLensTags(&sv.Tags, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentS3TagSet(&sv.TagSet, nodeDecoder); err != nil { return err } @@ -3051,14 +3372,14 @@ func awsRestxml_deserializeOpDocumentGetStorageLensConfigurationTaggingOutput(v return nil } -type awsRestxml_deserializeOpListAccessPoints struct { +type awsRestxml_deserializeOpGetJobTagging struct { } -func (*awsRestxml_deserializeOpListAccessPoints) ID() string { +func (*awsRestxml_deserializeOpGetJobTagging) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListAccessPoints) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpGetJobTagging) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3072,9 +3393,9 @@ func (m *awsRestxml_deserializeOpListAccessPoints) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListAccessPoints(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorGetJobTagging(response, &metadata) } - output := &ListAccessPointsOutput{} + output := &GetJobTaggingOutput{} out.Result = output var buff [1024]byte @@ -3095,7 +3416,7 @@ func (m *awsRestxml_deserializeOpListAccessPoints) HandleDeserialize(ctx context } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeOpDocumentListAccessPointsOutput(&output, decoder) + err = awsRestxml_deserializeOpDocumentGetJobTaggingOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3108,7 +3429,7 @@ func (m *awsRestxml_deserializeOpListAccessPoints) HandleDeserialize(ctx context return out, metadata, err } -func awsRestxml_deserializeOpErrorListAccessPoints(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorGetJobTagging(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3138,6 +3459,15 @@ func awsRestxml_deserializeOpErrorListAccessPoints(response *smithyhttp.Response } errorBody.Seek(0, io.SeekStart) switch { + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestxml_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("NotFoundException", errorCode): + return awsRestxml_deserializeErrorNotFoundException(response, errorBody) + + case strings.EqualFold("TooManyRequestsException", errorCode): + return awsRestxml_deserializeErrorTooManyRequestsException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -3148,13 +3478,13 @@ func awsRestxml_deserializeOpErrorListAccessPoints(response *smithyhttp.Response } } -func awsRestxml_deserializeOpDocumentListAccessPointsOutput(v **ListAccessPointsOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentGetJobTaggingOutput(v **GetJobTaggingOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListAccessPointsOutput + var sv *GetJobTaggingOutput if *v == nil { - sv = &ListAccessPointsOutput{} + sv = &GetJobTaggingOutput{} } else { sv = *v } @@ -3170,24 +3500,11 @@ func awsRestxml_deserializeOpDocumentListAccessPointsOutput(v **ListAccessPoints originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("AccessPointList", t.Name.Local): + case strings.EqualFold("Tags", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentAccessPointList(&sv.AccessPointList, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("NextToken", t.Name.Local): - val, err := decoder.Value() - if err != nil { + if err := awsRestxml_deserializeDocumentS3TagSet(&sv.Tags, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.NextToken = ptr.String(xtv) - } default: // Do nothing and ignore the unexpected tag element @@ -3203,14 +3520,14 @@ func awsRestxml_deserializeOpDocumentListAccessPointsOutput(v **ListAccessPoints return nil } -type awsRestxml_deserializeOpListJobs struct { +type awsRestxml_deserializeOpGetPublicAccessBlock struct { } -func (*awsRestxml_deserializeOpListJobs) ID() string { +func (*awsRestxml_deserializeOpGetPublicAccessBlock) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpGetPublicAccessBlock) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3224,9 +3541,9 @@ func (m *awsRestxml_deserializeOpListJobs) HandleDeserialize(ctx context.Context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListJobs(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorGetPublicAccessBlock(response, &metadata) } - output := &ListJobsOutput{} + output := &GetPublicAccessBlockOutput{} out.Result = output var buff [1024]byte @@ -3247,7 +3564,7 @@ func (m *awsRestxml_deserializeOpListJobs) HandleDeserialize(ctx context.Context } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeOpDocumentListJobsOutput(&output, decoder) + err = awsRestxml_deserializeDocumentPublicAccessBlockConfiguration(&output.PublicAccessBlockConfiguration, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3260,7 +3577,7 @@ func (m *awsRestxml_deserializeOpListJobs) HandleDeserialize(ctx context.Context return out, metadata, err } -func awsRestxml_deserializeOpErrorListJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorGetPublicAccessBlock(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3290,14 +3607,8 @@ func awsRestxml_deserializeOpErrorListJobs(response *smithyhttp.Response, metada } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("InternalServiceException", errorCode): - return awsRestxml_deserializeErrorInternalServiceException(response, errorBody) - - case strings.EqualFold("InvalidNextTokenException", errorCode): - return awsRestxml_deserializeErrorInvalidNextTokenException(response, errorBody) - - case strings.EqualFold("InvalidRequestException", errorCode): - return awsRestxml_deserializeErrorInvalidRequestException(response, errorBody) + case strings.EqualFold("NoSuchPublicAccessBlockConfiguration", errorCode): + return awsRestxml_deserializeErrorNoSuchPublicAccessBlockConfiguration(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -3309,13 +3620,13 @@ func awsRestxml_deserializeOpErrorListJobs(response *smithyhttp.Response, metada } } -func awsRestxml_deserializeOpDocumentListJobsOutput(v **ListJobsOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentGetPublicAccessBlockOutput(v **GetPublicAccessBlockOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListJobsOutput + var sv *GetPublicAccessBlockOutput if *v == nil { - sv = &ListJobsOutput{} + sv = &GetPublicAccessBlockOutput{} } else { sv = *v } @@ -3331,24 +3642,11 @@ func awsRestxml_deserializeOpDocumentListJobsOutput(v **ListJobsOutput, decoder originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Jobs", t.Name.Local): + case strings.EqualFold("PublicAccessBlockConfiguration", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentJobListDescriptorList(&sv.Jobs, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("NextToken", t.Name.Local): - val, err := decoder.Value() - if err != nil { + if err := awsRestxml_deserializeDocumentPublicAccessBlockConfiguration(&sv.PublicAccessBlockConfiguration, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.NextToken = ptr.String(xtv) - } default: // Do nothing and ignore the unexpected tag element @@ -3364,14 +3662,14 @@ func awsRestxml_deserializeOpDocumentListJobsOutput(v **ListJobsOutput, decoder return nil } -type awsRestxml_deserializeOpListRegionalBuckets struct { +type awsRestxml_deserializeOpGetStorageLensConfiguration struct { } -func (*awsRestxml_deserializeOpListRegionalBuckets) ID() string { +func (*awsRestxml_deserializeOpGetStorageLensConfiguration) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListRegionalBuckets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpGetStorageLensConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3385,9 +3683,9 @@ func (m *awsRestxml_deserializeOpListRegionalBuckets) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListRegionalBuckets(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorGetStorageLensConfiguration(response, &metadata) } - output := &ListRegionalBucketsOutput{} + output := &GetStorageLensConfigurationOutput{} out.Result = output var buff [1024]byte @@ -3408,7 +3706,7 @@ func (m *awsRestxml_deserializeOpListRegionalBuckets) HandleDeserialize(ctx cont } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeOpDocumentListRegionalBucketsOutput(&output, decoder) + err = awsRestxml_deserializeDocumentStorageLensConfiguration(&output.StorageLensConfiguration, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3421,7 +3719,7 @@ func (m *awsRestxml_deserializeOpListRegionalBuckets) HandleDeserialize(ctx cont return out, metadata, err } -func awsRestxml_deserializeOpErrorListRegionalBuckets(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorGetStorageLensConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3461,13 +3759,13 @@ func awsRestxml_deserializeOpErrorListRegionalBuckets(response *smithyhttp.Respo } } -func awsRestxml_deserializeOpDocumentListRegionalBucketsOutput(v **ListRegionalBucketsOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentGetStorageLensConfigurationOutput(v **GetStorageLensConfigurationOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListRegionalBucketsOutput + var sv *GetStorageLensConfigurationOutput if *v == nil { - sv = &ListRegionalBucketsOutput{} + sv = &GetStorageLensConfigurationOutput{} } else { sv = *v } @@ -3483,22 +3781,9 @@ func awsRestxml_deserializeOpDocumentListRegionalBucketsOutput(v **ListRegionalB originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("NextToken", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NextToken = ptr.String(xtv) - } - - case strings.EqualFold("RegionalBucketList", t.Name.Local): + case strings.EqualFold("StorageLensConfiguration", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentRegionalBucketList(&sv.RegionalBucketList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentStorageLensConfiguration(&sv.StorageLensConfiguration, nodeDecoder); err != nil { return err } @@ -3516,14 +3801,14 @@ func awsRestxml_deserializeOpDocumentListRegionalBucketsOutput(v **ListRegionalB return nil } -type awsRestxml_deserializeOpListStorageLensConfigurations struct { +type awsRestxml_deserializeOpGetStorageLensConfigurationTagging struct { } -func (*awsRestxml_deserializeOpListStorageLensConfigurations) ID() string { +func (*awsRestxml_deserializeOpGetStorageLensConfigurationTagging) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListStorageLensConfigurations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpGetStorageLensConfigurationTagging) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3537,9 +3822,9 @@ func (m *awsRestxml_deserializeOpListStorageLensConfigurations) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListStorageLensConfigurations(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorGetStorageLensConfigurationTagging(response, &metadata) } - output := &ListStorageLensConfigurationsOutput{} + output := &GetStorageLensConfigurationTaggingOutput{} out.Result = output var buff [1024]byte @@ -3560,7 +3845,7 @@ func (m *awsRestxml_deserializeOpListStorageLensConfigurations) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeOpDocumentListStorageLensConfigurationsOutput(&output, decoder) + err = awsRestxml_deserializeOpDocumentGetStorageLensConfigurationTaggingOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3573,7 +3858,7 @@ func (m *awsRestxml_deserializeOpListStorageLensConfigurations) HandleDeserializ return out, metadata, err } -func awsRestxml_deserializeOpErrorListStorageLensConfigurations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorGetStorageLensConfigurationTagging(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3613,13 +3898,13 @@ func awsRestxml_deserializeOpErrorListStorageLensConfigurations(response *smithy } } -func awsRestxml_deserializeOpDocumentListStorageLensConfigurationsOutput(v **ListStorageLensConfigurationsOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentGetStorageLensConfigurationTaggingOutput(v **GetStorageLensConfigurationTaggingOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListStorageLensConfigurationsOutput + var sv *GetStorageLensConfigurationTaggingOutput if *v == nil { - sv = &ListStorageLensConfigurationsOutput{} + sv = &GetStorageLensConfigurationTaggingOutput{} } else { sv = *v } @@ -3635,22 +3920,9 @@ func awsRestxml_deserializeOpDocumentListStorageLensConfigurationsOutput(v **Lis originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("NextToken", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NextToken = ptr.String(xtv) - } - - case strings.EqualFold("StorageLensConfigurationList", t.Name.Local): + case strings.EqualFold("Tags", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentStorageLensConfigurationListUnwrapped(&sv.StorageLensConfigurationList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentStorageLensTags(&sv.Tags, nodeDecoder); err != nil { return err } @@ -3668,14 +3940,14 @@ func awsRestxml_deserializeOpDocumentListStorageLensConfigurationsOutput(v **Lis return nil } -type awsRestxml_deserializeOpPutAccessPointPolicy struct { +type awsRestxml_deserializeOpListAccessPoints struct { } -func (*awsRestxml_deserializeOpPutAccessPointPolicy) ID() string { +func (*awsRestxml_deserializeOpListAccessPoints) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpPutAccessPointPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListAccessPoints) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3689,21 +3961,43 @@ func (m *awsRestxml_deserializeOpPutAccessPointPolicy) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorPutAccessPointPolicy(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListAccessPoints(response, &metadata) } - output := &PutAccessPointPolicyOutput{} + output := &ListAccessPointsOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsRestxml_deserializeOpDocumentListAccessPointsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } return out, metadata, err } -func awsRestxml_deserializeOpErrorPutAccessPointPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListAccessPoints(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3743,89 +4037,69 @@ func awsRestxml_deserializeOpErrorPutAccessPointPolicy(response *smithyhttp.Resp } } -type awsRestxml_deserializeOpPutBucketLifecycleConfiguration struct { -} - -func (*awsRestxml_deserializeOpPutBucketLifecycleConfiguration) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestxml_deserializeOpPutBucketLifecycleConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} +func awsRestxml_deserializeOpDocumentListAccessPointsOutput(v **ListAccessPointsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorPutBucketLifecycleConfiguration(response, &metadata) + var sv *ListAccessPointsOutput + if *v == nil { + sv = &ListAccessPointsOutput{} + } else { + sv = *v } - output := &PutBucketLifecycleConfigurationOutput{} - out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + for { + t, done, err := decoder.Token() + if err != nil { + return err } - } - - return out, metadata, err -} + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("AccessPointList", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentAccessPointList(&sv.AccessPointList, nodeDecoder); err != nil { + return err + } -func awsRestxml_deserializeOpErrorPutBucketLifecycleConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) + case strings.EqualFold("NextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } - errorCode := "UnknownError" - errorMessage := errorCode + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } - errorComponents, err := s3shared.GetErrorResponseComponents(errorBody, s3shared.ErrorResponseDeserializerOptions{ - IsWrappedWithErrorTag: true, - }) - if err != nil { - return err - } - if hostID := errorComponents.HostID; len(hostID) != 0 { - s3shared.SetHostIDMetadata(metadata, hostID) - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, } - return genericError - + decoder = originalDecoder } + *v = sv + return nil } -type awsRestxml_deserializeOpPutBucketPolicy struct { +type awsRestxml_deserializeOpListAccessPointsForObjectLambda struct { } -func (*awsRestxml_deserializeOpPutBucketPolicy) ID() string { +func (*awsRestxml_deserializeOpListAccessPointsForObjectLambda) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpPutBucketPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListAccessPointsForObjectLambda) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3839,21 +4113,43 @@ func (m *awsRestxml_deserializeOpPutBucketPolicy) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorPutBucketPolicy(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListAccessPointsForObjectLambda(response, &metadata) } - output := &PutBucketPolicyOutput{} + output := &ListAccessPointsForObjectLambdaOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsRestxml_deserializeOpDocumentListAccessPointsForObjectLambdaOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } return out, metadata, err } -func awsRestxml_deserializeOpErrorPutBucketPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListAccessPointsForObjectLambda(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3893,14 +4189,69 @@ func awsRestxml_deserializeOpErrorPutBucketPolicy(response *smithyhttp.Response, } } -type awsRestxml_deserializeOpPutBucketTagging struct { +func awsRestxml_deserializeOpDocumentListAccessPointsForObjectLambdaOutput(v **ListAccessPointsForObjectLambdaOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ListAccessPointsForObjectLambdaOutput + if *v == nil { + sv = &ListAccessPointsForObjectLambdaOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("NextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + case strings.EqualFold("ObjectLambdaAccessPointList", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentObjectLambdaAccessPointList(&sv.ObjectLambdaAccessPointList, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil } -func (*awsRestxml_deserializeOpPutBucketTagging) ID() string { +type awsRestxml_deserializeOpListJobs struct { +} + +func (*awsRestxml_deserializeOpListJobs) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpPutBucketTagging) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3914,21 +4265,43 @@ func (m *awsRestxml_deserializeOpPutBucketTagging) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorPutBucketTagging(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListJobs(response, &metadata) } - output := &PutBucketTaggingOutput{} + output := &ListJobsOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsRestxml_deserializeOpDocumentListJobsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } return out, metadata, err } -func awsRestxml_deserializeOpErrorPutBucketTagging(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3958,6 +4331,15 @@ func awsRestxml_deserializeOpErrorPutBucketTagging(response *smithyhttp.Response } errorBody.Seek(0, io.SeekStart) switch { + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestxml_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("InvalidNextTokenException", errorCode): + return awsRestxml_deserializeErrorInvalidNextTokenException(response, errorBody) + + case strings.EqualFold("InvalidRequestException", errorCode): + return awsRestxml_deserializeErrorInvalidRequestException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -3968,14 +4350,69 @@ func awsRestxml_deserializeOpErrorPutBucketTagging(response *smithyhttp.Response } } -type awsRestxml_deserializeOpPutJobTagging struct { +func awsRestxml_deserializeOpDocumentListJobsOutput(v **ListJobsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ListJobsOutput + if *v == nil { + sv = &ListJobsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Jobs", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentJobListDescriptorList(&sv.Jobs, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("NextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil } -func (*awsRestxml_deserializeOpPutJobTagging) ID() string { +type awsRestxml_deserializeOpListRegionalBuckets struct { +} + +func (*awsRestxml_deserializeOpListRegionalBuckets) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpPutJobTagging) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListRegionalBuckets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3989,22 +4426,50 @@ func (m *awsRestxml_deserializeOpPutJobTagging) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorPutJobTagging(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListRegionalBuckets(response, &metadata) } - output := &PutJobTaggingOutput{} + output := &ListRegionalBucketsOutput{} out.Result = output - return out, metadata, err -} - -func awsRestxml_deserializeOpErrorPutJobTagging(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsRestxml_deserializeOpDocumentListRegionalBucketsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorListRegionalBuckets(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" errorMessage := errorCode errorComponents, err := s3shared.GetErrorResponseComponents(errorBody, s3shared.ErrorResponseDeserializerOptions{ @@ -4027,18 +4492,6 @@ func awsRestxml_deserializeOpErrorPutJobTagging(response *smithyhttp.Response, m } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("InternalServiceException", errorCode): - return awsRestxml_deserializeErrorInternalServiceException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsRestxml_deserializeErrorNotFoundException(response, errorBody) - - case strings.EqualFold("TooManyRequestsException", errorCode): - return awsRestxml_deserializeErrorTooManyRequestsException(response, errorBody) - - case strings.EqualFold("TooManyTagsException", errorCode): - return awsRestxml_deserializeErrorTooManyTagsException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -4049,14 +4502,69 @@ func awsRestxml_deserializeOpErrorPutJobTagging(response *smithyhttp.Response, m } } -type awsRestxml_deserializeOpPutPublicAccessBlock struct { +func awsRestxml_deserializeOpDocumentListRegionalBucketsOutput(v **ListRegionalBucketsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ListRegionalBucketsOutput + if *v == nil { + sv = &ListRegionalBucketsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("NextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + case strings.EqualFold("RegionalBucketList", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentRegionalBucketList(&sv.RegionalBucketList, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil } -func (*awsRestxml_deserializeOpPutPublicAccessBlock) ID() string { +type awsRestxml_deserializeOpListStorageLensConfigurations struct { +} + +func (*awsRestxml_deserializeOpListStorageLensConfigurations) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpPutPublicAccessBlock) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListStorageLensConfigurations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4070,21 +4578,43 @@ func (m *awsRestxml_deserializeOpPutPublicAccessBlock) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorPutPublicAccessBlock(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListStorageLensConfigurations(response, &metadata) } - output := &PutPublicAccessBlockOutput{} + output := &ListStorageLensConfigurationsOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsRestxml_deserializeOpDocumentListStorageLensConfigurationsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } return out, metadata, err } -func awsRestxml_deserializeOpErrorPutPublicAccessBlock(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListStorageLensConfigurations(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4124,14 +4654,69 @@ func awsRestxml_deserializeOpErrorPutPublicAccessBlock(response *smithyhttp.Resp } } -type awsRestxml_deserializeOpPutStorageLensConfiguration struct { +func awsRestxml_deserializeOpDocumentListStorageLensConfigurationsOutput(v **ListStorageLensConfigurationsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ListStorageLensConfigurationsOutput + if *v == nil { + sv = &ListStorageLensConfigurationsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("NextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + case strings.EqualFold("StorageLensConfigurationList", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentStorageLensConfigurationListUnwrapped(&sv.StorageLensConfigurationList, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil } -func (*awsRestxml_deserializeOpPutStorageLensConfiguration) ID() string { +type awsRestxml_deserializeOpPutAccessPointConfigurationForObjectLambda struct { +} + +func (*awsRestxml_deserializeOpPutAccessPointConfigurationForObjectLambda) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpPutStorageLensConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpPutAccessPointConfigurationForObjectLambda) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4145,9 +4730,9 @@ func (m *awsRestxml_deserializeOpPutStorageLensConfiguration) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorPutStorageLensConfiguration(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorPutAccessPointConfigurationForObjectLambda(response, &metadata) } - output := &PutStorageLensConfigurationOutput{} + output := &PutAccessPointConfigurationForObjectLambdaOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -4159,7 +4744,7 @@ func (m *awsRestxml_deserializeOpPutStorageLensConfiguration) HandleDeserialize( return out, metadata, err } -func awsRestxml_deserializeOpErrorPutStorageLensConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorPutAccessPointConfigurationForObjectLambda(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4199,14 +4784,14 @@ func awsRestxml_deserializeOpErrorPutStorageLensConfiguration(response *smithyht } } -type awsRestxml_deserializeOpPutStorageLensConfigurationTagging struct { +type awsRestxml_deserializeOpPutAccessPointPolicy struct { } -func (*awsRestxml_deserializeOpPutStorageLensConfigurationTagging) ID() string { +func (*awsRestxml_deserializeOpPutAccessPointPolicy) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpPutStorageLensConfigurationTagging) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpPutAccessPointPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4220,15 +4805,21 @@ func (m *awsRestxml_deserializeOpPutStorageLensConfigurationTagging) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorPutStorageLensConfigurationTagging(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorPutAccessPointPolicy(response, &metadata) } - output := &PutStorageLensConfigurationTaggingOutput{} + output := &PutAccessPointPolicyOutput{} out.Result = output + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + return out, metadata, err } -func awsRestxml_deserializeOpErrorPutStorageLensConfigurationTagging(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorPutAccessPointPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4268,14 +4859,14 @@ func awsRestxml_deserializeOpErrorPutStorageLensConfigurationTagging(response *s } } -type awsRestxml_deserializeOpUpdateJobPriority struct { +type awsRestxml_deserializeOpPutAccessPointPolicyForObjectLambda struct { } -func (*awsRestxml_deserializeOpUpdateJobPriority) ID() string { +func (*awsRestxml_deserializeOpPutAccessPointPolicyForObjectLambda) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpUpdateJobPriority) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpPutAccessPointPolicyForObjectLambda) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4289,43 +4880,21 @@ func (m *awsRestxml_deserializeOpUpdateJobPriority) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorUpdateJobPriority(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorPutAccessPointPolicyForObjectLambda(response, &metadata) } - output := &UpdateJobPriorityOutput{} + output := &PutAccessPointPolicyForObjectLambdaOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeOpDocumentUpdateJobPriorityOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } } return out, metadata, err } -func awsRestxml_deserializeOpErrorUpdateJobPriority(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorPutAccessPointPolicyForObjectLambda(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4355,7 +4924,629 @@ func awsRestxml_deserializeOpErrorUpdateJobPriority(response *smithyhttp.Respons } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("BadRequestException", errorCode): + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestxml_deserializeOpPutBucketLifecycleConfiguration struct { +} + +func (*awsRestxml_deserializeOpPutBucketLifecycleConfiguration) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpPutBucketLifecycleConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestxml_deserializeOpErrorPutBucketLifecycleConfiguration(response, &metadata) + } + output := &PutBucketLifecycleConfigurationOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorPutBucketLifecycleConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := s3shared.GetErrorResponseComponents(errorBody, s3shared.ErrorResponseDeserializerOptions{ + IsWrappedWithErrorTag: true, + }) + if err != nil { + return err + } + if hostID := errorComponents.HostID; len(hostID) != 0 { + s3shared.SetHostIDMetadata(metadata, hostID) + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestxml_deserializeOpPutBucketPolicy struct { +} + +func (*awsRestxml_deserializeOpPutBucketPolicy) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpPutBucketPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestxml_deserializeOpErrorPutBucketPolicy(response, &metadata) + } + output := &PutBucketPolicyOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorPutBucketPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := s3shared.GetErrorResponseComponents(errorBody, s3shared.ErrorResponseDeserializerOptions{ + IsWrappedWithErrorTag: true, + }) + if err != nil { + return err + } + if hostID := errorComponents.HostID; len(hostID) != 0 { + s3shared.SetHostIDMetadata(metadata, hostID) + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestxml_deserializeOpPutBucketTagging struct { +} + +func (*awsRestxml_deserializeOpPutBucketTagging) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpPutBucketTagging) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestxml_deserializeOpErrorPutBucketTagging(response, &metadata) + } + output := &PutBucketTaggingOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorPutBucketTagging(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := s3shared.GetErrorResponseComponents(errorBody, s3shared.ErrorResponseDeserializerOptions{ + IsWrappedWithErrorTag: true, + }) + if err != nil { + return err + } + if hostID := errorComponents.HostID; len(hostID) != 0 { + s3shared.SetHostIDMetadata(metadata, hostID) + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestxml_deserializeOpPutJobTagging struct { +} + +func (*awsRestxml_deserializeOpPutJobTagging) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpPutJobTagging) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestxml_deserializeOpErrorPutJobTagging(response, &metadata) + } + output := &PutJobTaggingOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorPutJobTagging(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := s3shared.GetErrorResponseComponents(errorBody, s3shared.ErrorResponseDeserializerOptions{ + IsWrappedWithErrorTag: true, + }) + if err != nil { + return err + } + if hostID := errorComponents.HostID; len(hostID) != 0 { + s3shared.SetHostIDMetadata(metadata, hostID) + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestxml_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("NotFoundException", errorCode): + return awsRestxml_deserializeErrorNotFoundException(response, errorBody) + + case strings.EqualFold("TooManyRequestsException", errorCode): + return awsRestxml_deserializeErrorTooManyRequestsException(response, errorBody) + + case strings.EqualFold("TooManyTagsException", errorCode): + return awsRestxml_deserializeErrorTooManyTagsException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestxml_deserializeOpPutPublicAccessBlock struct { +} + +func (*awsRestxml_deserializeOpPutPublicAccessBlock) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpPutPublicAccessBlock) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestxml_deserializeOpErrorPutPublicAccessBlock(response, &metadata) + } + output := &PutPublicAccessBlockOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorPutPublicAccessBlock(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := s3shared.GetErrorResponseComponents(errorBody, s3shared.ErrorResponseDeserializerOptions{ + IsWrappedWithErrorTag: true, + }) + if err != nil { + return err + } + if hostID := errorComponents.HostID; len(hostID) != 0 { + s3shared.SetHostIDMetadata(metadata, hostID) + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestxml_deserializeOpPutStorageLensConfiguration struct { +} + +func (*awsRestxml_deserializeOpPutStorageLensConfiguration) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpPutStorageLensConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestxml_deserializeOpErrorPutStorageLensConfiguration(response, &metadata) + } + output := &PutStorageLensConfigurationOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorPutStorageLensConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := s3shared.GetErrorResponseComponents(errorBody, s3shared.ErrorResponseDeserializerOptions{ + IsWrappedWithErrorTag: true, + }) + if err != nil { + return err + } + if hostID := errorComponents.HostID; len(hostID) != 0 { + s3shared.SetHostIDMetadata(metadata, hostID) + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestxml_deserializeOpPutStorageLensConfigurationTagging struct { +} + +func (*awsRestxml_deserializeOpPutStorageLensConfigurationTagging) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpPutStorageLensConfigurationTagging) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestxml_deserializeOpErrorPutStorageLensConfigurationTagging(response, &metadata) + } + output := &PutStorageLensConfigurationTaggingOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorPutStorageLensConfigurationTagging(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := s3shared.GetErrorResponseComponents(errorBody, s3shared.ErrorResponseDeserializerOptions{ + IsWrappedWithErrorTag: true, + }) + if err != nil { + return err + } + if hostID := errorComponents.HostID; len(hostID) != 0 { + s3shared.SetHostIDMetadata(metadata, hostID) + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestxml_deserializeOpUpdateJobPriority struct { +} + +func (*awsRestxml_deserializeOpUpdateJobPriority) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpUpdateJobPriority) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestxml_deserializeOpErrorUpdateJobPriority(response, &metadata) + } + output := &UpdateJobPriorityOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsRestxml_deserializeOpDocumentUpdateJobPriorityOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorUpdateJobPriority(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := s3shared.GetErrorResponseComponents(errorBody, s3shared.ErrorResponseDeserializerOptions{ + IsWrappedWithErrorTag: true, + }) + if err != nil { + return err + } + if hostID := errorComponents.HostID; len(hostID) != 0 { + s3shared.SetHostIDMetadata(metadata, hostID) + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("BadRequestException", errorCode): return awsRestxml_deserializeErrorBadRequestException(response, errorBody) case strings.EqualFold("InternalServiceException", errorCode): @@ -5055,38 +6246,301 @@ func awsRestxml_deserializeErrorTooManyTagsException(response *smithyhttp.Respon } } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsRestxml_deserializeDocumentTooManyTagsException(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsRestxml_deserializeDocumentAbortIncompleteMultipartUpload(v **types.AbortIncompleteMultipartUpload, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.AbortIncompleteMultipartUpload + if *v == nil { + sv = &types.AbortIncompleteMultipartUpload{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("DaysAfterInitiation", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.DaysAfterInitiation = int32(i64) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentAccessPoint(v **types.AccessPoint, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.AccessPoint + if *v == nil { + sv = &types.AccessPoint{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("AccessPointArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AccessPointArn = ptr.String(xtv) + } + + case strings.EqualFold("Bucket", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Bucket = ptr.String(xtv) + } + + case strings.EqualFold("Name", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Name = ptr.String(xtv) + } + + case strings.EqualFold("NetworkOrigin", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NetworkOrigin = types.NetworkOrigin(xtv) + } + + case strings.EqualFold("VpcConfiguration", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentVpcConfiguration(&sv.VpcConfiguration, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentAccessPointList(v *[]types.AccessPoint, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.AccessPoint + if *v == nil { + sv = make([]types.AccessPoint, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("AccessPoint", t.Name.Local): + var col types.AccessPoint + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsRestxml_deserializeDocumentAccessPoint(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentAccessPointListUnwrapped(v *[]types.AccessPoint, decoder smithyxml.NodeDecoder) error { + var sv []types.AccessPoint + if *v == nil { + sv = make([]types.AccessPoint, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.AccessPoint + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsRestxml_deserializeDocumentAccessPoint(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsRestxml_deserializeDocumentAccountLevel(v **types.AccountLevel, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.AccountLevel + if *v == nil { + sv = &types.AccountLevel{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err } - } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ActivityMetrics", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentActivityMetrics(&sv.ActivityMetrics, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("BucketLevel", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentBucketLevel(&sv.BucketLevel, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyTagsException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), } + decoder = originalDecoder } - - return output + *v = sv + return nil } -func awsRestxml_deserializeDocumentAbortIncompleteMultipartUpload(v **types.AbortIncompleteMultipartUpload, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentActivityMetrics(v **types.ActivityMetrics, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AbortIncompleteMultipartUpload + var sv *types.ActivityMetrics if *v == nil { - sv = &types.AbortIncompleteMultipartUpload{} + sv = &types.ActivityMetrics{} } else { sv = *v } @@ -5102,7 +6556,7 @@ func awsRestxml_deserializeDocumentAbortIncompleteMultipartUpload(v **types.Abor originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("DaysAfterInitiation", t.Name.Local): + case strings.EqualFold("IsEnabled", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -5111,12 +6565,11 @@ func awsRestxml_deserializeDocumentAbortIncompleteMultipartUpload(v **types.Abor break } { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) + xtv, err := strconv.ParseBool(string(val)) if err != nil { - return err + return fmt.Errorf("expected IsEnabled to be of type *bool, got %T instead", val) } - sv.DaysAfterInitiation = int32(i64) + sv.IsEnabled = xtv } default: @@ -5133,13 +6586,13 @@ func awsRestxml_deserializeDocumentAbortIncompleteMultipartUpload(v **types.Abor return nil } -func awsRestxml_deserializeDocumentAccessPoint(v **types.AccessPoint, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentAwsLambdaTransformation(v **types.AwsLambdaTransformation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AccessPoint + var sv *types.AwsLambdaTransformation if *v == nil { - sv = &types.AccessPoint{} + sv = &types.AwsLambdaTransformation{} } else { sv = *v } @@ -5155,7 +6608,7 @@ func awsRestxml_deserializeDocumentAccessPoint(v **types.AccessPoint, decoder sm originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("AccessPointArn", t.Name.Local): + case strings.EqualFold("FunctionArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -5165,10 +6618,10 @@ func awsRestxml_deserializeDocumentAccessPoint(v **types.AccessPoint, decoder sm } { xtv := string(val) - sv.AccessPointArn = ptr.String(xtv) + sv.FunctionArn = ptr.String(xtv) } - case strings.EqualFold("Bucket", t.Name.Local): + case strings.EqualFold("FunctionPayload", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -5178,10 +6631,46 @@ func awsRestxml_deserializeDocumentAccessPoint(v **types.AccessPoint, decoder sm } { xtv := string(val) - sv.Bucket = ptr.String(xtv) + sv.FunctionPayload = ptr.String(xtv) } - case strings.EqualFold("Name", t.Name.Local): + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentBadRequestException(v **types.BadRequestException, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.BadRequestException + if *v == nil { + sv = &types.BadRequestException{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -5191,25 +6680,126 @@ func awsRestxml_deserializeDocumentAccessPoint(v **types.AccessPoint, decoder sm } { xtv := string(val) - sv.Name = ptr.String(xtv) + sv.Message = ptr.String(xtv) } - case strings.EqualFold("NetworkOrigin", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentBucketAlreadyExists(v **types.BucketAlreadyExists, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.BucketAlreadyExists + if *v == nil { + sv = &types.BucketAlreadyExists{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err } - { - xtv := string(val) - sv.NetworkOrigin = types.NetworkOrigin(xtv) + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentBucketAlreadyOwnedByYou(v **types.BucketAlreadyOwnedByYou, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.BucketAlreadyOwnedByYou + if *v == nil { + sv = &types.BucketAlreadyOwnedByYou{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err } - case strings.EqualFold("VpcConfiguration", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentBucketLevel(v **types.BucketLevel, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.BucketLevel + if *v == nil { + sv = &types.BucketLevel{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ActivityMetrics", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentVpcConfiguration(&sv.VpcConfiguration, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentActivityMetrics(&sv.ActivityMetrics, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("PrefixLevel", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentPrefixLevel(&sv.PrefixLevel, nodeDecoder); err != nil { return err } @@ -5227,13 +6817,13 @@ func awsRestxml_deserializeDocumentAccessPoint(v **types.AccessPoint, decoder sm return nil } -func awsRestxml_deserializeDocumentAccessPointList(v *[]types.AccessPoint, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentBuckets(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.AccessPoint + var sv []string if *v == nil { - sv = make([]types.AccessPoint, 0) + sv = make([]string, 0) } else { sv = *v } @@ -5247,15 +6837,22 @@ func awsRestxml_deserializeDocumentAccessPointList(v *[]types.AccessPoint, decod if done { break } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder switch { - case strings.EqualFold("AccessPoint", t.Name.Local): - var col types.AccessPoint - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsRestxml_deserializeDocumentAccessPoint(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("Arn", t.Name.Local): + var col string + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr + if val == nil { + break + } + { + xtv := string(val) + col = xtv + } sv = append(sv, col) default: @@ -5271,37 +6868,42 @@ func awsRestxml_deserializeDocumentAccessPointList(v *[]types.AccessPoint, decod return nil } -func awsRestxml_deserializeDocumentAccessPointListUnwrapped(v *[]types.AccessPoint, decoder smithyxml.NodeDecoder) error { - var sv []types.AccessPoint +func awsRestxml_deserializeDocumentBucketsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]types.AccessPoint, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv types.AccessPoint + var mv string t := decoder.StartEl _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsRestxml_deserializeDocumentAccessPoint(&destAddr, nodeDecoder); err != nil { + val, err := decoder.Value() + if err != nil { return err } - mv = *destAddr + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } sv = append(sv, mv) } *v = sv return nil } -func awsRestxml_deserializeDocumentAccountLevel(v **types.AccountLevel, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentExclude(v **types.Exclude, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AccountLevel + var sv *types.Exclude if *v == nil { - sv = &types.AccountLevel{} + sv = &types.Exclude{} } else { sv = *v } @@ -5317,15 +6919,15 @@ func awsRestxml_deserializeDocumentAccountLevel(v **types.AccountLevel, decoder originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("ActivityMetrics", t.Name.Local): + case strings.EqualFold("Buckets", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentActivityMetrics(&sv.ActivityMetrics, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentBuckets(&sv.Buckets, nodeDecoder); err != nil { return err } - case strings.EqualFold("BucketLevel", t.Name.Local): + case strings.EqualFold("Regions", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentBucketLevel(&sv.BucketLevel, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentRegions(&sv.Regions, nodeDecoder); err != nil { return err } @@ -5343,13 +6945,13 @@ func awsRestxml_deserializeDocumentAccountLevel(v **types.AccountLevel, decoder return nil } -func awsRestxml_deserializeDocumentActivityMetrics(v **types.ActivityMetrics, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentIdempotencyException(v **types.IdempotencyException, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ActivityMetrics + var sv *types.IdempotencyException if *v == nil { - sv = &types.ActivityMetrics{} + sv = &types.IdempotencyException{} } else { sv = *v } @@ -5365,7 +6967,7 @@ func awsRestxml_deserializeDocumentActivityMetrics(v **types.ActivityMetrics, de originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("IsEnabled", t.Name.Local): + case strings.EqualFold("Message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -5374,11 +6976,8 @@ func awsRestxml_deserializeDocumentActivityMetrics(v **types.ActivityMetrics, de break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected IsEnabled to be of type *bool, got %T instead", val) - } - sv.IsEnabled = xtv + xtv := string(val) + sv.Message = ptr.String(xtv) } default: @@ -5395,13 +6994,13 @@ func awsRestxml_deserializeDocumentActivityMetrics(v **types.ActivityMetrics, de return nil } -func awsRestxml_deserializeDocumentBadRequestException(v **types.BadRequestException, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentInclude(v **types.Include, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.BadRequestException + var sv *types.Include if *v == nil { - sv = &types.BadRequestException{} + sv = &types.Include{} } else { sv = *v } @@ -5417,17 +7016,16 @@ func awsRestxml_deserializeDocumentBadRequestException(v **types.BadRequestExcep originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("Buckets", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentBuckets(&sv.Buckets, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) + + case strings.EqualFold("Regions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentRegions(&sv.Regions, nodeDecoder); err != nil { + return err } default: @@ -5444,13 +7042,13 @@ func awsRestxml_deserializeDocumentBadRequestException(v **types.BadRequestExcep return nil } -func awsRestxml_deserializeDocumentBucketAlreadyExists(v **types.BucketAlreadyExists, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentInternalServiceException(v **types.InternalServiceException, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.BucketAlreadyExists + var sv *types.InternalServiceException if *v == nil { - sv = &types.BucketAlreadyExists{} + sv = &types.InternalServiceException{} } else { sv = *v } @@ -5466,6 +7064,19 @@ func awsRestxml_deserializeDocumentBucketAlreadyExists(v **types.BucketAlreadyEx originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { + case strings.EqualFold("Message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } + default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() @@ -5480,13 +7091,13 @@ func awsRestxml_deserializeDocumentBucketAlreadyExists(v **types.BucketAlreadyEx return nil } -func awsRestxml_deserializeDocumentBucketAlreadyOwnedByYou(v **types.BucketAlreadyOwnedByYou, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentInvalidNextTokenException(v **types.InvalidNextTokenException, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.BucketAlreadyOwnedByYou + var sv *types.InvalidNextTokenException if *v == nil { - sv = &types.BucketAlreadyOwnedByYou{} + sv = &types.InvalidNextTokenException{} } else { sv = *v } @@ -5502,6 +7113,19 @@ func awsRestxml_deserializeDocumentBucketAlreadyOwnedByYou(v **types.BucketAlrea originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { + case strings.EqualFold("Message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } + default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() @@ -5516,13 +7140,13 @@ func awsRestxml_deserializeDocumentBucketAlreadyOwnedByYou(v **types.BucketAlrea return nil } -func awsRestxml_deserializeDocumentBucketLevel(v **types.BucketLevel, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentInvalidRequestException(v **types.InvalidRequestException, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.BucketLevel + var sv *types.InvalidRequestException if *v == nil { - sv = &types.BucketLevel{} + sv = &types.InvalidRequestException{} } else { sv = *v } @@ -5538,16 +7162,17 @@ func awsRestxml_deserializeDocumentBucketLevel(v **types.BucketLevel, decoder sm originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("ActivityMetrics", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentActivityMetrics(&sv.ActivityMetrics, nodeDecoder); err != nil { + case strings.EqualFold("Message", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - - case strings.EqualFold("PrefixLevel", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentPrefixLevel(&sv.PrefixLevel, nodeDecoder); err != nil { - return err + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) } default: @@ -5564,18 +7189,17 @@ func awsRestxml_deserializeDocumentBucketLevel(v **types.BucketLevel, decoder sm return nil } -func awsRestxml_deserializeDocumentBuckets(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []string + var sv *types.JobDescriptor if *v == nil { - sv = make([]string, 0) + sv = &types.JobDescriptor{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -5584,11 +7208,26 @@ func awsRestxml_deserializeDocumentBuckets(v *[]string, decoder smithyxml.NodeDe if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Arn", t.Name.Local): - var col string + case strings.EqualFold("ConfirmationRequired", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected ConfirmationRequired to be of type *bool, got %T instead", val) + } + sv.ConfirmationRequired = xtv + } + + case strings.EqualFold("CreationTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -5598,123 +7237,100 @@ func awsRestxml_deserializeDocumentBuckets(v *[]string, decoder smithyxml.NodeDe } { xtv := string(val) - col = xtv + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.CreationTime = ptr.Time(t) } - sv = append(sv, col) - default: - err = decoder.Decoder.Skip() + case strings.EqualFold("Description", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.Description = ptr.String(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} + case strings.EqualFold("FailureReasons", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentJobFailureList(&sv.FailureReasons, nodeDecoder); err != nil { + return err + } -func awsRestxml_deserializeDocumentBucketsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } + case strings.EqualFold("JobArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.JobArn = ptr.String(xtv) + } - switch { - default: - var mv string - t := decoder.StartEl - _ = t - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsRestxml_deserializeDocumentExclude(v **types.Exclude, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.Exclude - if *v == nil { - sv = &types.Exclude{} - } else { - sv = *v - } + case strings.EqualFold("JobId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.JobId = ptr.String(xtv) + } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Buckets", t.Name.Local): + case strings.EqualFold("Manifest", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentBuckets(&sv.Buckets, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentJobManifest(&sv.Manifest, nodeDecoder); err != nil { return err } - case strings.EqualFold("Regions", t.Name.Local): + case strings.EqualFold("Operation", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentRegions(&sv.Regions, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentJobOperation(&sv.Operation, nodeDecoder); err != nil { return err } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("Priority", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Priority = int32(i64) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} + case strings.EqualFold("ProgressSummary", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentJobProgressSummary(&sv.ProgressSummary, nodeDecoder); err != nil { + return err + } -func awsRestxml_deserializeDocumentIdempotencyException(v **types.IdempotencyException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.IdempotencyException - if *v == nil { - sv = &types.IdempotencyException{} - } else { - sv = *v - } + case strings.EqualFold("Report", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentJobReport(&sv.Report, nodeDecoder); err != nil { + return err + } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): + case strings.EqualFold("RoleArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -5724,94 +7340,66 @@ func awsRestxml_deserializeDocumentIdempotencyException(v **types.IdempotencyExc } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.RoleArn = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("Status", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.Status = types.JobStatus(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsRestxml_deserializeDocumentInclude(v **types.Include, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.Include - if *v == nil { - sv = &types.Include{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Buckets", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentBuckets(&sv.Buckets, nodeDecoder); err != nil { + case strings.EqualFold("StatusUpdateReason", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.StatusUpdateReason = ptr.String(xtv) + } - case strings.EqualFold("Regions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentRegions(&sv.Regions, nodeDecoder); err != nil { + case strings.EqualFold("SuspendedCause", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.SuspendedCause = ptr.String(xtv) + } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("SuspendedDate", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.SuspendedDate = ptr.Time(t) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsRestxml_deserializeDocumentInternalServiceException(v **types.InternalServiceException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InternalServiceException - if *v == nil { - sv = &types.InternalServiceException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): + case strings.EqualFold("TerminationDate", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -5821,7 +7409,11 @@ func awsRestxml_deserializeDocumentInternalServiceException(v **types.InternalSe } { xtv := string(val) - sv.Message = ptr.String(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.TerminationDate = ptr.Time(t) } default: @@ -5838,13 +7430,13 @@ func awsRestxml_deserializeDocumentInternalServiceException(v **types.InternalSe return nil } -func awsRestxml_deserializeDocumentInvalidNextTokenException(v **types.InvalidNextTokenException, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentJobFailure(v **types.JobFailure, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InvalidNextTokenException + var sv *types.JobFailure if *v == nil { - sv = &types.InvalidNextTokenException{} + sv = &types.JobFailure{} } else { sv = *v } @@ -5860,7 +7452,7 @@ func awsRestxml_deserializeDocumentInvalidNextTokenException(v **types.InvalidNe originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Message", t.Name.Local): + case strings.EqualFold("FailureCode", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -5870,7 +7462,20 @@ func awsRestxml_deserializeDocumentInvalidNextTokenException(v **types.InvalidNe } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.FailureCode = ptr.String(xtv) + } + + case strings.EqualFold("FailureReason", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.FailureReason = ptr.String(xtv) } default: @@ -5887,17 +7492,18 @@ func awsRestxml_deserializeDocumentInvalidNextTokenException(v **types.InvalidNe return nil } -func awsRestxml_deserializeDocumentInvalidRequestException(v **types.InvalidRequestException, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentJobFailureList(v *[]types.JobFailure, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InvalidRequestException + var sv []types.JobFailure if *v == nil { - sv = &types.InvalidRequestException{} + sv = make([]types.JobFailure, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -5906,24 +7512,18 @@ func awsRestxml_deserializeDocumentInvalidRequestException(v **types.InvalidRequ if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("member", t.Name.Local): + var col types.JobFailure + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsRestxml_deserializeDocumentJobFailure(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -5936,13 +7536,37 @@ func awsRestxml_deserializeDocumentInvalidRequestException(v **types.InvalidRequ return nil } -func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentJobFailureListUnwrapped(v *[]types.JobFailure, decoder smithyxml.NodeDecoder) error { + var sv []types.JobFailure + if *v == nil { + sv = make([]types.JobFailure, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.JobFailure + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsRestxml_deserializeDocumentJobFailure(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsRestxml_deserializeDocumentJobListDescriptor(v **types.JobListDescriptor, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.JobDescriptor + var sv *types.JobListDescriptor if *v == nil { - sv = &types.JobDescriptor{} + sv = &types.JobListDescriptor{} } else { sv = *v } @@ -5958,22 +7582,6 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("ConfirmationRequired", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected ConfirmationRequired to be of type *bool, got %T instead", val) - } - sv.ConfirmationRequired = xtv - } - case strings.EqualFold("CreationTime", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -6004,13 +7612,7 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode sv.Description = ptr.String(xtv) } - case strings.EqualFold("FailureReasons", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentJobFailureList(&sv.FailureReasons, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("JobArn", t.Name.Local): + case strings.EqualFold("JobId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6020,10 +7622,10 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode } { xtv := string(val) - sv.JobArn = ptr.String(xtv) + sv.JobId = ptr.String(xtv) } - case strings.EqualFold("JobId", t.Name.Local): + case strings.EqualFold("Operation", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6033,19 +7635,7 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode } { xtv := string(val) - sv.JobId = ptr.String(xtv) - } - - case strings.EqualFold("Manifest", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentJobManifest(&sv.Manifest, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Operation", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentJobOperation(&sv.Operation, nodeDecoder); err != nil { - return err + sv.Operation = types.OperationName(xtv) } case strings.EqualFold("Priority", t.Name.Local): @@ -6071,13 +7661,7 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode return err } - case strings.EqualFold("Report", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentJobReport(&sv.Report, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("RoleArn", t.Name.Local): + case strings.EqualFold("Status", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6087,10 +7671,10 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode } { xtv := string(val) - sv.RoleArn = ptr.String(xtv) + sv.Status = types.JobStatus(xtv) } - case strings.EqualFold("Status", t.Name.Local): + case strings.EqualFold("TerminationDate", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6100,10 +7684,168 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode } { xtv := string(val) - sv.Status = types.JobStatus(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.TerminationDate = ptr.Time(t) } - case strings.EqualFold("StatusUpdateReason", t.Name.Local): + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentJobListDescriptorList(v *[]types.JobListDescriptor, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.JobListDescriptor + if *v == nil { + sv = make([]types.JobListDescriptor, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("member", t.Name.Local): + var col types.JobListDescriptor + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsRestxml_deserializeDocumentJobListDescriptor(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentJobListDescriptorListUnwrapped(v *[]types.JobListDescriptor, decoder smithyxml.NodeDecoder) error { + var sv []types.JobListDescriptor + if *v == nil { + sv = make([]types.JobListDescriptor, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.JobListDescriptor + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsRestxml_deserializeDocumentJobListDescriptor(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsRestxml_deserializeDocumentJobManifest(v **types.JobManifest, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.JobManifest + if *v == nil { + sv = &types.JobManifest{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Location", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentJobManifestLocation(&sv.Location, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("Spec", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentJobManifestSpec(&sv.Spec, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentJobManifestFieldList(v *[]types.JobManifestFieldName, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.JobManifestFieldName + if *v == nil { + sv = make([]types.JobManifestFieldName, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + switch { + case strings.EqualFold("member", t.Name.Local): + var col types.JobManifestFieldName val, err := decoder.Value() if err != nil { return err @@ -6113,10 +7855,75 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode } { xtv := string(val) - sv.StatusUpdateReason = ptr.String(xtv) + col = types.JobManifestFieldName(xtv) + } + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err } - case strings.EqualFold("SuspendedCause", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentJobManifestFieldListUnwrapped(v *[]types.JobManifestFieldName, decoder smithyxml.NodeDecoder) error { + var sv []types.JobManifestFieldName + if *v == nil { + sv = make([]types.JobManifestFieldName, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.JobManifestFieldName + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = types.JobManifestFieldName(xtv) + } + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsRestxml_deserializeDocumentJobManifestLocation(v **types.JobManifestLocation, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.JobManifestLocation + if *v == nil { + sv = &types.JobManifestLocation{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ETag", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6126,10 +7933,10 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode } { xtv := string(val) - sv.SuspendedCause = ptr.String(xtv) + sv.ETag = ptr.String(xtv) } - case strings.EqualFold("SuspendedDate", t.Name.Local): + case strings.EqualFold("ObjectArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6139,14 +7946,10 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.SuspendedDate = ptr.Time(t) + sv.ObjectArn = ptr.String(xtv) } - case strings.EqualFold("TerminationDate", t.Name.Local): + case strings.EqualFold("ObjectVersionId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6156,11 +7959,7 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.TerminationDate = ptr.Time(t) + sv.ObjectVersionId = ptr.String(xtv) } default: @@ -6177,13 +7976,13 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode return nil } -func awsRestxml_deserializeDocumentJobFailure(v **types.JobFailure, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentJobManifestSpec(v **types.JobManifestSpec, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.JobFailure + var sv *types.JobManifestSpec if *v == nil { - sv = &types.JobFailure{} + sv = &types.JobManifestSpec{} } else { sv = *v } @@ -6199,20 +7998,13 @@ func awsRestxml_deserializeDocumentJobFailure(v **types.JobFailure, decoder smit originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("FailureCode", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("Fields", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentJobManifestFieldList(&sv.Fields, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.FailureCode = ptr.String(xtv) - } - case strings.EqualFold("FailureReason", t.Name.Local): + case strings.EqualFold("Format", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6222,7 +8014,7 @@ func awsRestxml_deserializeDocumentJobFailure(v **types.JobFailure, decoder smit } { xtv := string(val) - sv.FailureReason = ptr.String(xtv) + sv.Format = types.JobManifestFormat(xtv) } default: @@ -6239,18 +8031,17 @@ func awsRestxml_deserializeDocumentJobFailure(v **types.JobFailure, decoder smit return nil } -func awsRestxml_deserializeDocumentJobFailureList(v *[]types.JobFailure, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentJobOperation(v **types.JobOperation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.JobFailure + var sv *types.JobOperation if *v == nil { - sv = make([]types.JobFailure, 0) + sv = &types.JobOperation{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -6259,18 +8050,59 @@ func awsRestxml_deserializeDocumentJobFailureList(v *[]types.JobFailure, decoder if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("member", t.Name.Local): - var col types.JobFailure + case strings.EqualFold("LambdaInvoke", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsRestxml_deserializeDocumentJobFailure(&destAddr, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentLambdaInvokeOperation(&sv.LambdaInvoke, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("S3DeleteObjectTagging", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentS3DeleteObjectTaggingOperation(&sv.S3DeleteObjectTagging, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("S3InitiateRestoreObject", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentS3InitiateRestoreObjectOperation(&sv.S3InitiateRestoreObject, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("S3PutObjectAcl", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentS3SetObjectAclOperation(&sv.S3PutObjectAcl, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("S3PutObjectCopy", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentS3CopyObjectOperation(&sv.S3PutObjectCopy, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("S3PutObjectLegalHold", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentS3SetObjectLegalHoldOperation(&sv.S3PutObjectLegalHold, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("S3PutObjectRetention", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentS3SetObjectRetentionOperation(&sv.S3PutObjectRetention, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("S3PutObjectTagging", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentS3SetObjectTaggingOperation(&sv.S3PutObjectTagging, nodeDecoder); err != nil { return err } - col = *destAddr - sv = append(sv, col) default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -6283,37 +8115,13 @@ func awsRestxml_deserializeDocumentJobFailureList(v *[]types.JobFailure, decoder return nil } -func awsRestxml_deserializeDocumentJobFailureListUnwrapped(v *[]types.JobFailure, decoder smithyxml.NodeDecoder) error { - var sv []types.JobFailure - if *v == nil { - sv = make([]types.JobFailure, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.JobFailure - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsRestxml_deserializeDocumentJobFailure(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsRestxml_deserializeDocumentJobListDescriptor(v **types.JobListDescriptor, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentJobProgressSummary(v **types.JobProgressSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.JobListDescriptor + var sv *types.JobProgressSummary if *v == nil { - sv = &types.JobListDescriptor{} + sv = &types.JobProgressSummary{} } else { sv = *v } @@ -6329,7 +8137,7 @@ func awsRestxml_deserializeDocumentJobListDescriptor(v **types.JobListDescriptor originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CreationTime", t.Name.Local): + case strings.EqualFold("NumberOfTasksFailed", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6339,14 +8147,14 @@ func awsRestxml_deserializeDocumentJobListDescriptor(v **types.JobListDescriptor } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) if err != nil { return err } - sv.CreationTime = ptr.Time(t) + sv.NumberOfTasksFailed = i64 } - case strings.EqualFold("Description", t.Name.Local): + case strings.EqualFold("NumberOfTasksSucceeded", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6356,10 +8164,67 @@ func awsRestxml_deserializeDocumentJobListDescriptor(v **types.JobListDescriptor } { xtv := string(val) - sv.Description = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.NumberOfTasksSucceeded = i64 } - case strings.EqualFold("JobId", t.Name.Local): + case strings.EqualFold("TotalNumberOfTasks", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.TotalNumberOfTasks = i64 + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentJobReport(v **types.JobReport, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.JobReport + if *v == nil { + sv = &types.JobReport{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Bucket", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6369,10 +8234,10 @@ func awsRestxml_deserializeDocumentJobListDescriptor(v **types.JobListDescriptor } { xtv := string(val) - sv.JobId = ptr.String(xtv) + sv.Bucket = ptr.String(xtv) } - case strings.EqualFold("Operation", t.Name.Local): + case strings.EqualFold("Enabled", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6381,11 +8246,14 @@ func awsRestxml_deserializeDocumentJobListDescriptor(v **types.JobListDescriptor break } { - xtv := string(val) - sv.Operation = types.OperationName(xtv) + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.Enabled = xtv } - case strings.EqualFold("Priority", t.Name.Local): + case strings.EqualFold("Format", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6395,20 +8263,10 @@ func awsRestxml_deserializeDocumentJobListDescriptor(v **types.JobListDescriptor } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Priority = int32(i64) - } - - case strings.EqualFold("ProgressSummary", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentJobProgressSummary(&sv.ProgressSummary, nodeDecoder); err != nil { - return err + sv.Format = types.JobReportFormat(xtv) } - case strings.EqualFold("Status", t.Name.Local): + case strings.EqualFold("Prefix", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6418,10 +8276,10 @@ func awsRestxml_deserializeDocumentJobListDescriptor(v **types.JobListDescriptor } { xtv := string(val) - sv.Status = types.JobStatus(xtv) + sv.Prefix = ptr.String(xtv) } - case strings.EqualFold("TerminationDate", t.Name.Local): + case strings.EqualFold("ReportScope", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6431,11 +8289,7 @@ func awsRestxml_deserializeDocumentJobListDescriptor(v **types.JobListDescriptor } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.TerminationDate = ptr.Time(t) + sv.ReportScope = types.JobReportScope(xtv) } default: @@ -6452,18 +8306,17 @@ func awsRestxml_deserializeDocumentJobListDescriptor(v **types.JobListDescriptor return nil } -func awsRestxml_deserializeDocumentJobListDescriptorList(v *[]types.JobListDescriptor, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentJobStatusException(v **types.JobStatusException, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.JobListDescriptor + var sv *types.JobStatusException if *v == nil { - sv = make([]types.JobListDescriptor, 0) + sv = &types.JobStatusException{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -6472,18 +8325,24 @@ func awsRestxml_deserializeDocumentJobListDescriptorList(v *[]types.JobListDescr if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("member", t.Name.Local): - var col types.JobListDescriptor - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsRestxml_deserializeDocumentJobListDescriptor(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("Message", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -6496,37 +8355,13 @@ func awsRestxml_deserializeDocumentJobListDescriptorList(v *[]types.JobListDescr return nil } -func awsRestxml_deserializeDocumentJobListDescriptorListUnwrapped(v *[]types.JobListDescriptor, decoder smithyxml.NodeDecoder) error { - var sv []types.JobListDescriptor - if *v == nil { - sv = make([]types.JobListDescriptor, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.JobListDescriptor - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsRestxml_deserializeDocumentJobListDescriptor(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsRestxml_deserializeDocumentJobManifest(v **types.JobManifest, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentLambdaInvokeOperation(v **types.LambdaInvokeOperation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.JobManifest + var sv *types.LambdaInvokeOperation if *v == nil { - sv = &types.JobManifest{} + sv = &types.LambdaInvokeOperation{} } else { sv = *v } @@ -6542,16 +8377,17 @@ func awsRestxml_deserializeDocumentJobManifest(v **types.JobManifest, decoder sm originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Location", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentJobManifestLocation(&sv.Location, nodeDecoder); err != nil { + case strings.EqualFold("FunctionArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - - case strings.EqualFold("Spec", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentJobManifestSpec(&sv.Spec, nodeDecoder); err != nil { - return err + if val == nil { + break + } + { + xtv := string(val) + sv.FunctionArn = ptr.String(xtv) } default: @@ -6568,18 +8404,17 @@ func awsRestxml_deserializeDocumentJobManifest(v **types.JobManifest, decoder sm return nil } -func awsRestxml_deserializeDocumentJobManifestFieldList(v *[]types.JobManifestFieldName, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentLifecycleExpiration(v **types.LifecycleExpiration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.JobManifestFieldName + var sv *types.LifecycleExpiration if *v == nil { - sv = make([]types.JobManifestFieldName, 0) + sv = &types.LifecycleExpiration{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -6588,11 +8423,10 @@ func awsRestxml_deserializeDocumentJobManifestFieldList(v *[]types.JobManifestFi if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("member", t.Name.Local): - var col types.JobManifestFieldName + case strings.EqualFold("Date", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6602,11 +8436,48 @@ func awsRestxml_deserializeDocumentJobManifestFieldList(v *[]types.JobManifestFi } { xtv := string(val) - col = types.JobManifestFieldName(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.Date = ptr.Time(t) + } + + case strings.EqualFold("Days", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Days = int32(i64) + } + + case strings.EqualFold("ExpiredObjectDeleteMarker", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected ExpiredObjectDeleteMarker to be of type *bool, got %T instead", val) + } + sv.ExpiredObjectDeleteMarker = xtv } - sv = append(sv, col) default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -6619,42 +8490,111 @@ func awsRestxml_deserializeDocumentJobManifestFieldList(v *[]types.JobManifestFi return nil } -func awsRestxml_deserializeDocumentJobManifestFieldListUnwrapped(v *[]types.JobManifestFieldName, decoder smithyxml.NodeDecoder) error { - var sv []types.JobManifestFieldName +func awsRestxml_deserializeDocumentLifecycleRule(v **types.LifecycleRule, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.LifecycleRule if *v == nil { - sv = make([]types.JobManifestFieldName, 0) + sv = &types.LifecycleRule{} } else { sv = *v } - switch { - default: - var mv types.JobManifestFieldName - t := decoder.StartEl - _ = t - val, err := decoder.Value() + for { + t, done, err := decoder.Token() if err != nil { return err } - if val == nil { + if done { break } - { - xtv := string(val) - mv = types.JobManifestFieldName(xtv) + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("AbortIncompleteMultipartUpload", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentAbortIncompleteMultipartUpload(&sv.AbortIncompleteMultipartUpload, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("Expiration", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentLifecycleExpiration(&sv.Expiration, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("Filter", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentLifecycleRuleFilter(&sv.Filter, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("ID", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ID = ptr.String(xtv) + } + + case strings.EqualFold("NoncurrentVersionExpiration", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentNoncurrentVersionExpiration(&sv.NoncurrentVersionExpiration, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("NoncurrentVersionTransitions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentNoncurrentVersionTransitionList(&sv.NoncurrentVersionTransitions, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("Status", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Status = types.ExpirationStatus(xtv) + } + + case strings.EqualFold("Transitions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentTransitionList(&sv.Transitions, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + } - sv = append(sv, mv) + decoder = originalDecoder } *v = sv return nil } -func awsRestxml_deserializeDocumentJobManifestLocation(v **types.JobManifestLocation, decoder smithyxml.NodeDecoder) error { + +func awsRestxml_deserializeDocumentLifecycleRuleAndOperator(v **types.LifecycleRuleAndOperator, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.JobManifestLocation + var sv *types.LifecycleRuleAndOperator if *v == nil { - sv = &types.JobManifestLocation{} + sv = &types.LifecycleRuleAndOperator{} } else { sv = *v } @@ -6670,20 +8610,7 @@ func awsRestxml_deserializeDocumentJobManifestLocation(v **types.JobManifestLoca originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("ETag", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ETag = ptr.String(xtv) - } - - case strings.EqualFold("ObjectArn", t.Name.Local): + case strings.EqualFold("Prefix", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6693,21 +8620,14 @@ func awsRestxml_deserializeDocumentJobManifestLocation(v **types.JobManifestLoca } { xtv := string(val) - sv.ObjectArn = ptr.String(xtv) + sv.Prefix = ptr.String(xtv) } - case strings.EqualFold("ObjectVersionId", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("Tags", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentS3TagSet(&sv.Tags, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.ObjectVersionId = ptr.String(xtv) - } default: // Do nothing and ignore the unexpected tag element @@ -6723,13 +8643,13 @@ func awsRestxml_deserializeDocumentJobManifestLocation(v **types.JobManifestLoca return nil } -func awsRestxml_deserializeDocumentJobManifestSpec(v **types.JobManifestSpec, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentLifecycleRuleFilter(v **types.LifecycleRuleFilter, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.JobManifestSpec + var sv *types.LifecycleRuleFilter if *v == nil { - sv = &types.JobManifestSpec{} + sv = &types.LifecycleRuleFilter{} } else { sv = *v } @@ -6745,13 +8665,13 @@ func awsRestxml_deserializeDocumentJobManifestSpec(v **types.JobManifestSpec, de originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Fields", t.Name.Local): + case strings.EqualFold("And", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentJobManifestFieldList(&sv.Fields, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentLifecycleRuleAndOperator(&sv.And, nodeDecoder); err != nil { return err } - case strings.EqualFold("Format", t.Name.Local): + case strings.EqualFold("Prefix", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6761,7 +8681,13 @@ func awsRestxml_deserializeDocumentJobManifestSpec(v **types.JobManifestSpec, de } { xtv := string(val) - sv.Format = types.JobManifestFormat(xtv) + sv.Prefix = ptr.String(xtv) + } + + case strings.EqualFold("Tag", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentS3Tag(&sv.Tag, nodeDecoder); err != nil { + return err } default: @@ -6778,17 +8704,18 @@ func awsRestxml_deserializeDocumentJobManifestSpec(v **types.JobManifestSpec, de return nil } -func awsRestxml_deserializeDocumentJobOperation(v **types.JobOperation, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentLifecycleRules(v *[]types.LifecycleRule, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.JobOperation + var sv []types.LifecycleRule if *v == nil { - sv = &types.JobOperation{} + sv = make([]types.LifecycleRule, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -6797,53 +8724,18 @@ func awsRestxml_deserializeDocumentJobOperation(v **types.JobOperation, decoder if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("LambdaInvoke", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentLambdaInvokeOperation(&sv.LambdaInvoke, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("S3InitiateRestoreObject", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentS3InitiateRestoreObjectOperation(&sv.S3InitiateRestoreObject, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("S3PutObjectAcl", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentS3SetObjectAclOperation(&sv.S3PutObjectAcl, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("S3PutObjectCopy", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentS3CopyObjectOperation(&sv.S3PutObjectCopy, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("S3PutObjectLegalHold", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentS3SetObjectLegalHoldOperation(&sv.S3PutObjectLegalHold, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("S3PutObjectRetention", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentS3SetObjectRetentionOperation(&sv.S3PutObjectRetention, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("S3PutObjectTagging", t.Name.Local): + case strings.EqualFold("Rule", t.Name.Local): + var col types.LifecycleRule nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentS3SetObjectTaggingOperation(&sv.S3PutObjectTagging, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentLifecycleRule(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -6856,13 +8748,37 @@ func awsRestxml_deserializeDocumentJobOperation(v **types.JobOperation, decoder return nil } -func awsRestxml_deserializeDocumentJobProgressSummary(v **types.JobProgressSummary, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentLifecycleRulesUnwrapped(v *[]types.LifecycleRule, decoder smithyxml.NodeDecoder) error { + var sv []types.LifecycleRule + if *v == nil { + sv = make([]types.LifecycleRule, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.LifecycleRule + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsRestxml_deserializeDocumentLifecycleRule(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsRestxml_deserializeDocumentListStorageLensConfigurationEntry(v **types.ListStorageLensConfigurationEntry, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.JobProgressSummary + var sv *types.ListStorageLensConfigurationEntry if *v == nil { - sv = &types.JobProgressSummary{} + sv = &types.ListStorageLensConfigurationEntry{} } else { sv = *v } @@ -6878,7 +8794,7 @@ func awsRestxml_deserializeDocumentJobProgressSummary(v **types.JobProgressSumma originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("NumberOfTasksFailed", t.Name.Local): + case strings.EqualFold("HomeRegion", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6888,14 +8804,10 @@ func awsRestxml_deserializeDocumentJobProgressSummary(v **types.JobProgressSumma } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.NumberOfTasksFailed = i64 + sv.HomeRegion = ptr.String(xtv) } - case strings.EqualFold("NumberOfTasksSucceeded", t.Name.Local): + case strings.EqualFold("Id", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6905,14 +8817,26 @@ func awsRestxml_deserializeDocumentJobProgressSummary(v **types.JobProgressSumma } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) + sv.Id = ptr.String(xtv) + } + + case strings.EqualFold("IsEnabled", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) if err != nil { - return err + return fmt.Errorf("expected IsEnabled to be of type *bool, got %T instead", val) } - sv.NumberOfTasksSucceeded = i64 + sv.IsEnabled = xtv } - case strings.EqualFold("TotalNumberOfTasks", t.Name.Local): + case strings.EqualFold("StorageLensArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6922,11 +8846,7 @@ func awsRestxml_deserializeDocumentJobProgressSummary(v **types.JobProgressSumma } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.TotalNumberOfTasks = i64 + sv.StorageLensArn = ptr.String(xtv) } default: @@ -6943,13 +8863,13 @@ func awsRestxml_deserializeDocumentJobProgressSummary(v **types.JobProgressSumma return nil } -func awsRestxml_deserializeDocumentJobReport(v **types.JobReport, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentNoncurrentVersionExpiration(v **types.NoncurrentVersionExpiration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.JobReport + var sv *types.NoncurrentVersionExpiration if *v == nil { - sv = &types.JobReport{} + sv = &types.NoncurrentVersionExpiration{} } else { sv = *v } @@ -6965,7 +8885,7 @@ func awsRestxml_deserializeDocumentJobReport(v **types.JobReport, decoder smithy originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Bucket", t.Name.Local): + case strings.EqualFold("NoncurrentDays", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -6975,39 +8895,50 @@ func awsRestxml_deserializeDocumentJobReport(v **types.JobReport, decoder smithy } { xtv := string(val) - sv.Bucket = ptr.String(xtv) - } - - case strings.EqualFold("Enabled", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) + i64, err := strconv.ParseInt(xtv, 10, 64) if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + return err } - sv.Enabled = xtv + sv.NoncurrentDays = int32(i64) } - case strings.EqualFold("Format", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Format = types.JobReportFormat(xtv) - } - case strings.EqualFold("Prefix", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentNoncurrentVersionTransition(v **types.NoncurrentVersionTransition, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.NoncurrentVersionTransition + if *v == nil { + sv = &types.NoncurrentVersionTransition{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("NoncurrentDays", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -7017,10 +8948,14 @@ func awsRestxml_deserializeDocumentJobReport(v **types.JobReport, decoder smithy } { xtv := string(val) - sv.Prefix = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.NoncurrentDays = int32(i64) } - case strings.EqualFold("ReportScope", t.Name.Local): + case strings.EqualFold("StorageClass", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -7030,7 +8965,7 @@ func awsRestxml_deserializeDocumentJobReport(v **types.JobReport, decoder smithy } { xtv := string(val) - sv.ReportScope = types.JobReportScope(xtv) + sv.StorageClass = types.TransitionStorageClass(xtv) } default: @@ -7047,17 +8982,18 @@ func awsRestxml_deserializeDocumentJobReport(v **types.JobReport, decoder smithy return nil } -func awsRestxml_deserializeDocumentJobStatusException(v **types.JobStatusException, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentNoncurrentVersionTransitionList(v *[]types.NoncurrentVersionTransition, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.JobStatusException + var sv []types.NoncurrentVersionTransition if *v == nil { - sv = &types.JobStatusException{} + sv = make([]types.NoncurrentVersionTransition, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -7066,24 +9002,18 @@ func awsRestxml_deserializeDocumentJobStatusException(v **types.JobStatusExcepti if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("NoncurrentVersionTransition", t.Name.Local): + var col types.NoncurrentVersionTransition + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsRestxml_deserializeDocumentNoncurrentVersionTransition(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -7096,13 +9026,37 @@ func awsRestxml_deserializeDocumentJobStatusException(v **types.JobStatusExcepti return nil } -func awsRestxml_deserializeDocumentLambdaInvokeOperation(v **types.LambdaInvokeOperation, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentNoncurrentVersionTransitionListUnwrapped(v *[]types.NoncurrentVersionTransition, decoder smithyxml.NodeDecoder) error { + var sv []types.NoncurrentVersionTransition + if *v == nil { + sv = make([]types.NoncurrentVersionTransition, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.NoncurrentVersionTransition + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsRestxml_deserializeDocumentNoncurrentVersionTransition(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsRestxml_deserializeDocumentNoSuchPublicAccessBlockConfiguration(v **types.NoSuchPublicAccessBlockConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.LambdaInvokeOperation + var sv *types.NoSuchPublicAccessBlockConfiguration if *v == nil { - sv = &types.LambdaInvokeOperation{} + sv = &types.NoSuchPublicAccessBlockConfiguration{} } else { sv = *v } @@ -7118,7 +9072,7 @@ func awsRestxml_deserializeDocumentLambdaInvokeOperation(v **types.LambdaInvokeO originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("FunctionArn", t.Name.Local): + case strings.EqualFold("Message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -7128,7 +9082,7 @@ func awsRestxml_deserializeDocumentLambdaInvokeOperation(v **types.LambdaInvokeO } { xtv := string(val) - sv.FunctionArn = ptr.String(xtv) + sv.Message = ptr.String(xtv) } default: @@ -7145,13 +9099,13 @@ func awsRestxml_deserializeDocumentLambdaInvokeOperation(v **types.LambdaInvokeO return nil } -func awsRestxml_deserializeDocumentLifecycleExpiration(v **types.LifecycleExpiration, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentNotFoundException(v **types.NotFoundException, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.LifecycleExpiration + var sv *types.NotFoundException if *v == nil { - sv = &types.LifecycleExpiration{} + sv = &types.NotFoundException{} } else { sv = *v } @@ -7167,24 +9121,7 @@ func awsRestxml_deserializeDocumentLifecycleExpiration(v **types.LifecycleExpira originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Date", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.Date = ptr.Time(t) - } - - case strings.EqualFold("Days", t.Name.Local): + case strings.EqualFold("Message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -7194,27 +9131,7 @@ func awsRestxml_deserializeDocumentLifecycleExpiration(v **types.LifecycleExpira } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Days = int32(i64) - } - - case strings.EqualFold("ExpiredObjectDeleteMarker", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected ExpiredObjectDeleteMarker to be of type *bool, got %T instead", val) - } - sv.ExpiredObjectDeleteMarker = xtv + sv.Message = ptr.String(xtv) } default: @@ -7231,13 +9148,13 @@ func awsRestxml_deserializeDocumentLifecycleExpiration(v **types.LifecycleExpira return nil } -func awsRestxml_deserializeDocumentLifecycleRule(v **types.LifecycleRule, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentObjectLambdaAccessPoint(v **types.ObjectLambdaAccessPoint, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.LifecycleRule + var sv *types.ObjectLambdaAccessPoint if *v == nil { - sv = &types.LifecycleRule{} + sv = &types.ObjectLambdaAccessPoint{} } else { sv = *v } @@ -7253,25 +9170,7 @@ func awsRestxml_deserializeDocumentLifecycleRule(v **types.LifecycleRule, decode originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("AbortIncompleteMultipartUpload", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentAbortIncompleteMultipartUpload(&sv.AbortIncompleteMultipartUpload, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Expiration", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentLifecycleExpiration(&sv.Expiration, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Filter", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentLifecycleRuleFilter(&sv.Filter, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("ID", t.Name.Local): + case strings.EqualFold("Name", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -7281,22 +9180,10 @@ func awsRestxml_deserializeDocumentLifecycleRule(v **types.LifecycleRule, decode } { xtv := string(val) - sv.ID = ptr.String(xtv) - } - - case strings.EqualFold("NoncurrentVersionExpiration", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentNoncurrentVersionExpiration(&sv.NoncurrentVersionExpiration, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("NoncurrentVersionTransitions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentNoncurrentVersionTransitionList(&sv.NoncurrentVersionTransitions, nodeDecoder); err != nil { - return err + sv.Name = ptr.String(xtv) } - case strings.EqualFold("Status", t.Name.Local): + case strings.EqualFold("ObjectLambdaAccessPointArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -7306,13 +9193,7 @@ func awsRestxml_deserializeDocumentLifecycleRule(v **types.LifecycleRule, decode } { xtv := string(val) - sv.Status = types.ExpirationStatus(xtv) - } - - case strings.EqualFold("Transitions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTransitionList(&sv.Transitions, nodeDecoder); err != nil { - return err + sv.ObjectLambdaAccessPointArn = ptr.String(xtv) } default: @@ -7329,17 +9210,18 @@ func awsRestxml_deserializeDocumentLifecycleRule(v **types.LifecycleRule, decode return nil } -func awsRestxml_deserializeDocumentLifecycleRuleAndOperator(v **types.LifecycleRuleAndOperator, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentObjectLambdaAccessPointList(v *[]types.ObjectLambdaAccessPoint, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.LifecycleRuleAndOperator + var sv []types.ObjectLambdaAccessPoint if *v == nil { - sv = &types.LifecycleRuleAndOperator{} + sv = make([]types.ObjectLambdaAccessPoint, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -7348,30 +9230,18 @@ func awsRestxml_deserializeDocumentLifecycleRuleAndOperator(v **types.LifecycleR if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Prefix", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Prefix = ptr.String(xtv) - } - - case strings.EqualFold("Tags", t.Name.Local): + case strings.EqualFold("ObjectLambdaAccessPoint", t.Name.Local): + var col types.ObjectLambdaAccessPoint nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentS3TagSet(&sv.Tags, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentObjectLambdaAccessPoint(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -7384,74 +9254,37 @@ func awsRestxml_deserializeDocumentLifecycleRuleAndOperator(v **types.LifecycleR return nil } -func awsRestxml_deserializeDocumentLifecycleRuleFilter(v **types.LifecycleRuleFilter, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.LifecycleRuleFilter +func awsRestxml_deserializeDocumentObjectLambdaAccessPointListUnwrapped(v *[]types.ObjectLambdaAccessPoint, decoder smithyxml.NodeDecoder) error { + var sv []types.ObjectLambdaAccessPoint if *v == nil { - sv = &types.LifecycleRuleFilter{} + sv = make([]types.ObjectLambdaAccessPoint, 0) } else { sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { + switch { + default: + var mv types.ObjectLambdaAccessPoint + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsRestxml_deserializeDocumentObjectLambdaAccessPoint(&destAddr, nodeDecoder); err != nil { return err } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("And", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentLifecycleRuleAndOperator(&sv.And, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Prefix", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Prefix = ptr.String(xtv) - } - - case strings.EqualFold("Tag", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentS3Tag(&sv.Tag, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder + mv = *destAddr + sv = append(sv, mv) } *v = sv return nil } - -func awsRestxml_deserializeDocumentLifecycleRules(v *[]types.LifecycleRule, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentObjectLambdaAllowedFeaturesList(v *[]types.ObjectLambdaAllowedFeature, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.LifecycleRule + var sv []types.ObjectLambdaAllowedFeature if *v == nil { - sv = make([]types.LifecycleRule, 0) + sv = make([]types.ObjectLambdaAllowedFeature, 0) } else { sv = *v } @@ -7465,15 +9298,22 @@ func awsRestxml_deserializeDocumentLifecycleRules(v *[]types.LifecycleRule, deco if done { break } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder switch { - case strings.EqualFold("Rule", t.Name.Local): - var col types.LifecycleRule - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsRestxml_deserializeDocumentLifecycleRule(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("AllowedFeature", t.Name.Local): + var col types.ObjectLambdaAllowedFeature + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr + if val == nil { + break + } + { + xtv := string(val) + col = types.ObjectLambdaAllowedFeature(xtv) + } sv = append(sv, col) default: @@ -7489,37 +9329,42 @@ func awsRestxml_deserializeDocumentLifecycleRules(v *[]types.LifecycleRule, deco return nil } -func awsRestxml_deserializeDocumentLifecycleRulesUnwrapped(v *[]types.LifecycleRule, decoder smithyxml.NodeDecoder) error { - var sv []types.LifecycleRule +func awsRestxml_deserializeDocumentObjectLambdaAllowedFeaturesListUnwrapped(v *[]types.ObjectLambdaAllowedFeature, decoder smithyxml.NodeDecoder) error { + var sv []types.ObjectLambdaAllowedFeature if *v == nil { - sv = make([]types.LifecycleRule, 0) + sv = make([]types.ObjectLambdaAllowedFeature, 0) } else { sv = *v } switch { default: - var mv types.LifecycleRule + var mv types.ObjectLambdaAllowedFeature t := decoder.StartEl _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsRestxml_deserializeDocumentLifecycleRule(&destAddr, nodeDecoder); err != nil { + val, err := decoder.Value() + if err != nil { return err } - mv = *destAddr + if val == nil { + break + } + { + xtv := string(val) + mv = types.ObjectLambdaAllowedFeature(xtv) + } sv = append(sv, mv) } *v = sv return nil } -func awsRestxml_deserializeDocumentListStorageLensConfigurationEntry(v **types.ListStorageLensConfigurationEntry, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentObjectLambdaConfiguration(v **types.ObjectLambdaConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ListStorageLensConfigurationEntry + var sv *types.ObjectLambdaConfiguration if *v == nil { - sv = &types.ListStorageLensConfigurationEntry{} + sv = &types.ObjectLambdaConfiguration{} } else { sv = *v } @@ -7535,33 +9380,13 @@ func awsRestxml_deserializeDocumentListStorageLensConfigurationEntry(v **types.L originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("HomeRegion", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.HomeRegion = ptr.String(xtv) - } - - case strings.EqualFold("Id", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("AllowedFeatures", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentObjectLambdaAllowedFeaturesList(&sv.AllowedFeatures, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Id = ptr.String(xtv) - } - case strings.EqualFold("IsEnabled", t.Name.Local): + case strings.EqualFold("CloudWatchMetricsEnabled", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -7572,12 +9397,12 @@ func awsRestxml_deserializeDocumentListStorageLensConfigurationEntry(v **types.L { xtv, err := strconv.ParseBool(string(val)) if err != nil { - return fmt.Errorf("expected IsEnabled to be of type *bool, got %T instead", val) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsEnabled = xtv + sv.CloudWatchMetricsEnabled = xtv } - case strings.EqualFold("StorageLensArn", t.Name.Local): + case strings.EqualFold("SupportingAccessPoint", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -7587,7 +9412,13 @@ func awsRestxml_deserializeDocumentListStorageLensConfigurationEntry(v **types.L } { xtv := string(val) - sv.StorageLensArn = ptr.String(xtv) + sv.SupportingAccessPoint = ptr.String(xtv) + } + + case strings.EqualFold("TransformationConfigurations", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentObjectLambdaTransformationConfigurationsList(&sv.TransformationConfigurations, nodeDecoder); err != nil { + return err } default: @@ -7604,17 +9435,12 @@ func awsRestxml_deserializeDocumentListStorageLensConfigurationEntry(v **types.L return nil } -func awsRestxml_deserializeDocumentNoncurrentVersionExpiration(v **types.NoncurrentVersionExpiration, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentObjectLambdaContentTransformation(v *types.ObjectLambdaContentTransformation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.NoncurrentVersionExpiration - if *v == nil { - sv = &types.NoncurrentVersionExpiration{} - } else { - sv = *v - } - + var uv types.ObjectLambdaContentTransformation + var memberFound bool for { t, done, err := decoder.Token() if err != nil { @@ -7623,47 +9449,43 @@ func awsRestxml_deserializeDocumentNoncurrentVersionExpiration(v **types.Noncurr if done { break } + if memberFound { + if err = decoder.Decoder.Skip(); err != nil { + return err + } + } originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("NoncurrentDays", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("AwsLambda", t.Name.Local): + var mv types.AwsLambdaTransformation + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsRestxml_deserializeDocumentAwsLambdaTransformation(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.NoncurrentDays = int32(i64) - } + mv = *destAddr + uv = &types.ObjectLambdaContentTransformationMemberAwsLambda{Value: mv} + memberFound = true default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } + uv = &types.UnknownUnionMember{Tag: t.Name.Local} + memberFound = true } decoder = originalDecoder } - *v = sv + *v = uv return nil } -func awsRestxml_deserializeDocumentNoncurrentVersionTransition(v **types.NoncurrentVersionTransition, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentObjectLambdaTransformationConfiguration(v **types.ObjectLambdaTransformationConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.NoncurrentVersionTransition + var sv *types.ObjectLambdaTransformationConfiguration if *v == nil { - sv = &types.NoncurrentVersionTransition{} + sv = &types.ObjectLambdaTransformationConfiguration{} } else { sv = *v } @@ -7679,35 +9501,17 @@ func awsRestxml_deserializeDocumentNoncurrentVersionTransition(v **types.Noncurr originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("NoncurrentDays", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("Actions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentObjectLambdaTransformationConfigurationActionsList(&sv.Actions, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.NoncurrentDays = int32(i64) - } - case strings.EqualFold("StorageClass", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("ContentTransformation", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentObjectLambdaContentTransformation(&sv.ContentTransformation, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.StorageClass = types.TransitionStorageClass(xtv) - } default: // Do nothing and ignore the unexpected tag element @@ -7723,13 +9527,13 @@ func awsRestxml_deserializeDocumentNoncurrentVersionTransition(v **types.Noncurr return nil } -func awsRestxml_deserializeDocumentNoncurrentVersionTransitionList(v *[]types.NoncurrentVersionTransition, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentObjectLambdaTransformationConfigurationActionsList(v *[]types.ObjectLambdaTransformationConfigurationAction, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.NoncurrentVersionTransition + var sv []types.ObjectLambdaTransformationConfigurationAction if *v == nil { - sv = make([]types.NoncurrentVersionTransition, 0) + sv = make([]types.ObjectLambdaTransformationConfigurationAction, 0) } else { sv = *v } @@ -7743,15 +9547,22 @@ func awsRestxml_deserializeDocumentNoncurrentVersionTransitionList(v *[]types.No if done { break } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder switch { - case strings.EqualFold("NoncurrentVersionTransition", t.Name.Local): - var col types.NoncurrentVersionTransition - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsRestxml_deserializeDocumentNoncurrentVersionTransition(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("Action", t.Name.Local): + var col types.ObjectLambdaTransformationConfigurationAction + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr + if val == nil { + break + } + { + xtv := string(val) + col = types.ObjectLambdaTransformationConfigurationAction(xtv) + } sv = append(sv, col) default: @@ -7767,41 +9578,47 @@ func awsRestxml_deserializeDocumentNoncurrentVersionTransitionList(v *[]types.No return nil } -func awsRestxml_deserializeDocumentNoncurrentVersionTransitionListUnwrapped(v *[]types.NoncurrentVersionTransition, decoder smithyxml.NodeDecoder) error { - var sv []types.NoncurrentVersionTransition +func awsRestxml_deserializeDocumentObjectLambdaTransformationConfigurationActionsListUnwrapped(v *[]types.ObjectLambdaTransformationConfigurationAction, decoder smithyxml.NodeDecoder) error { + var sv []types.ObjectLambdaTransformationConfigurationAction if *v == nil { - sv = make([]types.NoncurrentVersionTransition, 0) + sv = make([]types.ObjectLambdaTransformationConfigurationAction, 0) } else { sv = *v } switch { default: - var mv types.NoncurrentVersionTransition + var mv types.ObjectLambdaTransformationConfigurationAction t := decoder.StartEl _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsRestxml_deserializeDocumentNoncurrentVersionTransition(&destAddr, nodeDecoder); err != nil { + val, err := decoder.Value() + if err != nil { return err } - mv = *destAddr + if val == nil { + break + } + { + xtv := string(val) + mv = types.ObjectLambdaTransformationConfigurationAction(xtv) + } sv = append(sv, mv) } *v = sv return nil } -func awsRestxml_deserializeDocumentNoSuchPublicAccessBlockConfiguration(v **types.NoSuchPublicAccessBlockConfiguration, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentObjectLambdaTransformationConfigurationsList(v *[]types.ObjectLambdaTransformationConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.NoSuchPublicAccessBlockConfiguration + var sv []types.ObjectLambdaTransformationConfiguration if *v == nil { - sv = &types.NoSuchPublicAccessBlockConfiguration{} + sv = make([]types.ObjectLambdaTransformationConfiguration, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -7810,24 +9627,18 @@ func awsRestxml_deserializeDocumentNoSuchPublicAccessBlockConfiguration(v **type if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("TransformationConfiguration", t.Name.Local): + var col types.ObjectLambdaTransformationConfiguration + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsRestxml_deserializeDocumentObjectLambdaTransformationConfiguration(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -7840,55 +9651,30 @@ func awsRestxml_deserializeDocumentNoSuchPublicAccessBlockConfiguration(v **type return nil } -func awsRestxml_deserializeDocumentNotFoundException(v **types.NotFoundException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.NotFoundException +func awsRestxml_deserializeDocumentObjectLambdaTransformationConfigurationsListUnwrapped(v *[]types.ObjectLambdaTransformationConfiguration, decoder smithyxml.NodeDecoder) error { + var sv []types.ObjectLambdaTransformationConfiguration if *v == nil { - sv = &types.NotFoundException{} + sv = make([]types.ObjectLambdaTransformationConfiguration, 0) } else { sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { + switch { + default: + var mv types.ObjectLambdaTransformationConfiguration + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsRestxml_deserializeDocumentObjectLambdaTransformationConfiguration(&destAddr, nodeDecoder); err != nil { return err } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder + mv = *destAddr + sv = append(sv, mv) } *v = sv return nil } - func awsRestxml_deserializeDocumentPolicyStatus(v **types.PolicyStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -8845,6 +10631,42 @@ func awsRestxml_deserializeDocumentS3CopyObjectOperation(v **types.S3CopyObjectO return nil } +func awsRestxml_deserializeDocumentS3DeleteObjectTaggingOperation(v **types.S3DeleteObjectTaggingOperation, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.S3DeleteObjectTaggingOperation + if *v == nil { + sv = &types.S3DeleteObjectTaggingOperation{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsRestxml_deserializeDocumentS3Grant(v **types.S3Grant, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/s3control/doc.go b/service/s3control/doc.go index 54e698dda2e..3ce05a321d8 100644 --- a/service/s3control/doc.go +++ b/service/s3control/doc.go @@ -3,5 +3,5 @@ // Package s3control provides the API client, operations, and parameter types for // AWS S3 Control. // -// AWS S3 Control provides access to Amazon S3 control plane operations. +// AWS S3 Control provides access to Amazon S3 control plane actions. package s3control diff --git a/service/s3control/serializers.go b/service/s3control/serializers.go index 0b6472365b5..d0c5d5b1f4a 100644 --- a/service/s3control/serializers.go +++ b/service/s3control/serializers.go @@ -143,6 +143,110 @@ func awsRestxml_serializeOpDocumentCreateAccessPointInput(v *CreateAccessPointIn return nil } +type awsRestxml_serializeOpCreateAccessPointForObjectLambda struct { +} + +func (*awsRestxml_serializeOpCreateAccessPointForObjectLambda) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpCreateAccessPointForObjectLambda) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateAccessPointForObjectLambdaInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/v20180820/accesspointforobjectlambda/{Name}") + request.URL.Path = opPath + if len(request.URL.RawQuery) > 0 { + request.URL.RawQuery = "&" + opQuery + } else { + request.URL.RawQuery = opQuery + } + + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsCreateAccessPointForObjectLambdaInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/xml") + + xmlEncoder := smithyxml.NewEncoder(bytes.NewBuffer(nil)) + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "CreateAccessPointForObjectLambdaRequest", + }, + Attr: rootAttr, + } + root.Attr = append(root.Attr, smithyxml.NewNamespaceAttribute("", "http://awss3control.amazonaws.com/doc/2018-08-20/")) + if err := awsRestxml_serializeOpDocumentCreateAccessPointForObjectLambdaInput(input, xmlEncoder.RootElement(root)); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + if request, err = request.SetStream(bytes.NewReader(xmlEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsCreateAccessPointForObjectLambdaInput(v *CreateAccessPointForObjectLambdaInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AccountId != nil && len(*v.AccountId) > 0 { + locationName := "X-Amz-Account-Id" + encoder.SetHeader(locationName).String(*v.AccountId) + } + + if v.Name == nil || len(*v.Name) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} + } + if v.Name != nil { + if err := encoder.SetURI("Name").String(*v.Name); err != nil { + return err + } + } + + return nil +} + +func awsRestxml_serializeOpDocumentCreateAccessPointForObjectLambdaInput(v *CreateAccessPointForObjectLambdaInput, value smithyxml.Value) error { + defer value.Close() + if v.Configuration != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "Configuration", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + if err := awsRestxml_serializeDocumentObjectLambdaConfiguration(v.Configuration, el); err != nil { + return err + } + } + return nil +} + type awsRestxml_serializeOpCreateBucket struct { } @@ -526,6 +630,74 @@ func awsRestxml_serializeOpHttpBindingsDeleteAccessPointInput(v *DeleteAccessPoi return nil } +type awsRestxml_serializeOpDeleteAccessPointForObjectLambda struct { +} + +func (*awsRestxml_serializeOpDeleteAccessPointForObjectLambda) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpDeleteAccessPointForObjectLambda) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteAccessPointForObjectLambdaInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/v20180820/accesspointforobjectlambda/{Name}") + request.URL.Path = opPath + if len(request.URL.RawQuery) > 0 { + request.URL.RawQuery = "&" + opQuery + } else { + request.URL.RawQuery = opQuery + } + + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsDeleteAccessPointForObjectLambdaInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsDeleteAccessPointForObjectLambdaInput(v *DeleteAccessPointForObjectLambdaInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AccountId != nil && len(*v.AccountId) > 0 { + locationName := "X-Amz-Account-Id" + encoder.SetHeader(locationName).String(*v.AccountId) + } + + if v.Name == nil || len(*v.Name) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} + } + if v.Name != nil { + if err := encoder.SetURI("Name").String(*v.Name); err != nil { + return err + } + } + + return nil +} + type awsRestxml_serializeOpDeleteAccessPointPolicy struct { } @@ -594,6 +766,74 @@ func awsRestxml_serializeOpHttpBindingsDeleteAccessPointPolicyInput(v *DeleteAcc return nil } +type awsRestxml_serializeOpDeleteAccessPointPolicyForObjectLambda struct { +} + +func (*awsRestxml_serializeOpDeleteAccessPointPolicyForObjectLambda) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpDeleteAccessPointPolicyForObjectLambda) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteAccessPointPolicyForObjectLambdaInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/v20180820/accesspointforobjectlambda/{Name}/policy") + request.URL.Path = opPath + if len(request.URL.RawQuery) > 0 { + request.URL.RawQuery = "&" + opQuery + } else { + request.URL.RawQuery = opQuery + } + + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsDeleteAccessPointPolicyForObjectLambdaInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsDeleteAccessPointPolicyForObjectLambdaInput(v *DeleteAccessPointPolicyForObjectLambdaInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AccountId != nil && len(*v.AccountId) > 0 { + locationName := "X-Amz-Account-Id" + encoder.SetHeader(locationName).String(*v.AccountId) + } + + if v.Name == nil || len(*v.Name) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} + } + if v.Name != nil { + if err := encoder.SetURI("Name").String(*v.Name); err != nil { + return err + } + } + + return nil +} + type awsRestxml_serializeOpDeleteBucket struct { } @@ -1265,14 +1505,14 @@ func awsRestxml_serializeOpHttpBindingsGetAccessPointInput(v *GetAccessPointInpu return nil } -type awsRestxml_serializeOpGetAccessPointPolicy struct { +type awsRestxml_serializeOpGetAccessPointConfigurationForObjectLambda struct { } -func (*awsRestxml_serializeOpGetAccessPointPolicy) ID() string { +func (*awsRestxml_serializeOpGetAccessPointConfigurationForObjectLambda) ID() string { return "OperationSerializer" } -func (m *awsRestxml_serializeOpGetAccessPointPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestxml_serializeOpGetAccessPointConfigurationForObjectLambda) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1280,13 +1520,13 @@ func (m *awsRestxml_serializeOpGetAccessPointPolicy) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetAccessPointPolicyInput) + input, ok := in.Parameters.(*GetAccessPointConfigurationForObjectLambdaInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/v20180820/accesspoint/{Name}/policy") + opPath, opQuery := httpbinding.SplitURI("/v20180820/accesspointforobjectlambda/{Name}/configuration") request.URL.Path = opPath if len(request.URL.RawQuery) > 0 { request.URL.RawQuery = "&" + opQuery @@ -1300,7 +1540,7 @@ func (m *awsRestxml_serializeOpGetAccessPointPolicy) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestxml_serializeOpHttpBindingsGetAccessPointPolicyInput(input, restEncoder); err != nil { + if err := awsRestxml_serializeOpHttpBindingsGetAccessPointConfigurationForObjectLambdaInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1311,7 +1551,7 @@ func (m *awsRestxml_serializeOpGetAccessPointPolicy) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -func awsRestxml_serializeOpHttpBindingsGetAccessPointPolicyInput(v *GetAccessPointPolicyInput, encoder *httpbinding.Encoder) error { +func awsRestxml_serializeOpHttpBindingsGetAccessPointConfigurationForObjectLambdaInput(v *GetAccessPointConfigurationForObjectLambdaInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -1333,14 +1573,14 @@ func awsRestxml_serializeOpHttpBindingsGetAccessPointPolicyInput(v *GetAccessPoi return nil } -type awsRestxml_serializeOpGetAccessPointPolicyStatus struct { +type awsRestxml_serializeOpGetAccessPointForObjectLambda struct { } -func (*awsRestxml_serializeOpGetAccessPointPolicyStatus) ID() string { +func (*awsRestxml_serializeOpGetAccessPointForObjectLambda) ID() string { return "OperationSerializer" } -func (m *awsRestxml_serializeOpGetAccessPointPolicyStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestxml_serializeOpGetAccessPointForObjectLambda) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1348,13 +1588,13 @@ func (m *awsRestxml_serializeOpGetAccessPointPolicyStatus) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetAccessPointPolicyStatusInput) + input, ok := in.Parameters.(*GetAccessPointForObjectLambdaInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/v20180820/accesspoint/{Name}/policyStatus") + opPath, opQuery := httpbinding.SplitURI("/v20180820/accesspointforobjectlambda/{Name}") request.URL.Path = opPath if len(request.URL.RawQuery) > 0 { request.URL.RawQuery = "&" + opQuery @@ -1368,7 +1608,7 @@ func (m *awsRestxml_serializeOpGetAccessPointPolicyStatus) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestxml_serializeOpHttpBindingsGetAccessPointPolicyStatusInput(input, restEncoder); err != nil { + if err := awsRestxml_serializeOpHttpBindingsGetAccessPointForObjectLambdaInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1379,7 +1619,7 @@ func (m *awsRestxml_serializeOpGetAccessPointPolicyStatus) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -func awsRestxml_serializeOpHttpBindingsGetAccessPointPolicyStatusInput(v *GetAccessPointPolicyStatusInput, encoder *httpbinding.Encoder) error { +func awsRestxml_serializeOpHttpBindingsGetAccessPointForObjectLambdaInput(v *GetAccessPointForObjectLambdaInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -1401,14 +1641,14 @@ func awsRestxml_serializeOpHttpBindingsGetAccessPointPolicyStatusInput(v *GetAcc return nil } -type awsRestxml_serializeOpGetBucket struct { +type awsRestxml_serializeOpGetAccessPointPolicy struct { } -func (*awsRestxml_serializeOpGetBucket) ID() string { +func (*awsRestxml_serializeOpGetAccessPointPolicy) ID() string { return "OperationSerializer" } -func (m *awsRestxml_serializeOpGetBucket) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestxml_serializeOpGetAccessPointPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1416,13 +1656,13 @@ func (m *awsRestxml_serializeOpGetBucket) HandleSerialize(ctx context.Context, i return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetBucketInput) + input, ok := in.Parameters.(*GetAccessPointPolicyInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/v20180820/bucket/{Bucket}") + opPath, opQuery := httpbinding.SplitURI("/v20180820/accesspoint/{Name}/policy") request.URL.Path = opPath if len(request.URL.RawQuery) > 0 { request.URL.RawQuery = "&" + opQuery @@ -1436,7 +1676,7 @@ func (m *awsRestxml_serializeOpGetBucket) HandleSerialize(ctx context.Context, i return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestxml_serializeOpHttpBindingsGetBucketInput(input, restEncoder); err != nil { + if err := awsRestxml_serializeOpHttpBindingsGetAccessPointPolicyInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1447,7 +1687,7 @@ func (m *awsRestxml_serializeOpGetBucket) HandleSerialize(ctx context.Context, i return next.HandleSerialize(ctx, in) } -func awsRestxml_serializeOpHttpBindingsGetBucketInput(v *GetBucketInput, encoder *httpbinding.Encoder) error { +func awsRestxml_serializeOpHttpBindingsGetAccessPointPolicyInput(v *GetAccessPointPolicyInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -1457,11 +1697,11 @@ func awsRestxml_serializeOpHttpBindingsGetBucketInput(v *GetBucketInput, encoder encoder.SetHeader(locationName).String(*v.AccountId) } - if v.Bucket == nil || len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} + if v.Name == nil || len(*v.Name) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } - if v.Bucket != nil { - if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { + if v.Name != nil { + if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } } @@ -1469,14 +1709,14 @@ func awsRestxml_serializeOpHttpBindingsGetBucketInput(v *GetBucketInput, encoder return nil } -type awsRestxml_serializeOpGetBucketLifecycleConfiguration struct { +type awsRestxml_serializeOpGetAccessPointPolicyForObjectLambda struct { } -func (*awsRestxml_serializeOpGetBucketLifecycleConfiguration) ID() string { +func (*awsRestxml_serializeOpGetAccessPointPolicyForObjectLambda) ID() string { return "OperationSerializer" } -func (m *awsRestxml_serializeOpGetBucketLifecycleConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestxml_serializeOpGetAccessPointPolicyForObjectLambda) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1484,13 +1724,13 @@ func (m *awsRestxml_serializeOpGetBucketLifecycleConfiguration) HandleSerialize( return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetBucketLifecycleConfigurationInput) + input, ok := in.Parameters.(*GetAccessPointPolicyForObjectLambdaInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/v20180820/bucket/{Bucket}/lifecycleconfiguration") + opPath, opQuery := httpbinding.SplitURI("/v20180820/accesspointforobjectlambda/{Name}/policy") request.URL.Path = opPath if len(request.URL.RawQuery) > 0 { request.URL.RawQuery = "&" + opQuery @@ -1504,7 +1744,7 @@ func (m *awsRestxml_serializeOpGetBucketLifecycleConfiguration) HandleSerialize( return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestxml_serializeOpHttpBindingsGetBucketLifecycleConfigurationInput(input, restEncoder); err != nil { + if err := awsRestxml_serializeOpHttpBindingsGetAccessPointPolicyForObjectLambdaInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1515,7 +1755,279 @@ func (m *awsRestxml_serializeOpGetBucketLifecycleConfiguration) HandleSerialize( return next.HandleSerialize(ctx, in) } -func awsRestxml_serializeOpHttpBindingsGetBucketLifecycleConfigurationInput(v *GetBucketLifecycleConfigurationInput, encoder *httpbinding.Encoder) error { +func awsRestxml_serializeOpHttpBindingsGetAccessPointPolicyForObjectLambdaInput(v *GetAccessPointPolicyForObjectLambdaInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AccountId != nil && len(*v.AccountId) > 0 { + locationName := "X-Amz-Account-Id" + encoder.SetHeader(locationName).String(*v.AccountId) + } + + if v.Name == nil || len(*v.Name) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} + } + if v.Name != nil { + if err := encoder.SetURI("Name").String(*v.Name); err != nil { + return err + } + } + + return nil +} + +type awsRestxml_serializeOpGetAccessPointPolicyStatus struct { +} + +func (*awsRestxml_serializeOpGetAccessPointPolicyStatus) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpGetAccessPointPolicyStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetAccessPointPolicyStatusInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/v20180820/accesspoint/{Name}/policyStatus") + request.URL.Path = opPath + if len(request.URL.RawQuery) > 0 { + request.URL.RawQuery = "&" + opQuery + } else { + request.URL.RawQuery = opQuery + } + + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsGetAccessPointPolicyStatusInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsGetAccessPointPolicyStatusInput(v *GetAccessPointPolicyStatusInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AccountId != nil && len(*v.AccountId) > 0 { + locationName := "X-Amz-Account-Id" + encoder.SetHeader(locationName).String(*v.AccountId) + } + + if v.Name == nil || len(*v.Name) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} + } + if v.Name != nil { + if err := encoder.SetURI("Name").String(*v.Name); err != nil { + return err + } + } + + return nil +} + +type awsRestxml_serializeOpGetAccessPointPolicyStatusForObjectLambda struct { +} + +func (*awsRestxml_serializeOpGetAccessPointPolicyStatusForObjectLambda) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpGetAccessPointPolicyStatusForObjectLambda) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetAccessPointPolicyStatusForObjectLambdaInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/v20180820/accesspointforobjectlambda/{Name}/policyStatus") + request.URL.Path = opPath + if len(request.URL.RawQuery) > 0 { + request.URL.RawQuery = "&" + opQuery + } else { + request.URL.RawQuery = opQuery + } + + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsGetAccessPointPolicyStatusForObjectLambdaInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsGetAccessPointPolicyStatusForObjectLambdaInput(v *GetAccessPointPolicyStatusForObjectLambdaInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AccountId != nil && len(*v.AccountId) > 0 { + locationName := "X-Amz-Account-Id" + encoder.SetHeader(locationName).String(*v.AccountId) + } + + if v.Name == nil || len(*v.Name) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} + } + if v.Name != nil { + if err := encoder.SetURI("Name").String(*v.Name); err != nil { + return err + } + } + + return nil +} + +type awsRestxml_serializeOpGetBucket struct { +} + +func (*awsRestxml_serializeOpGetBucket) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpGetBucket) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetBucketInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/v20180820/bucket/{Bucket}") + request.URL.Path = opPath + if len(request.URL.RawQuery) > 0 { + request.URL.RawQuery = "&" + opQuery + } else { + request.URL.RawQuery = opQuery + } + + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsGetBucketInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsGetBucketInput(v *GetBucketInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AccountId != nil && len(*v.AccountId) > 0 { + locationName := "X-Amz-Account-Id" + encoder.SetHeader(locationName).String(*v.AccountId) + } + + if v.Bucket == nil || len(*v.Bucket) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} + } + if v.Bucket != nil { + if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { + return err + } + } + + return nil +} + +type awsRestxml_serializeOpGetBucketLifecycleConfiguration struct { +} + +func (*awsRestxml_serializeOpGetBucketLifecycleConfiguration) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpGetBucketLifecycleConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetBucketLifecycleConfigurationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/v20180820/bucket/{Bucket}/lifecycleconfiguration") + request.URL.Path = opPath + if len(request.URL.RawQuery) > 0 { + request.URL.RawQuery = "&" + opQuery + } else { + request.URL.RawQuery = opQuery + } + + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsGetBucketLifecycleConfigurationInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsGetBucketLifecycleConfigurationInput(v *GetBucketLifecycleConfigurationInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2007,6 +2519,73 @@ func awsRestxml_serializeOpHttpBindingsListAccessPointsInput(v *ListAccessPoints return nil } +type awsRestxml_serializeOpListAccessPointsForObjectLambda struct { +} + +func (*awsRestxml_serializeOpListAccessPointsForObjectLambda) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpListAccessPointsForObjectLambda) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListAccessPointsForObjectLambdaInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/v20180820/accesspointforobjectlambda") + request.URL.Path = opPath + if len(request.URL.RawQuery) > 0 { + request.URL.RawQuery = "&" + opQuery + } else { + request.URL.RawQuery = opQuery + } + + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsListAccessPointsForObjectLambdaInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsListAccessPointsForObjectLambdaInput(v *ListAccessPointsForObjectLambdaInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AccountId != nil && len(*v.AccountId) > 0 { + locationName := "X-Amz-Account-Id" + encoder.SetHeader(locationName).String(*v.AccountId) + } + + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + type awsRestxml_serializeOpListJobs struct { } @@ -2140,26 +2719,193 @@ func awsRestxml_serializeOpHttpBindingsListRegionalBucketsInput(v *ListRegionalB encoder.SetQuery("maxResults").Integer(v.MaxResults) } - if v.NextToken != nil { - encoder.SetQuery("nextToken").String(*v.NextToken) - } + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + if v.OutpostId != nil && len(*v.OutpostId) > 0 { + locationName := "X-Amz-Outpost-Id" + encoder.SetHeader(locationName).String(*v.OutpostId) + } + + return nil +} + +type awsRestxml_serializeOpListStorageLensConfigurations struct { +} + +func (*awsRestxml_serializeOpListStorageLensConfigurations) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpListStorageLensConfigurations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListStorageLensConfigurationsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/v20180820/storagelens") + request.URL.Path = opPath + if len(request.URL.RawQuery) > 0 { + request.URL.RawQuery = "&" + opQuery + } else { + request.URL.RawQuery = opQuery + } + + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsListStorageLensConfigurationsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsListStorageLensConfigurationsInput(v *ListStorageLensConfigurationsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AccountId != nil && len(*v.AccountId) > 0 { + locationName := "X-Amz-Account-Id" + encoder.SetHeader(locationName).String(*v.AccountId) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestxml_serializeOpPutAccessPointConfigurationForObjectLambda struct { +} + +func (*awsRestxml_serializeOpPutAccessPointConfigurationForObjectLambda) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpPutAccessPointConfigurationForObjectLambda) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*PutAccessPointConfigurationForObjectLambdaInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/v20180820/accesspointforobjectlambda/{Name}/configuration") + request.URL.Path = opPath + if len(request.URL.RawQuery) > 0 { + request.URL.RawQuery = "&" + opQuery + } else { + request.URL.RawQuery = opQuery + } + + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsPutAccessPointConfigurationForObjectLambdaInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/xml") + + xmlEncoder := smithyxml.NewEncoder(bytes.NewBuffer(nil)) + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "PutAccessPointConfigurationForObjectLambdaRequest", + }, + Attr: rootAttr, + } + root.Attr = append(root.Attr, smithyxml.NewNamespaceAttribute("", "http://awss3control.amazonaws.com/doc/2018-08-20/")) + if err := awsRestxml_serializeOpDocumentPutAccessPointConfigurationForObjectLambdaInput(input, xmlEncoder.RootElement(root)); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + if request, err = request.SetStream(bytes.NewReader(xmlEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsPutAccessPointConfigurationForObjectLambdaInput(v *PutAccessPointConfigurationForObjectLambdaInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AccountId != nil && len(*v.AccountId) > 0 { + locationName := "X-Amz-Account-Id" + encoder.SetHeader(locationName).String(*v.AccountId) + } + + if v.Name == nil || len(*v.Name) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} + } + if v.Name != nil { + if err := encoder.SetURI("Name").String(*v.Name); err != nil { + return err + } + } + + return nil +} - if v.OutpostId != nil && len(*v.OutpostId) > 0 { - locationName := "X-Amz-Outpost-Id" - encoder.SetHeader(locationName).String(*v.OutpostId) +func awsRestxml_serializeOpDocumentPutAccessPointConfigurationForObjectLambdaInput(v *PutAccessPointConfigurationForObjectLambdaInput, value smithyxml.Value) error { + defer value.Close() + if v.Configuration != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "Configuration", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + if err := awsRestxml_serializeDocumentObjectLambdaConfiguration(v.Configuration, el); err != nil { + return err + } } - return nil } -type awsRestxml_serializeOpListStorageLensConfigurations struct { +type awsRestxml_serializeOpPutAccessPointPolicy struct { } -func (*awsRestxml_serializeOpListStorageLensConfigurations) ID() string { +func (*awsRestxml_serializeOpPutAccessPointPolicy) ID() string { return "OperationSerializer" } -func (m *awsRestxml_serializeOpListStorageLensConfigurations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestxml_serializeOpPutAccessPointPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2167,13 +2913,13 @@ func (m *awsRestxml_serializeOpListStorageLensConfigurations) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListStorageLensConfigurationsInput) + input, ok := in.Parameters.(*PutAccessPointPolicyInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/v20180820/storagelens") + opPath, opQuery := httpbinding.SplitURI("/v20180820/accesspoint/{Name}/policy") request.URL.Path = opPath if len(request.URL.RawQuery) > 0 { request.URL.RawQuery = "&" + opQuery @@ -2181,13 +2927,31 @@ func (m *awsRestxml_serializeOpListStorageLensConfigurations) HandleSerialize(ct request.URL.RawQuery = opQuery } - request.Method = "GET" + request.Method = "PUT" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestxml_serializeOpHttpBindingsListStorageLensConfigurationsInput(input, restEncoder); err != nil { + if err := awsRestxml_serializeOpHttpBindingsPutAccessPointPolicyInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/xml") + + xmlEncoder := smithyxml.NewEncoder(bytes.NewBuffer(nil)) + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "PutAccessPointPolicyRequest", + }, + Attr: rootAttr, + } + root.Attr = append(root.Attr, smithyxml.NewNamespaceAttribute("", "http://awss3control.amazonaws.com/doc/2018-08-20/")) + if err := awsRestxml_serializeOpDocumentPutAccessPointPolicyInput(input, xmlEncoder.RootElement(root)); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + if request, err = request.SetStream(bytes.NewReader(xmlEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2198,7 +2962,7 @@ func (m *awsRestxml_serializeOpListStorageLensConfigurations) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -func awsRestxml_serializeOpHttpBindingsListStorageLensConfigurationsInput(v *ListStorageLensConfigurationsInput, encoder *httpbinding.Encoder) error { +func awsRestxml_serializeOpHttpBindingsPutAccessPointPolicyInput(v *PutAccessPointPolicyInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2208,21 +2972,42 @@ func awsRestxml_serializeOpHttpBindingsListStorageLensConfigurationsInput(v *Lis encoder.SetHeader(locationName).String(*v.AccountId) } - if v.NextToken != nil { - encoder.SetQuery("nextToken").String(*v.NextToken) + if v.Name == nil || len(*v.Name) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} + } + if v.Name != nil { + if err := encoder.SetURI("Name").String(*v.Name); err != nil { + return err + } } return nil } -type awsRestxml_serializeOpPutAccessPointPolicy struct { +func awsRestxml_serializeOpDocumentPutAccessPointPolicyInput(v *PutAccessPointPolicyInput, value smithyxml.Value) error { + defer value.Close() + if v.Policy != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "Policy", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + el.String(*v.Policy) + } + return nil } -func (*awsRestxml_serializeOpPutAccessPointPolicy) ID() string { +type awsRestxml_serializeOpPutAccessPointPolicyForObjectLambda struct { +} + +func (*awsRestxml_serializeOpPutAccessPointPolicyForObjectLambda) ID() string { return "OperationSerializer" } -func (m *awsRestxml_serializeOpPutAccessPointPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestxml_serializeOpPutAccessPointPolicyForObjectLambda) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2230,13 +3015,13 @@ func (m *awsRestxml_serializeOpPutAccessPointPolicy) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*PutAccessPointPolicyInput) + input, ok := in.Parameters.(*PutAccessPointPolicyForObjectLambdaInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/v20180820/accesspoint/{Name}/policy") + opPath, opQuery := httpbinding.SplitURI("/v20180820/accesspointforobjectlambda/{Name}/policy") request.URL.Path = opPath if len(request.URL.RawQuery) > 0 { request.URL.RawQuery = "&" + opQuery @@ -2250,7 +3035,7 @@ func (m *awsRestxml_serializeOpPutAccessPointPolicy) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestxml_serializeOpHttpBindingsPutAccessPointPolicyInput(input, restEncoder); err != nil { + if err := awsRestxml_serializeOpHttpBindingsPutAccessPointPolicyForObjectLambdaInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2260,12 +3045,12 @@ func (m *awsRestxml_serializeOpPutAccessPointPolicy) HandleSerialize(ctx context rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ - Local: "PutAccessPointPolicyRequest", + Local: "PutAccessPointPolicyForObjectLambdaRequest", }, Attr: rootAttr, } root.Attr = append(root.Attr, smithyxml.NewNamespaceAttribute("", "http://awss3control.amazonaws.com/doc/2018-08-20/")) - if err := awsRestxml_serializeOpDocumentPutAccessPointPolicyInput(input, xmlEncoder.RootElement(root)); err != nil { + if err := awsRestxml_serializeOpDocumentPutAccessPointPolicyForObjectLambdaInput(input, xmlEncoder.RootElement(root)); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(xmlEncoder.Bytes())); err != nil { @@ -2279,7 +3064,7 @@ func (m *awsRestxml_serializeOpPutAccessPointPolicy) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -func awsRestxml_serializeOpHttpBindingsPutAccessPointPolicyInput(v *PutAccessPointPolicyInput, encoder *httpbinding.Encoder) error { +func awsRestxml_serializeOpHttpBindingsPutAccessPointPolicyForObjectLambdaInput(v *PutAccessPointPolicyForObjectLambdaInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2301,7 +3086,7 @@ func awsRestxml_serializeOpHttpBindingsPutAccessPointPolicyInput(v *PutAccessPoi return nil } -func awsRestxml_serializeOpDocumentPutAccessPointPolicyInput(v *PutAccessPointPolicyInput, value smithyxml.Value) error { +func awsRestxml_serializeOpDocumentPutAccessPointPolicyForObjectLambdaInput(v *PutAccessPointPolicyForObjectLambdaInput, value smithyxml.Value) error { defer value.Close() if v.Policy != nil { rootAttr := []smithyxml.Attr{} @@ -3224,6 +4009,33 @@ func awsRestxml_serializeDocumentActivityMetrics(v *types.ActivityMetrics, value return nil } +func awsRestxml_serializeDocumentAwsLambdaTransformation(v *types.AwsLambdaTransformation, value smithyxml.Value) error { + defer value.Close() + if v.FunctionArn != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "FunctionArn", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + el.String(*v.FunctionArn) + } + if v.FunctionPayload != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "FunctionPayload", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + el.String(*v.FunctionPayload) + } + return nil +} + func awsRestxml_serializeDocumentBucketLevel(v *types.BucketLevel, value smithyxml.Value) error { defer value.Close() if v.ActivityMetrics != nil { @@ -3479,6 +4291,19 @@ func awsRestxml_serializeDocumentJobOperation(v *types.JobOperation, value smith return err } } + if v.S3DeleteObjectTagging != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "S3DeleteObjectTagging", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + if err := awsRestxml_serializeDocumentS3DeleteObjectTaggingOperation(v.S3DeleteObjectTagging, el); err != nil { + return err + } + } if v.S3InitiateRestoreObject != nil { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ @@ -3955,6 +4780,175 @@ func awsRestxml_serializeDocumentNoncurrentVersionTransitionList(v []types.Noncu return nil } +func awsRestxml_serializeDocumentObjectLambdaAllowedFeaturesList(v []types.ObjectLambdaAllowedFeature, value smithyxml.Value) error { + var array *smithyxml.Array + if !value.IsFlattened() { + defer value.Close() + } + customMemberNameAttr := []smithyxml.Attr{} + customMemberName := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "AllowedFeature", + }, + Attr: customMemberNameAttr, + } + array = value.ArrayWithCustomName(customMemberName) + for i := range v { + am := array.Member() + am.String(string(v[i])) + } + return nil +} + +func awsRestxml_serializeDocumentObjectLambdaConfiguration(v *types.ObjectLambdaConfiguration, value smithyxml.Value) error { + defer value.Close() + if v.AllowedFeatures != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "AllowedFeatures", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + if err := awsRestxml_serializeDocumentObjectLambdaAllowedFeaturesList(v.AllowedFeatures, el); err != nil { + return err + } + } + if v.CloudWatchMetricsEnabled { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "CloudWatchMetricsEnabled", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + el.Boolean(v.CloudWatchMetricsEnabled) + } + if v.SupportingAccessPoint != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "SupportingAccessPoint", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + el.String(*v.SupportingAccessPoint) + } + if v.TransformationConfigurations != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "TransformationConfigurations", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + if err := awsRestxml_serializeDocumentObjectLambdaTransformationConfigurationsList(v.TransformationConfigurations, el); err != nil { + return err + } + } + return nil +} + +func awsRestxml_serializeDocumentObjectLambdaContentTransformation(v types.ObjectLambdaContentTransformation, value smithyxml.Value) error { + defer value.Close() + switch uv := v.(type) { + case *types.ObjectLambdaContentTransformationMemberAwsLambda: + customMemberNameAttr := []smithyxml.Attr{} + customMemberName := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "AwsLambda", + }, + Attr: customMemberNameAttr, + } + av := value.MemberElement(customMemberName) + if err := awsRestxml_serializeDocumentAwsLambdaTransformation(&uv.Value, av); err != nil { + return err + } + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } + return nil +} + +func awsRestxml_serializeDocumentObjectLambdaTransformationConfiguration(v *types.ObjectLambdaTransformationConfiguration, value smithyxml.Value) error { + defer value.Close() + if v.Actions != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "Actions", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + if err := awsRestxml_serializeDocumentObjectLambdaTransformationConfigurationActionsList(v.Actions, el); err != nil { + return err + } + } + if v.ContentTransformation != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "ContentTransformation", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + if err := awsRestxml_serializeDocumentObjectLambdaContentTransformation(v.ContentTransformation, el); err != nil { + return err + } + } + return nil +} + +func awsRestxml_serializeDocumentObjectLambdaTransformationConfigurationActionsList(v []types.ObjectLambdaTransformationConfigurationAction, value smithyxml.Value) error { + var array *smithyxml.Array + if !value.IsFlattened() { + defer value.Close() + } + customMemberNameAttr := []smithyxml.Attr{} + customMemberName := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "Action", + }, + Attr: customMemberNameAttr, + } + array = value.ArrayWithCustomName(customMemberName) + for i := range v { + am := array.Member() + am.String(string(v[i])) + } + return nil +} + +func awsRestxml_serializeDocumentObjectLambdaTransformationConfigurationsList(v []types.ObjectLambdaTransformationConfiguration, value smithyxml.Value) error { + var array *smithyxml.Array + if !value.IsFlattened() { + defer value.Close() + } + customMemberNameAttr := []smithyxml.Attr{} + customMemberName := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "TransformationConfiguration", + }, + Attr: customMemberNameAttr, + } + array = value.ArrayWithCustomName(customMemberName) + for i := range v { + am := array.Member() + if err := awsRestxml_serializeDocumentObjectLambdaTransformationConfiguration(&v[i], am); err != nil { + return err + } + } + return nil +} + func awsRestxml_serializeDocumentPrefixLevel(v *types.PrefixLevel, value smithyxml.Value) error { defer value.Close() if v.StorageMetrics != nil { @@ -4391,6 +5385,11 @@ func awsRestxml_serializeDocumentS3CopyObjectOperation(v *types.S3CopyObjectOper return nil } +func awsRestxml_serializeDocumentS3DeleteObjectTaggingOperation(v *types.S3DeleteObjectTaggingOperation, value smithyxml.Value) error { + defer value.Close() + return nil +} + func awsRestxml_serializeDocumentS3Grant(v *types.S3Grant, value smithyxml.Value) error { defer value.Close() if v.Grantee != nil { diff --git a/service/s3control/types/enums.go b/service/s3control/types/enums.go index 7f929a36ffb..20d5e933703 100644 --- a/service/s3control/types/enums.go +++ b/service/s3control/types/enums.go @@ -228,6 +228,41 @@ func (NetworkOrigin) Values() []NetworkOrigin { } } +type ObjectLambdaAllowedFeature string + +// Enum values for ObjectLambdaAllowedFeature +const ( + ObjectLambdaAllowedFeatureGetObjectRange ObjectLambdaAllowedFeature = "GetObject-Range" + ObjectLambdaAllowedFeatureGetObjectPartNumber ObjectLambdaAllowedFeature = "GetObject-PartNumber" +) + +// Values returns all known values for ObjectLambdaAllowedFeature. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// The ordering of this slice is not guaranteed to be stable across updates. +func (ObjectLambdaAllowedFeature) Values() []ObjectLambdaAllowedFeature { + return []ObjectLambdaAllowedFeature{ + "GetObject-Range", + "GetObject-PartNumber", + } +} + +type ObjectLambdaTransformationConfigurationAction string + +// Enum values for ObjectLambdaTransformationConfigurationAction +const ( + ObjectLambdaTransformationConfigurationActionGetObject ObjectLambdaTransformationConfigurationAction = "GetObject" +) + +// Values returns all known values for +// ObjectLambdaTransformationConfigurationAction. Note that this can be expanded in +// the future, and so it is only as up to date as the client. The ordering of this +// slice is not guaranteed to be stable across updates. +func (ObjectLambdaTransformationConfigurationAction) Values() []ObjectLambdaTransformationConfigurationAction { + return []ObjectLambdaTransformationConfigurationAction{ + "GetObject", + } +} + type OperationName string // Enum values for OperationName @@ -236,6 +271,7 @@ const ( OperationNameS3PutObjectCopy OperationName = "S3PutObjectCopy" OperationNameS3PutObjectAcl OperationName = "S3PutObjectAcl" OperationNameS3PutObjectTagging OperationName = "S3PutObjectTagging" + OperationNameS3DeleteObjectTagging OperationName = "S3DeleteObjectTagging" OperationNameS3InitiateRestoreObject OperationName = "S3InitiateRestoreObject" OperationNameS3PutObjectLegalHold OperationName = "S3PutObjectLegalHold" OperationNameS3PutObjectRetention OperationName = "S3PutObjectRetention" @@ -250,6 +286,7 @@ func (OperationName) Values() []OperationName { "S3PutObjectCopy", "S3PutObjectAcl", "S3PutObjectTagging", + "S3DeleteObjectTagging", "S3InitiateRestoreObject", "S3PutObjectLegalHold", "S3PutObjectRetention", diff --git a/service/s3control/types/types.go b/service/s3control/types/types.go index cc13afbf940..ad2cbace035 100644 --- a/service/s3control/types/types.go +++ b/service/s3control/types/types.go @@ -63,6 +63,20 @@ type ActivityMetrics struct { IsEnabled bool } +// AWS Lambda function used to transform objects through an Object Lambda Access +// Point. +type AwsLambdaTransformation struct { + + // The Amazon Resource Name (ARN) of the AWS Lambda function. + // + // This member is required. + FunctionArn *string + + // Additional JSON that provides supplemental data to the Lambda function used to + // transform objects. + FunctionPayload *string +} + // A container for the bucket-level configuration. type BucketLevel struct { @@ -195,7 +209,7 @@ type JobListDescriptor struct { // The ID for the specified job. JobId *string - // The operation that the specified job is configured to run on each object listed + // The operation that the specified job is configured to run on every object listed // in the manifest. Operation OperationName @@ -237,7 +251,11 @@ type JobManifestLocation struct { // This member is required. ETag *string - // The Amazon Resource Name (ARN) for a manifest object. + // The Amazon Resource Name (ARN) for a manifest object. Replacement must be made + // for object keys containing special characters (such as carriage returns) when + // using XML requests. For more information, see XML related object key + // constraints + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). // // This member is required. ObjectArn *string @@ -260,46 +278,50 @@ type JobManifestSpec struct { Fields []JobManifestFieldName } -// The operation that you want this job to perform on each object listed in the +// The operation that you want this job to perform on every object listed in the // manifest. For more information about the available operations, see Operations // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-operations.html) in -// the Amazon Simple Storage Service Developer Guide. +// the Amazon Simple Storage Service User Guide. type JobOperation struct { - // Directs the specified job to invoke an AWS Lambda function on each object in the - // manifest. + // Directs the specified job to invoke an AWS Lambda function on every object in + // the manifest. LambdaInvoke *LambdaInvokeOperation - // Directs the specified job to run an Initiate Glacier Restore call on each object + // Directs the specified job to execute a DELETE Object tagging call on every + // object in the manifest. + S3DeleteObjectTagging *S3DeleteObjectTaggingOperation + + // Directs the specified job to initiate restore requests for every archived object // in the manifest. S3InitiateRestoreObject *S3InitiateRestoreObjectOperation - // Directs the specified job to run a PUT Object acl call on each object in the + // Directs the specified job to run a PUT Object acl call on every object in the // manifest. S3PutObjectAcl *S3SetObjectAclOperation - // Directs the specified job to run a PUT Copy object call on each object in the + // Directs the specified job to run a PUT Copy object call on every object in the // manifest. S3PutObjectCopy *S3CopyObjectOperation // Contains the configuration for an S3 Object Lock legal hold operation that an S3 - // Batch Operations job passes each object through to the underlying - // PutObjectLegalHold API. For more information, see Using S3 Object Lock legal - // hold with S3 Batch Operations + // Batch Operations job passes every object to the underlying PutObjectLegalHold + // API. For more information, see Using S3 Object Lock legal hold with S3 Batch + // Operations // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-legal-hold.html) in - // the Amazon Simple Storage Service Developer Guide. + // the Amazon Simple Storage Service User Guide. S3PutObjectLegalHold *S3SetObjectLegalHoldOperation // Contains the configuration parameters for the Object Lock retention action for - // an S3 Batch Operations job. Batch Operations passes each value through to the + // an S3 Batch Operations job. Batch Operations passes every object to the // underlying PutObjectRetention API. For more information, see Using S3 Object // Lock retention with S3 Batch Operations // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-retention-date.html) - // in the Amazon Simple Storage Service Developer Guide. + // in the Amazon Simple Storage Service User Guide. S3PutObjectRetention *S3SetObjectRetentionOperation - // Directs the specified job to run a PUT Object tagging call on each object in the - // manifest. + // Directs the specified job to run a PUT Object tagging call on every object in + // the manifest. S3PutObjectTagging *S3SetObjectTaggingOperation } @@ -346,7 +368,7 @@ type JobReport struct { type LambdaInvokeOperation struct { // The Amazon Resource Name (ARN) for the AWS Lambda function that the specified - // job will invoke for each object in the manifest. + // job will invoke on every object in the manifest. FunctionArn *string } @@ -436,7 +458,11 @@ type LifecycleRuleFilter struct { // The container for the AND condition for the lifecycle rule. And *LifecycleRuleAndOperator - // Prefix identifying one or more objects to which the rule applies. + // Prefix identifying one or more objects to which the rule applies. Replacement + // must be made for object keys containing special characters (such as carriage + // returns) when using XML requests. For more information, see XML related object + // key constraints + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). Prefix *string // @@ -495,11 +521,75 @@ type NoncurrentVersionTransition struct { StorageClass TransitionStorageClass } +// An access point with an attached AWS Lambda function used to access transformed +// data from an Amazon S3 bucket. +type ObjectLambdaAccessPoint struct { + + // The name of the Object Lambda Access Point. + // + // This member is required. + Name *string + + // Specifies the ARN for the Object Lambda Access Point. + ObjectLambdaAccessPointArn *string +} + +// A configuration used when creating an Object Lambda Access Point. +type ObjectLambdaConfiguration struct { + + // Standard access point associated with the Object Lambda Access Point. + // + // This member is required. + SupportingAccessPoint *string + + // A container for transformation configurations for an Object Lambda Access Point. + // + // This member is required. + TransformationConfigurations []ObjectLambdaTransformationConfiguration + + // A container for allowed features. Valid inputs are GetObject-Range and + // GetObject-PartNumber. + AllowedFeatures []ObjectLambdaAllowedFeature + + // A container for whether the CloudWatch metrics configuration is enabled. + CloudWatchMetricsEnabled bool +} + +// A container for AwsLambdaTransformation. +// +// The following types satisfy this interface: +// ObjectLambdaContentTransformationMemberAwsLambda +type ObjectLambdaContentTransformation interface { + isObjectLambdaContentTransformation() +} + +// A container for an AWS Lambda function. +type ObjectLambdaContentTransformationMemberAwsLambda struct { + Value AwsLambdaTransformation +} + +func (*ObjectLambdaContentTransformationMemberAwsLambda) isObjectLambdaContentTransformation() {} + +// A configuration used when creating an Object Lambda Access Point transformation. +type ObjectLambdaTransformationConfiguration struct { + + // A container for the action of an Object Lambda Access Point configuration. + // + // This member is required. + Actions []ObjectLambdaTransformationConfigurationAction + + // A container for the content transformation of an Object Lambda Access Point + // configuration. + // + // This member is required. + ContentTransformation ObjectLambdaContentTransformation +} + // Indicates whether this access point policy is public. For more information about // how Amazon S3 evaluates policies to determine whether they are public, see The // Meaning of "Public" // (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status) -// in the Amazon Simple Storage Service Developer Guide. +// in the Amazon Simple Storage Service User Guide. type PolicyStatus struct { // @@ -656,8 +746,8 @@ type S3BucketDestination struct { } // Contains the configuration parameters for a PUT Copy object operation. S3 Batch -// Operations passes each value through to the underlying PUT Copy object API. For -// more information about the parameters for this operation, see PUT Object - Copy +// Operations passes every object to the underlying PUT Copy object API. For more +// information about the parameters for this operation, see PUT Object - Copy // (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectCOPY.html). type S3CopyObjectOperation struct { @@ -717,6 +807,12 @@ type S3CopyObjectOperation struct { UnModifiedSinceConstraint *time.Time } +// Contains no configuration parameters because the DELETE Object tagging API only +// accepts the bucket name and key name as parameters, which are defined in the +// job's manifest. +type S3DeleteObjectTaggingOperation struct { +} + // type S3Grant struct { @@ -740,17 +836,28 @@ type S3Grantee struct { TypeIdentifier S3GranteeTypeIdentifier } -// Contains the configuration parameters for an Initiate Glacier Restore job. S3 -// Batch Operations passes each value through to the underlying POST Object restore -// API. For more information about the parameters for this operation, see -// RestoreObject +// Contains the configuration parameters for an S3 Initiate Restore Object job. S3 +// Batch Operations passes every object to the underlying POST Object restore API. +// For more information about the parameters for this operation, see RestoreObject // (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOSTrestore.html#RESTObjectPOSTrestore-restore-request). type S3InitiateRestoreObjectOperation struct { - // + // This argument specifies how long the S3 Glacier or S3 Glacier Deep Archive + // object remains available in Amazon S3. S3 Initiate Restore Object jobs that + // target S3 Glacier and S3 Glacier Deep Archive objects require ExpirationInDays + // set to 1 or greater. Conversely, do not set ExpirationInDays when creating S3 + // Initiate Restore Object jobs that target S3 Intelligent-Tiering Archive Access + // and Deep Archive Access tier objects. Objects in S3 Intelligent-Tiering archive + // access tiers are not subject to restore expiry, so specifying ExpirationInDays + // results in restore request failure. S3 Batch Operations jobs can operate either + // on S3 Glacier and S3 Glacier Deep Archive storage class objects or on S3 + // Intelligent-Tiering Archive Access and Deep Archive Access storage tier objects, + // but not both types in the same job. If you need to restore objects of both types + // you must create separate Batch Operations jobs. ExpirationInDays *int32 - // + // S3 Batch Operations supports STANDARD and BULK retrieval tiers, but not the + // EXPEDITED retrieval tier. GlacierJobTier S3GlacierJobTier } @@ -817,7 +924,7 @@ type S3ObjectOwner struct { // types in your operation, you will remove the retention from your objects. For // more information, see Using S3 Object Lock retention with S3 Batch Operations // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-retention-date.html) -// in the Amazon Simple Storage Service Developer Guide. +// in the Amazon Simple Storage Service User Guide. type S3Retention struct { // The Object Lock retention mode to be applied to all objects in the Batch @@ -830,8 +937,8 @@ type S3Retention struct { } // Contains the configuration parameters for a Set Object ACL operation. S3 Batch -// Operations passes each value through to the underlying PUT Object acl API. For -// more information about the parameters for this operation, see PUT Object acl +// Operations passes every object to the underlying PUT Object acl API. For more +// information about the parameters for this operation, see PUT Object acl // (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPUTacl.html). type S3SetObjectAclOperation struct { @@ -840,11 +947,11 @@ type S3SetObjectAclOperation struct { } // Contains the configuration for an S3 Object Lock legal hold operation that an S3 -// Batch Operations job passes each object through to the underlying -// PutObjectLegalHold API. For more information, see Using S3 Object Lock legal -// hold with S3 Batch Operations +// Batch Operations job passes every object to the underlying PutObjectLegalHold +// API. For more information, see Using S3 Object Lock legal hold with S3 Batch +// Operations // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-legal-hold.html) in -// the Amazon Simple Storage Service Developer Guide. +// the Amazon Simple Storage Service User Guide. type S3SetObjectLegalHoldOperation struct { // Contains the Object Lock legal hold status to be applied to all objects in the @@ -855,18 +962,18 @@ type S3SetObjectLegalHoldOperation struct { } // Contains the configuration parameters for the Object Lock retention action for -// an S3 Batch Operations job. Batch Operations passes each value through to the +// an S3 Batch Operations job. Batch Operations passes every object to the // underlying PutObjectRetention API. For more information, see Using S3 Object // Lock retention with S3 Batch Operations // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-retention-date.html) -// in the Amazon Simple Storage Service Developer Guide. +// in the Amazon Simple Storage Service User Guide. type S3SetObjectRetentionOperation struct { // Contains the Object Lock retention mode to be applied to all objects in the // Batch Operations job. For more information, see Using S3 Object Lock retention // with S3 Batch Operations // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-retention-date.html) - // in the Amazon Simple Storage Service Developer Guide. + // in the Amazon Simple Storage Service User Guide. // // This member is required. Retention *S3Retention @@ -877,9 +984,9 @@ type S3SetObjectRetentionOperation struct { } // Contains the configuration parameters for a Set Object Tagging operation. S3 -// Batch Operations passes each value through to the underlying PUT Object tagging -// API. For more information about the parameters for this operation, see PUT -// Object tagging +// Batch Operations passes every object to the underlying PUT Object tagging API. +// For more information about the parameters for this operation, see PUT Object +// tagging // (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPUTtagging.html). type S3SetObjectTaggingOperation struct { @@ -986,7 +1093,8 @@ type StorageLensConfiguration struct { type StorageLensDataExport struct { // A container for the bucket where the S3 Storage Lens metrics export will be - // located. + // located. This bucket must be located in the same Region as the storage lens + // configuration. // // This member is required. S3BucketDestination *S3BucketDestination @@ -1029,7 +1137,7 @@ type Tagging struct { // information about Amazon S3 Lifecycle configuration rules, see Transitioning // objects using Amazon S3 Lifecycle // (https://docs.aws.amazon.com/AmazonS3/latest/dev/lifecycle-transition-general-considerations.html) -// in the Amazon Simple Storage Service Developer Guide. +// in the Amazon Simple Storage Service User Guide. type Transition struct { // Indicates when objects are transitioned to the specified storage class. The date @@ -1053,3 +1161,12 @@ type VpcConfiguration struct { // This member is required. VpcId *string } + +// UnknownUnionMember is returned when a union member is returned over the wire, +// but has an unknown tag. +type UnknownUnionMember struct { + Tag string + Value []byte +} + +func (*UnknownUnionMember) isObjectLambdaContentTransformation() {} diff --git a/service/s3control/types/types_exported_test.go b/service/s3control/types/types_exported_test.go new file mode 100644 index 00000000000..2fab7c45dd7 --- /dev/null +++ b/service/s3control/types/types_exported_test.go @@ -0,0 +1,26 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types_test + +import ( + "fmt" + "github.com/aws/aws-sdk-go-v2/service/s3control/types" +) + +func ExampleObjectLambdaContentTransformation_outputUsage() { + var union types.ObjectLambdaContentTransformation + // type switches can be used to check the union value + switch v := union.(type) { + case *types.ObjectLambdaContentTransformationMemberAwsLambda: + _ = v.Value // Value is types.AwsLambdaTransformation + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.AwsLambdaTransformation diff --git a/service/s3control/validators.go b/service/s3control/validators.go index 4fff2b69f25..47c19f6ec9b 100644 --- a/service/s3control/validators.go +++ b/service/s3control/validators.go @@ -10,6 +10,26 @@ import ( "github.com/aws/smithy-go/middleware" ) +type validateOpCreateAccessPointForObjectLambda struct { +} + +func (*validateOpCreateAccessPointForObjectLambda) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateAccessPointForObjectLambda) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateAccessPointForObjectLambdaInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateAccessPointForObjectLambdaInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateAccessPoint struct { } @@ -70,6 +90,26 @@ func (m *validateOpCreateJob) HandleInitialize(ctx context.Context, in middlewar return next.HandleInitialize(ctx, in) } +type validateOpDeleteAccessPointForObjectLambda struct { +} + +func (*validateOpDeleteAccessPointForObjectLambda) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteAccessPointForObjectLambda) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteAccessPointForObjectLambdaInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteAccessPointForObjectLambdaInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteAccessPoint struct { } @@ -90,6 +130,26 @@ func (m *validateOpDeleteAccessPoint) HandleInitialize(ctx context.Context, in m return next.HandleInitialize(ctx, in) } +type validateOpDeleteAccessPointPolicyForObjectLambda struct { +} + +func (*validateOpDeleteAccessPointPolicyForObjectLambda) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteAccessPointPolicyForObjectLambda) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteAccessPointPolicyForObjectLambdaInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteAccessPointPolicyForObjectLambdaInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteAccessPointPolicy struct { } @@ -290,6 +350,46 @@ func (m *validateOpDescribeJob) HandleInitialize(ctx context.Context, in middlew return next.HandleInitialize(ctx, in) } +type validateOpGetAccessPointConfigurationForObjectLambda struct { +} + +func (*validateOpGetAccessPointConfigurationForObjectLambda) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetAccessPointConfigurationForObjectLambda) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetAccessPointConfigurationForObjectLambdaInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetAccessPointConfigurationForObjectLambdaInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetAccessPointForObjectLambda struct { +} + +func (*validateOpGetAccessPointForObjectLambda) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetAccessPointForObjectLambda) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetAccessPointForObjectLambdaInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetAccessPointForObjectLambdaInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetAccessPoint struct { } @@ -310,6 +410,26 @@ func (m *validateOpGetAccessPoint) HandleInitialize(ctx context.Context, in midd return next.HandleInitialize(ctx, in) } +type validateOpGetAccessPointPolicyForObjectLambda struct { +} + +func (*validateOpGetAccessPointPolicyForObjectLambda) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetAccessPointPolicyForObjectLambda) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetAccessPointPolicyForObjectLambdaInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetAccessPointPolicyForObjectLambdaInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetAccessPointPolicy struct { } @@ -330,6 +450,26 @@ func (m *validateOpGetAccessPointPolicy) HandleInitialize(ctx context.Context, i return next.HandleInitialize(ctx, in) } +type validateOpGetAccessPointPolicyStatusForObjectLambda struct { +} + +func (*validateOpGetAccessPointPolicyStatusForObjectLambda) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetAccessPointPolicyStatusForObjectLambda) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetAccessPointPolicyStatusForObjectLambdaInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetAccessPointPolicyStatusForObjectLambdaInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetAccessPointPolicyStatus struct { } @@ -510,6 +650,26 @@ func (m *validateOpGetStorageLensConfigurationTagging) HandleInitialize(ctx cont return next.HandleInitialize(ctx, in) } +type validateOpListAccessPointsForObjectLambda struct { +} + +func (*validateOpListAccessPointsForObjectLambda) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListAccessPointsForObjectLambda) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListAccessPointsForObjectLambdaInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListAccessPointsForObjectLambdaInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListAccessPoints struct { } @@ -590,6 +750,46 @@ func (m *validateOpListStorageLensConfigurations) HandleInitialize(ctx context.C return next.HandleInitialize(ctx, in) } +type validateOpPutAccessPointConfigurationForObjectLambda struct { +} + +func (*validateOpPutAccessPointConfigurationForObjectLambda) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpPutAccessPointConfigurationForObjectLambda) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*PutAccessPointConfigurationForObjectLambdaInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpPutAccessPointConfigurationForObjectLambdaInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpPutAccessPointPolicyForObjectLambda struct { +} + +func (*validateOpPutAccessPointPolicyForObjectLambda) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpPutAccessPointPolicyForObjectLambda) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*PutAccessPointPolicyForObjectLambdaInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpPutAccessPointPolicyForObjectLambdaInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpPutAccessPointPolicy struct { } @@ -790,6 +990,10 @@ func (m *validateOpUpdateJobStatus) HandleInitialize(ctx context.Context, in mid return next.HandleInitialize(ctx, in) } +func addOpCreateAccessPointForObjectLambdaValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateAccessPointForObjectLambda{}, middleware.After) +} + func addOpCreateAccessPointValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateAccessPoint{}, middleware.After) } @@ -802,10 +1006,18 @@ func addOpCreateJobValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateJob{}, middleware.After) } +func addOpDeleteAccessPointForObjectLambdaValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteAccessPointForObjectLambda{}, middleware.After) +} + func addOpDeleteAccessPointValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteAccessPoint{}, middleware.After) } +func addOpDeleteAccessPointPolicyForObjectLambdaValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteAccessPointPolicyForObjectLambda{}, middleware.After) +} + func addOpDeleteAccessPointPolicyValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteAccessPointPolicy{}, middleware.After) } @@ -846,14 +1058,30 @@ func addOpDescribeJobValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeJob{}, middleware.After) } +func addOpGetAccessPointConfigurationForObjectLambdaValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetAccessPointConfigurationForObjectLambda{}, middleware.After) +} + +func addOpGetAccessPointForObjectLambdaValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetAccessPointForObjectLambda{}, middleware.After) +} + func addOpGetAccessPointValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetAccessPoint{}, middleware.After) } +func addOpGetAccessPointPolicyForObjectLambdaValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetAccessPointPolicyForObjectLambda{}, middleware.After) +} + func addOpGetAccessPointPolicyValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetAccessPointPolicy{}, middleware.After) } +func addOpGetAccessPointPolicyStatusForObjectLambdaValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetAccessPointPolicyStatusForObjectLambda{}, middleware.After) +} + func addOpGetAccessPointPolicyStatusValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetAccessPointPolicyStatus{}, middleware.After) } @@ -890,6 +1118,10 @@ func addOpGetStorageLensConfigurationTaggingValidationMiddleware(stack *middlewa return stack.Initialize.Add(&validateOpGetStorageLensConfigurationTagging{}, middleware.After) } +func addOpListAccessPointsForObjectLambdaValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListAccessPointsForObjectLambda{}, middleware.After) +} + func addOpListAccessPointsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListAccessPoints{}, middleware.After) } @@ -906,6 +1138,14 @@ func addOpListStorageLensConfigurationsValidationMiddleware(stack *middleware.St return stack.Initialize.Add(&validateOpListStorageLensConfigurations{}, middleware.After) } +func addOpPutAccessPointConfigurationForObjectLambdaValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpPutAccessPointConfigurationForObjectLambda{}, middleware.After) +} + +func addOpPutAccessPointPolicyForObjectLambdaValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpPutAccessPointPolicyForObjectLambda{}, middleware.After) +} + func addOpPutAccessPointPolicyValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpPutAccessPointPolicy{}, middleware.After) } @@ -965,6 +1205,21 @@ func validateAccountLevel(v *types.AccountLevel) error { } } +func validateAwsLambdaTransformation(v *types.AwsLambdaTransformation) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AwsLambdaTransformation"} + if v.FunctionArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("FunctionArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateBucketLevel(v *types.BucketLevel) error { if v == nil { return nil @@ -1183,6 +1438,86 @@ func validateLifecycleRules(v []types.LifecycleRule) error { } } +func validateObjectLambdaConfiguration(v *types.ObjectLambdaConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ObjectLambdaConfiguration"} + if v.SupportingAccessPoint == nil { + invalidParams.Add(smithy.NewErrParamRequired("SupportingAccessPoint")) + } + if v.TransformationConfigurations == nil { + invalidParams.Add(smithy.NewErrParamRequired("TransformationConfigurations")) + } else if v.TransformationConfigurations != nil { + if err := validateObjectLambdaTransformationConfigurationsList(v.TransformationConfigurations); err != nil { + invalidParams.AddNested("TransformationConfigurations", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateObjectLambdaContentTransformation(v types.ObjectLambdaContentTransformation) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ObjectLambdaContentTransformation"} + switch uv := v.(type) { + case *types.ObjectLambdaContentTransformationMemberAwsLambda: + if err := validateAwsLambdaTransformation(&uv.Value); err != nil { + invalidParams.AddNested("[AwsLambda]", err.(smithy.InvalidParamsError)) + } + + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateObjectLambdaTransformationConfiguration(v *types.ObjectLambdaTransformationConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ObjectLambdaTransformationConfiguration"} + if v.Actions == nil { + invalidParams.Add(smithy.NewErrParamRequired("Actions")) + } + if v.ContentTransformation == nil { + invalidParams.Add(smithy.NewErrParamRequired("ContentTransformation")) + } else if v.ContentTransformation != nil { + if err := validateObjectLambdaContentTransformation(v.ContentTransformation); err != nil { + invalidParams.AddNested("ContentTransformation", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateObjectLambdaTransformationConfigurationsList(v []types.ObjectLambdaTransformationConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ObjectLambdaTransformationConfigurationsList"} + for i := range v { + if err := validateObjectLambdaTransformationConfiguration(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validatePrefixLevel(v *types.PrefixLevel) error { if v == nil { return nil @@ -1561,6 +1896,31 @@ func validateVpcConfiguration(v *types.VpcConfiguration) error { } } +func validateOpCreateAccessPointForObjectLambdaInput(v *CreateAccessPointForObjectLambdaInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateAccessPointForObjectLambdaInput"} + if v.AccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AccountId")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.Configuration == nil { + invalidParams.Add(smithy.NewErrParamRequired("Configuration")) + } else if v.Configuration != nil { + if err := validateObjectLambdaConfiguration(v.Configuration); err != nil { + invalidParams.AddNested("Configuration", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateAccessPointInput(v *CreateAccessPointInput) error { if v == nil { return nil @@ -1649,6 +2009,24 @@ func validateOpCreateJobInput(v *CreateJobInput) error { } } +func validateOpDeleteAccessPointForObjectLambdaInput(v *DeleteAccessPointForObjectLambdaInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteAccessPointForObjectLambdaInput"} + if v.AccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AccountId")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteAccessPointInput(v *DeleteAccessPointInput) error { if v == nil { return nil @@ -1667,6 +2045,24 @@ func validateOpDeleteAccessPointInput(v *DeleteAccessPointInput) error { } } +func validateOpDeleteAccessPointPolicyForObjectLambdaInput(v *DeleteAccessPointPolicyForObjectLambdaInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteAccessPointPolicyForObjectLambdaInput"} + if v.AccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AccountId")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteAccessPointPolicyInput(v *DeleteAccessPointPolicyInput) error { if v == nil { return nil @@ -1844,6 +2240,42 @@ func validateOpDescribeJobInput(v *DescribeJobInput) error { } } +func validateOpGetAccessPointConfigurationForObjectLambdaInput(v *GetAccessPointConfigurationForObjectLambdaInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetAccessPointConfigurationForObjectLambdaInput"} + if v.AccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AccountId")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetAccessPointForObjectLambdaInput(v *GetAccessPointForObjectLambdaInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetAccessPointForObjectLambdaInput"} + if v.AccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AccountId")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetAccessPointInput(v *GetAccessPointInput) error { if v == nil { return nil @@ -1862,6 +2294,24 @@ func validateOpGetAccessPointInput(v *GetAccessPointInput) error { } } +func validateOpGetAccessPointPolicyForObjectLambdaInput(v *GetAccessPointPolicyForObjectLambdaInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetAccessPointPolicyForObjectLambdaInput"} + if v.AccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AccountId")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetAccessPointPolicyInput(v *GetAccessPointPolicyInput) error { if v == nil { return nil @@ -1880,6 +2330,24 @@ func validateOpGetAccessPointPolicyInput(v *GetAccessPointPolicyInput) error { } } +func validateOpGetAccessPointPolicyStatusForObjectLambdaInput(v *GetAccessPointPolicyStatusForObjectLambdaInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetAccessPointPolicyStatusForObjectLambdaInput"} + if v.AccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AccountId")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetAccessPointPolicyStatusInput(v *GetAccessPointPolicyStatusInput) error { if v == nil { return nil @@ -2039,6 +2507,21 @@ func validateOpGetStorageLensConfigurationTaggingInput(v *GetStorageLensConfigur } } +func validateOpListAccessPointsForObjectLambdaInput(v *ListAccessPointsForObjectLambdaInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListAccessPointsForObjectLambdaInput"} + if v.AccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AccountId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListAccessPointsInput(v *ListAccessPointsInput) error { if v == nil { return nil @@ -2099,6 +2582,52 @@ func validateOpListStorageLensConfigurationsInput(v *ListStorageLensConfiguratio } } +func validateOpPutAccessPointConfigurationForObjectLambdaInput(v *PutAccessPointConfigurationForObjectLambdaInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PutAccessPointConfigurationForObjectLambdaInput"} + if v.AccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AccountId")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.Configuration == nil { + invalidParams.Add(smithy.NewErrParamRequired("Configuration")) + } else if v.Configuration != nil { + if err := validateObjectLambdaConfiguration(v.Configuration); err != nil { + invalidParams.AddNested("Configuration", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpPutAccessPointPolicyForObjectLambdaInput(v *PutAccessPointPolicyForObjectLambdaInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PutAccessPointPolicyForObjectLambdaInput"} + if v.AccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AccountId")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.Policy == nil { + invalidParams.Add(smithy.NewErrParamRequired("Policy")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpPutAccessPointPolicyInput(v *PutAccessPointPolicyInput) error { if v == nil { return nil diff --git a/service/sagemaker/go.sum b/service/sagemaker/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/sagemaker/go.sum +++ b/service/sagemaker/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/schemas/go.sum b/service/schemas/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/schemas/go.sum +++ b/service/schemas/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/ses/go.sum b/service/ses/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/ses/go.sum +++ b/service/ses/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/signer/go.sum b/service/signer/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/signer/go.sum +++ b/service/signer/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/ssm/go.sum b/service/ssm/go.sum index 17f62e4e070..d937214c3eb 100644 --- a/service/ssm/go.sum +++ b/service/ssm/go.sum @@ -13,6 +13,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/sts/api_client.go b/service/sts/api_client.go index 0d67082f5d2..ae821528dae 100644 --- a/service/sts/api_client.go +++ b/service/sts/api_client.go @@ -327,6 +327,7 @@ func (c presignConverter) convertToPresignMiddleware(stack *middleware.Stack, op stack.Finalize.Clear() stack.Deserialize.Clear() stack.Build.Remove((*awsmiddleware.ClientRequestID)(nil).ID()) + stack.Build.Remove("UserAgent") pmw := v4.NewPresignHTTPRequestMiddleware(v4.PresignHTTPRequestMiddlewareOptions{ CredentialsProvider: options.Credentials, Presigner: c.Presigner,