From d42f69ea1a8a03e04861eec6edf852e678a599f5 Mon Sep 17 00:00:00 2001 From: AllanZhengYP Date: Mon, 20 Sep 2021 21:35:30 +0000 Subject: [PATCH] fix(client-s3): address PR feedbacks --- clients/client-s3/models/models_0.ts | 252 ++++++++++++------ clients/client-s3/models/models_1.ts | 12 +- .../aws/typescript/codegen/AddS3Config.java | 6 +- .../middleware-sdk-s3/src/S3SignatureV4.ts | 48 ++-- .../src/user-agent-middleware.ts | 57 ++-- .../src/is-crt-available.ts | 1 - 6 files changed, 228 insertions(+), 148 deletions(-) diff --git a/clients/client-s3/models/models_0.ts b/clients/client-s3/models/models_0.ts index 6df358c065961..d713350fa2108 100644 --- a/clients/client-s3/models/models_0.ts +++ b/clients/client-s3/models/models_0.ts @@ -51,7 +51,8 @@ export interface AbortMultipartUploadRequest { *

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 action with an access point through the Amazon Web Services 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 S3 User 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 action using S3 on Outposts through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -421,7 +422,8 @@ export interface CompleteMultipartUploadRequest { *

Name of the bucket to which the multipart upload 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 action with an access point through the Amazon Web Services 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 S3 User 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 action using S3 on Outposts through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -601,7 +603,8 @@ export interface CopyObjectRequest { *

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 action with an access point through the Amazon Web Services 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 S3 User 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 action using S3 on Outposts through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -1157,7 +1160,8 @@ export interface CreateMultipartUploadRequest { *

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 action with an access point through the Amazon Web Services 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 S3 User 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 action using S3 on Outposts through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -1365,7 +1369,8 @@ export namespace DeleteBucketRequest { export interface DeleteBucketAnalyticsConfigurationRequest { /** *

The name of the bucket from which an analytics configuration is deleted.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -1392,7 +1397,8 @@ export namespace DeleteBucketAnalyticsConfigurationRequest { export interface DeleteBucketCorsRequest { /** *

Specifies the bucket whose cors configuration is being deleted.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -1415,7 +1421,8 @@ export interface DeleteBucketEncryptionRequest { /** *

The name of the bucket containing the server-side encryption configuration to * delete.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -1437,7 +1444,8 @@ export namespace DeleteBucketEncryptionRequest { export interface DeleteBucketIntelligentTieringConfigurationRequest { /** *

The name of the Amazon S3 bucket whose configuration you want to modify or retrieve.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -1459,7 +1467,8 @@ export namespace DeleteBucketIntelligentTieringConfigurationRequest { export interface DeleteBucketInventoryConfigurationRequest { /** *

The name of the bucket containing the inventory configuration to delete.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -1486,7 +1495,8 @@ export namespace DeleteBucketInventoryConfigurationRequest { export interface DeleteBucketLifecycleRequest { /** *

The bucket name of the lifecycle to delete.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -1508,7 +1518,8 @@ export namespace DeleteBucketLifecycleRequest { export interface DeleteBucketMetricsConfigurationRequest { /** *

The name of the bucket containing the metrics configuration to delete.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -1535,7 +1546,8 @@ export namespace DeleteBucketMetricsConfigurationRequest { export interface DeleteBucketOwnershipControlsRequest { /** *

The Amazon S3 bucket whose OwnershipControls you want to delete.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -1557,7 +1569,8 @@ export namespace DeleteBucketOwnershipControlsRequest { export interface DeleteBucketPolicyRequest { /** *

The bucket name.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -1579,7 +1592,8 @@ export namespace DeleteBucketPolicyRequest { export interface DeleteBucketReplicationRequest { /** *

The bucket name.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -1601,7 +1615,8 @@ export namespace DeleteBucketReplicationRequest { export interface DeleteBucketTaggingRequest { /** *

The bucket that has the tag set to be removed.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -1623,7 +1638,8 @@ export namespace DeleteBucketTaggingRequest { export interface DeleteBucketWebsiteRequest { /** *

The bucket name for which you want to remove the website configuration.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -1676,7 +1692,8 @@ export interface DeleteObjectRequest { *

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 action with an access point through the Amazon Web Services 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 S3 User 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 action using S3 on Outposts through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -3754,7 +3771,8 @@ export interface DeleteObjectsRequest { *

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 action with an access point through the Amazon Web Services 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 S3 User 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 action using S3 on Outposts through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -3821,7 +3839,8 @@ export interface DeleteObjectTaggingRequest { *

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

*

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 Amazon Web Services 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 S3 User 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 action using S3 on Outposts through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -3854,7 +3873,8 @@ export interface DeletePublicAccessBlockRequest { /** *

The Amazon S3 bucket whose PublicAccessBlock configuration you want to delete. *

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -3892,7 +3912,8 @@ export namespace GetBucketAccelerateConfigurationOutput { export interface GetBucketAccelerateConfigurationRequest { /** *

The name of the bucket for which the accelerate configuration is retrieved.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -3935,7 +3956,8 @@ export namespace GetBucketAclOutput { export interface GetBucketAclRequest { /** *

Specifies the S3 bucket whose ACL is being requested.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -4244,7 +4266,8 @@ export namespace GetBucketAnalyticsConfigurationOutput { export interface GetBucketAnalyticsConfigurationRequest { /** *

The name of the bucket from which an analytics configuration is retrieved.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -4338,7 +4361,8 @@ export namespace GetBucketCorsOutput { export interface GetBucketCorsRequest { /** *

The bucket name for which to get the cors configuration.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -4487,7 +4511,8 @@ export interface GetBucketEncryptionRequest { /** *

The name of the bucket from which the server-side encryption configuration is * retrieved.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -4662,7 +4687,8 @@ export namespace GetBucketIntelligentTieringConfigurationOutput { export interface GetBucketIntelligentTieringConfigurationRequest { /** *

The name of the Amazon S3 bucket whose configuration you want to modify or retrieve.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -4953,7 +4979,8 @@ export namespace GetBucketInventoryConfigurationOutput { export interface GetBucketInventoryConfigurationRequest { /** *

The name of the bucket containing the inventory configuration to retrieve.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -5316,7 +5343,8 @@ export namespace GetBucketLifecycleConfigurationOutput { export interface GetBucketLifecycleConfigurationRequest { /** *

The name of the bucket for which to get the lifecycle information.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -5357,7 +5385,8 @@ export namespace GetBucketLocationOutput { export interface GetBucketLocationRequest { /** *

The name of the bucket for which to get the location.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -5460,7 +5489,8 @@ export namespace GetBucketLoggingOutput { export interface GetBucketLoggingRequest { /** *

The bucket name for which to get the logging information.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -5658,7 +5688,8 @@ export namespace GetBucketMetricsConfigurationOutput { export interface GetBucketMetricsConfigurationRequest { /** *

The name of the bucket containing the metrics configuration to retrieve.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -5685,7 +5716,8 @@ export namespace GetBucketMetricsConfigurationRequest { export interface GetBucketNotificationConfigurationRequest { /** *

The name of the bucket for which to get the notification configuration.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -6013,7 +6045,8 @@ export interface GetBucketOwnershipControlsRequest { /** *

The name of the Amazon S3 bucket whose OwnershipControls you want to retrieve. *

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -6051,7 +6084,8 @@ export namespace GetBucketPolicyOutput { export interface GetBucketPolicyRequest { /** *

The bucket name for which to get the bucket policy.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -6109,7 +6143,8 @@ export namespace GetBucketPolicyStatusOutput { export interface GetBucketPolicyStatusRequest { /** *

The name of the Amazon S3 bucket whose policy status you want to retrieve.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -6720,7 +6755,8 @@ export namespace GetBucketReplicationOutput { export interface GetBucketReplicationRequest { /** *

The bucket name for which to get the replication information.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -6760,7 +6796,8 @@ export namespace GetBucketRequestPaymentOutput { export interface GetBucketRequestPaymentRequest { /** *

The name of the bucket for which to get the payment request configuration

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -6798,7 +6835,8 @@ export namespace GetBucketTaggingOutput { export interface GetBucketTaggingRequest { /** *

The name of the bucket for which to get the tagging information.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -6847,7 +6885,8 @@ export namespace GetBucketVersioningOutput { export interface GetBucketVersioningRequest { /** *

The name of the bucket for which to get the versioning information.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -7114,7 +7153,8 @@ export namespace GetBucketWebsiteOutput { export interface GetBucketWebsiteRequest { /** *

The bucket name for which to get the website configuration.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -7334,7 +7374,8 @@ export interface GetObjectRequest { *

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 Amazon Web Services 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 S3 User Guide.

*

When using an Object Lambda access point the hostname takes the form AccessPointName-AccountId.s3-object-lambda.Region.amazonaws.com.

*

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 Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -7531,7 +7572,8 @@ export interface GetObjectAclRequest { /** *

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

*

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 Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -7607,7 +7649,8 @@ export interface GetObjectLegalHoldRequest { /** *

The bucket name containing the object whose Legal Hold status you want to 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 action with an access point through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -7765,7 +7808,8 @@ export interface GetObjectLockConfigurationRequest { /** *

The bucket whose Object Lock configuration you want to 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 action with an access point through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -7828,7 +7872,8 @@ export interface GetObjectRetentionRequest { /** *

The bucket name containing the object whose retention settings you want to 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 action with an access point through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -7891,7 +7936,8 @@ export interface GetObjectTaggingRequest { *

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

*

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 Amazon Web Services 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 S3 User 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 action using S3 on Outposts through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -7953,7 +7999,8 @@ export namespace GetObjectTorrentOutput { export interface GetObjectTorrentRequest { /** *

The name of the bucket containing the object for which to get the torrent files.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -8070,7 +8117,8 @@ export interface GetPublicAccessBlockRequest { /** *

The name of the Amazon S3 bucket whose PublicAccessBlock configuration you want * to retrieve.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -8094,7 +8142,8 @@ export interface HeadBucketRequest { *

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 action with an access point through the Amazon Web Services 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 S3 User 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 action using S3 on Outposts through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -8380,7 +8429,8 @@ export interface HeadObjectRequest { *

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 action with an access point through the Amazon Web Services 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 S3 User 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 action using S3 on Outposts through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -8526,7 +8576,8 @@ export namespace ListBucketAnalyticsConfigurationsOutput { export interface ListBucketAnalyticsConfigurationsRequest { /** *

The name of the bucket from which analytics configurations are retrieved.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -8590,7 +8641,8 @@ export namespace ListBucketIntelligentTieringConfigurationsOutput { export interface ListBucketIntelligentTieringConfigurationsRequest { /** *

The name of the Amazon S3 bucket whose configuration you want to modify or retrieve.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -8654,7 +8706,8 @@ export namespace ListBucketInventoryConfigurationsOutput { export interface ListBucketInventoryConfigurationsRequest { /** *

The name of the bucket containing the inventory configurations to retrieve.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -8725,7 +8778,8 @@ export namespace ListBucketMetricsConfigurationsOutput { export interface ListBucketMetricsConfigurationsRequest { /** *

The name of the bucket containing the metrics configurations to retrieve.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -8984,7 +9038,8 @@ export interface ListMultipartUploadsRequest { *

The name of the bucket to which the multipart upload 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 action with an access point through the Amazon Web Services 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 S3 User 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 action using S3 on Outposts through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -9222,7 +9277,8 @@ export interface ListObjectsRequest { *

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 action with an access point through the Amazon Web Services 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 S3 User 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 action using S3 on Outposts through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -9411,7 +9467,8 @@ export interface ListObjectsV2Request { *

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 Amazon Web Services 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 S3 User 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 action using S3 on Outposts through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -9673,7 +9730,8 @@ export namespace ListObjectVersionsOutput { export interface ListObjectVersionsRequest { /** *

The bucket name that contains the objects.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -9882,7 +9940,8 @@ export interface ListPartsRequest { *

The name of the bucket to which the parts are being uploaded.

*

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 Amazon Web Services 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 S3 User 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 action using S3 on Outposts through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -9933,7 +9992,8 @@ export namespace ListPartsRequest { export interface PutBucketAccelerateConfigurationRequest { /** *

The name of the bucket for which the accelerate configuration is set.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -9970,7 +10030,8 @@ export interface PutBucketAclRequest { /** *

The bucket to which to apply the ACL.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -10029,7 +10090,8 @@ export namespace PutBucketAclRequest { export interface PutBucketAnalyticsConfigurationRequest { /** *

The name of the bucket to which an analytics configuration is stored.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -10086,7 +10148,8 @@ export namespace CORSConfiguration { export interface PutBucketCorsRequest { /** *

Specifies the bucket impacted by the corsconfiguration.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -10128,7 +10191,8 @@ export interface PutBucketEncryptionRequest { * keys (SSE-S3) or customer managed keys (SSE-KMS). For information about * the Amazon S3 default encryption feature, see Amazon S3 Default Bucket Encryption * in the Amazon S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -10166,7 +10230,8 @@ export namespace PutBucketEncryptionRequest { export interface PutBucketIntelligentTieringConfigurationRequest { /** *

The name of the Amazon S3 bucket whose configuration you want to modify or retrieve.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -10193,7 +10258,8 @@ export namespace PutBucketIntelligentTieringConfigurationRequest { export interface PutBucketInventoryConfigurationRequest { /** *

The name of the bucket where the inventory configuration will be stored.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -10250,7 +10316,8 @@ export namespace BucketLifecycleConfiguration { export interface PutBucketLifecycleConfigurationRequest { /** *

The name of the bucket for which to set the configuration.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -10301,7 +10368,8 @@ export namespace BucketLoggingStatus { export interface PutBucketLoggingRequest { /** *

The name of the bucket for which to set the logging parameters.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -10334,7 +10402,8 @@ export namespace PutBucketLoggingRequest { export interface PutBucketMetricsConfigurationRequest { /** *

The name of the bucket for which the metrics configuration is set.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -10369,7 +10438,8 @@ export namespace PutBucketMetricsConfigurationRequest { export interface PutBucketNotificationConfigurationRequest { /** *

The name of the bucket.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -10397,7 +10467,8 @@ export namespace PutBucketNotificationConfigurationRequest { export interface PutBucketOwnershipControlsRequest { /** *

The name of the Amazon S3 bucket whose OwnershipControls you want to set.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -10431,7 +10502,8 @@ export namespace PutBucketOwnershipControlsRequest { export interface PutBucketPolicyRequest { /** *

The name of the bucket.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -10470,7 +10542,8 @@ export namespace PutBucketPolicyRequest { export interface PutBucketReplicationRequest { /** *

The name of the bucket

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -10533,7 +10606,8 @@ export namespace RequestPaymentConfiguration { export interface PutBucketRequestPaymentRequest { /** *

The bucket name.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -10588,7 +10662,8 @@ export namespace Tagging { export interface PutBucketTaggingRequest { /** *

The bucket name.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -10652,7 +10727,8 @@ export namespace VersioningConfiguration { export interface PutBucketVersioningRequest { /** *

The bucket name.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -10731,7 +10807,8 @@ export namespace WebsiteConfiguration { export interface PutBucketWebsiteRequest { /** *

The bucket name.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -10856,7 +10933,8 @@ export interface PutObjectRequest { *

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 action with an access point through the Amazon Web Services 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 S3 User 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 action using S3 on Outposts through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -11114,7 +11192,8 @@ export interface PutObjectAclRequest { /** *

The bucket name that contains the object to which you want to attach the ACL.

*

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 Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -11217,7 +11296,8 @@ export interface PutObjectLegalHoldRequest { /** *

The bucket name containing the object that you want to place a Legal Hold on.

*

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 Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -11286,7 +11366,8 @@ export namespace PutObjectLockConfigurationOutput { export interface PutObjectLockConfigurationRequest { /** *

The bucket whose Object Lock configuration you want to create or replace.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -11351,7 +11432,8 @@ export interface PutObjectRetentionRequest { *

The bucket name that contains the object you want to apply this Object Retention * 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 action with an access point through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -11427,7 +11509,8 @@ export interface PutObjectTaggingRequest { *

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 Amazon Web Services 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 S3 User 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 action using S3 on Outposts through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -11479,7 +11562,8 @@ export interface PutPublicAccessBlockRequest { /** *

The name of the Amazon S3 bucket whose PublicAccessBlock configuration you want * to set.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; diff --git a/clients/client-s3/models/models_1.ts b/clients/client-s3/models/models_1.ts index d087a127d0f73..0d19c2284ac8f 100644 --- a/clients/client-s3/models/models_1.ts +++ b/clients/client-s3/models/models_1.ts @@ -514,7 +514,8 @@ export interface RestoreObjectRequest { *

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 action with an access point through the Amazon Web Services 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 S3 User 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 action using S3 on Outposts through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -899,7 +900,8 @@ export namespace ScanRange { export interface SelectObjectContentRequest { /** *

The S3 bucket.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -1057,7 +1059,8 @@ export interface UploadPartRequest { *

The name of the bucket to which the multipart upload 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 action with an access point through the Amazon Web Services 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 S3 User 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 action using S3 on Outposts through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; @@ -1224,7 +1227,8 @@ export interface UploadPartCopyRequest { *

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 action with an access point through the Amazon Web Services 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 S3 User 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 action using S3 on Outposts through the Amazon Web Services 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 S3 User Guide.

- *

Note: To supply the Multi-region Access Point(MRAP) to Bucket, you need to install the "aws-crt" package sparately. For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

+ *

Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies. + * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

*/ Bucket: string | undefined; diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddS3Config.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddS3Config.java index 8d6522feaa48e..20fa91b225d09 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddS3Config.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddS3Config.java @@ -69,9 +69,9 @@ public final class AddS3Config implements TypeScriptIntegration { "CompleteMultipartUpload" ); - private static final String CRT_NOTIFICATION = "

Note: To supply the Multi-region Access Point(MRAP) to Bucket," - + " you need to install the \"aws-crt\" package sparately. For more information, please go to " - + "https://github.com/aws/aws-sdk-js-v3#known-issues

"; + private static final String CRT_NOTIFICATION = "

Note: To supply the Multi-region Access Point (MRAP) to Bucket," + + " you need to install the \"@aws-sdk/signature-v4-crt\" package to your project dependencies. \n" + + "For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues

"; @Override public Model preprocessModel(PluginContext context, TypeScriptSettings settings) { diff --git a/packages/middleware-sdk-s3/src/S3SignatureV4.ts b/packages/middleware-sdk-s3/src/S3SignatureV4.ts index 078b9f64839ec..b36c206a6b883 100644 --- a/packages/middleware-sdk-s3/src/S3SignatureV4.ts +++ b/packages/middleware-sdk-s3/src/S3SignatureV4.ts @@ -23,7 +23,7 @@ export type S3SignerV4Init = SignatureV4Init & */ export class S3SignatureV4 implements RequestPresigner, RequestSigner { private readonly sigv4Signer: SignatureV4; - private sigv4aSigner?: RequestSigner & RequestPresigner; + private sigv4aSigner?: CrtSignerV4; private readonly signerOptions: S3SignerV4Init; constructor(options: S3SignerV4Init) { @@ -35,14 +35,7 @@ export class S3SignatureV4 implements RequestPresigner, RequestSigner { if (options.signingRegion === "*") { if (this.signerOptions.runtime !== "node") throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js"); - if (!this.sigv4aSigner) { - const CrtSignerV4 = await expectSigv4aSigner(); - this.sigv4aSigner = new CrtSignerV4({ - ...this.signerOptions, - signingAlgorithm: 1, - }); - } - return this.sigv4aSigner.sign(requestToSign, options); + return (await this.getSigv4aSigner()).sign(requestToSign, options); } return this.sigv4Signer.sign(requestToSign, options); } @@ -51,26 +44,27 @@ export class S3SignatureV4 implements RequestPresigner, RequestSigner { if (options.signingRegion === "*") { if (this.signerOptions.runtime !== "node") throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js"); - if (!this.sigv4aSigner) { - const CrtSignerV4 = await expectSigv4aSigner(); - this.sigv4aSigner = new CrtSignerV4({ - ...this.signerOptions, - signingAlgorithm: 1, - }); - } - return this.sigv4aSigner.presign(originalRequest, options); + return (await this.getSigv4aSigner()).presign(originalRequest, options); } return this.sigv4Signer.presign(originalRequest, options); } -} -const expectSigv4aSigner = async (): Promise CrtSignerV4> => { - try { - return (await import("@aws-sdk/signature-v4-crt")).CrtSignerV4; - } catch (e) { - e.message = - `${e.message}\nPlease check if you have installed "@aws-sdk/signature-v4-crt" package explicitly. ` + - "For more information please go to https://github.com/aws/aws-sdk-js-v3#known-issues"; - throw e; + private async getSigv4aSigner(): Promise { + if (!this.sigv4aSigner) { + let CrtSignerV4: new (options: CrtSignerV4Init & SignatureV4CryptoInit) => CrtSignerV4; + try { + CrtSignerV4 = (await import("@aws-sdk/signature-v4-crt")).CrtSignerV4; + } catch (e) { + e.message = + `${e.message}\nPlease check if you have installed "@aws-sdk/signature-v4-crt" package explicitly. \n` + + "For more information please go to https://github.com/aws/aws-sdk-js-v3#known-issues"; + throw e; + } + this.sigv4aSigner = new CrtSignerV4({ + ...this.signerOptions, + signingAlgorithm: 1, + }); + } + return this.sigv4aSigner; } -}; +} diff --git a/packages/middleware-user-agent/src/user-agent-middleware.ts b/packages/middleware-user-agent/src/user-agent-middleware.ts index 8c4b22a0dd46f..f90999942ec2d 100644 --- a/packages/middleware-user-agent/src/user-agent-middleware.ts +++ b/packages/middleware-user-agent/src/user-agent-middleware.ts @@ -31,39 +31,38 @@ export const userAgentMiddleware = ( next: BuildHandler, context: HandlerExecutionContext - ): BuildHandler => { - return async (args: BuildHandlerArguments): Promise> => { - const { request } = args; - if (!HttpRequest.isInstance(request)) return next(args); - const { headers } = request; - const userAgent = context?.userAgent?.map(escapeUserAgent) || []; - const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); - const customUserAgent = options?.customUserAgent?.map(escapeUserAgent) || []; + ): BuildHandler => + async (args: BuildHandlerArguments): Promise> => { + const { request } = args; + if (!HttpRequest.isInstance(request)) return next(args); + const { headers } = request; + const userAgent = context?.userAgent?.map(escapeUserAgent) || []; + const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); + const customUserAgent = options?.customUserAgent?.map(escapeUserAgent) || []; - // Set value to AWS-specific user agent header - const sdkUserAgentValue = [...defaultUserAgent, ...userAgent, ...customUserAgent].join(SPACE); - // Get value to be sent with non-AWS-specific user agent header. - const normalUAValue = [ - ...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")), - ...customUserAgent, - ].join(SPACE); + // Set value to AWS-specific user agent header + const sdkUserAgentValue = [...defaultUserAgent, ...userAgent, ...customUserAgent].join(SPACE); + // Get value to be sent with non-AWS-specific user agent header. + const normalUAValue = [ + ...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")), + ...customUserAgent, + ].join(SPACE); - if (options.runtime !== "browser") { - if (normalUAValue) { - headers[X_AMZ_USER_AGENT] = headers[X_AMZ_USER_AGENT] - ? `${headers[USER_AGENT]} ${normalUAValue}` - : normalUAValue; - } - headers[USER_AGENT] = sdkUserAgentValue; - } else { - headers[X_AMZ_USER_AGENT] = sdkUserAgentValue; + if (options.runtime !== "browser") { + if (normalUAValue) { + headers[X_AMZ_USER_AGENT] = headers[X_AMZ_USER_AGENT] + ? `${headers[USER_AGENT]} ${normalUAValue}` + : normalUAValue; } + headers[USER_AGENT] = sdkUserAgentValue; + } else { + headers[X_AMZ_USER_AGENT] = sdkUserAgentValue; + } - return next({ - ...args, - request, - }); - }; + return next({ + ...args, + request, + }); }; /** diff --git a/packages/util-user-agent-node/src/is-crt-available.ts b/packages/util-user-agent-node/src/is-crt-available.ts index 4ee2900c80c60..330011b9c3dfb 100644 --- a/packages/util-user-agent-node/src/is-crt-available.ts +++ b/packages/util-user-agent-node/src/is-crt-available.ts @@ -13,7 +13,6 @@ export const isCrtAvailable = (): UserAgentPair | null => { } return null; } catch (e) { - console.log("||||||", process.versions, e); // No aws-crt package available in the runtime. return null; }