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AA,IAAAA,IAAAA,EAAA,IAA9B,KAAAvzB,KAAAA,EAA8B,KAAAuzB,SAAAA,EAF1C,KAAAC,WAAsC,GAsChD,OAlCE,YAAAC,SAAA,SAASzzB,GAEP,OADAjD,KAAKiD,KAAOA,EACLjD,MAGT,YAAA22B,aAAA,SAAa1zB,EAAc1H,GAEzB,OADAyE,KAAKy2B,WAAWxzB,GAAQ1H,EACjByE,MAGT,YAAA42B,aAAA,SAAaC,GAEX,OADA72B,KAAKw2B,SAASz1B,KAAK81B,GACZ72B,MAGT,YAAA82B,gBAAA,SAAgB7zB,GAEd,cADOjD,KAAKy2B,WAAWxzB,GAChBjD,MAGT,YAAAI,SAAA,mBACQ22B,EAAcC,QAAQh3B,KAAKw2B,SAAShyB,QACtCyyB,EAAU,IAAIj3B,KAAKiD,KAEjBwzB,EAAaz2B,KAAKy2B,eACxB,IAA4B,qBAAA71B,OAAOC,KAAK41B,IAAW,8BAAE,CAAhD,IAAMS,EAAa,QAChBC,EAAYV,EAAWS,GACzB,MAAOC,IACTF,GAAW,IAAIC,EAAa,OAAqB,GAAKC,GCnC/Ct0B,QAAQ,KAAM,SAASA,QAAQ,KAAM,QAAQA,QAAQ,KAAM,QAAQA,QAAQ,KAAM,UDmCxB,wGAIpE,OAAQo0B,GAAYF,EAAqB,IAAI/2B,KAAKw2B,SAASt6B,KAAI,SAACiO,GAAM,OAAAA,EAAE/J,cAAY2lB,KAAK,IAAG,KAAK/lB,KAAKiD,KAAI,IAAxE,OAEtC,EAvCA,GEDA,iBACE,WAAoB1H,GAAA,KAAAA,MAAAA,EAKtB,OAHE,YAAA6E,SAAA,WACE,OAAqB,GAAKJ,KAAKzE,OCLpBsH,QAAQ,KAAM,SAASA,QAAQ,KAAM,QAAQA,QAAQ,KAAM,SDO1E,EANA","sources":["webpack://leadsbridge/./node_modules/@aws-sdk/client-s3/models/models_0.ts","webpack://leadsbridge/./node_modules/@aws-sdk/client-s3/models/models_1.ts","webpack://leadsbridge/./node_modules/@aws-sdk/eventstream-marshaller/src/Int64.ts","webpack://leadsbridge/./node_modules/@aws-sdk/eventstream-marshaller/src/HeaderMarshaller.ts","webpack://leadsbridge/./node_modules/@aws-sdk/eventstream-marshaller/src/EventStreamMarshaller.ts","webpack://leadsbridge/./node_modules/@aws-sdk/eventstream-marshaller/src/splitMessage.ts","webpack://leadsbridge/./node_modules/@aws-sdk/eventstream-serde-universal/src/EventStreamMarshaller.ts","webpack://leadsbridge/./node_modules/@aws-sdk/eventstream-serde-universal/src/getChunkedStream.ts","webpack://leadsbridge/./node_modules/@aws-sdk/eventstream-serde-universal/src/getUnmarshalledStream.ts","webpack://leadsbridge/./node_modules/@aws-sdk/eventstream-serde-browser/src/EventStreamMarshaller.ts","webpack://leadsbridge/./node_modules/@aws-sdk/eventstream-serde-browser/src/utils.ts","webpack://leadsbridge/./node_modules/@aws-sdk/md5-js/src/constants.ts","webpack://leadsbridge/./node_modules/@aws-sdk/md5-js/src/index.ts","webpack://leadsbridge/./node_modules/@aws-sdk/client-s3/endpoints.ts","webpack://leadsbridge/./node_modules/@aws-sdk/client-s3/runtimeConfig.shared.ts","webpack://leadsbridge/./node_modules/@aws-sdk/client-s3/runtimeConfig.browser.ts","webpack://leadsbridge/./node_modules/@aws-sdk/eventstream-serde-browser/src/provider.ts","webpack://leadsbridge/./node_modules/@aws-sdk/hash-blob-browser/src/index.ts","webpack://leadsbridge/./node_modules/@aws-sdk/client-s3/node_modules/tslib/tslib.es6.js","webpack://leadsbridge/./node_modules/@aws-sdk/config-resolver/src/EndpointsConfig.ts","webpack://leadsbridge/./node_modules/@aws-sdk/config-resolver/src/RegionConfig.ts","webpack://leadsbridge/./node_modules/@aws-sdk/credential-provider-cognito-identity/src/fromCognitoIdentity.ts","webpack://leadsbridge/./node_modules/@aws-sdk/credential-provider-cognito-identity/src/IndexedDbStorage.ts","webpack://leadsbridge/./node_modules/@aws-sdk/credential-provider-cognito-identity/src/localStorage.ts","webpack://leadsbridge/./node_modules/@aws-sdk/credential-provider-cognito-identity/src/InMemoryStorage.ts","webpack://leadsbridge/./node_modules/@aws-sdk/credential-provider-cognito-identity/src/fromCognitoIdentityPool.ts","webpack://leadsbridge/./node_modules/@aws-sdk/credential-provider-cognito-identity/src/resolveLogins.ts","webpack://leadsbridge/./node_modules/@aws-sdk/eventstream-serde-config-resolver/src/EventStreamSerdeConfig.ts","webpack://leadsbridge/./node_modules/@aws-sdk/fetch-http-handler/src/fetch-http-handler.ts","webpack://leadsbridge/./node_modules/@aws-sdk/fetch-http-handler/src/request-timeout.ts","webpack://leadsbridge/./node_modules/@aws-sdk/fetch-http-handler/src/stream-collector.ts","webpack://leadsbridge/./node_modules/@aws-sdk/invalid-dependency/src/invalidProvider.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-bucket-endpoint/src/bucketHostnameUtils.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-bucket-endpoint/src/bucketHostname.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-bucket-endpoint/src/bucketEndpointMiddleware.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-bucket-endpoint/src/configurations.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-content-length/src/index.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-expect-continue/src/index.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-host-header/src/index.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-logger/src/loggerMiddleware.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-retry/src/retryMiddleware.ts","webpack://leadsbridge/./node_modules/@aws-sdk/service-error-classification/src/constants.ts","webpack://leadsbridge/./node_modules/@aws-sdk/service-error-classification/src/index.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-retry/src/delayDecider.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-retry/src/constants.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-retry/src/retryDecider.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-retry/src/defaultStrategy.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-retry/src/defaultRetryQuota.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-retry/src/configurations.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-sdk-s3/src/validate-bucket-name.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-sdk-s3/src/use-regional-endpoint.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-sdk-s3/src/throw-200-exceptions.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-serde/src/serdePlugin.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-serde/src/deserializerMiddleware.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-serde/src/serializerMiddleware.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-signing/src/configurations.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-signing/src/middleware.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-ssec/src/index.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-user-agent/src/configurations.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-user-agent/src/constants.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-user-agent/src/user-agent-middleware.ts","webpack://leadsbridge/./node_modules/@aws-sdk/property-provider/src/ProviderError.ts","webpack://leadsbridge/./node_modules/@aws-sdk/protocol-http/src/httpResponse.ts","webpack://leadsbridge/./node_modules/@aws-sdk/protocol-http/src/httpRequest.ts","webpack://leadsbridge/./node_modules/@aws-sdk/querystring-builder/src/index.ts","webpack://leadsbridge/./node_modules/@aws-sdk/s3-request-presigner/src/presigner.ts","webpack://leadsbridge/./node_modules/@aws-sdk/s3-request-presigner/src/constants.ts","webpack://leadsbridge/./node_modules/@aws-sdk/signature-v4/src/constants.ts","webpack://leadsbridge/./node_modules/@aws-sdk/signature-v4/src/credentialDerivation.ts","webpack://leadsbridge/./node_modules/@aws-sdk/signature-v4/src/getCanonicalHeaders.ts","webpack://leadsbridge/./node_modules/@aws-sdk/signature-v4/src/getPayloadHash.ts","webpack://leadsbridge/./node_modules/@aws-sdk/is-array-buffer/src/index.ts","webpack://leadsbridge/./node_modules/@aws-sdk/signature-v4/src/cloneRequest.ts","webpack://leadsbridge/./node_modules/@aws-sdk/signature-v4/src/prepareRequest.ts","webpack://leadsbridge/./node_modules/@aws-sdk/signature-v4/src/utilDate.ts","webpack://leadsbridge/./node_modules/@aws-sdk/signature-v4/src/SignatureV4.ts","webpack://leadsbridge/./node_modules/@aws-sdk/signature-v4/src/moveHeadersToQuery.ts","webpack://leadsbridge/./node_modules/@aws-sdk/signature-v4/src/hasHeader.ts","webpack://leadsbridge/./node_modules/@aws-sdk/signature-v4/src/getCanonicalQuery.ts","webpack://leadsbridge/./node_modules/@aws-sdk/middleware-stack/src/MiddlewareStack.ts","webpack://leadsbridge/./node_modules/@aws-sdk/smithy-client/src/client.ts","webpack://leadsbridge/./node_modules/@aws-sdk/smithy-client/src/command.ts","webpack://leadsbridge/./node_modules/@aws-sdk/smithy-client/src/extended-encode-uri-component.ts","webpack://leadsbridge/./node_modules/@aws-sdk/smithy-client/src/get-array-if-single-item.ts","webpack://leadsbridge/./node_modules/@aws-sdk/smithy-client/src/get-value-from-text-node.ts","webpack://leadsbridge/./node_modules/@aws-sdk/smithy-client/src/lazy-json.ts","webpack://leadsbridge/./node_modules/@aws-sdk/smithy-client/src/date-utils.ts","webpack://leadsbridge/./node_modules/@aws-sdk/smithy-client/src/constants.ts","webpack://leadsbridge/./node_modules/@aws-sdk/url-parser/src/index.ts","webpack://leadsbridge/./node_modules/@aws-sdk/querystring-parser/src/index.ts","webpack://leadsbridge/./node_modules/@aws-sdk/util-arn-parser/src/index.ts","webpack://leadsbridge/./node_modules/@aws-sdk/util-base64-browser/src/index.ts","webpack://leadsbridge/./node_modules/@aws-sdk/util-body-length-browser/src/index.ts","webpack://leadsbridge/./node_modules/@aws-sdk/util-create-request/src/index.ts","webpack://leadsbridge/./node_modules/@aws-sdk/util-format-url/src/index.ts","webpack://leadsbridge/./node_modules/@aws-sdk/util-hex-encoding/src/index.ts","webpack://leadsbridge/./node_modules/@aws-sdk/util-locate-window/src/index.ts","webpack://leadsbridge/./node_modules/@aws-sdk/util-uri-escape/src/escape-uri.ts","webpack://leadsbridge/./node_modules/@aws-sdk/util-user-agent-browser/src/index.ts","webpack://leadsbridge/./node_modules/@aws-sdk/util-utf8-browser/src/index.ts","webpack://leadsbridge/./node_modules/@aws-sdk/util-utf8-browser/src/whatwgEncodingApi.ts","webpack://leadsbridge/./node_modules/@aws-sdk/util-utf8-browser/src/pureJs.ts","webpack://leadsbridge/./node_modules/@aws-sdk/xml-builder/src/XmlNode.ts","webpack://leadsbridge/./node_modules/@aws-sdk/xml-builder/src/escape-attribute.ts","webpack://leadsbridge/./node_modules/@aws-sdk/xml-builder/src/XmlText.ts","webpack://leadsbridge/./node_modules/@aws-sdk/xml-builder/src/escape-element.ts"],"sourcesContent":["import { SENSITIVE_STRING, SmithyException as __SmithyException } from \"@aws-sdk/smithy-client\";\nimport { MetadataBearer as $MetadataBearer } from \"@aws-sdk/types\";\nimport { Readable } from \"stream\";\n\n/**\n *

Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will\n * wait before permanently removing all parts of the upload. For more information, see \n * Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Policy in the\n * Amazon Simple Storage Service Developer Guide.

\n */\nexport interface AbortIncompleteMultipartUpload {\n /**\n *

Specifies the number of days after which Amazon S3 aborts an incomplete multipart\n * upload.

\n */\n DaysAfterInitiation?: number;\n}\n\nexport namespace AbortIncompleteMultipartUpload {\n export const filterSensitiveLog = (obj: AbortIncompleteMultipartUpload): any => ({\n ...obj,\n });\n}\n\nexport type RequestCharged = \"requester\";\n\nexport interface AbortMultipartUploadOutput {\n /**\n *

If present, indicates that the requester was successfully charged for the\n * request.

\n */\n RequestCharged?: RequestCharged | string;\n}\n\nexport namespace AbortMultipartUploadOutput {\n export const filterSensitiveLog = (obj: AbortMultipartUploadOutput): any => ({\n ...obj,\n });\n}\n\nexport type RequestPayer = \"requester\";\n\nexport interface AbortMultipartUploadRequest {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

Key of the object for which the multipart upload was initiated.

\n */\n Key: string | undefined;\n\n /**\n *

Upload ID that identifies the multipart upload.

\n */\n UploadId: string | undefined;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace AbortMultipartUploadRequest {\n export const filterSensitiveLog = (obj: AbortMultipartUploadRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

The specified multipart upload does not exist.

\n */\nexport interface NoSuchUpload extends __SmithyException, $MetadataBearer {\n name: \"NoSuchUpload\";\n $fault: \"client\";\n}\n\nexport namespace NoSuchUpload {\n export const filterSensitiveLog = (obj: NoSuchUpload): any => ({\n ...obj,\n });\n}\n\nexport type BucketAccelerateStatus = \"Enabled\" | \"Suspended\";\n\n/**\n *

Configures the transfer acceleration state for an Amazon S3 bucket. For more information, see\n * Amazon S3\n * Transfer Acceleration in the Amazon Simple Storage Service Developer\n * Guide.

\n */\nexport interface AccelerateConfiguration {\n /**\n *

Specifies the transfer acceleration status of the bucket.

\n */\n Status?: BucketAccelerateStatus | string;\n}\n\nexport namespace AccelerateConfiguration {\n export const filterSensitiveLog = (obj: AccelerateConfiguration): any => ({\n ...obj,\n });\n}\n\nexport type Type = \"AmazonCustomerByEmail\" | \"CanonicalUser\" | \"Group\";\n\n/**\n *

Container for the person being granted permissions.

\n */\nexport interface Grantee {\n /**\n *

Screen name of the grantee.

\n */\n DisplayName?: string;\n\n /**\n *

Email address of the grantee.

\n * \n *

Using email addresses to specify a grantee is only supported in the following AWS Regions:

\n * \n *

For a list of all the Amazon S3 supported Regions and endpoints, see Regions and Endpoints in the AWS General Reference.

\n *
\n */\n EmailAddress?: string;\n\n /**\n *

The canonical user ID of the grantee.

\n */\n ID?: string;\n\n /**\n *

URI of the grantee group.

\n */\n URI?: string;\n\n /**\n *

Type of grantee

\n */\n Type: Type | string | undefined;\n}\n\nexport namespace Grantee {\n export const filterSensitiveLog = (obj: Grantee): any => ({\n ...obj,\n });\n}\n\nexport type Permission = \"FULL_CONTROL\" | \"READ\" | \"READ_ACP\" | \"WRITE\" | \"WRITE_ACP\";\n\n/**\n *

Container for grant information.

\n */\nexport interface Grant {\n /**\n *

The person being granted permissions.

\n */\n Grantee?: Grantee;\n\n /**\n *

Specifies the permission given to the grantee.

\n */\n Permission?: Permission | string;\n}\n\nexport namespace Grant {\n export const filterSensitiveLog = (obj: Grant): any => ({\n ...obj,\n });\n}\n\n/**\n *

Container for the owner's display name and ID.

\n */\nexport interface Owner {\n /**\n *

Container for the display name of the owner.

\n */\n DisplayName?: string;\n\n /**\n *

Container for the ID of the owner.

\n */\n ID?: string;\n}\n\nexport namespace Owner {\n export const filterSensitiveLog = (obj: Owner): any => ({\n ...obj,\n });\n}\n\n/**\n *

Contains the elements that set the ACL permissions for an object per grantee.

\n */\nexport interface AccessControlPolicy {\n /**\n *

A list of grants.

\n */\n Grants?: Grant[];\n\n /**\n *

Container for the bucket owner's display name and ID.

\n */\n Owner?: Owner;\n}\n\nexport namespace AccessControlPolicy {\n export const filterSensitiveLog = (obj: AccessControlPolicy): any => ({\n ...obj,\n });\n}\n\nexport type OwnerOverride = \"Destination\";\n\n/**\n *

A container for information about access control for replicas.

\n */\nexport interface AccessControlTranslation {\n /**\n *

Specifies the replica ownership. For default and valid values, see PUT bucket\n * replication in the Amazon Simple Storage Service API Reference.

\n */\n Owner: OwnerOverride | string | undefined;\n}\n\nexport namespace AccessControlTranslation {\n export const filterSensitiveLog = (obj: AccessControlTranslation): any => ({\n ...obj,\n });\n}\n\nexport type ServerSideEncryption = \"AES256\" | \"aws:kms\";\n\nexport interface CompleteMultipartUploadOutput {\n /**\n *

The URI that identifies the newly created object.

\n */\n Location?: string;\n\n /**\n *

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.

\n */\n Bucket?: string;\n\n /**\n *

The object key of the newly created object.

\n */\n Key?: string;\n\n /**\n *

If the object expiration is configured, this will contain the expiration date\n * (expiry-date) and rule ID (rule-id). The value of rule-id is URL encoded.

\n */\n Expiration?: string;\n\n /**\n *

Entity tag that identifies the newly created object's data. Objects with different\n * object data will have different entity tags. The entity tag is an opaque string. The entity\n * tag may or may not be an MD5 digest of the object data. If the entity tag is not an MD5\n * digest of the object data, it will contain one or more nonhexadecimal characters and/or\n * will consist of less than 32 or more than 32 hexadecimal digits.

\n */\n ETag?: string;\n\n /**\n *

If you specified server-side encryption either with an Amazon S3-managed encryption key or an\n * AWS KMS customer master key (CMK) in your initiate multipart upload request, the response\n * includes this header. It confirms the encryption algorithm that Amazon S3 used to encrypt the\n * object.

\n */\n ServerSideEncryption?: ServerSideEncryption | string;\n\n /**\n *

Version ID of the newly created object, in case the bucket has versioning turned\n * on.

\n */\n VersionId?: string;\n\n /**\n *

If present, specifies the ID of the AWS Key Management Service (AWS KMS) symmetric\n * customer managed customer master key (CMK) that was used for the object.

\n */\n SSEKMSKeyId?: string;\n\n /**\n *

Indicates whether the multipart upload uses an S3 Bucket Key for server-side encryption with AWS KMS (SSE-KMS).

\n */\n BucketKeyEnabled?: boolean;\n\n /**\n *

If present, indicates that the requester was successfully charged for the\n * request.

\n */\n RequestCharged?: RequestCharged | string;\n}\n\nexport namespace CompleteMultipartUploadOutput {\n export const filterSensitiveLog = (obj: CompleteMultipartUploadOutput): any => ({\n ...obj,\n ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),\n });\n}\n\n/**\n *

Details of the parts that were uploaded.

\n */\nexport interface CompletedPart {\n /**\n *

Entity tag returned when the part was uploaded.

\n */\n ETag?: string;\n\n /**\n *

Part number that identifies the part. This is a positive integer between 1 and\n * 10,000.

\n */\n PartNumber?: number;\n}\n\nexport namespace CompletedPart {\n export const filterSensitiveLog = (obj: CompletedPart): any => ({\n ...obj,\n });\n}\n\n/**\n *

The container for the completed multipart upload details.

\n */\nexport interface CompletedMultipartUpload {\n /**\n *

Array of CompletedPart data types.

\n */\n Parts?: CompletedPart[];\n}\n\nexport namespace CompletedMultipartUpload {\n export const filterSensitiveLog = (obj: CompletedMultipartUpload): any => ({\n ...obj,\n });\n}\n\nexport interface CompleteMultipartUploadRequest {\n /**\n *

Name of the bucket to which the multipart upload was initiated.

\n */\n Bucket: string | undefined;\n\n /**\n *

Object key for which the multipart upload was initiated.

\n */\n Key: string | undefined;\n\n /**\n *

The container for the multipart upload request information.

\n */\n MultipartUpload?: CompletedMultipartUpload;\n\n /**\n *

ID for the initiated multipart upload.

\n */\n UploadId: string | undefined;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace CompleteMultipartUploadRequest {\n export const filterSensitiveLog = (obj: CompleteMultipartUploadRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

Container for all response elements.

\n */\nexport interface CopyObjectResult {\n /**\n *

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.

\n */\n ETag?: string;\n\n /**\n *

Returns the date that the object was last modified.

\n */\n LastModified?: Date;\n}\n\nexport namespace CopyObjectResult {\n export const filterSensitiveLog = (obj: CopyObjectResult): any => ({\n ...obj,\n });\n}\n\nexport interface CopyObjectOutput {\n /**\n *

Container for all response elements.

\n */\n CopyObjectResult?: CopyObjectResult;\n\n /**\n *

If the object expiration is configured, the response includes this header.

\n */\n Expiration?: string;\n\n /**\n *

Version of the copied object in the destination bucket.

\n */\n CopySourceVersionId?: string;\n\n /**\n *

Version ID of the newly created copy.

\n */\n VersionId?: string;\n\n /**\n *

The server-side encryption algorithm used when storing this object in Amazon S3 (for example,\n * AES256, aws:kms).

\n */\n ServerSideEncryption?: ServerSideEncryption | string;\n\n /**\n *

If server-side encryption with a customer-provided encryption key was requested, the\n * response will include this header confirming the encryption algorithm used.

\n */\n SSECustomerAlgorithm?: string;\n\n /**\n *

If server-side encryption with a customer-provided encryption key was requested, the\n * response will include this header to provide round-trip message integrity verification of\n * the customer-provided encryption key.

\n */\n SSECustomerKeyMD5?: string;\n\n /**\n *

If present, specifies the ID of the AWS Key Management Service (AWS KMS) symmetric\n * customer managed customer master key (CMK) that was used for the object.

\n */\n SSEKMSKeyId?: string;\n\n /**\n *

If present, specifies the AWS KMS Encryption Context to use for object encryption. The\n * value of this header is a base64-encoded UTF-8 string holding JSON with the encryption\n * context key-value pairs.

\n */\n SSEKMSEncryptionContext?: string;\n\n /**\n *

Indicates whether the copied object uses an S3 Bucket Key for server-side encryption with AWS KMS (SSE-KMS).

\n */\n BucketKeyEnabled?: boolean;\n\n /**\n *

If present, indicates that the requester was successfully charged for the\n * request.

\n */\n RequestCharged?: RequestCharged | string;\n}\n\nexport namespace CopyObjectOutput {\n export const filterSensitiveLog = (obj: CopyObjectOutput): any => ({\n ...obj,\n ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),\n ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }),\n });\n}\n\nexport type ObjectCannedACL =\n | \"authenticated-read\"\n | \"aws-exec-read\"\n | \"bucket-owner-full-control\"\n | \"bucket-owner-read\"\n | \"private\"\n | \"public-read\"\n | \"public-read-write\";\n\nexport type MetadataDirective = \"COPY\" | \"REPLACE\";\n\nexport type ObjectLockLegalHoldStatus = \"OFF\" | \"ON\";\n\nexport type ObjectLockMode = \"COMPLIANCE\" | \"GOVERNANCE\";\n\nexport type StorageClass =\n | \"DEEP_ARCHIVE\"\n | \"GLACIER\"\n | \"INTELLIGENT_TIERING\"\n | \"ONEZONE_IA\"\n | \"OUTPOSTS\"\n | \"REDUCED_REDUNDANCY\"\n | \"STANDARD\"\n | \"STANDARD_IA\";\n\nexport type TaggingDirective = \"COPY\" | \"REPLACE\";\n\nexport interface CopyObjectRequest {\n /**\n *

The canned ACL to apply to the object.

\n *

This action is not supported by Amazon S3 on Outposts.

\n */\n ACL?: ObjectCannedACL | string;\n\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

Specifies caching behavior along the request/reply chain.

\n */\n CacheControl?: string;\n\n /**\n *

Specifies presentational information for the object.

\n */\n ContentDisposition?: string;\n\n /**\n *

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.

\n */\n ContentEncoding?: string;\n\n /**\n *

The language the content is in.

\n */\n ContentLanguage?: string;\n\n /**\n *

A standard MIME type describing the format of the object data.

\n */\n ContentType?: string;\n\n /**\n *

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.

\n */\n CopySource: string | undefined;\n\n /**\n *

Copies the object if its entity tag (ETag) matches the specified tag.

\n */\n CopySourceIfMatch?: string;\n\n /**\n *

Copies the object if it has been modified since the specified time.

\n */\n CopySourceIfModifiedSince?: Date;\n\n /**\n *

Copies the object if its entity tag (ETag) is different than the specified ETag.

\n */\n CopySourceIfNoneMatch?: string;\n\n /**\n *

Copies the object if it hasn't been modified since the specified time.

\n */\n CopySourceIfUnmodifiedSince?: Date;\n\n /**\n *

The date and time at which the object is no longer cacheable.

\n */\n Expires?: Date;\n\n /**\n *

Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the\n * object.

\n *

This action is not supported by Amazon S3 on Outposts.

\n */\n GrantFullControl?: string;\n\n /**\n *

Allows grantee to read the object data and its\n * metadata.

\n *

This action is not supported by Amazon S3 on Outposts.

\n */\n GrantRead?: string;\n\n /**\n *

Allows grantee to read the object ACL.

\n *

This action is not supported by Amazon S3 on Outposts.

\n */\n GrantReadACP?: string;\n\n /**\n *

Allows grantee to write the ACL for the applicable\n * object.

\n *

This action is not supported by Amazon S3 on Outposts.

\n */\n GrantWriteACP?: string;\n\n /**\n *

The key of the destination object.

\n */\n Key: string | undefined;\n\n /**\n *

A map of metadata to store with the object in S3.

\n */\n Metadata?: { [key: string]: string };\n\n /**\n *

Specifies whether the metadata is copied from the source object or replaced with\n * metadata provided in the request.

\n */\n MetadataDirective?: MetadataDirective | string;\n\n /**\n *

Specifies whether the object tag-set are copied from the source object or replaced with\n * tag-set provided in the request.

\n */\n TaggingDirective?: TaggingDirective | string;\n\n /**\n *

The server-side encryption algorithm used when storing this object in Amazon S3 (for example,\n * AES256, aws:kms).

\n */\n ServerSideEncryption?: ServerSideEncryption | string;\n\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 StorageClass?: StorageClass | string;\n\n /**\n *

If the bucket is configured as a website, redirects requests for this object to another\n * object in the same bucket or to an external URL. Amazon S3 stores the value of this header in\n * the object metadata.

\n */\n WebsiteRedirectLocation?: string;\n\n /**\n *

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

\n */\n SSECustomerAlgorithm?: string;\n\n /**\n *

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.

\n */\n SSECustomerKey?: string;\n\n /**\n *

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses\n * this header for a message integrity check to ensure that the encryption key was transmitted\n * without error.

\n */\n SSECustomerKeyMD5?: string;\n\n /**\n *

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

\n */\n SSEKMSKeyId?: string;\n\n /**\n *

Specifies the AWS KMS Encryption Context to use for object encryption. The value of this\n * header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value\n * pairs.

\n */\n SSEKMSEncryptionContext?: string;\n\n /**\n *

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.

\n */\n BucketKeyEnabled?: boolean;\n\n /**\n *

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

\n */\n CopySourceSSECustomerAlgorithm?: string;\n\n /**\n *

Specifies the customer-provided encryption key for Amazon S3 to use to decrypt the source\n * object. The encryption key provided in this header must be one that was used when the\n * source object was created.

\n */\n CopySourceSSECustomerKey?: string;\n\n /**\n *

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses\n * this header for a message integrity check to ensure that the encryption key was transmitted\n * without error.

\n */\n CopySourceSSECustomerKeyMD5?: string;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

The tag-set for the object destination object this value must be used in conjunction\n * with the TaggingDirective. The tag-set must be encoded as URL Query\n * parameters.

\n */\n Tagging?: string;\n\n /**\n *

The Object Lock mode that you want to apply to the copied object.

\n */\n ObjectLockMode?: ObjectLockMode | string;\n\n /**\n *

The date and time when you want the copied object's Object Lock to expire.

\n */\n ObjectLockRetainUntilDate?: Date;\n\n /**\n *

Specifies whether you want to apply a Legal Hold to the copied object.

\n */\n ObjectLockLegalHoldStatus?: ObjectLockLegalHoldStatus | string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n\n /**\n *

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.

\n */\n ExpectedSourceBucketOwner?: string;\n}\n\nexport namespace CopyObjectRequest {\n export const filterSensitiveLog = (obj: CopyObjectRequest): any => ({\n ...obj,\n ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),\n ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),\n ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }),\n ...(obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: SENSITIVE_STRING }),\n });\n}\n\n/**\n *

The source object of the COPY operation is not in the active tier and is only stored in\n * Amazon S3 Glacier.

\n */\nexport interface ObjectNotInActiveTierError extends __SmithyException, $MetadataBearer {\n name: \"ObjectNotInActiveTierError\";\n $fault: \"client\";\n}\n\nexport namespace ObjectNotInActiveTierError {\n export const filterSensitiveLog = (obj: ObjectNotInActiveTierError): any => ({\n ...obj,\n });\n}\n\n/**\n *

The requested bucket name is not available. The bucket namespace is shared by all users\n * of the system. Select a different name and try again.

\n */\nexport interface BucketAlreadyExists extends __SmithyException, $MetadataBearer {\n name: \"BucketAlreadyExists\";\n $fault: \"client\";\n}\n\nexport namespace BucketAlreadyExists {\n export const filterSensitiveLog = (obj: BucketAlreadyExists): any => ({\n ...obj,\n });\n}\n\n/**\n *

The bucket you tried to create already exists, and you own it. Amazon S3 returns this error\n * in all AWS Regions except in the North Virginia Region. For legacy compatibility, if you\n * re-create an existing bucket that you already own in the North Virginia Region, Amazon S3\n * returns 200 OK and resets the bucket access control lists (ACLs).

\n */\nexport interface BucketAlreadyOwnedByYou extends __SmithyException, $MetadataBearer {\n name: \"BucketAlreadyOwnedByYou\";\n $fault: \"client\";\n}\n\nexport namespace BucketAlreadyOwnedByYou {\n export const filterSensitiveLog = (obj: BucketAlreadyOwnedByYou): any => ({\n ...obj,\n });\n}\n\nexport interface CreateBucketOutput {\n /**\n *

Specifies the Region where the bucket will be created. If you are creating a bucket on\n * the US East (N. Virginia) Region (us-east-1), you do not need to specify the\n * location.

\n */\n Location?: string;\n}\n\nexport namespace CreateBucketOutput {\n export const filterSensitiveLog = (obj: CreateBucketOutput): any => ({\n ...obj,\n });\n}\n\nexport type BucketCannedACL = \"authenticated-read\" | \"private\" | \"public-read\" | \"public-read-write\";\n\nexport type BucketLocationConstraint =\n | \"EU\"\n | \"af-south-1\"\n | \"ap-east-1\"\n | \"ap-northeast-1\"\n | \"ap-northeast-2\"\n | \"ap-northeast-3\"\n | \"ap-south-1\"\n | \"ap-southeast-1\"\n | \"ap-southeast-2\"\n | \"ca-central-1\"\n | \"cn-north-1\"\n | \"cn-northwest-1\"\n | \"eu-central-1\"\n | \"eu-north-1\"\n | \"eu-south-1\"\n | \"eu-west-1\"\n | \"eu-west-2\"\n | \"eu-west-3\"\n | \"me-south-1\"\n | \"sa-east-1\"\n | \"us-east-2\"\n | \"us-gov-east-1\"\n | \"us-gov-west-1\"\n | \"us-west-1\"\n | \"us-west-2\";\n\n/**\n *

The configuration information for the bucket.

\n */\nexport interface CreateBucketConfiguration {\n /**\n *

Specifies the Region where the bucket will be created. If you don't specify a Region,\n * the bucket is created in the US East (N. Virginia) Region (us-east-1).

\n */\n LocationConstraint?: BucketLocationConstraint | string;\n}\n\nexport namespace CreateBucketConfiguration {\n export const filterSensitiveLog = (obj: CreateBucketConfiguration): any => ({\n ...obj,\n });\n}\n\nexport interface CreateBucketRequest {\n /**\n *

The canned ACL to apply to the bucket.

\n */\n ACL?: BucketCannedACL | string;\n\n /**\n *

The name of the bucket to create.

\n */\n Bucket: string | undefined;\n\n /**\n *

The configuration information for the bucket.

\n */\n CreateBucketConfiguration?: CreateBucketConfiguration;\n\n /**\n *

Allows grantee the read, write, read ACP, and write ACP permissions on the\n * bucket.

\n */\n GrantFullControl?: string;\n\n /**\n *

Allows grantee to list the objects in the bucket.

\n */\n GrantRead?: string;\n\n /**\n *

Allows grantee to read the bucket ACL.

\n */\n GrantReadACP?: string;\n\n /**\n *

Allows grantee to create, overwrite, and delete any object in the bucket.

\n */\n GrantWrite?: string;\n\n /**\n *

Allows grantee to write the ACL for the applicable bucket.

\n */\n GrantWriteACP?: string;\n\n /**\n *

Specifies whether you want S3 Object Lock to be enabled for the new bucket.

\n */\n ObjectLockEnabledForBucket?: boolean;\n}\n\nexport namespace CreateBucketRequest {\n export const filterSensitiveLog = (obj: CreateBucketRequest): any => ({\n ...obj,\n });\n}\n\nexport interface CreateMultipartUploadOutput {\n /**\n *

If the bucket has a lifecycle rule configured with an action to abort incomplete\n * multipart uploads and the prefix in the lifecycle rule matches the object name in the\n * request, the response includes this header. The header indicates when the initiated\n * multipart upload becomes eligible for an abort operation. For more information, see \n * Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Policy.

\n *\n *

The response also includes the x-amz-abort-rule-id header that provides the\n * ID of the lifecycle configuration rule that defines this action.

\n */\n AbortDate?: Date;\n\n /**\n *

This header is returned along with the x-amz-abort-date header. It\n * identifies the applicable lifecycle configuration rule that defines the action to abort\n * incomplete multipart uploads.

\n */\n AbortRuleId?: string;\n\n /**\n *

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.

\n */\n Bucket?: string;\n\n /**\n *

Object key for which the multipart upload was initiated.

\n */\n Key?: string;\n\n /**\n *

ID for the initiated multipart upload.

\n */\n UploadId?: string;\n\n /**\n *

The server-side encryption algorithm used when storing this object in Amazon S3 (for example,\n * AES256, aws:kms).

\n */\n ServerSideEncryption?: ServerSideEncryption | string;\n\n /**\n *

If server-side encryption with a customer-provided encryption key was requested, the\n * response will include this header confirming the encryption algorithm used.

\n */\n SSECustomerAlgorithm?: string;\n\n /**\n *

If server-side encryption with a customer-provided encryption key was requested, the\n * response will include this header to provide round-trip message integrity verification of\n * the customer-provided encryption key.

\n */\n SSECustomerKeyMD5?: string;\n\n /**\n *

If present, specifies the ID of the AWS Key Management Service (AWS KMS) symmetric\n * customer managed customer master key (CMK) that was used for the object.

\n */\n SSEKMSKeyId?: string;\n\n /**\n *

If present, specifies the AWS KMS Encryption Context to use for object encryption. The\n * value of this header is a base64-encoded UTF-8 string holding JSON with the encryption\n * context key-value pairs.

\n */\n SSEKMSEncryptionContext?: string;\n\n /**\n *

Indicates whether the multipart upload uses an S3 Bucket Key for server-side encryption with AWS KMS (SSE-KMS).

\n */\n BucketKeyEnabled?: boolean;\n\n /**\n *

If present, indicates that the requester was successfully charged for the\n * request.

\n */\n RequestCharged?: RequestCharged | string;\n}\n\nexport namespace CreateMultipartUploadOutput {\n export const filterSensitiveLog = (obj: CreateMultipartUploadOutput): any => ({\n ...obj,\n ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),\n ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }),\n });\n}\n\nexport interface CreateMultipartUploadRequest {\n /**\n *

The canned ACL to apply to the object.

\n *

This action is not supported by Amazon S3 on Outposts.

\n */\n ACL?: ObjectCannedACL | string;\n\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

Specifies caching behavior along the request/reply chain.

\n */\n CacheControl?: string;\n\n /**\n *

Specifies presentational information for the object.

\n */\n ContentDisposition?: string;\n\n /**\n *

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.

\n */\n ContentEncoding?: string;\n\n /**\n *

The language the content is in.

\n */\n ContentLanguage?: string;\n\n /**\n *

A standard MIME type describing the format of the object data.

\n */\n ContentType?: string;\n\n /**\n *

The date and time at which the object is no longer cacheable.

\n */\n Expires?: Date;\n\n /**\n *

Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the\n * object.

\n *

This action is not supported by Amazon S3 on Outposts.

\n */\n GrantFullControl?: string;\n\n /**\n *

Allows grantee to read the object data and its\n * metadata.

\n *

This action is not supported by Amazon S3 on Outposts.

\n */\n GrantRead?: string;\n\n /**\n *

Allows grantee to read the object ACL.

\n *

This action is not supported by Amazon S3 on Outposts.

\n */\n GrantReadACP?: string;\n\n /**\n *

Allows grantee to write the ACL for the applicable\n * object.

\n *

This action is not supported by Amazon S3 on Outposts.

\n */\n GrantWriteACP?: string;\n\n /**\n *

Object key for which the multipart upload is to be initiated.

\n */\n Key: string | undefined;\n\n /**\n *

A map of metadata to store with the object in S3.

\n */\n Metadata?: { [key: string]: string };\n\n /**\n *

The server-side encryption algorithm used when storing this object in Amazon S3 (for example,\n * AES256, aws:kms).

\n */\n ServerSideEncryption?: ServerSideEncryption | string;\n\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 StorageClass?: StorageClass | string;\n\n /**\n *

If the bucket is configured as a website, redirects requests for this object to another\n * object in the same bucket or to an external URL. Amazon S3 stores the value of this header in\n * the object metadata.

\n */\n WebsiteRedirectLocation?: string;\n\n /**\n *

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

\n */\n SSECustomerAlgorithm?: string;\n\n /**\n *

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.

\n */\n SSECustomerKey?: string;\n\n /**\n *

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses\n * this header for a message integrity check to ensure that the encryption key was transmitted\n * without error.

\n */\n SSECustomerKeyMD5?: string;\n\n /**\n *

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.

\n */\n SSEKMSKeyId?: string;\n\n /**\n *

Specifies the AWS KMS Encryption Context to use for object encryption. The value of this\n * header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value\n * pairs.

\n */\n SSEKMSEncryptionContext?: string;\n\n /**\n *

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.

\n */\n BucketKeyEnabled?: boolean;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

The tag-set for the object. The tag-set must be encoded as URL Query parameters.

\n */\n Tagging?: string;\n\n /**\n *

Specifies the Object Lock mode that you want to apply to the uploaded object.

\n */\n ObjectLockMode?: ObjectLockMode | string;\n\n /**\n *

Specifies the date and time when you want the Object Lock to expire.

\n */\n ObjectLockRetainUntilDate?: Date;\n\n /**\n *

Specifies whether you want to apply a Legal Hold to the uploaded object.

\n */\n ObjectLockLegalHoldStatus?: ObjectLockLegalHoldStatus | string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace CreateMultipartUploadRequest {\n export const filterSensitiveLog = (obj: CreateMultipartUploadRequest): any => ({\n ...obj,\n ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),\n ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),\n ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }),\n });\n}\n\nexport interface DeleteBucketRequest {\n /**\n *

Specifies the bucket being deleted.

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace DeleteBucketRequest {\n export const filterSensitiveLog = (obj: DeleteBucketRequest): any => ({\n ...obj,\n });\n}\n\nexport interface DeleteBucketAnalyticsConfigurationRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

The ID that identifies the analytics configuration.

\n */\n Id: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace DeleteBucketAnalyticsConfigurationRequest {\n export const filterSensitiveLog = (obj: DeleteBucketAnalyticsConfigurationRequest): any => ({\n ...obj,\n });\n}\n\nexport interface DeleteBucketCorsRequest {\n /**\n *

Specifies the bucket whose cors configuration is being deleted.

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace DeleteBucketCorsRequest {\n export const filterSensitiveLog = (obj: DeleteBucketCorsRequest): any => ({\n ...obj,\n });\n}\n\nexport interface DeleteBucketEncryptionRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace DeleteBucketEncryptionRequest {\n export const filterSensitiveLog = (obj: DeleteBucketEncryptionRequest): any => ({\n ...obj,\n });\n}\n\nexport interface DeleteBucketIntelligentTieringConfigurationRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

The ID used to identify the S3 Intelligent-Tiering configuration.

\n */\n Id: string | undefined;\n}\n\nexport namespace DeleteBucketIntelligentTieringConfigurationRequest {\n export const filterSensitiveLog = (obj: DeleteBucketIntelligentTieringConfigurationRequest): any => ({\n ...obj,\n });\n}\n\nexport interface DeleteBucketInventoryConfigurationRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

The ID used to identify the inventory configuration.

\n */\n Id: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace DeleteBucketInventoryConfigurationRequest {\n export const filterSensitiveLog = (obj: DeleteBucketInventoryConfigurationRequest): any => ({\n ...obj,\n });\n}\n\nexport interface DeleteBucketLifecycleRequest {\n /**\n *

The bucket name of the lifecycle to delete.

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace DeleteBucketLifecycleRequest {\n export const filterSensitiveLog = (obj: DeleteBucketLifecycleRequest): any => ({\n ...obj,\n });\n}\n\nexport interface DeleteBucketMetricsConfigurationRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

The ID used to identify the metrics configuration.

\n */\n Id: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace DeleteBucketMetricsConfigurationRequest {\n export const filterSensitiveLog = (obj: DeleteBucketMetricsConfigurationRequest): any => ({\n ...obj,\n });\n}\n\nexport interface DeleteBucketOwnershipControlsRequest {\n /**\n *

The Amazon S3 bucket whose OwnershipControls you want to delete.

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace DeleteBucketOwnershipControlsRequest {\n export const filterSensitiveLog = (obj: DeleteBucketOwnershipControlsRequest): any => ({\n ...obj,\n });\n}\n\nexport interface DeleteBucketPolicyRequest {\n /**\n *

The bucket name.

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace DeleteBucketPolicyRequest {\n export const filterSensitiveLog = (obj: DeleteBucketPolicyRequest): any => ({\n ...obj,\n });\n}\n\nexport interface DeleteBucketReplicationRequest {\n /**\n *

The bucket name.

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace DeleteBucketReplicationRequest {\n export const filterSensitiveLog = (obj: DeleteBucketReplicationRequest): any => ({\n ...obj,\n });\n}\n\nexport interface DeleteBucketTaggingRequest {\n /**\n *

The bucket that has the tag set to be removed.

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace DeleteBucketTaggingRequest {\n export const filterSensitiveLog = (obj: DeleteBucketTaggingRequest): any => ({\n ...obj,\n });\n}\n\nexport interface DeleteBucketWebsiteRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace DeleteBucketWebsiteRequest {\n export const filterSensitiveLog = (obj: DeleteBucketWebsiteRequest): any => ({\n ...obj,\n });\n}\n\nexport interface DeleteObjectOutput {\n /**\n *

Specifies whether the versioned object that was permanently deleted was (true) or was\n * not (false) a delete marker.

\n */\n DeleteMarker?: boolean;\n\n /**\n *

Returns the version ID of the delete marker created as a result of the DELETE\n * operation.

\n */\n VersionId?: string;\n\n /**\n *

If present, indicates that the requester was successfully charged for the\n * request.

\n */\n RequestCharged?: RequestCharged | string;\n}\n\nexport namespace DeleteObjectOutput {\n export const filterSensitiveLog = (obj: DeleteObjectOutput): any => ({\n ...obj,\n });\n}\n\nexport interface DeleteObjectRequest {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

Key name of the object to delete.

\n */\n Key: string | undefined;\n\n /**\n *

The concatenation of the authentication device's serial number, a space, and the value\n * that is displayed on your authentication device. Required to permanently delete a versioned\n * object if versioning is configured with MFA delete enabled.

\n */\n MFA?: string;\n\n /**\n *

VersionId used to reference a specific version of the object.

\n */\n VersionId?: string;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

Indicates whether S3 Object Lock should bypass Governance-mode restrictions to process\n * this operation.

\n */\n BypassGovernanceRetention?: boolean;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace DeleteObjectRequest {\n export const filterSensitiveLog = (obj: DeleteObjectRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

Information about the deleted object.

\n */\nexport interface DeletedObject {\n /**\n *

The name of the deleted object.

\n */\n Key?: string;\n\n /**\n *

The version ID of the deleted object.

\n */\n VersionId?: string;\n\n /**\n *

Specifies whether the versioned object that was permanently deleted was (true) or was\n * not (false) a delete marker. In a simple DELETE, this header indicates whether (true) or\n * not (false) a delete marker was created.

\n */\n DeleteMarker?: boolean;\n\n /**\n *

The version ID of the delete marker created as a result of the DELETE operation. If you\n * delete a specific object version, the value returned by this header is the version ID of\n * the object version deleted.

\n */\n DeleteMarkerVersionId?: string;\n}\n\nexport namespace DeletedObject {\n export const filterSensitiveLog = (obj: DeletedObject): any => ({\n ...obj,\n });\n}\n\n/**\n *

Container for all error elements.

\n */\nexport interface _Error {\n /**\n *

The error key.

\n */\n Key?: string;\n\n /**\n *

The version ID of the error.

\n */\n VersionId?: string;\n\n /**\n *

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 *

\n */\n Code?: string;\n\n /**\n *

The error message contains a generic description of the error condition in English. It\n * is intended for a human audience. Simple programs display the message directly to the end\n * user if they encounter an error condition they don't know how or don't care to handle.\n * Sophisticated programs with more exhaustive error handling and proper internationalization\n * are more likely to ignore the error message.

\n */\n Message?: string;\n}\n\nexport namespace _Error {\n export const filterSensitiveLog = (obj: _Error): any => ({\n ...obj,\n });\n}\n\nexport interface DeleteObjectsOutput {\n /**\n *

Container element for a successful delete. It identifies the object that was\n * successfully deleted.

\n */\n Deleted?: DeletedObject[];\n\n /**\n *

If present, indicates that the requester was successfully charged for the\n * request.

\n */\n RequestCharged?: RequestCharged | string;\n\n /**\n *

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

\n */\n Errors?: _Error[];\n}\n\nexport namespace DeleteObjectsOutput {\n export const filterSensitiveLog = (obj: DeleteObjectsOutput): any => ({\n ...obj,\n });\n}\n\n/**\n *

Object Identifier is unique value to identify objects.

\n */\nexport interface ObjectIdentifier {\n /**\n *

Key name of the object to delete.

\n */\n Key: string | undefined;\n\n /**\n *

VersionId for the specific version of the object to delete.

\n */\n VersionId?: string;\n}\n\nexport namespace ObjectIdentifier {\n export const filterSensitiveLog = (obj: ObjectIdentifier): any => ({\n ...obj,\n });\n}\n\n/**\n *

Container for the objects to delete.

\n */\nexport interface Delete {\n /**\n *

The objects to delete.

\n */\n Objects: ObjectIdentifier[] | undefined;\n\n /**\n *

Element to enable quiet mode for the request. When you add this element, you must set\n * its value to true.

\n */\n Quiet?: boolean;\n}\n\nexport namespace Delete {\n export const filterSensitiveLog = (obj: Delete): any => ({\n ...obj,\n });\n}\n\nexport interface DeleteObjectsRequest {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

Container for the request.

\n */\n Delete: Delete | undefined;\n\n /**\n *

The concatenation of the authentication device's serial number, a space, and the value\n * that is displayed on your authentication device. Required to permanently delete a versioned\n * object if versioning is configured with MFA delete enabled.

\n */\n MFA?: string;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

Specifies whether you want to delete this object even if it has a Governance-type Object\n * Lock in place. You must have sufficient permissions to perform this operation.

\n */\n BypassGovernanceRetention?: boolean;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace DeleteObjectsRequest {\n export const filterSensitiveLog = (obj: DeleteObjectsRequest): any => ({\n ...obj,\n });\n}\n\nexport interface DeleteObjectTaggingOutput {\n /**\n *

The versionId of the object the tag-set was removed from.

\n */\n VersionId?: string;\n}\n\nexport namespace DeleteObjectTaggingOutput {\n export const filterSensitiveLog = (obj: DeleteObjectTaggingOutput): any => ({\n ...obj,\n });\n}\n\nexport interface DeleteObjectTaggingRequest {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

Name of the object key.

\n */\n Key: string | undefined;\n\n /**\n *

The versionId of the object that the tag-set will be removed from.

\n */\n VersionId?: string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace DeleteObjectTaggingRequest {\n export const filterSensitiveLog = (obj: DeleteObjectTaggingRequest): any => ({\n ...obj,\n });\n}\n\nexport interface DeletePublicAccessBlockRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace DeletePublicAccessBlockRequest {\n export const filterSensitiveLog = (obj: DeletePublicAccessBlockRequest): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketAccelerateConfigurationOutput {\n /**\n *

The accelerate configuration of the bucket.

\n */\n Status?: BucketAccelerateStatus | string;\n}\n\nexport namespace GetBucketAccelerateConfigurationOutput {\n export const filterSensitiveLog = (obj: GetBucketAccelerateConfigurationOutput): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketAccelerateConfigurationRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetBucketAccelerateConfigurationRequest {\n export const filterSensitiveLog = (obj: GetBucketAccelerateConfigurationRequest): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketAclOutput {\n /**\n *

Container for the bucket owner's display name and ID.

\n */\n Owner?: Owner;\n\n /**\n *

A list of grants.

\n */\n Grants?: Grant[];\n}\n\nexport namespace GetBucketAclOutput {\n export const filterSensitiveLog = (obj: GetBucketAclOutput): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketAclRequest {\n /**\n *

Specifies the S3 bucket whose ACL is being requested.

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetBucketAclRequest {\n export const filterSensitiveLog = (obj: GetBucketAclRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

A container of a key value name pair.

\n */\nexport interface Tag {\n /**\n *

Name of the object key.

\n */\n Key: string | undefined;\n\n /**\n *

Value of the tag.

\n */\n Value: string | undefined;\n}\n\nexport namespace Tag {\n export const filterSensitiveLog = (obj: Tag): any => ({\n ...obj,\n });\n}\n\n/**\n *

A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter.\n * The operator must have at least two predicates in any combination, and an object must match\n * all of the predicates for the filter to apply.

\n */\nexport interface AnalyticsAndOperator {\n /**\n *

The prefix to use when evaluating an AND predicate: The prefix that an object must have\n * to be included in the metrics results.

\n */\n Prefix?: string;\n\n /**\n *

The list of tags to use when evaluating an AND predicate.

\n */\n Tags?: Tag[];\n}\n\nexport namespace AnalyticsAndOperator {\n export const filterSensitiveLog = (obj: AnalyticsAndOperator): any => ({\n ...obj,\n });\n}\n\n/**\n *

The filter used to describe a set of objects for analyses. A filter must have exactly\n * one prefix, one tag, or one conjunction (AnalyticsAndOperator). If no filter is provided,\n * all objects will be considered in any analysis.

\n */\nexport type AnalyticsFilter =\n | AnalyticsFilter.AndMember\n | AnalyticsFilter.PrefixMember\n | AnalyticsFilter.TagMember\n | AnalyticsFilter.$UnknownMember;\n\nexport namespace AnalyticsFilter {\n /**\n *

The prefix to use when evaluating an analytics filter.

\n */\n export interface PrefixMember {\n Prefix: string;\n Tag?: never;\n And?: never;\n $unknown?: never;\n }\n\n /**\n *

The tag to use when evaluating an analytics filter.

\n */\n export interface TagMember {\n Prefix?: never;\n Tag: Tag;\n And?: never;\n $unknown?: never;\n }\n\n /**\n *

A conjunction (logical AND) of predicates, which is used in evaluating an analytics\n * filter. The operator must have at least two predicates.

\n */\n export interface AndMember {\n Prefix?: never;\n Tag?: never;\n And: AnalyticsAndOperator;\n $unknown?: never;\n }\n\n export interface $UnknownMember {\n Prefix?: never;\n Tag?: never;\n And?: never;\n $unknown: [string, any];\n }\n\n export interface Visitor {\n Prefix: (value: string) => T;\n Tag: (value: Tag) => T;\n And: (value: AnalyticsAndOperator) => T;\n _: (name: string, value: any) => T;\n }\n\n export const visit = (value: AnalyticsFilter, visitor: Visitor): T => {\n if (value.Prefix !== undefined) return visitor.Prefix(value.Prefix);\n if (value.Tag !== undefined) return visitor.Tag(value.Tag);\n if (value.And !== undefined) return visitor.And(value.And);\n return visitor._(value.$unknown[0], value.$unknown[1]);\n };\n\n export const filterSensitiveLog = (obj: AnalyticsFilter): any => {\n if (obj.Prefix !== undefined) return { Prefix: obj.Prefix };\n if (obj.Tag !== undefined) return { Tag: Tag.filterSensitiveLog(obj.Tag) };\n if (obj.And !== undefined) return { And: AnalyticsAndOperator.filterSensitiveLog(obj.And) };\n if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: \"UNKNOWN\" };\n };\n}\n\nexport type AnalyticsS3ExportFileFormat = \"CSV\";\n\n/**\n *

Contains information about where to publish the analytics results.

\n */\nexport interface AnalyticsS3BucketDestination {\n /**\n *

Specifies the file format used when exporting data to Amazon S3.

\n */\n Format: AnalyticsS3ExportFileFormat | string | undefined;\n\n /**\n *

The account ID that owns the destination S3 bucket. If no account ID is provided, the\n * owner is not validated before exporting data.

\n * \n *

Although this value is optional, we strongly recommend that you set it to help\n * prevent problems if the destination bucket ownership changes.

\n *
\n */\n BucketAccountId?: string;\n\n /**\n *

The Amazon Resource Name (ARN) of the bucket to which data is exported.

\n */\n Bucket: string | undefined;\n\n /**\n *

The prefix to use when exporting data. The prefix is prepended to all results.

\n */\n Prefix?: string;\n}\n\nexport namespace AnalyticsS3BucketDestination {\n export const filterSensitiveLog = (obj: AnalyticsS3BucketDestination): any => ({\n ...obj,\n });\n}\n\n/**\n *

Where to publish the analytics results.

\n */\nexport interface AnalyticsExportDestination {\n /**\n *

A destination signifying output to an S3 bucket.

\n */\n S3BucketDestination: AnalyticsS3BucketDestination | undefined;\n}\n\nexport namespace AnalyticsExportDestination {\n export const filterSensitiveLog = (obj: AnalyticsExportDestination): any => ({\n ...obj,\n });\n}\n\nexport type StorageClassAnalysisSchemaVersion = \"V_1\";\n\n/**\n *

Container for data related to the storage class analysis for an Amazon S3 bucket for\n * export.

\n */\nexport interface StorageClassAnalysisDataExport {\n /**\n *

The version of the output schema to use when exporting data. Must be\n * V_1.

\n */\n OutputSchemaVersion: StorageClassAnalysisSchemaVersion | string | undefined;\n\n /**\n *

The place to store the data for an analysis.

\n */\n Destination: AnalyticsExportDestination | undefined;\n}\n\nexport namespace StorageClassAnalysisDataExport {\n export const filterSensitiveLog = (obj: StorageClassAnalysisDataExport): any => ({\n ...obj,\n });\n}\n\n/**\n *

Specifies data related to access patterns to be collected and made available to analyze\n * the tradeoffs between different storage classes for an Amazon S3 bucket.

\n */\nexport interface StorageClassAnalysis {\n /**\n *

Specifies how data related to the storage class analysis for an Amazon S3 bucket should be\n * exported.

\n */\n DataExport?: StorageClassAnalysisDataExport;\n}\n\nexport namespace StorageClassAnalysis {\n export const filterSensitiveLog = (obj: StorageClassAnalysis): any => ({\n ...obj,\n });\n}\n\n/**\n *

Specifies the configuration and any analyses for the analytics filter of an Amazon S3\n * bucket.

\n */\nexport interface AnalyticsConfiguration {\n /**\n *

The ID that identifies the analytics configuration.

\n */\n Id: string | undefined;\n\n /**\n *

The filter used to describe a set of objects for analyses. A filter must have exactly\n * one prefix, one tag, or one conjunction (AnalyticsAndOperator). If no filter is provided,\n * all objects will be considered in any analysis.

\n */\n Filter?: AnalyticsFilter;\n\n /**\n *

Contains data related to access patterns to be collected and made available to analyze\n * the tradeoffs between different storage classes.

\n */\n StorageClassAnalysis: StorageClassAnalysis | undefined;\n}\n\nexport namespace AnalyticsConfiguration {\n export const filterSensitiveLog = (obj: AnalyticsConfiguration): any => ({\n ...obj,\n ...(obj.Filter && { Filter: AnalyticsFilter.filterSensitiveLog(obj.Filter) }),\n });\n}\n\nexport interface GetBucketAnalyticsConfigurationOutput {\n /**\n *

The configuration and any analyses for the analytics filter.

\n */\n AnalyticsConfiguration?: AnalyticsConfiguration;\n}\n\nexport namespace GetBucketAnalyticsConfigurationOutput {\n export const filterSensitiveLog = (obj: GetBucketAnalyticsConfigurationOutput): any => ({\n ...obj,\n ...(obj.AnalyticsConfiguration && {\n AnalyticsConfiguration: AnalyticsConfiguration.filterSensitiveLog(obj.AnalyticsConfiguration),\n }),\n });\n}\n\nexport interface GetBucketAnalyticsConfigurationRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

The ID that identifies the analytics configuration.

\n */\n Id: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetBucketAnalyticsConfigurationRequest {\n export const filterSensitiveLog = (obj: GetBucketAnalyticsConfigurationRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

Specifies a cross-origin access rule for an Amazon S3 bucket.

\n */\nexport interface CORSRule {\n /**\n *

Headers that are specified in the Access-Control-Request-Headers header.\n * These headers are allowed in a preflight OPTIONS request. In response to any preflight\n * OPTIONS request, Amazon S3 returns any requested headers that are allowed.

\n */\n AllowedHeaders?: string[];\n\n /**\n *

An HTTP method that you allow the origin to execute. Valid values are GET,\n * PUT, HEAD, POST, and DELETE.

\n */\n AllowedMethods: string[] | undefined;\n\n /**\n *

One or more origins you want customers to be able to access the bucket from.

\n */\n AllowedOrigins: string[] | undefined;\n\n /**\n *

One or more headers in the response that you want customers to be able to access from\n * their applications (for example, from a JavaScript XMLHttpRequest\n * object).

\n */\n ExposeHeaders?: string[];\n\n /**\n *

The time in seconds that your browser is to cache the preflight response for the\n * specified resource.

\n */\n MaxAgeSeconds?: number;\n}\n\nexport namespace CORSRule {\n export const filterSensitiveLog = (obj: CORSRule): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketCorsOutput {\n /**\n *

A set of origins and methods (cross-origin access that you want to allow). You can add\n * up to 100 rules to the configuration.

\n */\n CORSRules?: CORSRule[];\n}\n\nexport namespace GetBucketCorsOutput {\n export const filterSensitiveLog = (obj: GetBucketCorsOutput): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketCorsRequest {\n /**\n *

The bucket name for which to get the cors configuration.

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetBucketCorsRequest {\n export const filterSensitiveLog = (obj: GetBucketCorsRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

Describes the default server-side encryption to apply to new objects in the bucket. If a\n * PUT Object request doesn't specify any server-side encryption, this default encryption will\n * be applied. For more information, see PUT Bucket encryption in\n * the Amazon Simple Storage Service API Reference.

\n */\nexport interface ServerSideEncryptionByDefault {\n /**\n *

Server-side encryption algorithm to use for the default encryption.

\n */\n SSEAlgorithm: ServerSideEncryption | string | undefined;\n\n /**\n *

AWS Key Management Service (KMS) customer master key ID to use for the default\n * encryption. This parameter is allowed if and only if SSEAlgorithm is set to\n * aws:kms.

\n *

You can specify the key ID or the Amazon Resource Name (ARN) of the CMK. However, if you\n * are using encryption with cross-account operations, you must use a fully qualified CMK ARN.\n * For more information, see Using encryption for cross-account operations.

\n *

\n * For example:\n *

\n *
    \n *
  • \n *

    Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab\n *

    \n *
  • \n *
  • \n *

    Key ARN:\n * arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab\n *

    \n *
  • \n *
\n * \n *

Amazon S3 only supports symmetric CMKs and not asymmetric CMKs. For more information, see\n * Using Symmetric and\n * Asymmetric Keys in the AWS Key Management Service Developer\n * Guide.

\n *
\n */\n KMSMasterKeyID?: string;\n}\n\nexport namespace ServerSideEncryptionByDefault {\n export const filterSensitiveLog = (obj: ServerSideEncryptionByDefault): any => ({\n ...obj,\n ...(obj.KMSMasterKeyID && { KMSMasterKeyID: SENSITIVE_STRING }),\n });\n}\n\n/**\n *

Specifies the default server-side encryption configuration.

\n */\nexport interface ServerSideEncryptionRule {\n /**\n *

Specifies the default server-side encryption to apply to new objects in the bucket. If a\n * PUT Object request doesn't specify any server-side encryption, this default encryption will\n * be applied.

\n */\n ApplyServerSideEncryptionByDefault?: ServerSideEncryptionByDefault;\n\n /**\n *

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.

\n */\n BucketKeyEnabled?: boolean;\n}\n\nexport namespace ServerSideEncryptionRule {\n export const filterSensitiveLog = (obj: ServerSideEncryptionRule): any => ({\n ...obj,\n ...(obj.ApplyServerSideEncryptionByDefault && {\n ApplyServerSideEncryptionByDefault: ServerSideEncryptionByDefault.filterSensitiveLog(\n obj.ApplyServerSideEncryptionByDefault\n ),\n }),\n });\n}\n\n/**\n *

Specifies the default server-side-encryption configuration.

\n */\nexport interface ServerSideEncryptionConfiguration {\n /**\n *

Container for information about a particular server-side encryption configuration\n * rule.

\n */\n Rules: ServerSideEncryptionRule[] | undefined;\n}\n\nexport namespace ServerSideEncryptionConfiguration {\n export const filterSensitiveLog = (obj: ServerSideEncryptionConfiguration): any => ({\n ...obj,\n ...(obj.Rules && { Rules: obj.Rules.map((item) => ServerSideEncryptionRule.filterSensitiveLog(item)) }),\n });\n}\n\nexport interface GetBucketEncryptionOutput {\n /**\n *

Specifies the default server-side-encryption configuration.

\n */\n ServerSideEncryptionConfiguration?: ServerSideEncryptionConfiguration;\n}\n\nexport namespace GetBucketEncryptionOutput {\n export const filterSensitiveLog = (obj: GetBucketEncryptionOutput): any => ({\n ...obj,\n ...(obj.ServerSideEncryptionConfiguration && {\n ServerSideEncryptionConfiguration: ServerSideEncryptionConfiguration.filterSensitiveLog(\n obj.ServerSideEncryptionConfiguration\n ),\n }),\n });\n}\n\nexport interface GetBucketEncryptionRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetBucketEncryptionRequest {\n export const filterSensitiveLog = (obj: GetBucketEncryptionRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

A container for specifying S3 Intelligent-Tiering filters. The filters determine the\n * subset of objects to which the rule applies.

\n */\nexport interface IntelligentTieringAndOperator {\n /**\n *

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

\n */\n Prefix?: string;\n\n /**\n *

All of these tags must exist in the object's tag set in order for the configuration to\n * apply.

\n */\n Tags?: Tag[];\n}\n\nexport namespace IntelligentTieringAndOperator {\n export const filterSensitiveLog = (obj: IntelligentTieringAndOperator): any => ({\n ...obj,\n });\n}\n\n/**\n *

The Filter is used to identify objects that the S3 Intelligent-Tiering\n * configuration applies to.

\n */\nexport interface IntelligentTieringFilter {\n /**\n *

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

\n */\n Prefix?: string;\n\n /**\n *

A container of a key value name pair.

\n */\n Tag?: Tag;\n\n /**\n *

A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter.\n * The operator must have at least two predicates, and an object must match all of the\n * predicates in order for the filter to apply.

\n */\n And?: IntelligentTieringAndOperator;\n}\n\nexport namespace IntelligentTieringFilter {\n export const filterSensitiveLog = (obj: IntelligentTieringFilter): any => ({\n ...obj,\n });\n}\n\nexport type IntelligentTieringStatus = \"Disabled\" | \"Enabled\";\n\nexport type IntelligentTieringAccessTier = \"ARCHIVE_ACCESS\" | \"DEEP_ARCHIVE_ACCESS\";\n\n/**\n *

The S3 Intelligent-Tiering storage class is designed to optimize storage costs by\n * automatically moving data to the most cost-effective storage access tier, without\n * additional operational overhead.

\n */\nexport interface Tiering {\n /**\n *

The number of consecutive days of no access after which an object will be eligible to be\n * transitioned to the corresponding tier. The minimum number of days specified for\n * Archive Access tier must be at least 90 days and Deep Archive Access tier must be at least\n * 180 days. The maximum can be up to 2 years (730 days).

\n */\n Days: number | undefined;\n\n /**\n *

S3 Intelligent-Tiering access tier. See Storage class for\n * automatically optimizing frequently and infrequently accessed objects for a list\n * of access tiers in the S3 Intelligent-Tiering storage class.

\n */\n AccessTier: IntelligentTieringAccessTier | string | undefined;\n}\n\nexport namespace Tiering {\n export const filterSensitiveLog = (obj: Tiering): any => ({\n ...obj,\n });\n}\n\n/**\n *

Specifies the S3 Intelligent-Tiering configuration for an Amazon S3 bucket.

\n *

For information about the S3 Intelligent-Tiering storage class, see Storage class for\n * automatically optimizing frequently and infrequently accessed objects.

\n */\nexport interface IntelligentTieringConfiguration {\n /**\n *

The ID used to identify the S3 Intelligent-Tiering configuration.

\n */\n Id: string | undefined;\n\n /**\n *

Specifies a bucket filter. The configuration only includes objects that meet the\n * filter's criteria.

\n */\n Filter?: IntelligentTieringFilter;\n\n /**\n *

Specifies the status of the configuration.

\n */\n Status: IntelligentTieringStatus | string | undefined;\n\n /**\n *

Specifies the S3 Intelligent-Tiering storage class tier of the configuration.

\n */\n Tierings: Tiering[] | undefined;\n}\n\nexport namespace IntelligentTieringConfiguration {\n export const filterSensitiveLog = (obj: IntelligentTieringConfiguration): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketIntelligentTieringConfigurationOutput {\n /**\n *

Container for S3 Intelligent-Tiering configuration.

\n */\n IntelligentTieringConfiguration?: IntelligentTieringConfiguration;\n}\n\nexport namespace GetBucketIntelligentTieringConfigurationOutput {\n export const filterSensitiveLog = (obj: GetBucketIntelligentTieringConfigurationOutput): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketIntelligentTieringConfigurationRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

The ID used to identify the S3 Intelligent-Tiering configuration.

\n */\n Id: string | undefined;\n}\n\nexport namespace GetBucketIntelligentTieringConfigurationRequest {\n export const filterSensitiveLog = (obj: GetBucketIntelligentTieringConfigurationRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

Specifies the use of SSE-KMS to encrypt delivered inventory reports.

\n */\nexport interface SSEKMS {\n /**\n *

Specifies the ID of the AWS Key Management Service (AWS KMS) symmetric customer managed\n * customer master key (CMK) to use for encrypting inventory reports.

\n */\n KeyId: string | undefined;\n}\n\nexport namespace SSEKMS {\n export const filterSensitiveLog = (obj: SSEKMS): any => ({\n ...obj,\n ...(obj.KeyId && { KeyId: SENSITIVE_STRING }),\n });\n}\n\n/**\n *

Specifies the use of SSE-S3 to encrypt delivered inventory reports.

\n */\nexport interface SSES3 {}\n\nexport namespace SSES3 {\n export const filterSensitiveLog = (obj: SSES3): any => ({\n ...obj,\n });\n}\n\n/**\n *

Contains the type of server-side encryption used to encrypt the inventory\n * results.

\n */\nexport interface InventoryEncryption {\n /**\n *

Specifies the use of SSE-S3 to encrypt delivered inventory reports.

\n */\n SSES3?: SSES3;\n\n /**\n *

Specifies the use of SSE-KMS to encrypt delivered inventory reports.

\n */\n SSEKMS?: SSEKMS;\n}\n\nexport namespace InventoryEncryption {\n export const filterSensitiveLog = (obj: InventoryEncryption): any => ({\n ...obj,\n ...(obj.SSEKMS && { SSEKMS: SSEKMS.filterSensitiveLog(obj.SSEKMS) }),\n });\n}\n\nexport type InventoryFormat = \"CSV\" | \"ORC\" | \"Parquet\";\n\n/**\n *

Contains the bucket name, file format, bucket owner (optional), and prefix (optional)\n * where inventory results are published.

\n */\nexport interface InventoryS3BucketDestination {\n /**\n *

The account ID that owns the destination S3 bucket. If no account ID is provided, the\n * owner is not validated before exporting data.

\n * \n *

Although this value is optional, we strongly recommend that you set it to help\n * prevent problems if the destination bucket ownership changes.

\n *
\n */\n AccountId?: string;\n\n /**\n *

The Amazon Resource Name (ARN) of the bucket where inventory results will be\n * published.

\n */\n Bucket: string | undefined;\n\n /**\n *

Specifies the output format of the inventory results.

\n */\n Format: InventoryFormat | string | undefined;\n\n /**\n *

The prefix that is prepended to all inventory results.

\n */\n Prefix?: string;\n\n /**\n *

Contains the type of server-side encryption used to encrypt the inventory\n * results.

\n */\n Encryption?: InventoryEncryption;\n}\n\nexport namespace InventoryS3BucketDestination {\n export const filterSensitiveLog = (obj: InventoryS3BucketDestination): any => ({\n ...obj,\n ...(obj.Encryption && { Encryption: InventoryEncryption.filterSensitiveLog(obj.Encryption) }),\n });\n}\n\n/**\n *

Specifies the inventory configuration for an Amazon S3 bucket.

\n */\nexport interface InventoryDestination {\n /**\n *

Contains the bucket name, file format, bucket owner (optional), and prefix (optional)\n * where inventory results are published.

\n */\n S3BucketDestination: InventoryS3BucketDestination | undefined;\n}\n\nexport namespace InventoryDestination {\n export const filterSensitiveLog = (obj: InventoryDestination): any => ({\n ...obj,\n ...(obj.S3BucketDestination && {\n S3BucketDestination: InventoryS3BucketDestination.filterSensitiveLog(obj.S3BucketDestination),\n }),\n });\n}\n\n/**\n *

Specifies an inventory filter. The inventory only includes objects that meet the\n * filter's criteria.

\n */\nexport interface InventoryFilter {\n /**\n *

The prefix that an object must have to be included in the inventory results.

\n */\n Prefix: string | undefined;\n}\n\nexport namespace InventoryFilter {\n export const filterSensitiveLog = (obj: InventoryFilter): any => ({\n ...obj,\n });\n}\n\nexport type InventoryIncludedObjectVersions = \"All\" | \"Current\";\n\nexport type InventoryOptionalField =\n | \"ETag\"\n | \"EncryptionStatus\"\n | \"IntelligentTieringAccessTier\"\n | \"IsMultipartUploaded\"\n | \"LastModifiedDate\"\n | \"ObjectLockLegalHoldStatus\"\n | \"ObjectLockMode\"\n | \"ObjectLockRetainUntilDate\"\n | \"ReplicationStatus\"\n | \"Size\"\n | \"StorageClass\";\n\nexport type InventoryFrequency = \"Daily\" | \"Weekly\";\n\n/**\n *

Specifies the schedule for generating inventory results.

\n */\nexport interface InventorySchedule {\n /**\n *

Specifies how frequently inventory results are produced.

\n */\n Frequency: InventoryFrequency | string | undefined;\n}\n\nexport namespace InventorySchedule {\n export const filterSensitiveLog = (obj: InventorySchedule): any => ({\n ...obj,\n });\n}\n\n/**\n *

Specifies the inventory configuration for an Amazon S3 bucket. For more information, see\n * GET Bucket inventory in the Amazon Simple Storage Service API Reference.\n *

\n */\nexport interface InventoryConfiguration {\n /**\n *

Contains information about where to publish the inventory results.

\n */\n Destination: InventoryDestination | undefined;\n\n /**\n *

Specifies whether the inventory is enabled or disabled. If set to True, an\n * inventory list is generated. If set to False, no inventory list is\n * generated.

\n */\n IsEnabled: boolean | undefined;\n\n /**\n *

Specifies an inventory filter. The inventory only includes objects that meet the\n * filter's criteria.

\n */\n Filter?: InventoryFilter;\n\n /**\n *

The ID used to identify the inventory configuration.

\n */\n Id: string | undefined;\n\n /**\n *

Object versions to include in the inventory list. If set to All, the list\n * includes all the object versions, which adds the version-related fields\n * VersionId, IsLatest, and DeleteMarker to the\n * list. If set to Current, the list does not contain these version-related\n * fields.

\n */\n IncludedObjectVersions: InventoryIncludedObjectVersions | string | undefined;\n\n /**\n *

Contains the optional fields that are included in the inventory results.

\n */\n OptionalFields?: (InventoryOptionalField | string)[];\n\n /**\n *

Specifies the schedule for generating inventory results.

\n */\n Schedule: InventorySchedule | undefined;\n}\n\nexport namespace InventoryConfiguration {\n export const filterSensitiveLog = (obj: InventoryConfiguration): any => ({\n ...obj,\n ...(obj.Destination && { Destination: InventoryDestination.filterSensitiveLog(obj.Destination) }),\n });\n}\n\nexport interface GetBucketInventoryConfigurationOutput {\n /**\n *

Specifies the inventory configuration.

\n */\n InventoryConfiguration?: InventoryConfiguration;\n}\n\nexport namespace GetBucketInventoryConfigurationOutput {\n export const filterSensitiveLog = (obj: GetBucketInventoryConfigurationOutput): any => ({\n ...obj,\n ...(obj.InventoryConfiguration && {\n InventoryConfiguration: InventoryConfiguration.filterSensitiveLog(obj.InventoryConfiguration),\n }),\n });\n}\n\nexport interface GetBucketInventoryConfigurationRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

The ID used to identify the inventory configuration.

\n */\n Id: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetBucketInventoryConfigurationRequest {\n export const filterSensitiveLog = (obj: GetBucketInventoryConfigurationRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

Container for the expiration for the lifecycle of the object.

\n */\nexport interface LifecycleExpiration {\n /**\n *

Indicates at what date the object is to be moved or deleted. Should be in GMT ISO 8601\n * Format.

\n */\n Date?: Date;\n\n /**\n *

Indicates the lifetime, in days, of the objects that are subject to the rule. The value\n * must be a non-zero positive integer.

\n */\n Days?: number;\n\n /**\n *

Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set\n * to true, the delete marker will be expired; if set to false the policy takes no action.\n * This cannot be specified with Days or Date in a Lifecycle Expiration Policy.

\n */\n ExpiredObjectDeleteMarker?: boolean;\n}\n\nexport namespace LifecycleExpiration {\n export const filterSensitiveLog = (obj: LifecycleExpiration): any => ({\n ...obj,\n });\n}\n\n/**\n *

This is used in a Lifecycle Rule Filter to apply a logical AND to two or more\n * predicates. The Lifecycle Rule will apply to any object matching all of the predicates\n * configured inside the And operator.

\n */\nexport interface LifecycleRuleAndOperator {\n /**\n *

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

\n */\n Prefix?: string;\n\n /**\n *

All of these tags must exist in the object's tag set in order for the rule to\n * apply.

\n */\n Tags?: Tag[];\n}\n\nexport namespace LifecycleRuleAndOperator {\n export const filterSensitiveLog = (obj: LifecycleRuleAndOperator): any => ({\n ...obj,\n });\n}\n\n/**\n *

The Filter is used to identify objects that a Lifecycle Rule applies to. A\n * Filter must have exactly one of Prefix, Tag, or\n * And specified.

\n */\nexport type LifecycleRuleFilter =\n | LifecycleRuleFilter.AndMember\n | LifecycleRuleFilter.PrefixMember\n | LifecycleRuleFilter.TagMember\n | LifecycleRuleFilter.$UnknownMember;\n\nexport namespace LifecycleRuleFilter {\n /**\n *

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

\n */\n export interface PrefixMember {\n Prefix: string;\n Tag?: never;\n And?: never;\n $unknown?: never;\n }\n\n /**\n *

This tag must exist in the object's tag set in order for the rule to apply.

\n */\n export interface TagMember {\n Prefix?: never;\n Tag: Tag;\n And?: never;\n $unknown?: never;\n }\n\n /**\n *

This is used in a Lifecycle Rule Filter to apply a logical AND to two or more\n * predicates. The Lifecycle Rule will apply to any object matching all of the predicates\n * configured inside the And operator.

\n */\n export interface AndMember {\n Prefix?: never;\n Tag?: never;\n And: LifecycleRuleAndOperator;\n $unknown?: never;\n }\n\n export interface $UnknownMember {\n Prefix?: never;\n Tag?: never;\n And?: never;\n $unknown: [string, any];\n }\n\n export interface Visitor {\n Prefix: (value: string) => T;\n Tag: (value: Tag) => T;\n And: (value: LifecycleRuleAndOperator) => T;\n _: (name: string, value: any) => T;\n }\n\n export const visit = (value: LifecycleRuleFilter, visitor: Visitor): T => {\n if (value.Prefix !== undefined) return visitor.Prefix(value.Prefix);\n if (value.Tag !== undefined) return visitor.Tag(value.Tag);\n if (value.And !== undefined) return visitor.And(value.And);\n return visitor._(value.$unknown[0], value.$unknown[1]);\n };\n\n export const filterSensitiveLog = (obj: LifecycleRuleFilter): any => {\n if (obj.Prefix !== undefined) return { Prefix: obj.Prefix };\n if (obj.Tag !== undefined) return { Tag: Tag.filterSensitiveLog(obj.Tag) };\n if (obj.And !== undefined) return { And: LifecycleRuleAndOperator.filterSensitiveLog(obj.And) };\n if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: \"UNKNOWN\" };\n };\n}\n\n/**\n *

Specifies when noncurrent object versions expire. Upon expiration, Amazon S3 permanently\n * deletes the noncurrent object versions. You set this lifecycle configuration action on a\n * bucket that has versioning enabled (or suspended) to request that Amazon S3 delete noncurrent\n * object versions at a specific period in the object's lifetime.

\n */\nexport interface NoncurrentVersionExpiration {\n /**\n *

Specifies the number of days an object is noncurrent before Amazon S3 can perform the\n * associated action. For information about the noncurrent days calculations, see How\n * Amazon S3 Calculates When an Object Became Noncurrent in the Amazon Simple\n * Storage Service Developer Guide.

\n */\n NoncurrentDays?: number;\n}\n\nexport namespace NoncurrentVersionExpiration {\n export const filterSensitiveLog = (obj: NoncurrentVersionExpiration): any => ({\n ...obj,\n });\n}\n\nexport type TransitionStorageClass = \"DEEP_ARCHIVE\" | \"GLACIER\" | \"INTELLIGENT_TIERING\" | \"ONEZONE_IA\" | \"STANDARD_IA\";\n\n/**\n *

Container for the transition rule that describes when noncurrent objects transition to\n * the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING,\n * GLACIER, or DEEP_ARCHIVE storage class. If your bucket is\n * versioning-enabled (or versioning is suspended), you can set this action to request that\n * Amazon S3 transition noncurrent object versions to the STANDARD_IA,\n * ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, or\n * DEEP_ARCHIVE storage class at a specific period in the object's\n * lifetime.

\n */\nexport interface NoncurrentVersionTransition {\n /**\n *

Specifies the number of days an object is noncurrent before Amazon S3 can perform the\n * associated action. For information about the noncurrent days calculations, see How\n * Amazon S3 Calculates How Long an Object Has Been Noncurrent in the\n * Amazon Simple Storage Service Developer Guide.

\n */\n NoncurrentDays?: number;\n\n /**\n *

The class of storage used to store the object.

\n */\n StorageClass?: TransitionStorageClass | string;\n}\n\nexport namespace NoncurrentVersionTransition {\n export const filterSensitiveLog = (obj: NoncurrentVersionTransition): any => ({\n ...obj,\n });\n}\n\nexport type ExpirationStatus = \"Disabled\" | \"Enabled\";\n\n/**\n *

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.

\n */\nexport interface Transition {\n /**\n *

Indicates when objects are transitioned to the specified storage class. The date value\n * must be in ISO 8601 format. The time is always midnight UTC.

\n */\n Date?: Date;\n\n /**\n *

Indicates the number of days after creation when objects are transitioned to the\n * specified storage class. The value must be a positive integer.

\n */\n Days?: number;\n\n /**\n *

The storage class to which you want the object to transition.

\n */\n StorageClass?: TransitionStorageClass | string;\n}\n\nexport namespace Transition {\n export const filterSensitiveLog = (obj: Transition): any => ({\n ...obj,\n });\n}\n\n/**\n *

A lifecycle rule for individual objects in an Amazon S3 bucket.

\n */\nexport interface LifecycleRule {\n /**\n *

Specifies the expiration for the lifecycle of the object in the form of date, days and,\n * whether the object has a delete marker.

\n */\n Expiration?: LifecycleExpiration;\n\n /**\n *

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

\n */\n ID?: string;\n\n /**\n * @deprecated\n *\n *

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

\n */\n Prefix?: string;\n\n /**\n *

The Filter is used to identify objects that a Lifecycle Rule applies to. A\n * Filter must have exactly one of Prefix, Tag, or\n * And specified.

\n */\n Filter?: LifecycleRuleFilter;\n\n /**\n *

If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not\n * currently being applied.

\n */\n Status: ExpirationStatus | string | undefined;\n\n /**\n *

Specifies when an Amazon S3 object transitions to a specified storage class.

\n */\n Transitions?: Transition[];\n\n /**\n *

Specifies the transition rule for the lifecycle rule that describes when noncurrent\n * objects transition to a specific storage class. If your bucket is versioning-enabled (or\n * versioning is suspended), you can set this action to request that Amazon S3 transition\n * noncurrent object versions to a specific storage class at a set period in the object's\n * lifetime.

\n */\n NoncurrentVersionTransitions?: NoncurrentVersionTransition[];\n\n /**\n *

Specifies when noncurrent object versions expire. Upon expiration, Amazon S3 permanently\n * deletes the noncurrent object versions. You set this lifecycle configuration action on a\n * bucket that has versioning enabled (or suspended) to request that Amazon S3 delete noncurrent\n * object versions at a specific period in the object's lifetime.

\n */\n NoncurrentVersionExpiration?: NoncurrentVersionExpiration;\n\n /**\n *

Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will\n * wait before permanently removing all parts of the upload. For more information, see \n * Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Policy in the\n * Amazon Simple Storage Service Developer Guide.

\n */\n AbortIncompleteMultipartUpload?: AbortIncompleteMultipartUpload;\n}\n\nexport namespace LifecycleRule {\n export const filterSensitiveLog = (obj: LifecycleRule): any => ({\n ...obj,\n ...(obj.Filter && { Filter: LifecycleRuleFilter.filterSensitiveLog(obj.Filter) }),\n });\n}\n\nexport interface GetBucketLifecycleConfigurationOutput {\n /**\n *

Container for a lifecycle rule.

\n */\n Rules?: LifecycleRule[];\n}\n\nexport namespace GetBucketLifecycleConfigurationOutput {\n export const filterSensitiveLog = (obj: GetBucketLifecycleConfigurationOutput): any => ({\n ...obj,\n ...(obj.Rules && { Rules: obj.Rules.map((item) => LifecycleRule.filterSensitiveLog(item)) }),\n });\n}\n\nexport interface GetBucketLifecycleConfigurationRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetBucketLifecycleConfigurationRequest {\n export const filterSensitiveLog = (obj: GetBucketLifecycleConfigurationRequest): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketLocationOutput {\n /**\n *

Specifies the Region where the bucket resides. For a list of all the Amazon S3 supported\n * location constraints by Region, see Regions and Endpoints.\n * Buckets in Region us-east-1 have a LocationConstraint of\n * null.

\n */\n LocationConstraint?: BucketLocationConstraint | string;\n}\n\nexport namespace GetBucketLocationOutput {\n export const filterSensitiveLog = (obj: GetBucketLocationOutput): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketLocationRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetBucketLocationRequest {\n export const filterSensitiveLog = (obj: GetBucketLocationRequest): any => ({\n ...obj,\n });\n}\n\nexport type BucketLogsPermission = \"FULL_CONTROL\" | \"READ\" | \"WRITE\";\n\n/**\n *

Container for granting information.

\n */\nexport interface TargetGrant {\n /**\n *

Container for the person being granted permissions.

\n */\n Grantee?: Grantee;\n\n /**\n *

Logging permissions assigned to the grantee for the bucket.

\n */\n Permission?: BucketLogsPermission | string;\n}\n\nexport namespace TargetGrant {\n export const filterSensitiveLog = (obj: TargetGrant): any => ({\n ...obj,\n });\n}\n\n/**\n *

Describes where logs are stored and the prefix that Amazon S3 assigns to all log object keys\n * for a bucket. For more information, see PUT Bucket logging in the\n * Amazon Simple Storage Service API Reference.

\n */\nexport interface LoggingEnabled {\n /**\n *

Specifies the bucket where you want Amazon S3 to store server access logs. You can have your\n * logs delivered to any bucket that you own, including the same bucket that is being logged.\n * You can also configure multiple buckets to deliver their logs to the same target bucket. In\n * this case, you should choose a different TargetPrefix for each source bucket\n * so that the delivered log files can be distinguished by key.

\n */\n TargetBucket: string | undefined;\n\n /**\n *

Container for granting information.

\n */\n TargetGrants?: TargetGrant[];\n\n /**\n *

A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a\n * single bucket, you can use a prefix to distinguish which log files came from which\n * bucket.

\n */\n TargetPrefix: string | undefined;\n}\n\nexport namespace LoggingEnabled {\n export const filterSensitiveLog = (obj: LoggingEnabled): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketLoggingOutput {\n /**\n *

Describes where logs are stored and the prefix that Amazon S3 assigns to all log object keys\n * for a bucket. For more information, see PUT Bucket logging in the\n * Amazon Simple Storage Service API Reference.

\n */\n LoggingEnabled?: LoggingEnabled;\n}\n\nexport namespace GetBucketLoggingOutput {\n export const filterSensitiveLog = (obj: GetBucketLoggingOutput): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketLoggingRequest {\n /**\n *

The bucket name for which to get the logging information.

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetBucketLoggingRequest {\n export const filterSensitiveLog = (obj: GetBucketLoggingRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter.\n * The operator must have at least two predicates, and an object must match all of the\n * predicates in order for the filter to apply.

\n */\nexport interface MetricsAndOperator {\n /**\n *

The prefix used when evaluating an AND predicate.

\n */\n Prefix?: string;\n\n /**\n *

The list of tags used when evaluating an AND predicate.

\n */\n Tags?: Tag[];\n}\n\nexport namespace MetricsAndOperator {\n export const filterSensitiveLog = (obj: MetricsAndOperator): any => ({\n ...obj,\n });\n}\n\n/**\n *

Specifies a metrics configuration filter. The metrics configuration only includes\n * objects that meet the filter's criteria. A filter must be a prefix, a tag, or a conjunction\n * (MetricsAndOperator).

\n */\nexport type MetricsFilter =\n | MetricsFilter.AndMember\n | MetricsFilter.PrefixMember\n | MetricsFilter.TagMember\n | MetricsFilter.$UnknownMember;\n\nexport namespace MetricsFilter {\n /**\n *

The prefix used when evaluating a metrics filter.

\n */\n export interface PrefixMember {\n Prefix: string;\n Tag?: never;\n And?: never;\n $unknown?: never;\n }\n\n /**\n *

The tag used when evaluating a metrics filter.

\n */\n export interface TagMember {\n Prefix?: never;\n Tag: Tag;\n And?: never;\n $unknown?: never;\n }\n\n /**\n *

A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter.\n * The operator must have at least two predicates, and an object must match all of the\n * predicates in order for the filter to apply.

\n */\n export interface AndMember {\n Prefix?: never;\n Tag?: never;\n And: MetricsAndOperator;\n $unknown?: never;\n }\n\n export interface $UnknownMember {\n Prefix?: never;\n Tag?: never;\n And?: never;\n $unknown: [string, any];\n }\n\n export interface Visitor {\n Prefix: (value: string) => T;\n Tag: (value: Tag) => T;\n And: (value: MetricsAndOperator) => T;\n _: (name: string, value: any) => T;\n }\n\n export const visit = (value: MetricsFilter, visitor: Visitor): T => {\n if (value.Prefix !== undefined) return visitor.Prefix(value.Prefix);\n if (value.Tag !== undefined) return visitor.Tag(value.Tag);\n if (value.And !== undefined) return visitor.And(value.And);\n return visitor._(value.$unknown[0], value.$unknown[1]);\n };\n\n export const filterSensitiveLog = (obj: MetricsFilter): any => {\n if (obj.Prefix !== undefined) return { Prefix: obj.Prefix };\n if (obj.Tag !== undefined) return { Tag: Tag.filterSensitiveLog(obj.Tag) };\n if (obj.And !== undefined) return { And: MetricsAndOperator.filterSensitiveLog(obj.And) };\n if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: \"UNKNOWN\" };\n };\n}\n\n/**\n *

Specifies a metrics configuration for the CloudWatch request metrics (specified by the\n * metrics configuration ID) from an Amazon S3 bucket. If you're updating an existing metrics\n * configuration, note that this is a full replacement of the existing metrics configuration.\n * If you don't include the elements you want to keep, they are erased. For more information,\n * see PUT Bucket\n * metrics in the Amazon Simple Storage Service API Reference.

\n */\nexport interface MetricsConfiguration {\n /**\n *

The ID used to identify the metrics configuration.

\n */\n Id: string | undefined;\n\n /**\n *

Specifies a metrics configuration filter. The metrics configuration will only include\n * objects that meet the filter's criteria. A filter must be a prefix, a tag, or a conjunction\n * (MetricsAndOperator).

\n */\n Filter?: MetricsFilter;\n}\n\nexport namespace MetricsConfiguration {\n export const filterSensitiveLog = (obj: MetricsConfiguration): any => ({\n ...obj,\n ...(obj.Filter && { Filter: MetricsFilter.filterSensitiveLog(obj.Filter) }),\n });\n}\n\nexport interface GetBucketMetricsConfigurationOutput {\n /**\n *

Specifies the metrics configuration.

\n */\n MetricsConfiguration?: MetricsConfiguration;\n}\n\nexport namespace GetBucketMetricsConfigurationOutput {\n export const filterSensitiveLog = (obj: GetBucketMetricsConfigurationOutput): any => ({\n ...obj,\n ...(obj.MetricsConfiguration && {\n MetricsConfiguration: MetricsConfiguration.filterSensitiveLog(obj.MetricsConfiguration),\n }),\n });\n}\n\nexport interface GetBucketMetricsConfigurationRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

The ID used to identify the metrics configuration.

\n */\n Id: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetBucketMetricsConfigurationRequest {\n export const filterSensitiveLog = (obj: GetBucketMetricsConfigurationRequest): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketNotificationConfigurationRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetBucketNotificationConfigurationRequest {\n export const filterSensitiveLog = (obj: GetBucketNotificationConfigurationRequest): any => ({\n ...obj,\n });\n}\n\nexport type Event =\n | \"s3:ObjectCreated:*\"\n | \"s3:ObjectCreated:CompleteMultipartUpload\"\n | \"s3:ObjectCreated:Copy\"\n | \"s3:ObjectCreated:Post\"\n | \"s3:ObjectCreated:Put\"\n | \"s3:ObjectRemoved:*\"\n | \"s3:ObjectRemoved:Delete\"\n | \"s3:ObjectRemoved:DeleteMarkerCreated\"\n | \"s3:ObjectRestore:*\"\n | \"s3:ObjectRestore:Completed\"\n | \"s3:ObjectRestore:Post\"\n | \"s3:ReducedRedundancyLostObject\"\n | \"s3:Replication:*\"\n | \"s3:Replication:OperationFailedReplication\"\n | \"s3:Replication:OperationMissedThreshold\"\n | \"s3:Replication:OperationNotTracked\"\n | \"s3:Replication:OperationReplicatedAfterThreshold\";\n\nexport type FilterRuleName = \"prefix\" | \"suffix\";\n\n/**\n *

Specifies the Amazon S3 object key name to filter on and whether to filter on the suffix or\n * prefix of the key name.

\n */\nexport interface FilterRule {\n /**\n *

The object key name prefix or suffix identifying one or more objects to which the\n * filtering rule applies. The maximum length is 1,024 characters. Overlapping prefixes and\n * suffixes are not supported. For more information, see Configuring Event Notifications\n * in the Amazon Simple Storage Service Developer Guide.

\n */\n Name?: FilterRuleName | string;\n\n /**\n *

The value that the filter searches for in object key names.

\n */\n Value?: string;\n}\n\nexport namespace FilterRule {\n export const filterSensitiveLog = (obj: FilterRule): any => ({\n ...obj,\n });\n}\n\n/**\n *

A container for object key name prefix and suffix filtering rules.

\n */\nexport interface S3KeyFilter {\n /**\n *

A list of containers for the key-value pair that defines the criteria for the filter\n * rule.

\n */\n FilterRules?: FilterRule[];\n}\n\nexport namespace S3KeyFilter {\n export const filterSensitiveLog = (obj: S3KeyFilter): any => ({\n ...obj,\n });\n}\n\n/**\n *

Specifies object key name filtering rules. For information about key name filtering, see\n * Configuring\n * Event Notifications in the Amazon Simple Storage Service Developer\n * Guide.

\n */\nexport interface NotificationConfigurationFilter {\n /**\n *

A container for object key name prefix and suffix filtering rules.

\n */\n Key?: S3KeyFilter;\n}\n\nexport namespace NotificationConfigurationFilter {\n export const filterSensitiveLog = (obj: NotificationConfigurationFilter): any => ({\n ...obj,\n });\n}\n\n/**\n *

A container for specifying the configuration for AWS Lambda notifications.

\n */\nexport interface LambdaFunctionConfiguration {\n /**\n *

An optional unique identifier for configurations in a notification configuration. If you\n * don't provide one, Amazon S3 will assign an ID.

\n */\n Id?: string;\n\n /**\n *

The Amazon Resource Name (ARN) of the AWS Lambda function that Amazon S3 invokes when the\n * specified event type occurs.

\n */\n LambdaFunctionArn: string | undefined;\n\n /**\n *

The Amazon S3 bucket event for which to invoke the AWS Lambda function. For more information,\n * see Supported\n * Event Types in the Amazon Simple Storage Service Developer Guide.

\n */\n Events: (Event | string)[] | undefined;\n\n /**\n *

Specifies object key name filtering rules. For information about key name filtering, see\n * Configuring\n * Event Notifications in the Amazon Simple Storage Service Developer\n * Guide.

\n */\n Filter?: NotificationConfigurationFilter;\n}\n\nexport namespace LambdaFunctionConfiguration {\n export const filterSensitiveLog = (obj: LambdaFunctionConfiguration): any => ({\n ...obj,\n });\n}\n\n/**\n *

Specifies the configuration for publishing messages to an Amazon Simple Queue Service\n * (Amazon SQS) queue when Amazon S3 detects specified events.

\n */\nexport interface QueueConfiguration {\n /**\n *

An optional unique identifier for configurations in a notification configuration. If you\n * don't provide one, Amazon S3 will assign an ID.

\n */\n Id?: string;\n\n /**\n *

The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon S3 publishes a message\n * when it detects events of the specified type.

\n */\n QueueArn: string | undefined;\n\n /**\n *

A collection of bucket events for which to send notifications

\n */\n Events: (Event | string)[] | undefined;\n\n /**\n *

Specifies object key name filtering rules. For information about key name filtering, see\n * Configuring\n * Event Notifications in the Amazon Simple Storage Service Developer\n * Guide.

\n */\n Filter?: NotificationConfigurationFilter;\n}\n\nexport namespace QueueConfiguration {\n export const filterSensitiveLog = (obj: QueueConfiguration): any => ({\n ...obj,\n });\n}\n\n/**\n *

A container for specifying the configuration for publication of messages to an Amazon\n * Simple Notification Service (Amazon SNS) topic when Amazon S3 detects specified events.

\n */\nexport interface TopicConfiguration {\n /**\n *

An optional unique identifier for configurations in a notification configuration. If you\n * don't provide one, Amazon S3 will assign an ID.

\n */\n Id?: string;\n\n /**\n *

The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message\n * when it detects events of the specified type.

\n */\n TopicArn: string | undefined;\n\n /**\n *

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.

\n */\n Events: (Event | string)[] | undefined;\n\n /**\n *

Specifies object key name filtering rules. For information about key name filtering, see\n * Configuring\n * Event Notifications in the Amazon Simple Storage Service Developer\n * Guide.

\n */\n Filter?: NotificationConfigurationFilter;\n}\n\nexport namespace TopicConfiguration {\n export const filterSensitiveLog = (obj: TopicConfiguration): any => ({\n ...obj,\n });\n}\n\n/**\n *

A container for specifying the notification configuration of the bucket. If this element\n * is empty, notifications are turned off for the bucket.

\n */\nexport interface NotificationConfiguration {\n /**\n *

The topic to which notifications are sent and the events for which notifications are\n * generated.

\n */\n TopicConfigurations?: TopicConfiguration[];\n\n /**\n *

The Amazon Simple Queue Service queues to publish messages to and the events for which\n * to publish messages.

\n */\n QueueConfigurations?: QueueConfiguration[];\n\n /**\n *

Describes the AWS Lambda functions to invoke and the events for which to invoke\n * them.

\n */\n LambdaFunctionConfigurations?: LambdaFunctionConfiguration[];\n}\n\nexport namespace NotificationConfiguration {\n export const filterSensitiveLog = (obj: NotificationConfiguration): any => ({\n ...obj,\n });\n}\n\nexport type ObjectOwnership = \"BucketOwnerPreferred\" | \"ObjectWriter\";\n\n/**\n *

The container element for an ownership control rule.

\n */\nexport interface OwnershipControlsRule {\n /**\n *

The container element for object ownership for a bucket's ownership controls.

\n *

BucketOwnerPreferred - Objects uploaded to the bucket change ownership to the bucket\n * owner if the objects are uploaded with the bucket-owner-full-control canned\n * ACL.

\n *

ObjectWriter - The uploading account will own the object if the object is uploaded with\n * the bucket-owner-full-control canned ACL.

\n */\n ObjectOwnership: ObjectOwnership | string | undefined;\n}\n\nexport namespace OwnershipControlsRule {\n export const filterSensitiveLog = (obj: OwnershipControlsRule): any => ({\n ...obj,\n });\n}\n\n/**\n *

The container element for a bucket's ownership controls.

\n */\nexport interface OwnershipControls {\n /**\n *

The container element for an ownership control rule.

\n */\n Rules: OwnershipControlsRule[] | undefined;\n}\n\nexport namespace OwnershipControls {\n export const filterSensitiveLog = (obj: OwnershipControls): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketOwnershipControlsOutput {\n /**\n *

The OwnershipControls (BucketOwnerPreferred or ObjectWriter) currently in\n * effect for this Amazon S3 bucket.

\n */\n OwnershipControls?: OwnershipControls;\n}\n\nexport namespace GetBucketOwnershipControlsOutput {\n export const filterSensitiveLog = (obj: GetBucketOwnershipControlsOutput): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketOwnershipControlsRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetBucketOwnershipControlsRequest {\n export const filterSensitiveLog = (obj: GetBucketOwnershipControlsRequest): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketPolicyOutput {\n /**\n *

The bucket policy as a JSON document.

\n */\n Policy?: string;\n}\n\nexport namespace GetBucketPolicyOutput {\n export const filterSensitiveLog = (obj: GetBucketPolicyOutput): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketPolicyRequest {\n /**\n *

The bucket name for which to get the bucket policy.

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetBucketPolicyRequest {\n export const filterSensitiveLog = (obj: GetBucketPolicyRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

The container element for a bucket's policy status.

\n */\nexport interface PolicyStatus {\n /**\n *

The policy status for this bucket. TRUE indicates that this bucket is\n * public. FALSE indicates that the bucket is not public.

\n */\n IsPublic?: boolean;\n}\n\nexport namespace PolicyStatus {\n export const filterSensitiveLog = (obj: PolicyStatus): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketPolicyStatusOutput {\n /**\n *

The policy status for the specified bucket.

\n */\n PolicyStatus?: PolicyStatus;\n}\n\nexport namespace GetBucketPolicyStatusOutput {\n export const filterSensitiveLog = (obj: GetBucketPolicyStatusOutput): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketPolicyStatusRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetBucketPolicyStatusRequest {\n export const filterSensitiveLog = (obj: GetBucketPolicyStatusRequest): any => ({\n ...obj,\n });\n}\n\nexport type DeleteMarkerReplicationStatus = \"Disabled\" | \"Enabled\";\n\n/**\n *

Specifies whether Amazon S3 replicates delete markers. If you specify a Filter\n * in your replication configuration, you must also include a\n * DeleteMarkerReplication element. If your Filter includes a\n * Tag element, the DeleteMarkerReplication\n * Status must be set to Disabled, because Amazon S3 does not support replicating\n * delete markers for tag-based rules. For an example configuration, see Basic Rule Configuration.

\n *

For more information about delete marker replication, see Basic Rule\n * Configuration.

\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 */\nexport interface DeleteMarkerReplication {\n /**\n *

Indicates whether to replicate delete markers.

\n * \n *

Indicates whether to replicate delete markers.

\n *
\n */\n Status?: DeleteMarkerReplicationStatus | string;\n}\n\nexport namespace DeleteMarkerReplication {\n export const filterSensitiveLog = (obj: DeleteMarkerReplication): any => ({\n ...obj,\n });\n}\n\n/**\n *

Specifies encryption-related information for an Amazon S3 bucket that is a destination for\n * replicated objects.

\n */\nexport interface EncryptionConfiguration {\n /**\n *

Specifies the ID (Key ARN or Alias ARN) of the customer managed customer master key\n * (CMK) stored in AWS Key Management Service (KMS) for the destination bucket. Amazon S3 uses\n * this key to encrypt replica objects. Amazon S3 only supports symmetric customer managed CMKs.\n * For more information, see Using Symmetric and\n * Asymmetric Keys in the AWS Key Management Service Developer\n * Guide.

\n */\n ReplicaKmsKeyID?: string;\n}\n\nexport namespace EncryptionConfiguration {\n export const filterSensitiveLog = (obj: EncryptionConfiguration): any => ({\n ...obj,\n });\n}\n\n/**\n *

A container specifying the time value for S3 Replication Time Control (S3 RTC) and replication metrics\n * EventThreshold.

\n */\nexport interface ReplicationTimeValue {\n /**\n *

Contains an integer specifying time in minutes.

\n *

Valid values: 15 minutes.

\n */\n Minutes?: number;\n}\n\nexport namespace ReplicationTimeValue {\n export const filterSensitiveLog = (obj: ReplicationTimeValue): any => ({\n ...obj,\n });\n}\n\nexport type MetricsStatus = \"Disabled\" | \"Enabled\";\n\n/**\n *

A container specifying replication metrics-related settings enabling replication\n * metrics and events.

\n */\nexport interface Metrics {\n /**\n *

Specifies whether the replication metrics are enabled.

\n */\n Status: MetricsStatus | string | undefined;\n\n /**\n *

A container specifying the time threshold for emitting the\n * s3:Replication:OperationMissedThreshold event.

\n */\n EventThreshold?: ReplicationTimeValue;\n}\n\nexport namespace Metrics {\n export const filterSensitiveLog = (obj: Metrics): any => ({\n ...obj,\n });\n}\n\nexport type ReplicationTimeStatus = \"Disabled\" | \"Enabled\";\n\n/**\n *

A container specifying S3 Replication Time Control (S3 RTC) related information, including whether S3 RTC is\n * enabled and the time when all objects and operations on objects must be replicated. Must be\n * specified together with a Metrics block.

\n */\nexport interface ReplicationTime {\n /**\n *

Specifies whether the replication time is enabled.

\n */\n Status: ReplicationTimeStatus | string | undefined;\n\n /**\n *

A container specifying the time by which replication should be complete for all objects\n * and operations on objects.

\n */\n Time: ReplicationTimeValue | undefined;\n}\n\nexport namespace ReplicationTime {\n export const filterSensitiveLog = (obj: ReplicationTime): any => ({\n ...obj,\n });\n}\n\n/**\n *

Specifies information about where to publish analysis or configuration results for an\n * Amazon S3 bucket and S3 Replication Time Control (S3 RTC).

\n */\nexport interface Destination {\n /**\n *

The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the\n * results.

\n */\n Bucket: string | undefined;\n\n /**\n *

Destination bucket owner account ID. In a cross-account scenario, if you direct Amazon S3 to\n * change replica ownership to the AWS account that owns the destination bucket by specifying\n * the AccessControlTranslation property, this is the account ID of the\n * destination bucket owner. For more information, see Replication Additional\n * Configuration: Changing the Replica Owner in the Amazon Simple Storage\n * Service Developer Guide.

\n */\n Account?: string;\n\n /**\n *

The storage class to use when replicating objects, such as S3 Standard or reduced\n * redundancy. By default, Amazon S3 uses the storage class of the source object to create the\n * object replica.

\n *

For valid values, see the StorageClass element of the PUT Bucket\n * replication action in the Amazon Simple Storage Service API Reference.

\n */\n StorageClass?: StorageClass | string;\n\n /**\n *

Specify this only in a cross-account scenario (where source and destination bucket\n * owners are not the same), and you want to change replica ownership to the AWS account that\n * owns the destination bucket. If this is not specified in the replication configuration, the\n * replicas are owned by same AWS account that owns the source object.

\n */\n AccessControlTranslation?: AccessControlTranslation;\n\n /**\n *

A container that provides information about encryption. If\n * SourceSelectionCriteria is specified, you must specify this element.

\n */\n EncryptionConfiguration?: EncryptionConfiguration;\n\n /**\n *

A container specifying S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time\n * when all objects and operations on objects must be replicated. Must be specified together\n * with a Metrics block.

\n */\n ReplicationTime?: ReplicationTime;\n\n /**\n *

A container specifying replication metrics-related settings enabling replication\n * metrics and events.

\n */\n Metrics?: Metrics;\n}\n\nexport namespace Destination {\n export const filterSensitiveLog = (obj: Destination): any => ({\n ...obj,\n });\n}\n\nexport type ExistingObjectReplicationStatus = \"Disabled\" | \"Enabled\";\n\n/**\n *

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

\n */\nexport interface ExistingObjectReplication {\n /**\n *

\n */\n Status: ExistingObjectReplicationStatus | string | undefined;\n}\n\nexport namespace ExistingObjectReplication {\n export const filterSensitiveLog = (obj: ExistingObjectReplication): any => ({\n ...obj,\n });\n}\n\n/**\n *

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 *
    \n *
  • \n *

    If you specify both a Prefix and a Tag filter, wrap\n * these filters in an And tag.

    \n *
  • \n *
  • \n *

    If you specify a filter based on multiple tags, wrap the Tag elements\n * in an And tag

    \n *
  • \n *
\n */\nexport interface ReplicationRuleAndOperator {\n /**\n *

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

\n */\n Prefix?: string;\n\n /**\n *

An array of tags containing key and value pairs.

\n */\n Tags?: Tag[];\n}\n\nexport namespace ReplicationRuleAndOperator {\n export const filterSensitiveLog = (obj: ReplicationRuleAndOperator): any => ({\n ...obj,\n });\n}\n\n/**\n *

A filter that identifies the subset of objects to which the replication rule applies. A\n * Filter must specify exactly one Prefix, Tag, or\n * an And child element.

\n */\nexport type ReplicationRuleFilter =\n | ReplicationRuleFilter.AndMember\n | ReplicationRuleFilter.PrefixMember\n | ReplicationRuleFilter.TagMember\n | ReplicationRuleFilter.$UnknownMember;\n\nexport namespace ReplicationRuleFilter {\n /**\n *

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

\n */\n export interface PrefixMember {\n Prefix: string;\n Tag?: never;\n And?: never;\n $unknown?: never;\n }\n\n /**\n *

A container for specifying a tag key and value.

\n *

The rule applies only to objects that have the tag in their tag set.

\n */\n export interface TagMember {\n Prefix?: never;\n Tag: Tag;\n And?: never;\n $unknown?: never;\n }\n\n /**\n *

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 *
    \n *
  • \n *

    If you specify both a Prefix and a Tag filter, wrap\n * these filters in an And tag.

    \n *
  • \n *
  • \n *

    If you specify a filter based on multiple tags, wrap the Tag elements\n * in an And tag.

    \n *
  • \n *
\n */\n export interface AndMember {\n Prefix?: never;\n Tag?: never;\n And: ReplicationRuleAndOperator;\n $unknown?: never;\n }\n\n export interface $UnknownMember {\n Prefix?: never;\n Tag?: never;\n And?: never;\n $unknown: [string, any];\n }\n\n export interface Visitor {\n Prefix: (value: string) => T;\n Tag: (value: Tag) => T;\n And: (value: ReplicationRuleAndOperator) => T;\n _: (name: string, value: any) => T;\n }\n\n export const visit = (value: ReplicationRuleFilter, visitor: Visitor): T => {\n if (value.Prefix !== undefined) return visitor.Prefix(value.Prefix);\n if (value.Tag !== undefined) return visitor.Tag(value.Tag);\n if (value.And !== undefined) return visitor.And(value.And);\n return visitor._(value.$unknown[0], value.$unknown[1]);\n };\n\n export const filterSensitiveLog = (obj: ReplicationRuleFilter): any => {\n if (obj.Prefix !== undefined) return { Prefix: obj.Prefix };\n if (obj.Tag !== undefined) return { Tag: Tag.filterSensitiveLog(obj.Tag) };\n if (obj.And !== undefined) return { And: ReplicationRuleAndOperator.filterSensitiveLog(obj.And) };\n if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: \"UNKNOWN\" };\n };\n}\n\nexport type ReplicaModificationsStatus = \"Disabled\" | \"Enabled\";\n\n/**\n *

A filter that you can specify for selection for modifications on replicas. Amazon S3 doesn't\n * replicate replica modifications by default. In the latest version of replication\n * configuration (when Filter is specified), you can specify this element and set\n * the status to Enabled to replicate modifications on replicas.

\n * \n *

If you don't specify the Filter element, Amazon S3 assumes that the\n * replication configuration is the earlier version, V1. In the earlier version, this\n * element is not allowed.

\n *
\n */\nexport interface ReplicaModifications {\n /**\n *

Specifies whether Amazon S3 replicates modifications on replicas.

\n */\n Status: ReplicaModificationsStatus | string | undefined;\n}\n\nexport namespace ReplicaModifications {\n export const filterSensitiveLog = (obj: ReplicaModifications): any => ({\n ...obj,\n });\n}\n\nexport type SseKmsEncryptedObjectsStatus = \"Disabled\" | \"Enabled\";\n\n/**\n *

A container for filter information for the selection of S3 objects encrypted with AWS\n * KMS.

\n */\nexport interface SseKmsEncryptedObjects {\n /**\n *

Specifies whether Amazon S3 replicates objects created with server-side encryption using a\n * customer master key (CMK) stored in AWS Key Management Service.

\n */\n Status: SseKmsEncryptedObjectsStatus | string | undefined;\n}\n\nexport namespace SseKmsEncryptedObjects {\n export const filterSensitiveLog = (obj: SseKmsEncryptedObjects): any => ({\n ...obj,\n });\n}\n\n/**\n *

A container that describes additional filters for identifying the source objects that\n * you want to replicate. You can choose to enable or disable the replication of these\n * objects. Currently, Amazon S3 supports only the filter that you can specify for objects created\n * with server-side encryption using a customer master key (CMK) stored in AWS Key Management\n * Service (SSE-KMS).

\n */\nexport interface SourceSelectionCriteria {\n /**\n *

A container for filter information for the selection of Amazon S3 objects encrypted with AWS\n * KMS. If you include SourceSelectionCriteria in the replication configuration,\n * this element is required.

\n */\n SseKmsEncryptedObjects?: SseKmsEncryptedObjects;\n\n /**\n *

A filter that you can specify for selections for modifications on replicas. Amazon S3 doesn't\n * replicate replica modifications by default. In the latest version of replication\n * configuration (when Filter is specified), you can specify this element and set\n * the status to Enabled to replicate modifications on replicas.

\n * \n *

If you don't specify the Filter element, Amazon S3 assumes that the\n * replication configuration is the earlier version, V1. In the earlier version, this\n * element is not allowed

\n *
\n */\n ReplicaModifications?: ReplicaModifications;\n}\n\nexport namespace SourceSelectionCriteria {\n export const filterSensitiveLog = (obj: SourceSelectionCriteria): any => ({\n ...obj,\n });\n}\n\nexport type ReplicationRuleStatus = \"Disabled\" | \"Enabled\";\n\n/**\n *

Specifies which Amazon S3 objects to replicate and where to store the replicas.

\n */\nexport interface ReplicationRule {\n /**\n *

A unique identifier for the rule. The maximum value is 255 characters.

\n */\n ID?: string;\n\n /**\n *

The priority indicates which rule has precedence whenever two or more replication rules\n * conflict. Amazon S3 will attempt to replicate objects according to all replication rules.\n * However, if there are two or more rules with the same destination bucket, then objects will\n * be replicated according to the rule with the highest priority. The higher the number, the\n * higher the priority.

\n *

For more information, see Replication in the\n * Amazon Simple Storage Service Developer Guide.

\n */\n Priority?: number;\n\n /**\n * @deprecated\n *\n *

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 Prefix?: string;\n\n /**\n *

A filter that identifies the subset of objects to which the replication rule applies. A\n * Filter must specify exactly one Prefix, Tag, or\n * an And child element.

\n */\n Filter?: ReplicationRuleFilter;\n\n /**\n *

Specifies whether the rule is enabled.

\n */\n Status: ReplicationRuleStatus | string | undefined;\n\n /**\n *

A container that describes additional filters for identifying the source objects that\n * you want to replicate. You can choose to enable or disable the replication of these\n * objects. Currently, Amazon S3 supports only the filter that you can specify for objects created\n * with server-side encryption using a customer master key (CMK) stored in AWS Key Management\n * Service (SSE-KMS).

\n */\n SourceSelectionCriteria?: SourceSelectionCriteria;\n\n /**\n *

\n */\n ExistingObjectReplication?: ExistingObjectReplication;\n\n /**\n *

A container for information about the replication destination and its configurations\n * including enabling the S3 Replication Time Control (S3 RTC).

\n */\n Destination: Destination | undefined;\n\n /**\n *

Specifies whether Amazon S3 replicates delete markers. If you specify a Filter\n * in your replication configuration, you must also include a\n * DeleteMarkerReplication element. If your Filter includes a\n * Tag element, the DeleteMarkerReplication\n * Status must be set to Disabled, because Amazon S3 does not support replicating\n * delete markers for tag-based rules. For an example configuration, see Basic Rule Configuration.

\n *

For more information about delete marker replication, see Basic Rule\n * Configuration.

\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 */\n DeleteMarkerReplication?: DeleteMarkerReplication;\n}\n\nexport namespace ReplicationRule {\n export const filterSensitiveLog = (obj: ReplicationRule): any => ({\n ...obj,\n ...(obj.Filter && { Filter: ReplicationRuleFilter.filterSensitiveLog(obj.Filter) }),\n });\n}\n\n/**\n *

A container for replication rules. You can add up to 1,000 rules. The maximum size of a\n * replication configuration is 2 MB.

\n */\nexport interface ReplicationConfiguration {\n /**\n *

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that\n * Amazon S3 assumes when replicating objects. For more information, see How to Set Up\n * Replication in the Amazon Simple Storage Service Developer Guide.

\n */\n Role: string | undefined;\n\n /**\n *

A container for one or more replication rules. A replication configuration must have at\n * least one rule and can contain a maximum of 1,000 rules.

\n */\n Rules: ReplicationRule[] | undefined;\n}\n\nexport namespace ReplicationConfiguration {\n export const filterSensitiveLog = (obj: ReplicationConfiguration): any => ({\n ...obj,\n ...(obj.Rules && { Rules: obj.Rules.map((item) => ReplicationRule.filterSensitiveLog(item)) }),\n });\n}\n\nexport interface GetBucketReplicationOutput {\n /**\n *

A container for replication rules. You can add up to 1,000 rules. The maximum size of a\n * replication configuration is 2 MB.

\n */\n ReplicationConfiguration?: ReplicationConfiguration;\n}\n\nexport namespace GetBucketReplicationOutput {\n export const filterSensitiveLog = (obj: GetBucketReplicationOutput): any => ({\n ...obj,\n ...(obj.ReplicationConfiguration && {\n ReplicationConfiguration: ReplicationConfiguration.filterSensitiveLog(obj.ReplicationConfiguration),\n }),\n });\n}\n\nexport interface GetBucketReplicationRequest {\n /**\n *

The bucket name for which to get the replication information.

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetBucketReplicationRequest {\n export const filterSensitiveLog = (obj: GetBucketReplicationRequest): any => ({\n ...obj,\n });\n}\n\nexport type Payer = \"BucketOwner\" | \"Requester\";\n\nexport interface GetBucketRequestPaymentOutput {\n /**\n *

Specifies who pays for the download and request fees.

\n */\n Payer?: Payer | string;\n}\n\nexport namespace GetBucketRequestPaymentOutput {\n export const filterSensitiveLog = (obj: GetBucketRequestPaymentOutput): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketRequestPaymentRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetBucketRequestPaymentRequest {\n export const filterSensitiveLog = (obj: GetBucketRequestPaymentRequest): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketTaggingOutput {\n /**\n *

Contains the tag set.

\n */\n TagSet: Tag[] | undefined;\n}\n\nexport namespace GetBucketTaggingOutput {\n export const filterSensitiveLog = (obj: GetBucketTaggingOutput): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketTaggingRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetBucketTaggingRequest {\n export const filterSensitiveLog = (obj: GetBucketTaggingRequest): any => ({\n ...obj,\n });\n}\n\nexport type MFADeleteStatus = \"Disabled\" | \"Enabled\";\n\nexport type BucketVersioningStatus = \"Enabled\" | \"Suspended\";\n\nexport interface GetBucketVersioningOutput {\n /**\n *

The versioning state of the bucket.

\n */\n Status?: BucketVersioningStatus | string;\n\n /**\n *

Specifies whether MFA delete is enabled in the bucket versioning configuration. This\n * element is only returned if the bucket has been configured with MFA delete. If the bucket\n * has never been so configured, this element is not returned.

\n */\n MFADelete?: MFADeleteStatus | string;\n}\n\nexport namespace GetBucketVersioningOutput {\n export const filterSensitiveLog = (obj: GetBucketVersioningOutput): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketVersioningRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetBucketVersioningRequest {\n export const filterSensitiveLog = (obj: GetBucketVersioningRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

The error information.

\n */\nexport interface ErrorDocument {\n /**\n *

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

\n */\n Key: string | undefined;\n}\n\nexport namespace ErrorDocument {\n export const filterSensitiveLog = (obj: ErrorDocument): any => ({\n ...obj,\n });\n}\n\n/**\n *

Container for the Suffix element.

\n */\nexport interface IndexDocument {\n /**\n *

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 Suffix: string | undefined;\n}\n\nexport namespace IndexDocument {\n export const filterSensitiveLog = (obj: IndexDocument): any => ({\n ...obj,\n });\n}\n\nexport type Protocol = \"http\" | \"https\";\n\n/**\n *

Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3\n * bucket.

\n */\nexport interface RedirectAllRequestsTo {\n /**\n *

Name of the host where requests are redirected.

\n */\n HostName: string | undefined;\n\n /**\n *

Protocol to use when redirecting requests. The default is the protocol that is used in\n * the original request.

\n */\n Protocol?: Protocol | string;\n}\n\nexport namespace RedirectAllRequestsTo {\n export const filterSensitiveLog = (obj: RedirectAllRequestsTo): any => ({\n ...obj,\n });\n}\n\n/**\n *

A container for describing a condition that must be met for the specified redirect to\n * apply. For example, 1. If request is for pages in the /docs folder, redirect\n * to the /documents folder. 2. If request results in HTTP error 4xx, redirect\n * request to another host where you might process the error.

\n */\nexport interface Condition {\n /**\n *

The HTTP error code when the redirect is applied. In the event of an error, if the error\n * code equals this value, then the specified redirect is applied. Required when parent\n * element Condition is specified and sibling KeyPrefixEquals is not\n * specified. If both are specified, then both must be true for the redirect to be\n * applied.

\n */\n HttpErrorCodeReturnedEquals?: string;\n\n /**\n *

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 KeyPrefixEquals?: string;\n}\n\nexport namespace Condition {\n export const filterSensitiveLog = (obj: Condition): any => ({\n ...obj,\n });\n}\n\n/**\n *

Specifies how requests are redirected. In the event of an error, you can specify a\n * different error code to return.

\n */\nexport interface Redirect {\n /**\n *

The host name to use in the redirect request.

\n */\n HostName?: string;\n\n /**\n *

The HTTP redirect code to use on the response. Not required if one of the siblings is\n * present.

\n */\n HttpRedirectCode?: string;\n\n /**\n *

Protocol to use when redirecting requests. The default is the protocol that is used in\n * the original request.

\n */\n Protocol?: Protocol | string;\n\n /**\n *

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 ReplaceKeyPrefixWith?: string;\n\n /**\n *

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 ReplaceKeyWith?: string;\n}\n\nexport namespace Redirect {\n export const filterSensitiveLog = (obj: Redirect): any => ({\n ...obj,\n });\n}\n\n/**\n *

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.

\n */\nexport interface RoutingRule {\n /**\n *

A container for describing a condition that must be met for the specified redirect to\n * apply. For example, 1. If request is for pages in the /docs folder, redirect\n * to the /documents folder. 2. If request results in HTTP error 4xx, redirect\n * request to another host where you might process the error.

\n */\n Condition?: Condition;\n\n /**\n *

Container for redirect information. You can redirect requests to another host, to\n * another page, or with another protocol. In the event of an error, you can specify a\n * different error code to return.

\n */\n Redirect: Redirect | undefined;\n}\n\nexport namespace RoutingRule {\n export const filterSensitiveLog = (obj: RoutingRule): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketWebsiteOutput {\n /**\n *

Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3\n * bucket.

\n */\n RedirectAllRequestsTo?: RedirectAllRequestsTo;\n\n /**\n *

The name of the index document for the website (for example\n * index.html).

\n */\n IndexDocument?: IndexDocument;\n\n /**\n *

The object key name of the website error document to use for 4XX class errors.

\n */\n ErrorDocument?: ErrorDocument;\n\n /**\n *

Rules that define when a redirect is applied and the redirect behavior.

\n */\n RoutingRules?: RoutingRule[];\n}\n\nexport namespace GetBucketWebsiteOutput {\n export const filterSensitiveLog = (obj: GetBucketWebsiteOutput): any => ({\n ...obj,\n });\n}\n\nexport interface GetBucketWebsiteRequest {\n /**\n *

The bucket name for which to get the website configuration.

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetBucketWebsiteRequest {\n export const filterSensitiveLog = (obj: GetBucketWebsiteRequest): any => ({\n ...obj,\n });\n}\n\nexport type ReplicationStatus = \"COMPLETE\" | \"FAILED\" | \"PENDING\" | \"REPLICA\";\n\nexport interface GetObjectOutput {\n /**\n *

Object data.

\n */\n Body?: Readable | ReadableStream | Blob;\n\n /**\n *

Specifies whether the object retrieved was (true) or was not (false) a Delete Marker. If\n * false, this response header does not appear in the response.

\n */\n DeleteMarker?: boolean;\n\n /**\n *

Indicates that a range of bytes was specified.

\n */\n AcceptRanges?: string;\n\n /**\n *

If the object expiration is configured (see PUT Bucket lifecycle), the response includes\n * this header. It includes the expiry-date and rule-id key-value pairs providing object\n * expiration information. The value of the rule-id is URL encoded.

\n */\n Expiration?: string;\n\n /**\n *

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

\n */\n Restore?: string;\n\n /**\n *

Last modified date of the object

\n */\n LastModified?: Date;\n\n /**\n *

Size of the body in bytes.

\n */\n ContentLength?: number;\n\n /**\n *

An ETag is an opaque identifier assigned by a web server to a specific version of a\n * resource found at a URL.

\n */\n ETag?: string;\n\n /**\n *

This is set to the number of metadata entries not returned in x-amz-meta\n * headers. This can happen if you create metadata using an API like SOAP that supports more\n * flexible metadata than the REST API. For example, using SOAP, you can create metadata whose\n * values are not legal HTTP headers.

\n */\n MissingMeta?: number;\n\n /**\n *

Version of the object.

\n */\n VersionId?: string;\n\n /**\n *

Specifies caching behavior along the request/reply chain.

\n */\n CacheControl?: string;\n\n /**\n *

Specifies presentational information for the object.

\n */\n ContentDisposition?: string;\n\n /**\n *

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.

\n */\n ContentEncoding?: string;\n\n /**\n *

The language the content is in.

\n */\n ContentLanguage?: string;\n\n /**\n *

The portion of the object returned in the response.

\n */\n ContentRange?: string;\n\n /**\n *

A standard MIME type describing the format of the object data.

\n */\n ContentType?: string;\n\n /**\n *

The date and time at which the object is no longer cacheable.

\n */\n Expires?: Date;\n\n /**\n *

If the bucket is configured as a website, redirects requests for this object to another\n * object in the same bucket or to an external URL. Amazon S3 stores the value of this header in\n * the object metadata.

\n */\n WebsiteRedirectLocation?: string;\n\n /**\n *

The server-side encryption algorithm used when storing this object in Amazon S3 (for example,\n * AES256, aws:kms).

\n */\n ServerSideEncryption?: ServerSideEncryption | string;\n\n /**\n *

A map of metadata to store with the object in S3.

\n */\n Metadata?: { [key: string]: string };\n\n /**\n *

If server-side encryption with a customer-provided encryption key was requested, the\n * response will include this header confirming the encryption algorithm used.

\n */\n SSECustomerAlgorithm?: string;\n\n /**\n *

If server-side encryption with a customer-provided encryption key was requested, the\n * response will include this header to provide round-trip message integrity verification of\n * the customer-provided encryption key.

\n */\n SSECustomerKeyMD5?: string;\n\n /**\n *

If present, specifies the ID of the AWS Key Management Service (AWS KMS) symmetric\n * customer managed customer master key (CMK) that was used for the object.

\n */\n SSEKMSKeyId?: string;\n\n /**\n *

Indicates whether the object uses an S3 Bucket Key for server-side encryption with AWS KMS (SSE-KMS).

\n */\n BucketKeyEnabled?: boolean;\n\n /**\n *

Provides storage class information of the object. Amazon S3 returns this header for all\n * objects except for S3 Standard storage class objects.

\n */\n StorageClass?: StorageClass | string;\n\n /**\n *

If present, indicates that the requester was successfully charged for the\n * request.

\n */\n RequestCharged?: RequestCharged | string;\n\n /**\n *

Amazon S3 can return this if your request involves a bucket that is either a source or\n * destination in a replication rule.

\n */\n ReplicationStatus?: ReplicationStatus | string;\n\n /**\n *

The count of parts this object has.

\n */\n PartsCount?: number;\n\n /**\n *

The number of tags, if any, on the object.

\n */\n TagCount?: number;\n\n /**\n *

The Object Lock mode currently in place for this object.

\n */\n ObjectLockMode?: ObjectLockMode | string;\n\n /**\n *

The date and time when this object's Object Lock will expire.

\n */\n ObjectLockRetainUntilDate?: Date;\n\n /**\n *

Indicates whether this object has an active legal hold. This field is only returned if\n * you have permission to view an object's legal hold status.

\n */\n ObjectLockLegalHoldStatus?: ObjectLockLegalHoldStatus | string;\n}\n\nexport namespace GetObjectOutput {\n export const filterSensitiveLog = (obj: GetObjectOutput): any => ({\n ...obj,\n ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),\n });\n}\n\nexport interface GetObjectRequest {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

Return the object only if its entity tag (ETag) is the same as the one specified,\n * otherwise return a 412 (precondition failed).

\n */\n IfMatch?: string;\n\n /**\n *

Return the object only if it has been modified since the specified time, otherwise\n * return a 304 (not modified).

\n */\n IfModifiedSince?: Date;\n\n /**\n *

Return the object only if its entity tag (ETag) is different from the one specified,\n * otherwise return a 304 (not modified).

\n */\n IfNoneMatch?: string;\n\n /**\n *

Return the object only if it has not been modified since the specified time, otherwise\n * return a 412 (precondition failed).

\n */\n IfUnmodifiedSince?: Date;\n\n /**\n *

Key of the object to get.

\n */\n Key: string | undefined;\n\n /**\n *

Downloads the specified range bytes of an object. For more information about the HTTP\n * Range header, see https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.

\n * \n *

Amazon S3 doesn't support retrieving multiple ranges of data per GET\n * request.

\n *
\n */\n Range?: string;\n\n /**\n *

Sets the Cache-Control header of the response.

\n */\n ResponseCacheControl?: string;\n\n /**\n *

Sets the Content-Disposition header of the response

\n */\n ResponseContentDisposition?: string;\n\n /**\n *

Sets the Content-Encoding header of the response.

\n */\n ResponseContentEncoding?: string;\n\n /**\n *

Sets the Content-Language header of the response.

\n */\n ResponseContentLanguage?: string;\n\n /**\n *

Sets the Content-Type header of the response.

\n */\n ResponseContentType?: string;\n\n /**\n *

Sets the Expires header of the response.

\n */\n ResponseExpires?: Date;\n\n /**\n *

VersionId used to reference a specific version of the object.

\n */\n VersionId?: string;\n\n /**\n *

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

\n */\n SSECustomerAlgorithm?: string;\n\n /**\n *

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.

\n */\n SSECustomerKey?: string;\n\n /**\n *

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses\n * this header for a message integrity check to ensure that the encryption key was transmitted\n * without error.

\n */\n SSECustomerKeyMD5?: string;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

Part number of the object being read. This is a positive integer between 1 and 10,000.\n * Effectively performs a 'ranged' GET request for the part specified. Useful for downloading\n * just a part of an object.

\n */\n PartNumber?: number;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetObjectRequest {\n export const filterSensitiveLog = (obj: GetObjectRequest): any => ({\n ...obj,\n ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),\n });\n}\n\n/**\n *

Object is archived and inaccessible until restored.

\n */\nexport interface InvalidObjectState extends __SmithyException, $MetadataBearer {\n name: \"InvalidObjectState\";\n $fault: \"client\";\n StorageClass?: StorageClass | string;\n AccessTier?: IntelligentTieringAccessTier | string;\n}\n\nexport namespace InvalidObjectState {\n export const filterSensitiveLog = (obj: InvalidObjectState): any => ({\n ...obj,\n });\n}\n\n/**\n *

The specified key does not exist.

\n */\nexport interface NoSuchKey extends __SmithyException, $MetadataBearer {\n name: \"NoSuchKey\";\n $fault: \"client\";\n}\n\nexport namespace NoSuchKey {\n export const filterSensitiveLog = (obj: NoSuchKey): any => ({\n ...obj,\n });\n}\n\nexport interface GetObjectAclOutput {\n /**\n *

Container for the bucket owner's display name and ID.

\n */\n Owner?: Owner;\n\n /**\n *

A list of grants.

\n */\n Grants?: Grant[];\n\n /**\n *

If present, indicates that the requester was successfully charged for the\n * request.

\n */\n RequestCharged?: RequestCharged | string;\n}\n\nexport namespace GetObjectAclOutput {\n export const filterSensitiveLog = (obj: GetObjectAclOutput): any => ({\n ...obj,\n });\n}\n\nexport interface GetObjectAclRequest {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

The key of the object for which to get the ACL information.

\n */\n Key: string | undefined;\n\n /**\n *

VersionId used to reference a specific version of the object.

\n */\n VersionId?: string;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetObjectAclRequest {\n export const filterSensitiveLog = (obj: GetObjectAclRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

A Legal Hold configuration for an object.

\n */\nexport interface ObjectLockLegalHold {\n /**\n *

Indicates whether the specified object has a Legal Hold in place.

\n */\n Status?: ObjectLockLegalHoldStatus | string;\n}\n\nexport namespace ObjectLockLegalHold {\n export const filterSensitiveLog = (obj: ObjectLockLegalHold): any => ({\n ...obj,\n });\n}\n\nexport interface GetObjectLegalHoldOutput {\n /**\n *

The current Legal Hold status for the specified object.

\n */\n LegalHold?: ObjectLockLegalHold;\n}\n\nexport namespace GetObjectLegalHoldOutput {\n export const filterSensitiveLog = (obj: GetObjectLegalHoldOutput): any => ({\n ...obj,\n });\n}\n\nexport interface GetObjectLegalHoldRequest {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

The key name for the object whose Legal Hold status you want to retrieve.

\n */\n Key: string | undefined;\n\n /**\n *

The version ID of the object whose Legal Hold status you want to retrieve.

\n */\n VersionId?: string;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetObjectLegalHoldRequest {\n export const filterSensitiveLog = (obj: GetObjectLegalHoldRequest): any => ({\n ...obj,\n });\n}\n\nexport type ObjectLockEnabled = \"Enabled\";\n\nexport type ObjectLockRetentionMode = \"COMPLIANCE\" | \"GOVERNANCE\";\n\n/**\n *

The container element for specifying the default Object Lock retention settings for new\n * objects placed in the specified bucket.

\n */\nexport interface DefaultRetention {\n /**\n *

The default Object Lock retention mode you want to apply to new objects placed in the\n * specified bucket.

\n */\n Mode?: ObjectLockRetentionMode | string;\n\n /**\n *

The number of days that you want to specify for the default retention period.

\n */\n Days?: number;\n\n /**\n *

The number of years that you want to specify for the default retention period.

\n */\n Years?: number;\n}\n\nexport namespace DefaultRetention {\n export const filterSensitiveLog = (obj: DefaultRetention): any => ({\n ...obj,\n });\n}\n\n/**\n *

The container element for an Object Lock rule.

\n */\nexport interface ObjectLockRule {\n /**\n *

The default retention period that you want to apply to new objects placed in the\n * specified bucket.

\n */\n DefaultRetention?: DefaultRetention;\n}\n\nexport namespace ObjectLockRule {\n export const filterSensitiveLog = (obj: ObjectLockRule): any => ({\n ...obj,\n });\n}\n\n/**\n *

The container element for Object Lock configuration parameters.

\n */\nexport interface ObjectLockConfiguration {\n /**\n *

Indicates whether this bucket has an Object Lock configuration enabled.

\n */\n ObjectLockEnabled?: ObjectLockEnabled | string;\n\n /**\n *

The Object Lock rule in place for the specified object.

\n */\n Rule?: ObjectLockRule;\n}\n\nexport namespace ObjectLockConfiguration {\n export const filterSensitiveLog = (obj: ObjectLockConfiguration): any => ({\n ...obj,\n });\n}\n\nexport interface GetObjectLockConfigurationOutput {\n /**\n *

The specified bucket's Object Lock configuration.

\n */\n ObjectLockConfiguration?: ObjectLockConfiguration;\n}\n\nexport namespace GetObjectLockConfigurationOutput {\n export const filterSensitiveLog = (obj: GetObjectLockConfigurationOutput): any => ({\n ...obj,\n });\n}\n\nexport interface GetObjectLockConfigurationRequest {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetObjectLockConfigurationRequest {\n export const filterSensitiveLog = (obj: GetObjectLockConfigurationRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

A Retention configuration for an object.

\n */\nexport interface ObjectLockRetention {\n /**\n *

Indicates the Retention mode for the specified object.

\n */\n Mode?: ObjectLockRetentionMode | string;\n\n /**\n *

The date on which this Object Lock Retention will expire.

\n */\n RetainUntilDate?: Date;\n}\n\nexport namespace ObjectLockRetention {\n export const filterSensitiveLog = (obj: ObjectLockRetention): any => ({\n ...obj,\n });\n}\n\nexport interface GetObjectRetentionOutput {\n /**\n *

The container element for an object's retention settings.

\n */\n Retention?: ObjectLockRetention;\n}\n\nexport namespace GetObjectRetentionOutput {\n export const filterSensitiveLog = (obj: GetObjectRetentionOutput): any => ({\n ...obj,\n });\n}\n\nexport interface GetObjectRetentionRequest {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

The key name for the object whose retention settings you want to retrieve.

\n */\n Key: string | undefined;\n\n /**\n *

The version ID for the object whose retention settings you want to retrieve.

\n */\n VersionId?: string;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetObjectRetentionRequest {\n export const filterSensitiveLog = (obj: GetObjectRetentionRequest): any => ({\n ...obj,\n });\n}\n\nexport interface GetObjectTaggingOutput {\n /**\n *

The versionId of the object for which you got the tagging information.

\n */\n VersionId?: string;\n\n /**\n *

Contains the tag set.

\n */\n TagSet: Tag[] | undefined;\n}\n\nexport namespace GetObjectTaggingOutput {\n export const filterSensitiveLog = (obj: GetObjectTaggingOutput): any => ({\n ...obj,\n });\n}\n\nexport interface GetObjectTaggingRequest {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

Object key for which to get the tagging information.

\n */\n Key: string | undefined;\n\n /**\n *

The versionId of the object for which to get the tagging information.

\n */\n VersionId?: string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetObjectTaggingRequest {\n export const filterSensitiveLog = (obj: GetObjectTaggingRequest): any => ({\n ...obj,\n });\n}\n\nexport interface GetObjectTorrentOutput {\n /**\n *

A Bencoded dictionary as defined by the BitTorrent specification

\n */\n Body?: Readable | ReadableStream | Blob;\n\n /**\n *

If present, indicates that the requester was successfully charged for the\n * request.

\n */\n RequestCharged?: RequestCharged | string;\n}\n\nexport namespace GetObjectTorrentOutput {\n export const filterSensitiveLog = (obj: GetObjectTorrentOutput): any => ({\n ...obj,\n });\n}\n\nexport interface GetObjectTorrentRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

The object key for which to get the information.

\n */\n Key: string | undefined;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetObjectTorrentRequest {\n export const filterSensitiveLog = (obj: GetObjectTorrentRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

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.

\n */\nexport interface PublicAccessBlockConfiguration {\n /**\n *

Specifies whether Amazon S3 should block public access control lists (ACLs) for this bucket\n * and objects in this bucket. Setting this element to TRUE causes the following\n * behavior:

\n *
    \n *
  • \n *

    PUT Bucket acl and PUT Object acl calls fail if the specified ACL is\n * public.

    \n *
  • \n *
  • \n *

    PUT Object calls fail if the request includes a public ACL.

    \n *
  • \n *
  • \n *

    PUT Bucket calls fail if the request includes a public ACL.

    \n *
  • \n *
\n *

Enabling this setting doesn't affect existing policies or ACLs.

\n */\n BlockPublicAcls?: boolean;\n\n /**\n *

Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this\n * bucket. Setting this element to TRUE causes Amazon S3 to ignore all public ACLs on\n * this bucket and objects in this bucket.

\n *

Enabling this setting doesn't affect the persistence of any existing ACLs and doesn't\n * prevent new public ACLs from being set.

\n */\n IgnorePublicAcls?: boolean;\n\n /**\n *

Specifies whether Amazon S3 should block public bucket policies for this bucket. Setting this\n * element to TRUE causes Amazon S3 to reject calls to PUT Bucket policy if the\n * specified bucket policy allows public access.

\n *

Enabling this setting doesn't affect existing bucket policies.

\n */\n BlockPublicPolicy?: boolean;\n\n /**\n *

Specifies whether Amazon S3 should restrict public bucket policies for this bucket. Setting\n * this element to TRUE restricts access to this bucket to only AWS service\n * principals and authorized users within this account if the bucket has a public\n * policy.

\n *

Enabling this setting doesn't affect previously stored bucket policies, except that\n * public and cross-account access within any public bucket policy, including non-public\n * delegation to specific accounts, is blocked.

\n */\n RestrictPublicBuckets?: boolean;\n}\n\nexport namespace PublicAccessBlockConfiguration {\n export const filterSensitiveLog = (obj: PublicAccessBlockConfiguration): any => ({\n ...obj,\n });\n}\n\nexport interface GetPublicAccessBlockOutput {\n /**\n *

The PublicAccessBlock configuration currently in effect for this Amazon S3\n * bucket.

\n */\n PublicAccessBlockConfiguration?: PublicAccessBlockConfiguration;\n}\n\nexport namespace GetPublicAccessBlockOutput {\n export const filterSensitiveLog = (obj: GetPublicAccessBlockOutput): any => ({\n ...obj,\n });\n}\n\nexport interface GetPublicAccessBlockRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace GetPublicAccessBlockRequest {\n export const filterSensitiveLog = (obj: GetPublicAccessBlockRequest): any => ({\n ...obj,\n });\n}\n\nexport interface HeadBucketRequest {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace HeadBucketRequest {\n export const filterSensitiveLog = (obj: HeadBucketRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

The specified bucket does not exist.

\n */\nexport interface NoSuchBucket extends __SmithyException, $MetadataBearer {\n name: \"NoSuchBucket\";\n $fault: \"client\";\n}\n\nexport namespace NoSuchBucket {\n export const filterSensitiveLog = (obj: NoSuchBucket): any => ({\n ...obj,\n });\n}\n\nexport type ArchiveStatus = \"ARCHIVE_ACCESS\" | \"DEEP_ARCHIVE_ACCESS\";\n\nexport interface HeadObjectOutput {\n /**\n *

Specifies whether the object retrieved was (true) or was not (false) a Delete Marker. If\n * false, this response header does not appear in the response.

\n */\n DeleteMarker?: boolean;\n\n /**\n *

Indicates that a range of bytes was specified.

\n */\n AcceptRanges?: string;\n\n /**\n *

If the object expiration is configured (see PUT Bucket lifecycle), the response includes\n * this header. It includes the expiry-date and rule-id key-value pairs providing object\n * expiration information. The value of the rule-id is URL encoded.

\n */\n Expiration?: string;\n\n /**\n *

If the object is an archived object (an object whose storage class is GLACIER), the\n * response includes this header if either the archive restoration is in progress (see RestoreObject or an archive copy is already restored.

\n *\n *

If an archive copy is already restored, the header value indicates when Amazon S3 is\n * scheduled to delete the object copy. For example:

\n *\n *

\n * x-amz-restore: ongoing-request=\"false\", expiry-date=\"Fri, 23 Dec 2012 00:00:00\n * GMT\"\n *

\n *\n *

If the object restoration is in progress, the header returns the value\n * ongoing-request=\"true\".

\n *\n *

For more information about archiving objects, see Transitioning Objects: General Considerations.

\n */\n Restore?: string;\n\n /**\n *

The archive state of the head object.

\n */\n ArchiveStatus?: ArchiveStatus | string;\n\n /**\n *

Last modified date of the object

\n */\n LastModified?: Date;\n\n /**\n *

Size of the body in bytes.

\n */\n ContentLength?: number;\n\n /**\n *

An ETag is an opaque identifier assigned by a web server to a specific version of a\n * resource found at a URL.

\n */\n ETag?: string;\n\n /**\n *

This is set to the number of metadata entries not returned in x-amz-meta\n * headers. This can happen if you create metadata using an API like SOAP that supports more\n * flexible metadata than the REST API. For example, using SOAP, you can create metadata whose\n * values are not legal HTTP headers.

\n */\n MissingMeta?: number;\n\n /**\n *

Version of the object.

\n */\n VersionId?: string;\n\n /**\n *

Specifies caching behavior along the request/reply chain.

\n */\n CacheControl?: string;\n\n /**\n *

Specifies presentational information for the object.

\n */\n ContentDisposition?: string;\n\n /**\n *

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.

\n */\n ContentEncoding?: string;\n\n /**\n *

The language the content is in.

\n */\n ContentLanguage?: string;\n\n /**\n *

A standard MIME type describing the format of the object data.

\n */\n ContentType?: string;\n\n /**\n *

The date and time at which the object is no longer cacheable.

\n */\n Expires?: Date;\n\n /**\n *

If the bucket is configured as a website, redirects requests for this object to another\n * object in the same bucket or to an external URL. Amazon S3 stores the value of this header in\n * the object metadata.

\n */\n WebsiteRedirectLocation?: string;\n\n /**\n *

If the object is stored using server-side encryption either with an AWS KMS customer\n * master key (CMK) or an Amazon S3-managed encryption key, the response includes this header with\n * the value of the server-side encryption algorithm used when storing this object in Amazon\n * S3 (for example, AES256, aws:kms).

\n */\n ServerSideEncryption?: ServerSideEncryption | string;\n\n /**\n *

A map of metadata to store with the object in S3.

\n */\n Metadata?: { [key: string]: string };\n\n /**\n *

If server-side encryption with a customer-provided encryption key was requested, the\n * response will include this header confirming the encryption algorithm used.

\n */\n SSECustomerAlgorithm?: string;\n\n /**\n *

If server-side encryption with a customer-provided encryption key was requested, the\n * response will include this header to provide round-trip message integrity verification of\n * the customer-provided encryption key.

\n */\n SSECustomerKeyMD5?: string;\n\n /**\n *

If present, specifies the ID of the AWS Key Management Service (AWS KMS) symmetric\n * customer managed customer master key (CMK) that was used for the object.

\n */\n SSEKMSKeyId?: string;\n\n /**\n *

Indicates whether the object uses an S3 Bucket Key for server-side encryption with AWS KMS (SSE-KMS).

\n */\n BucketKeyEnabled?: boolean;\n\n /**\n *

Provides storage class information of the object. Amazon S3 returns this header for all\n * objects except for S3 Standard storage class objects.

\n *\n *

For more information, see Storage\n * Classes.

\n */\n StorageClass?: StorageClass | string;\n\n /**\n *

If present, indicates that the requester was successfully charged for the\n * request.

\n */\n RequestCharged?: RequestCharged | string;\n\n /**\n *

Amazon S3 can return this header if your request involves a bucket that is either a source or\n * a destination in a replication rule.

\n *\n *

In replication, you have a source bucket on which you configure replication and\n * destination bucket or buckets where Amazon S3 stores object replicas. When you request an object\n * (GetObject) or object metadata (HeadObject) from these\n * buckets, Amazon S3 will return the x-amz-replication-status header in the response\n * as follows:

\n *
    \n *
  • \n *

    If requesting an object from the source bucket — Amazon S3 will return the\n * x-amz-replication-status header if the object in your request is\n * eligible for replication.

    \n *

    For example, suppose that in your replication configuration, you specify object\n * prefix TaxDocs requesting Amazon S3 to replicate objects with key prefix\n * TaxDocs. Any objects you upload with this key name prefix, for\n * example TaxDocs/document1.pdf, are eligible for replication. For any\n * object request with this key name prefix, Amazon S3 will return the\n * x-amz-replication-status header with value PENDING, COMPLETED or\n * FAILED indicating object replication status.

    \n *
  • \n *
  • \n *

    If requesting an object from a destination bucket — Amazon S3 will return the\n * x-amz-replication-status header with value REPLICA if the object in\n * your request is a replica that Amazon S3 created and there is no replica modification\n * replication in progress.

    \n *
  • \n *
  • \n *

    When replicating objects to multiple destination buckets the\n * x-amz-replication-status header acts differently. The header of the\n * source object will only return a value of COMPLETED when replication is successful to\n * all destinations. The header will remain at value PENDING until replication has\n * completed for all destinations. If one or more destinations fails replication the\n * header will return FAILED.

    \n *
  • \n *
\n *\n *

For more information, see Replication.

\n */\n ReplicationStatus?: ReplicationStatus | string;\n\n /**\n *

The count of parts this object has.

\n */\n PartsCount?: number;\n\n /**\n *

The Object Lock mode, if any, that's in effect for this object. This header is only\n * returned if the requester has the s3:GetObjectRetention permission. For more\n * information about S3 Object Lock, see Object\n * Lock.

\n */\n ObjectLockMode?: ObjectLockMode | string;\n\n /**\n *

The date and time when the Object Lock retention period expires. This header is only\n * returned if the requester has the s3:GetObjectRetention permission.

\n */\n ObjectLockRetainUntilDate?: Date;\n\n /**\n *

Specifies whether a legal hold is in effect for this object. This header is only\n * returned if the requester has the s3:GetObjectLegalHold permission. This\n * header is not returned if the specified version of this object has never had a legal hold\n * applied. For more information about S3 Object Lock, see Object Lock.

\n */\n ObjectLockLegalHoldStatus?: ObjectLockLegalHoldStatus | string;\n}\n\nexport namespace HeadObjectOutput {\n export const filterSensitiveLog = (obj: HeadObjectOutput): any => ({\n ...obj,\n ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),\n });\n}\n\nexport interface HeadObjectRequest {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

Return the object only if its entity tag (ETag) is the same as the one specified,\n * otherwise return a 412 (precondition failed).

\n */\n IfMatch?: string;\n\n /**\n *

Return the object only if it has been modified since the specified time, otherwise\n * return a 304 (not modified).

\n */\n IfModifiedSince?: Date;\n\n /**\n *

Return the object only if its entity tag (ETag) is different from the one specified,\n * otherwise return a 304 (not modified).

\n */\n IfNoneMatch?: string;\n\n /**\n *

Return the object only if it has not been modified since the specified time, otherwise\n * return a 412 (precondition failed).

\n */\n IfUnmodifiedSince?: Date;\n\n /**\n *

The object key.

\n */\n Key: string | undefined;\n\n /**\n *

Downloads the specified range bytes of an object. For more information about the HTTP\n * Range header, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.

\n * \n *

Amazon S3 doesn't support retrieving multiple ranges of data per GET\n * request.

\n *
\n */\n Range?: string;\n\n /**\n *

VersionId used to reference a specific version of the object.

\n */\n VersionId?: string;\n\n /**\n *

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

\n */\n SSECustomerAlgorithm?: string;\n\n /**\n *

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.

\n */\n SSECustomerKey?: string;\n\n /**\n *

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses\n * this header for a message integrity check to ensure that the encryption key was transmitted\n * without error.

\n */\n SSECustomerKeyMD5?: string;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

Part number of the object being read. This is a positive integer between 1 and 10,000.\n * Effectively performs a 'ranged' HEAD request for the part specified. Useful querying about\n * the size of the part and the number of parts in this object.

\n */\n PartNumber?: number;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace HeadObjectRequest {\n export const filterSensitiveLog = (obj: HeadObjectRequest): any => ({\n ...obj,\n ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),\n });\n}\n\nexport interface ListBucketAnalyticsConfigurationsOutput {\n /**\n *

Indicates whether the returned list of analytics configurations is complete. A value of\n * true indicates that the list is not complete and the NextContinuationToken will be provided\n * for a subsequent request.

\n */\n IsTruncated?: boolean;\n\n /**\n *

The marker that is used as a starting point for this analytics configuration list\n * response. This value is present if it was sent in the request.

\n */\n ContinuationToken?: string;\n\n /**\n *

\n * NextContinuationToken is sent when isTruncated is true, which\n * indicates that there are more analytics configurations to list. The next request must\n * include this NextContinuationToken. The token is obfuscated and is not a\n * usable value.

\n */\n NextContinuationToken?: string;\n\n /**\n *

The list of analytics configurations for a bucket.

\n */\n AnalyticsConfigurationList?: AnalyticsConfiguration[];\n}\n\nexport namespace ListBucketAnalyticsConfigurationsOutput {\n export const filterSensitiveLog = (obj: ListBucketAnalyticsConfigurationsOutput): any => ({\n ...obj,\n ...(obj.AnalyticsConfigurationList && {\n AnalyticsConfigurationList: obj.AnalyticsConfigurationList.map((item) =>\n AnalyticsConfiguration.filterSensitiveLog(item)\n ),\n }),\n });\n}\n\nexport interface ListBucketAnalyticsConfigurationsRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

The ContinuationToken that represents a placeholder from where this request should\n * begin.

\n */\n ContinuationToken?: string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace ListBucketAnalyticsConfigurationsRequest {\n export const filterSensitiveLog = (obj: ListBucketAnalyticsConfigurationsRequest): any => ({\n ...obj,\n });\n}\n\nexport interface ListBucketIntelligentTieringConfigurationsOutput {\n /**\n *

Indicates whether the returned list of analytics configurations is complete. A value of\n * true indicates that the list is not complete and the NextContinuationToken will be provided\n * for a subsequent request.

\n */\n IsTruncated?: boolean;\n\n /**\n *

The ContinuationToken that represents a placeholder from where this request should\n * begin.

\n */\n ContinuationToken?: string;\n\n /**\n *

The marker used to continue this inventory configuration listing. Use the\n * NextContinuationToken from this response to continue the listing in a\n * subsequent request. The continuation token is an opaque value that Amazon S3 understands.

\n */\n NextContinuationToken?: string;\n\n /**\n *

The list of S3 Intelligent-Tiering configurations for a bucket.

\n */\n IntelligentTieringConfigurationList?: IntelligentTieringConfiguration[];\n}\n\nexport namespace ListBucketIntelligentTieringConfigurationsOutput {\n export const filterSensitiveLog = (obj: ListBucketIntelligentTieringConfigurationsOutput): any => ({\n ...obj,\n });\n}\n\nexport interface ListBucketIntelligentTieringConfigurationsRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

The ContinuationToken that represents a placeholder from where this request should\n * begin.

\n */\n ContinuationToken?: string;\n}\n\nexport namespace ListBucketIntelligentTieringConfigurationsRequest {\n export const filterSensitiveLog = (obj: ListBucketIntelligentTieringConfigurationsRequest): any => ({\n ...obj,\n });\n}\n\nexport interface ListBucketInventoryConfigurationsOutput {\n /**\n *

If sent in the request, the marker that is used as a starting point for this inventory\n * configuration list response.

\n */\n ContinuationToken?: string;\n\n /**\n *

The list of inventory configurations for a bucket.

\n */\n InventoryConfigurationList?: InventoryConfiguration[];\n\n /**\n *

Tells whether the returned list of inventory configurations is complete. A value of true\n * indicates that the list is not complete and the NextContinuationToken is provided for a\n * subsequent request.

\n */\n IsTruncated?: boolean;\n\n /**\n *

The marker used to continue this inventory configuration listing. Use the\n * NextContinuationToken from this response to continue the listing in a\n * subsequent request. The continuation token is an opaque value that Amazon S3 understands.

\n */\n NextContinuationToken?: string;\n}\n\nexport namespace ListBucketInventoryConfigurationsOutput {\n export const filterSensitiveLog = (obj: ListBucketInventoryConfigurationsOutput): any => ({\n ...obj,\n ...(obj.InventoryConfigurationList && {\n InventoryConfigurationList: obj.InventoryConfigurationList.map((item) =>\n InventoryConfiguration.filterSensitiveLog(item)\n ),\n }),\n });\n}\n\nexport interface ListBucketInventoryConfigurationsRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

The marker used to continue an inventory configuration listing that has been truncated.\n * Use the NextContinuationToken from a previously truncated list response to continue the\n * listing. The continuation token is an opaque value that Amazon S3 understands.

\n */\n ContinuationToken?: string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace ListBucketInventoryConfigurationsRequest {\n export const filterSensitiveLog = (obj: ListBucketInventoryConfigurationsRequest): any => ({\n ...obj,\n });\n}\n\nexport interface ListBucketMetricsConfigurationsOutput {\n /**\n *

Indicates whether the returned list of metrics configurations is complete. A value of\n * true indicates that the list is not complete and the NextContinuationToken will be provided\n * for a subsequent request.

\n */\n IsTruncated?: boolean;\n\n /**\n *

The marker that is used as a starting point for this metrics configuration list\n * response. This value is present if it was sent in the request.

\n */\n ContinuationToken?: string;\n\n /**\n *

The marker used to continue a metrics configuration listing that has been truncated. Use\n * the NextContinuationToken from a previously truncated list response to\n * continue the listing. The continuation token is an opaque value that Amazon S3\n * understands.

\n */\n NextContinuationToken?: string;\n\n /**\n *

The list of metrics configurations for a bucket.

\n */\n MetricsConfigurationList?: MetricsConfiguration[];\n}\n\nexport namespace ListBucketMetricsConfigurationsOutput {\n export const filterSensitiveLog = (obj: ListBucketMetricsConfigurationsOutput): any => ({\n ...obj,\n ...(obj.MetricsConfigurationList && {\n MetricsConfigurationList: obj.MetricsConfigurationList.map((item) =>\n MetricsConfiguration.filterSensitiveLog(item)\n ),\n }),\n });\n}\n\nexport interface ListBucketMetricsConfigurationsRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

The marker that is used to continue a metrics configuration listing that has been\n * truncated. Use the NextContinuationToken from a previously truncated list response to\n * continue the listing. The continuation token is an opaque value that Amazon S3\n * understands.

\n */\n ContinuationToken?: string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace ListBucketMetricsConfigurationsRequest {\n export const filterSensitiveLog = (obj: ListBucketMetricsConfigurationsRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

In terms of implementation, a Bucket is a resource. An Amazon S3 bucket name is globally\n * unique, and the namespace is shared by all AWS accounts.

\n */\nexport interface Bucket {\n /**\n *

The name of the bucket.

\n */\n Name?: string;\n\n /**\n *

Date the bucket was created. This date can change when making changes to your bucket, such as editing its bucket policy.

\n */\n CreationDate?: Date;\n}\n\nexport namespace Bucket {\n export const filterSensitiveLog = (obj: Bucket): any => ({\n ...obj,\n });\n}\n\nexport interface ListBucketsOutput {\n /**\n *

The list of buckets owned by the requestor.

\n */\n Buckets?: Bucket[];\n\n /**\n *

The owner of the buckets listed.

\n */\n Owner?: Owner;\n}\n\nexport namespace ListBucketsOutput {\n export const filterSensitiveLog = (obj: ListBucketsOutput): any => ({\n ...obj,\n });\n}\n\n/**\n *

Container for all (if there are any) keys between Prefix and the next occurrence of the\n * string specified by a delimiter. CommonPrefixes lists keys that act like subdirectories in\n * the directory specified by Prefix. For example, if the prefix is notes/ and the delimiter\n * is a slash (/) as in notes/summer/july, the common prefix is notes/summer/.

\n */\nexport interface CommonPrefix {\n /**\n *

Container for the specified common prefix.

\n */\n Prefix?: string;\n}\n\nexport namespace CommonPrefix {\n export const filterSensitiveLog = (obj: CommonPrefix): any => ({\n ...obj,\n });\n}\n\nexport type EncodingType = \"url\";\n\n/**\n *

Container element that identifies who initiated the multipart upload.

\n */\nexport interface Initiator {\n /**\n *

If the principal is an AWS account, it provides the Canonical User ID. If the principal\n * is an IAM User, it provides a user ARN value.

\n */\n ID?: string;\n\n /**\n *

Name of the Principal.

\n */\n DisplayName?: string;\n}\n\nexport namespace Initiator {\n export const filterSensitiveLog = (obj: Initiator): any => ({\n ...obj,\n });\n}\n\n/**\n *

Container for the MultipartUpload for the Amazon S3 object.

\n */\nexport interface MultipartUpload {\n /**\n *

Upload ID that identifies the multipart upload.

\n */\n UploadId?: string;\n\n /**\n *

Key of the object for which the multipart upload was initiated.

\n */\n Key?: string;\n\n /**\n *

Date and time at which the multipart upload was initiated.

\n */\n Initiated?: Date;\n\n /**\n *

The class of storage used to store the object.

\n */\n StorageClass?: StorageClass | string;\n\n /**\n *

Specifies the owner of the object that is part of the multipart upload.

\n */\n Owner?: Owner;\n\n /**\n *

Identifies who initiated the multipart upload.

\n */\n Initiator?: Initiator;\n}\n\nexport namespace MultipartUpload {\n export const filterSensitiveLog = (obj: MultipartUpload): any => ({\n ...obj,\n });\n}\n\nexport interface ListMultipartUploadsOutput {\n /**\n *

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

\n */\n Bucket?: string;\n\n /**\n *

The key at or after which the listing began.

\n */\n KeyMarker?: string;\n\n /**\n *

Upload ID after which listing began.

\n */\n UploadIdMarker?: string;\n\n /**\n *

When a list is truncated, this element specifies the value that should be used for the\n * key-marker request parameter in a subsequent request.

\n */\n NextKeyMarker?: string;\n\n /**\n *

When a prefix is provided in the request, this field contains the specified prefix. The\n * result contains only keys starting with the specified prefix.

\n */\n Prefix?: string;\n\n /**\n *

Contains the delimiter you specified in the request. If you don't specify a delimiter in\n * your request, this element is absent from the response.

\n */\n Delimiter?: string;\n\n /**\n *

When a list is truncated, this element specifies the value that should be used for the\n * upload-id-marker request parameter in a subsequent request.

\n */\n NextUploadIdMarker?: string;\n\n /**\n *

Maximum number of multipart uploads that could have been included in the\n * response.

\n */\n MaxUploads?: number;\n\n /**\n *

Indicates whether the returned list of multipart uploads is truncated. A value of true\n * indicates that the list was truncated. The list can be truncated if the number of multipart\n * uploads exceeds the limit allowed or specified by max uploads.

\n */\n IsTruncated?: boolean;\n\n /**\n *

Container for elements related to a particular multipart upload. A response can contain\n * zero or more Upload elements.

\n */\n Uploads?: MultipartUpload[];\n\n /**\n *

If you specify a delimiter in the request, then the result returns each distinct key\n * prefix containing the delimiter in a CommonPrefixes element. The distinct key\n * prefixes are returned in the Prefix child element.

\n */\n CommonPrefixes?: CommonPrefix[];\n\n /**\n *

Encoding type used by Amazon S3 to encode object keys in the response.

\n *

If you specify encoding-type request parameter, Amazon S3 includes this element\n * in the response, and returns encoded key name values in the following response\n * elements:

\n *\n *

\n * Delimiter, KeyMarker, Prefix,\n * NextKeyMarker, Key.

\n */\n EncodingType?: EncodingType | string;\n}\n\nexport namespace ListMultipartUploadsOutput {\n export const filterSensitiveLog = (obj: ListMultipartUploadsOutput): any => ({\n ...obj,\n });\n}\n\nexport interface ListMultipartUploadsRequest {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

Character you use to group keys.

\n *

All keys that contain the same string between the prefix, if specified, and the first\n * occurrence of the delimiter after the prefix are grouped under a single result element,\n * CommonPrefixes. If you don't specify the prefix parameter, then the\n * substring starts at the beginning of the key. The keys that are grouped under\n * CommonPrefixes result element are not returned elsewhere in the\n * response.

\n */\n Delimiter?: string;\n\n /**\n *

Requests Amazon S3 to encode the object keys in the response and specifies the encoding\n * method to use. An object key may contain any Unicode character; however, XML 1.0 parser\n * cannot parse some characters, such as characters with an ASCII value from 0 to 10. For\n * characters that are not supported in XML 1.0, you can add this parameter to request that\n * Amazon S3 encode the keys in the response.

\n */\n EncodingType?: EncodingType | string;\n\n /**\n *

Together with upload-id-marker, this parameter specifies the multipart upload after\n * which listing should begin.

\n *

If upload-id-marker is not specified, only the keys lexicographically\n * greater than the specified key-marker will be included in the list.

\n *\n *

If upload-id-marker is specified, any multipart uploads for a key equal to\n * the key-marker might also be included, provided those multipart uploads have\n * upload IDs lexicographically greater than the specified\n * upload-id-marker.

\n */\n KeyMarker?: string;\n\n /**\n *

Sets the maximum number of multipart uploads, from 1 to 1,000, to return in the response\n * body. 1,000 is the maximum number of uploads that can be returned in a response.

\n */\n MaxUploads?: number;\n\n /**\n *

Lists in-progress uploads only for those keys that begin with the specified prefix. You\n * can use prefixes to separate a bucket into different grouping of keys. (You can think of\n * using prefix to make groups in the same way you'd use a folder in a file system.)

\n */\n Prefix?: string;\n\n /**\n *

Together with key-marker, specifies the multipart upload after which listing should\n * begin. If key-marker is not specified, the upload-id-marker parameter is ignored.\n * Otherwise, any multipart uploads for a key equal to the key-marker might be included in the\n * list only if they have an upload ID lexicographically greater than the specified\n * upload-id-marker.

\n */\n UploadIdMarker?: string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace ListMultipartUploadsRequest {\n export const filterSensitiveLog = (obj: ListMultipartUploadsRequest): any => ({\n ...obj,\n });\n}\n\nexport type ObjectStorageClass =\n | \"DEEP_ARCHIVE\"\n | \"GLACIER\"\n | \"INTELLIGENT_TIERING\"\n | \"ONEZONE_IA\"\n | \"OUTPOSTS\"\n | \"REDUCED_REDUNDANCY\"\n | \"STANDARD\"\n | \"STANDARD_IA\";\n\n/**\n *

An object consists of data and its descriptive metadata.

\n */\nexport interface _Object {\n /**\n *

The name that you assign to an object. You use the object key to retrieve the\n * object.

\n */\n Key?: string;\n\n /**\n *

The date the Object was Last Modified

\n */\n LastModified?: Date;\n\n /**\n *

The entity tag is a hash of the object. The ETag reflects changes only to the contents\n * of an object, not its metadata. The ETag may or may not be an MD5 digest of the object\n * data. Whether or not it is depends on how the object was created and how it is encrypted as\n * described below:

\n *
    \n *
  • \n *

    Objects created by the PUT Object, POST Object, or Copy operation, or through the\n * AWS Management Console, and are encrypted by SSE-S3 or plaintext, have ETags that are\n * an MD5 digest of their object data.

    \n *
  • \n *
  • \n *

    Objects created by the PUT Object, POST Object, or Copy operation, or through the\n * AWS Management Console, and are encrypted by SSE-C or SSE-KMS, have ETags that are\n * not an MD5 digest of their object data.

    \n *
  • \n *
  • \n *

    If an object is created by either the Multipart Upload or Part Copy operation, the\n * ETag is not an MD5 digest, regardless of the method of encryption.

    \n *
  • \n *
\n */\n ETag?: string;\n\n /**\n *

Size in bytes of the object

\n */\n Size?: number;\n\n /**\n *

The class of storage used to store the object.

\n */\n StorageClass?: ObjectStorageClass | string;\n\n /**\n *

The owner of the object

\n */\n Owner?: Owner;\n}\n\nexport namespace _Object {\n export const filterSensitiveLog = (obj: _Object): any => ({\n ...obj,\n });\n}\n\nexport interface ListObjectsOutput {\n /**\n *

A flag that indicates whether Amazon S3 returned all of the results that satisfied the search\n * criteria.

\n */\n IsTruncated?: boolean;\n\n /**\n *

Indicates where in the bucket listing begins. Marker is included in the response if it\n * was sent with the request.

\n */\n Marker?: string;\n\n /**\n *

When response is truncated (the IsTruncated element value in the response is true), you\n * can use the key name in this field as marker in the subsequent request to get next set of\n * objects. Amazon S3 lists objects in alphabetical order Note: This element is returned only if\n * you have delimiter request parameter specified. If response does not include the NextMarker\n * and it is truncated, you can use the value of the last Key in the response as the marker in\n * the subsequent request to get the next set of object keys.

\n */\n NextMarker?: string;\n\n /**\n *

Metadata about each object returned.

\n */\n Contents?: _Object[];\n\n /**\n *

The bucket name.

\n */\n Name?: string;\n\n /**\n *

Keys that begin with the indicated prefix.

\n */\n Prefix?: string;\n\n /**\n *

Causes keys that contain the same string between the prefix and the first occurrence of\n * the delimiter to be rolled up into a single result element in the\n * CommonPrefixes collection. These rolled-up keys are not returned elsewhere\n * in the response. Each rolled-up result counts as only one return against the\n * MaxKeys value.

\n */\n Delimiter?: string;\n\n /**\n *

The maximum number of keys returned in the response body.

\n */\n MaxKeys?: number;\n\n /**\n *

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.

\n */\n CommonPrefixes?: CommonPrefix[];\n\n /**\n *

Encoding type used by Amazon S3 to encode object keys in the response.

\n */\n EncodingType?: EncodingType | string;\n}\n\nexport namespace ListObjectsOutput {\n export const filterSensitiveLog = (obj: ListObjectsOutput): any => ({\n ...obj,\n });\n}\n\nexport interface ListObjectsRequest {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

A delimiter is a character you use to group keys.

\n */\n Delimiter?: string;\n\n /**\n *

Requests Amazon S3 to encode the object keys in the response and specifies the encoding\n * method to use. An object key may contain any Unicode character; however, XML 1.0 parser\n * cannot parse some characters, such as characters with an ASCII value from 0 to 10. For\n * characters that are not supported in XML 1.0, you can add this parameter to request that\n * Amazon S3 encode the keys in the response.

\n */\n EncodingType?: EncodingType | string;\n\n /**\n *

Specifies the key to start with when listing objects in a bucket.

\n */\n Marker?: string;\n\n /**\n *

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 *

\n */\n MaxKeys?: number;\n\n /**\n *

Limits the response to keys that begin with the specified prefix.

\n */\n Prefix?: string;\n\n /**\n *

Confirms that the requester knows that she or he will be charged for the list objects\n * request. Bucket owners need not specify this parameter in their requests.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace ListObjectsRequest {\n export const filterSensitiveLog = (obj: ListObjectsRequest): any => ({\n ...obj,\n });\n}\n\nexport interface ListObjectsV2Output {\n /**\n *

Set to false if all of the results were returned. Set to true if more keys are available\n * to return. If the number of results exceeds that specified by MaxKeys, all of the results\n * might not be returned.

\n */\n IsTruncated?: boolean;\n\n /**\n *

Metadata about each object returned.

\n */\n Contents?: _Object[];\n\n /**\n *

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.

\n */\n Name?: string;\n\n /**\n *

Keys that begin with the indicated prefix.

\n */\n Prefix?: string;\n\n /**\n *

Causes keys that contain the same string between the prefix and the first occurrence of\n * the delimiter to be rolled up into a single result element in the CommonPrefixes\n * collection. These rolled-up keys are not returned elsewhere in the response. Each rolled-up\n * result counts as only one return against the MaxKeys value.

\n */\n Delimiter?: string;\n\n /**\n *

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.

\n */\n MaxKeys?: number;\n\n /**\n *

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.

\n */\n CommonPrefixes?: CommonPrefix[];\n\n /**\n *

Encoding type used by Amazon S3 to encode object key names in the XML response.

\n *\n *

If you specify the encoding-type request parameter, Amazon S3 includes this element in the\n * response, and returns encoded key name values in the following response elements:

\n *\n *

\n * Delimiter, Prefix, Key, and StartAfter.

\n */\n EncodingType?: EncodingType | string;\n\n /**\n *

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

\n */\n KeyCount?: number;\n\n /**\n *

If ContinuationToken was sent with the request, it is included in the response.

\n */\n ContinuationToken?: string;\n\n /**\n *

\n * NextContinuationToken is sent when isTruncated is true, which\n * means there are more keys in the bucket that can be listed. The next list requests to Amazon S3\n * can be continued with this NextContinuationToken.\n * NextContinuationToken is obfuscated and is not a real key

\n */\n NextContinuationToken?: string;\n\n /**\n *

If StartAfter was sent with the request, it is included in the response.

\n */\n StartAfter?: string;\n}\n\nexport namespace ListObjectsV2Output {\n export const filterSensitiveLog = (obj: ListObjectsV2Output): any => ({\n ...obj,\n });\n}\n\nexport interface ListObjectsV2Request {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

A delimiter is a character you use to group keys.

\n */\n Delimiter?: string;\n\n /**\n *

Encoding type used by Amazon S3 to encode object keys in the response.

\n */\n EncodingType?: EncodingType | string;\n\n /**\n *

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.

\n */\n MaxKeys?: number;\n\n /**\n *

Limits the response to keys that begin with the specified prefix.

\n */\n Prefix?: string;\n\n /**\n *

ContinuationToken indicates Amazon S3 that the list is being continued on this bucket with a\n * token. ContinuationToken is obfuscated and is not a real key.

\n */\n ContinuationToken?: string;\n\n /**\n *

The owner field is not present in listV2 by default, if you want to return owner field\n * with each key in the result then set the fetch owner field to true.

\n */\n FetchOwner?: boolean;\n\n /**\n *

StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts listing after this\n * specified key. StartAfter can be any key in the bucket.

\n */\n StartAfter?: string;\n\n /**\n *

Confirms that the requester knows that she or he will be charged for the list objects\n * request in V2 style. Bucket owners need not specify this parameter in their\n * requests.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace ListObjectsV2Request {\n export const filterSensitiveLog = (obj: ListObjectsV2Request): any => ({\n ...obj,\n });\n}\n\n/**\n *

Information about the delete marker.

\n */\nexport interface DeleteMarkerEntry {\n /**\n *

The account that created the delete marker.>

\n */\n Owner?: Owner;\n\n /**\n *

The object key.

\n */\n Key?: string;\n\n /**\n *

Version ID of an object.

\n */\n VersionId?: string;\n\n /**\n *

Specifies whether the object is (true) or is not (false) the latest version of an\n * object.

\n */\n IsLatest?: boolean;\n\n /**\n *

Date and time the object was last modified.

\n */\n LastModified?: Date;\n}\n\nexport namespace DeleteMarkerEntry {\n export const filterSensitiveLog = (obj: DeleteMarkerEntry): any => ({\n ...obj,\n });\n}\n\nexport type ObjectVersionStorageClass = \"STANDARD\";\n\n/**\n *

The version of an object.

\n */\nexport interface ObjectVersion {\n /**\n *

The entity tag is an MD5 hash of that version of the object.

\n */\n ETag?: string;\n\n /**\n *

Size in bytes of the object.

\n */\n Size?: number;\n\n /**\n *

The class of storage used to store the object.

\n */\n StorageClass?: ObjectVersionStorageClass | string;\n\n /**\n *

The object key.

\n */\n Key?: string;\n\n /**\n *

Version ID of an object.

\n */\n VersionId?: string;\n\n /**\n *

Specifies whether the object is (true) or is not (false) the latest version of an\n * object.

\n */\n IsLatest?: boolean;\n\n /**\n *

Date and time the object was last modified.

\n */\n LastModified?: Date;\n\n /**\n *

Specifies the owner of the object.

\n */\n Owner?: Owner;\n}\n\nexport namespace ObjectVersion {\n export const filterSensitiveLog = (obj: ObjectVersion): any => ({\n ...obj,\n });\n}\n\nexport interface ListObjectVersionsOutput {\n /**\n *

A flag that indicates whether Amazon S3 returned all of the results that satisfied the search\n * criteria. If your results were truncated, you can make a follow-up paginated request using\n * the NextKeyMarker and NextVersionIdMarker response parameters as a starting place in\n * another request to return the rest of the results.

\n */\n IsTruncated?: boolean;\n\n /**\n *

Marks the last key returned in a truncated response.

\n */\n KeyMarker?: string;\n\n /**\n *

Marks the last version of the key returned in a truncated response.

\n */\n VersionIdMarker?: string;\n\n /**\n *

When the number of responses exceeds the value of MaxKeys,\n * NextKeyMarker specifies the first key not returned that satisfies the\n * search criteria. Use this value for the key-marker request parameter in a subsequent\n * request.

\n */\n NextKeyMarker?: string;\n\n /**\n *

When the number of responses exceeds the value of MaxKeys,\n * NextVersionIdMarker specifies the first object version not returned that\n * satisfies the search criteria. Use this value for the version-id-marker request parameter\n * in a subsequent request.

\n */\n NextVersionIdMarker?: string;\n\n /**\n *

Container for version information.

\n */\n Versions?: ObjectVersion[];\n\n /**\n *

Container for an object that is a delete marker.

\n */\n DeleteMarkers?: DeleteMarkerEntry[];\n\n /**\n *

The bucket name.

\n */\n Name?: string;\n\n /**\n *

Selects objects that start with the value supplied by this parameter.

\n */\n Prefix?: string;\n\n /**\n *

The delimiter grouping the included keys. A delimiter is a character that you specify to\n * group keys. All keys that contain the same string between the prefix and the first\n * occurrence of the delimiter are grouped under a single result element in\n * CommonPrefixes. These groups are counted as one result against the max-keys\n * limitation. These keys are not returned elsewhere in the response.

\n */\n Delimiter?: string;\n\n /**\n *

Specifies the maximum number of objects to return.

\n */\n MaxKeys?: number;\n\n /**\n *

All of the keys rolled up into a common prefix count as a single return when calculating\n * the number of returns.

\n */\n CommonPrefixes?: CommonPrefix[];\n\n /**\n *

Encoding type used by Amazon S3 to encode object key names in the XML response.

\n *\n *

If you specify encoding-type request parameter, Amazon S3 includes this element in the\n * response, and returns encoded key name values in the following response elements:

\n *\n *

\n * KeyMarker, NextKeyMarker, Prefix, Key, and Delimiter.

\n */\n EncodingType?: EncodingType | string;\n}\n\nexport namespace ListObjectVersionsOutput {\n export const filterSensitiveLog = (obj: ListObjectVersionsOutput): any => ({\n ...obj,\n });\n}\n\nexport interface ListObjectVersionsRequest {\n /**\n *

The bucket name that contains the objects.

\n */\n Bucket: string | undefined;\n\n /**\n *

A delimiter is a character that you specify to group keys. All keys that contain the\n * same string between the prefix and the first occurrence of the delimiter are\n * grouped under a single result element in CommonPrefixes. These groups are counted as one\n * result against the max-keys limitation. These keys are not returned elsewhere in the\n * response.

\n */\n Delimiter?: string;\n\n /**\n *

Requests Amazon S3 to encode the object keys in the response and specifies the encoding\n * method to use. An object key may contain any Unicode character; however, XML 1.0 parser\n * cannot parse some characters, such as characters with an ASCII value from 0 to 10. For\n * characters that are not supported in XML 1.0, you can add this parameter to request that\n * Amazon S3 encode the keys in the response.

\n */\n EncodingType?: EncodingType | string;\n\n /**\n *

Specifies the key to start with when listing objects in a bucket.

\n */\n KeyMarker?: string;\n\n /**\n *

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.

\n */\n MaxKeys?: number;\n\n /**\n *

Use this parameter to select only those keys that begin with the specified prefix. You\n * can use prefixes to separate a bucket into different groupings of keys. (You can think of\n * using prefix to make groups in the same way you'd use a folder in a file system.) You can\n * use prefix with delimiter to roll up numerous objects into a single result under\n * CommonPrefixes.

\n */\n Prefix?: string;\n\n /**\n *

Specifies the object version you want to start listing from.

\n */\n VersionIdMarker?: string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace ListObjectVersionsRequest {\n export const filterSensitiveLog = (obj: ListObjectVersionsRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

Container for elements related to a part.

\n */\nexport interface Part {\n /**\n *

Part number identifying the part. This is a positive integer between 1 and\n * 10,000.

\n */\n PartNumber?: number;\n\n /**\n *

Date and time at which the part was uploaded.

\n */\n LastModified?: Date;\n\n /**\n *

Entity tag returned when the part was uploaded.

\n */\n ETag?: string;\n\n /**\n *

Size in bytes of the uploaded part data.

\n */\n Size?: number;\n}\n\nexport namespace Part {\n export const filterSensitiveLog = (obj: Part): any => ({\n ...obj,\n });\n}\n\nexport interface ListPartsOutput {\n /**\n *

If the bucket has a lifecycle rule configured with an action to abort incomplete\n * multipart uploads and the prefix in the lifecycle rule matches the object name in the\n * request, then the response includes this header indicating when the initiated multipart\n * upload will become eligible for abort operation. For more information, see Aborting\n * Incomplete Multipart Uploads Using a Bucket Lifecycle Policy.

\n *\n *

The response will also include the x-amz-abort-rule-id header that will\n * provide the ID of the lifecycle configuration rule that defines this action.

\n */\n AbortDate?: Date;\n\n /**\n *

This header is returned along with the x-amz-abort-date header. It\n * identifies applicable lifecycle configuration rule that defines the action to abort\n * incomplete multipart uploads.

\n */\n AbortRuleId?: string;\n\n /**\n *

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

\n */\n Bucket?: string;\n\n /**\n *

Object key for which the multipart upload was initiated.

\n */\n Key?: string;\n\n /**\n *

Upload ID identifying the multipart upload whose parts are being listed.

\n */\n UploadId?: string;\n\n /**\n *

When a list is truncated, this element specifies the last part in the list, as well as\n * the value to use for the part-number-marker request parameter in a subsequent\n * request.

\n */\n PartNumberMarker?: string;\n\n /**\n *

When a list is truncated, this element specifies the last part in the list, as well as\n * the value to use for the part-number-marker request parameter in a subsequent\n * request.

\n */\n NextPartNumberMarker?: string;\n\n /**\n *

Maximum number of parts that were allowed in the response.

\n */\n MaxParts?: number;\n\n /**\n *

Indicates whether the returned list of parts is truncated. A true value indicates that\n * the list was truncated. A list can be truncated if the number of parts exceeds the limit\n * returned in the MaxParts element.

\n */\n IsTruncated?: boolean;\n\n /**\n *

Container for elements related to a particular part. A response can contain zero or\n * more Part elements.

\n */\n Parts?: Part[];\n\n /**\n *

Container element that identifies who initiated the multipart upload. If the initiator\n * is an AWS account, this element provides the same information as the Owner\n * element. If the initiator is an IAM User, this element provides the user ARN and display\n * name.

\n */\n Initiator?: Initiator;\n\n /**\n *

Container element that identifies the object owner, after the object is created. If\n * multipart upload is initiated by an IAM user, this element provides the parent account ID\n * and display name.

\n */\n Owner?: Owner;\n\n /**\n *

Class of storage (STANDARD or REDUCED_REDUNDANCY) used to store the uploaded\n * object.

\n */\n StorageClass?: StorageClass | string;\n\n /**\n *

If present, indicates that the requester was successfully charged for the\n * request.

\n */\n RequestCharged?: RequestCharged | string;\n}\n\nexport namespace ListPartsOutput {\n export const filterSensitiveLog = (obj: ListPartsOutput): any => ({\n ...obj,\n });\n}\n\nexport interface ListPartsRequest {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

Object key for which the multipart upload was initiated.

\n */\n Key: string | undefined;\n\n /**\n *

Sets the maximum number of parts to return.

\n */\n MaxParts?: number;\n\n /**\n *

Specifies the part after which listing should begin. Only parts with higher part numbers\n * will be listed.

\n */\n PartNumberMarker?: string;\n\n /**\n *

Upload ID identifying the multipart upload whose parts are being listed.

\n */\n UploadId: string | undefined;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace ListPartsRequest {\n export const filterSensitiveLog = (obj: ListPartsRequest): any => ({\n ...obj,\n });\n}\n\nexport interface PutBucketAccelerateConfigurationRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

Container for setting the transfer acceleration state.

\n */\n AccelerateConfiguration: AccelerateConfiguration | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutBucketAccelerateConfigurationRequest {\n export const filterSensitiveLog = (obj: PutBucketAccelerateConfigurationRequest): any => ({\n ...obj,\n });\n}\n\nexport interface PutBucketAclRequest {\n /**\n *

The canned ACL to apply to the bucket.

\n */\n ACL?: BucketCannedACL | string;\n\n /**\n *

Contains the elements that set the ACL permissions for an object per grantee.

\n */\n AccessControlPolicy?: AccessControlPolicy;\n\n /**\n *

The bucket to which to apply the ACL.

\n */\n Bucket: string | undefined;\n\n /**\n *

The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message\n * integrity check to verify that the request body was not corrupted in transit. For more\n * information, go to RFC\n * 1864.\n *

\n *

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

\n */\n ContentMD5?: string;\n\n /**\n *

Allows grantee the read, write, read ACP, and write ACP permissions on the\n * bucket.

\n */\n GrantFullControl?: string;\n\n /**\n *

Allows grantee to list the objects in the bucket.

\n */\n GrantRead?: string;\n\n /**\n *

Allows grantee to read the bucket ACL.

\n */\n GrantReadACP?: string;\n\n /**\n *

Allows grantee to create, overwrite, and delete any object in the bucket.

\n */\n GrantWrite?: string;\n\n /**\n *

Allows grantee to write the ACL for the applicable bucket.

\n */\n GrantWriteACP?: string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutBucketAclRequest {\n export const filterSensitiveLog = (obj: PutBucketAclRequest): any => ({\n ...obj,\n });\n}\n\nexport interface PutBucketAnalyticsConfigurationRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

The ID that identifies the analytics configuration.

\n */\n Id: string | undefined;\n\n /**\n *

The configuration and any analyses for the analytics filter.

\n */\n AnalyticsConfiguration: AnalyticsConfiguration | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutBucketAnalyticsConfigurationRequest {\n export const filterSensitiveLog = (obj: PutBucketAnalyticsConfigurationRequest): any => ({\n ...obj,\n ...(obj.AnalyticsConfiguration && {\n AnalyticsConfiguration: AnalyticsConfiguration.filterSensitiveLog(obj.AnalyticsConfiguration),\n }),\n });\n}\n\n/**\n *

Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more\n * information, see Enabling\n * Cross-Origin Resource Sharing in the Amazon Simple Storage Service Developer\n * Guide.

\n */\nexport interface CORSConfiguration {\n /**\n *

A set of origins and methods (cross-origin access that you want to allow). You can add\n * up to 100 rules to the configuration.

\n */\n CORSRules: CORSRule[] | undefined;\n}\n\nexport namespace CORSConfiguration {\n export const filterSensitiveLog = (obj: CORSConfiguration): any => ({\n ...obj,\n });\n}\n\nexport interface PutBucketCorsRequest {\n /**\n *

Specifies the bucket impacted by the corsconfiguration.

\n */\n Bucket: string | undefined;\n\n /**\n *

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.

\n */\n CORSConfiguration: CORSConfiguration | undefined;\n\n /**\n *

The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message\n * integrity check to verify that the request body was not corrupted in transit. For more\n * information, go to RFC\n * 1864.\n *

\n *

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

\n */\n ContentMD5?: string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutBucketCorsRequest {\n export const filterSensitiveLog = (obj: PutBucketCorsRequest): any => ({\n ...obj,\n });\n}\n\nexport interface PutBucketEncryptionRequest {\n /**\n *

Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed\n * keys (SSE-S3) or customer master keys stored in AWS KMS (SSE-KMS). For information about\n * the Amazon S3 default encryption feature, see Amazon S3 Default Bucket Encryption\n * in the Amazon Simple Storage Service Developer Guide.

\n */\n Bucket: string | undefined;\n\n /**\n *

The base64-encoded 128-bit MD5 digest of the server-side encryption configuration.

\n *

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

\n */\n ContentMD5?: string;\n\n /**\n *

Specifies the default server-side-encryption configuration.

\n */\n ServerSideEncryptionConfiguration: ServerSideEncryptionConfiguration | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutBucketEncryptionRequest {\n export const filterSensitiveLog = (obj: PutBucketEncryptionRequest): any => ({\n ...obj,\n ...(obj.ServerSideEncryptionConfiguration && {\n ServerSideEncryptionConfiguration: ServerSideEncryptionConfiguration.filterSensitiveLog(\n obj.ServerSideEncryptionConfiguration\n ),\n }),\n });\n}\n\nexport interface PutBucketIntelligentTieringConfigurationRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

The ID used to identify the S3 Intelligent-Tiering configuration.

\n */\n Id: string | undefined;\n\n /**\n *

Container for S3 Intelligent-Tiering configuration.

\n */\n IntelligentTieringConfiguration: IntelligentTieringConfiguration | undefined;\n}\n\nexport namespace PutBucketIntelligentTieringConfigurationRequest {\n export const filterSensitiveLog = (obj: PutBucketIntelligentTieringConfigurationRequest): any => ({\n ...obj,\n });\n}\n\nexport interface PutBucketInventoryConfigurationRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

The ID used to identify the inventory configuration.

\n */\n Id: string | undefined;\n\n /**\n *

Specifies the inventory configuration.

\n */\n InventoryConfiguration: InventoryConfiguration | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutBucketInventoryConfigurationRequest {\n export const filterSensitiveLog = (obj: PutBucketInventoryConfigurationRequest): any => ({\n ...obj,\n ...(obj.InventoryConfiguration && {\n InventoryConfiguration: InventoryConfiguration.filterSensitiveLog(obj.InventoryConfiguration),\n }),\n });\n}\n\n/**\n *

Specifies the lifecycle configuration for objects in an Amazon S3 bucket. For more\n * information, see Object Lifecycle Management\n * in the Amazon Simple Storage Service Developer Guide.

\n */\nexport interface BucketLifecycleConfiguration {\n /**\n *

A lifecycle rule for individual objects in an Amazon S3 bucket.

\n */\n Rules: LifecycleRule[] | undefined;\n}\n\nexport namespace BucketLifecycleConfiguration {\n export const filterSensitiveLog = (obj: BucketLifecycleConfiguration): any => ({\n ...obj,\n ...(obj.Rules && { Rules: obj.Rules.map((item) => LifecycleRule.filterSensitiveLog(item)) }),\n });\n}\n\nexport interface PutBucketLifecycleConfigurationRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

Container for lifecycle rules. You can add as many as 1,000 rules.

\n */\n LifecycleConfiguration?: BucketLifecycleConfiguration;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutBucketLifecycleConfigurationRequest {\n export const filterSensitiveLog = (obj: PutBucketLifecycleConfigurationRequest): any => ({\n ...obj,\n ...(obj.LifecycleConfiguration && {\n LifecycleConfiguration: BucketLifecycleConfiguration.filterSensitiveLog(obj.LifecycleConfiguration),\n }),\n });\n}\n\n/**\n *

Container for logging status information.

\n */\nexport interface BucketLoggingStatus {\n /**\n *

Describes where logs are stored and the prefix that Amazon S3 assigns to all log object keys\n * for a bucket. For more information, see PUT Bucket logging in the\n * Amazon Simple Storage Service API Reference.

\n */\n LoggingEnabled?: LoggingEnabled;\n}\n\nexport namespace BucketLoggingStatus {\n export const filterSensitiveLog = (obj: BucketLoggingStatus): any => ({\n ...obj,\n });\n}\n\nexport interface PutBucketLoggingRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

Container for logging status information.

\n */\n BucketLoggingStatus: BucketLoggingStatus | undefined;\n\n /**\n *

The MD5 hash of the PutBucketLogging request body.

\n *

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

\n */\n ContentMD5?: string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutBucketLoggingRequest {\n export const filterSensitiveLog = (obj: PutBucketLoggingRequest): any => ({\n ...obj,\n });\n}\n\nexport interface PutBucketMetricsConfigurationRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

The ID used to identify the metrics configuration.

\n */\n Id: string | undefined;\n\n /**\n *

Specifies the metrics configuration.

\n */\n MetricsConfiguration: MetricsConfiguration | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutBucketMetricsConfigurationRequest {\n export const filterSensitiveLog = (obj: PutBucketMetricsConfigurationRequest): any => ({\n ...obj,\n ...(obj.MetricsConfiguration && {\n MetricsConfiguration: MetricsConfiguration.filterSensitiveLog(obj.MetricsConfiguration),\n }),\n });\n}\n\nexport interface PutBucketNotificationConfigurationRequest {\n /**\n *

The name of the bucket.

\n */\n Bucket: string | undefined;\n\n /**\n *

A container for specifying the notification configuration of the bucket. If this element\n * is empty, notifications are turned off for the bucket.

\n */\n NotificationConfiguration: NotificationConfiguration | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutBucketNotificationConfigurationRequest {\n export const filterSensitiveLog = (obj: PutBucketNotificationConfigurationRequest): any => ({\n ...obj,\n });\n}\n\nexport interface PutBucketOwnershipControlsRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

The MD5 hash of the OwnershipControls request body.

\n *

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

\n */\n ContentMD5?: string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n\n /**\n *

The OwnershipControls (BucketOwnerPreferred or ObjectWriter) that you want\n * to apply to this Amazon S3 bucket.

\n */\n OwnershipControls: OwnershipControls | undefined;\n}\n\nexport namespace PutBucketOwnershipControlsRequest {\n export const filterSensitiveLog = (obj: PutBucketOwnershipControlsRequest): any => ({\n ...obj,\n });\n}\n\nexport interface PutBucketPolicyRequest {\n /**\n *

The name of the bucket.

\n */\n Bucket: string | undefined;\n\n /**\n *

The MD5 hash of the request body.

\n *

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

\n */\n ContentMD5?: string;\n\n /**\n *

Set this parameter to true to confirm that you want to remove your permissions to change\n * this bucket policy in the future.

\n */\n ConfirmRemoveSelfBucketAccess?: boolean;\n\n /**\n *

The bucket policy as a JSON document.

\n */\n Policy: string | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutBucketPolicyRequest {\n export const filterSensitiveLog = (obj: PutBucketPolicyRequest): any => ({\n ...obj,\n });\n}\n\nexport interface PutBucketReplicationRequest {\n /**\n *

The name of the bucket

\n */\n Bucket: string | undefined;\n\n /**\n *

The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message\n * integrity check to verify that the request body was not corrupted in transit. For more\n * information, see RFC 1864.

\n *

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

\n */\n ContentMD5?: string;\n\n /**\n *

A container for replication rules. You can add up to 1,000 rules. The maximum size of a\n * replication configuration is 2 MB.

\n */\n ReplicationConfiguration: ReplicationConfiguration | undefined;\n\n /**\n *

A token to allow Object Lock to be enabled for an existing bucket.

\n */\n Token?: string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutBucketReplicationRequest {\n export const filterSensitiveLog = (obj: PutBucketReplicationRequest): any => ({\n ...obj,\n ...(obj.ReplicationConfiguration && {\n ReplicationConfiguration: ReplicationConfiguration.filterSensitiveLog(obj.ReplicationConfiguration),\n }),\n });\n}\n\n/**\n *

Container for Payer.

\n */\nexport interface RequestPaymentConfiguration {\n /**\n *

Specifies who pays for the download and request fees.

\n */\n Payer: Payer | string | undefined;\n}\n\nexport namespace RequestPaymentConfiguration {\n export const filterSensitiveLog = (obj: RequestPaymentConfiguration): any => ({\n ...obj,\n });\n}\n\nexport interface PutBucketRequestPaymentRequest {\n /**\n *

The bucket name.

\n */\n Bucket: string | undefined;\n\n /**\n *

>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.

\n */\n ContentMD5?: string;\n\n /**\n *

Container for Payer.

\n */\n RequestPaymentConfiguration: RequestPaymentConfiguration | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutBucketRequestPaymentRequest {\n export const filterSensitiveLog = (obj: PutBucketRequestPaymentRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

Container for TagSet elements.

\n */\nexport interface Tagging {\n /**\n *

A collection for a set of tags

\n */\n TagSet: Tag[] | undefined;\n}\n\nexport namespace Tagging {\n export const filterSensitiveLog = (obj: Tagging): any => ({\n ...obj,\n });\n}\n\nexport interface PutBucketTaggingRequest {\n /**\n *

The bucket name.

\n */\n Bucket: string | undefined;\n\n /**\n *

The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message\n * integrity check to verify that the request body was not corrupted in transit. For more\n * information, see RFC 1864.

\n *

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

\n */\n ContentMD5?: string;\n\n /**\n *

Container for the TagSet and Tag elements.

\n */\n Tagging: Tagging | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutBucketTaggingRequest {\n export const filterSensitiveLog = (obj: PutBucketTaggingRequest): any => ({\n ...obj,\n });\n}\n\nexport type MFADelete = \"Disabled\" | \"Enabled\";\n\n/**\n *

Describes the versioning state of an Amazon S3 bucket. For more information, see PUT\n * Bucket versioning in the Amazon Simple Storage Service API Reference.

\n */\nexport interface VersioningConfiguration {\n /**\n *

Specifies whether MFA delete is enabled in the bucket versioning configuration. This\n * element is only returned if the bucket has been configured with MFA delete. If the bucket\n * has never been so configured, this element is not returned.

\n */\n MFADelete?: MFADelete | string;\n\n /**\n *

The versioning state of the bucket.

\n */\n Status?: BucketVersioningStatus | string;\n}\n\nexport namespace VersioningConfiguration {\n export const filterSensitiveLog = (obj: VersioningConfiguration): any => ({\n ...obj,\n });\n}\n\nexport interface PutBucketVersioningRequest {\n /**\n *

The bucket name.

\n */\n Bucket: string | undefined;\n\n /**\n *

>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.

\n */\n ContentMD5?: string;\n\n /**\n *

The concatenation of the authentication device's serial number, a space, and the value\n * that is displayed on your authentication device.

\n */\n MFA?: string;\n\n /**\n *

Container for setting the versioning state.

\n */\n VersioningConfiguration: VersioningConfiguration | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutBucketVersioningRequest {\n export const filterSensitiveLog = (obj: PutBucketVersioningRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

Specifies website configuration parameters for an Amazon S3 bucket.

\n */\nexport interface WebsiteConfiguration {\n /**\n *

The name of the error document for the website.

\n */\n ErrorDocument?: ErrorDocument;\n\n /**\n *

The name of the index document for the website.

\n */\n IndexDocument?: IndexDocument;\n\n /**\n *

The redirect behavior for every request to this bucket's website endpoint.

\n * \n *

If you specify this property, you can't specify any other property.

\n *
\n */\n RedirectAllRequestsTo?: RedirectAllRequestsTo;\n\n /**\n *

Rules that define when a redirect is applied and the redirect behavior.

\n */\n RoutingRules?: RoutingRule[];\n}\n\nexport namespace WebsiteConfiguration {\n export const filterSensitiveLog = (obj: WebsiteConfiguration): any => ({\n ...obj,\n });\n}\n\nexport interface PutBucketWebsiteRequest {\n /**\n *

The bucket name.

\n */\n Bucket: string | undefined;\n\n /**\n *

The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message\n * integrity check to verify that the request body was not corrupted in transit. For more\n * information, see RFC 1864.

\n *

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

\n */\n ContentMD5?: string;\n\n /**\n *

Container for the request.

\n */\n WebsiteConfiguration: WebsiteConfiguration | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutBucketWebsiteRequest {\n export const filterSensitiveLog = (obj: PutBucketWebsiteRequest): any => ({\n ...obj,\n });\n}\n\nexport interface PutObjectOutput {\n /**\n *

If the expiration is configured for the object (see PutBucketLifecycleConfiguration), the response includes this header. It\n * includes the expiry-date and rule-id key-value pairs that provide information about object\n * expiration. The value of the rule-id is URL encoded.

\n */\n Expiration?: string;\n\n /**\n *

Entity tag for the uploaded object.

\n */\n ETag?: string;\n\n /**\n *

If you specified server-side encryption either with an AWS KMS customer master key (CMK)\n * or Amazon S3-managed encryption key in your PUT request, the response includes this header. It\n * confirms the encryption algorithm that Amazon S3 used to encrypt the object.

\n */\n ServerSideEncryption?: ServerSideEncryption | string;\n\n /**\n *

Version of the object.

\n */\n VersionId?: string;\n\n /**\n *

If server-side encryption with a customer-provided encryption key was requested, the\n * response will include this header confirming the encryption algorithm used.

\n */\n SSECustomerAlgorithm?: string;\n\n /**\n *

If server-side encryption with a customer-provided encryption key was requested, the\n * response will include this header to provide round-trip message integrity verification of\n * the customer-provided encryption key.

\n */\n SSECustomerKeyMD5?: string;\n\n /**\n *

If x-amz-server-side-encryption is present and has the value of\n * aws:kms, this header specifies the ID of the AWS Key Management Service\n * (AWS KMS) symmetric customer managed customer master key (CMK) that was used for the\n * object.

\n */\n SSEKMSKeyId?: string;\n\n /**\n *

If present, specifies the AWS KMS Encryption Context to use for object encryption. The\n * value of this header is a base64-encoded UTF-8 string holding JSON with the encryption\n * context key-value pairs.

\n */\n SSEKMSEncryptionContext?: string;\n\n /**\n *

Indicates whether the uploaded object uses an S3 Bucket Key for server-side encryption with AWS KMS (SSE-KMS).

\n */\n BucketKeyEnabled?: boolean;\n\n /**\n *

If present, indicates that the requester was successfully charged for the\n * request.

\n */\n RequestCharged?: RequestCharged | string;\n}\n\nexport namespace PutObjectOutput {\n export const filterSensitiveLog = (obj: PutObjectOutput): any => ({\n ...obj,\n ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),\n ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }),\n });\n}\n\nexport interface PutObjectRequest {\n /**\n *

The canned ACL to apply to the object. For more information, see Canned\n * ACL.

\n *

This action is not supported by Amazon S3 on Outposts.

\n */\n ACL?: ObjectCannedACL | string;\n\n /**\n *

Object data.

\n */\n Body?: Readable | ReadableStream | Blob;\n\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

Can be used to specify caching behavior along the request/reply chain. For more\n * information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

\n */\n CacheControl?: string;\n\n /**\n *

Specifies presentational information for the object. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1.

\n */\n ContentDisposition?: string;\n\n /**\n *

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. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11.

\n */\n ContentEncoding?: string;\n\n /**\n *

The language the content is in.

\n */\n ContentLanguage?: string;\n\n /**\n *

Size of the body in bytes. This parameter is useful when the size of the body cannot be\n * determined automatically. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13.

\n */\n ContentLength?: number;\n\n /**\n *

The base64-encoded 128-bit MD5 digest of the message (without the headers) according to\n * RFC 1864. This header can be used as a message integrity check to verify that the data is\n * the same data that was originally sent. Although it is optional, we recommend using the\n * Content-MD5 mechanism as an end-to-end integrity check. For more information about REST\n * request authentication, see REST\n * Authentication.

\n */\n ContentMD5?: string;\n\n /**\n *

A standard MIME type describing the format of the contents. For more information, see\n * http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17.

\n */\n ContentType?: string;\n\n /**\n *

The date and time at which the object is no longer cacheable. For more information, see\n * http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21.

\n */\n Expires?: Date;\n\n /**\n *

Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the\n * object.

\n *

This action is not supported by Amazon S3 on Outposts.

\n */\n GrantFullControl?: string;\n\n /**\n *

Allows grantee to read the object data and its\n * metadata.

\n *

This action is not supported by Amazon S3 on Outposts.

\n */\n GrantRead?: string;\n\n /**\n *

Allows grantee to read the object ACL.

\n *

This action is not supported by Amazon S3 on Outposts.

\n */\n GrantReadACP?: string;\n\n /**\n *

Allows grantee to write the ACL for the applicable\n * object.

\n *

This action is not supported by Amazon S3 on Outposts.

\n */\n GrantWriteACP?: string;\n\n /**\n *

Object key for which the PUT operation was initiated.

\n */\n Key: string | undefined;\n\n /**\n *

A map of metadata to store with the object in S3.

\n */\n Metadata?: { [key: string]: string };\n\n /**\n *

The server-side encryption algorithm used when storing this object in Amazon S3 (for example,\n * AES256, aws:kms).

\n */\n ServerSideEncryption?: ServerSideEncryption | string;\n\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 StorageClass?: StorageClass | string;\n\n /**\n *

If the bucket is configured as a website, redirects requests for this object to another\n * object in the same bucket or to an external URL. Amazon S3 stores the value of this header in\n * the object metadata. For information about object metadata, see Object Key and Metadata.

\n *\n *

In the following example, the request header sets the redirect to an object\n * (anotherPage.html) in the same bucket:

\n *\n *

\n * x-amz-website-redirect-location: /anotherPage.html\n *

\n *\n *

In the following example, the request header sets the object redirect to another\n * website:

\n *\n *

\n * x-amz-website-redirect-location: http://www.example.com/\n *

\n *\n *

For more information about website hosting in Amazon S3, see Hosting Websites on Amazon S3 and How to Configure Website Page\n * Redirects.

\n */\n WebsiteRedirectLocation?: string;\n\n /**\n *

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

\n */\n SSECustomerAlgorithm?: string;\n\n /**\n *

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.

\n */\n SSECustomerKey?: string;\n\n /**\n *

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses\n * this header for a message integrity check to ensure that the encryption key was transmitted\n * without error.

\n */\n SSECustomerKeyMD5?: string;\n\n /**\n *

If x-amz-server-side-encryption is present and has the value of\n * aws:kms, this header specifies the ID of the AWS Key Management Service\n * (AWS KMS) symmetrical customer managed customer master key (CMK) that was used for the\n * object.

\n *

If the value of x-amz-server-side-encryption is aws:kms, this\n * header specifies the ID of the symmetric customer managed AWS KMS CMK that will be used for\n * the object. If you specify x-amz-server-side-encryption:aws:kms, but do not\n * provide x-amz-server-side-encryption-aws-kms-key-id, Amazon S3 uses the AWS\n * managed CMK in AWS to protect the data.

\n */\n SSEKMSKeyId?: string;\n\n /**\n *

Specifies the AWS KMS Encryption Context to use for object encryption. The value of this\n * header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value\n * pairs.

\n */\n SSEKMSEncryptionContext?: string;\n\n /**\n *

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.

\n */\n BucketKeyEnabled?: boolean;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

The tag-set for the object. The tag-set must be encoded as URL Query parameters. (For\n * example, \"Key1=Value1\")

\n */\n Tagging?: string;\n\n /**\n *

The Object Lock mode that you want to apply to this object.

\n */\n ObjectLockMode?: ObjectLockMode | string;\n\n /**\n *

The date and time when you want this object's Object Lock to expire.

\n */\n ObjectLockRetainUntilDate?: Date;\n\n /**\n *

Specifies whether a legal hold will be applied to this object. For more information\n * about S3 Object Lock, see Object\n * Lock.

\n */\n ObjectLockLegalHoldStatus?: ObjectLockLegalHoldStatus | string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutObjectRequest {\n export const filterSensitiveLog = (obj: PutObjectRequest): any => ({\n ...obj,\n ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),\n ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),\n ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }),\n });\n}\n\nexport interface PutObjectAclOutput {\n /**\n *

If present, indicates that the requester was successfully charged for the\n * request.

\n */\n RequestCharged?: RequestCharged | string;\n}\n\nexport namespace PutObjectAclOutput {\n export const filterSensitiveLog = (obj: PutObjectAclOutput): any => ({\n ...obj,\n });\n}\n\nexport interface PutObjectAclRequest {\n /**\n *

The canned ACL to apply to the object. For more information, see Canned ACL.

\n */\n ACL?: ObjectCannedACL | string;\n\n /**\n *

Contains the elements that set the ACL permissions for an object per grantee.

\n */\n AccessControlPolicy?: AccessControlPolicy;\n\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message\n * integrity check to verify that the request body was not corrupted in transit. For more\n * information, go to RFC\n * 1864.>\n *

\n *

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

\n */\n ContentMD5?: string;\n\n /**\n *

Allows grantee the read, write, read ACP, and write ACP permissions on the\n * bucket.

\n *

This action is not supported by Amazon S3 on Outposts.

\n */\n GrantFullControl?: string;\n\n /**\n *

Allows grantee to list the objects in the\n * bucket.

\n *

This action is not supported by Amazon S3 on Outposts.

\n */\n GrantRead?: string;\n\n /**\n *

Allows grantee to read the bucket ACL.

\n *

This action is not supported by Amazon S3 on Outposts.

\n */\n GrantReadACP?: string;\n\n /**\n *

Allows grantee to create, overwrite, and delete any object in the bucket.

\n */\n GrantWrite?: string;\n\n /**\n *

Allows grantee to write the ACL for the applicable\n * bucket.

\n *

This action is not supported by Amazon S3 on Outposts.

\n */\n GrantWriteACP?: string;\n\n /**\n *

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.

\n */\n Key: string | undefined;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

VersionId used to reference a specific version of the object.

\n */\n VersionId?: string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutObjectAclRequest {\n export const filterSensitiveLog = (obj: PutObjectAclRequest): any => ({\n ...obj,\n });\n}\n\nexport interface PutObjectLegalHoldOutput {\n /**\n *

If present, indicates that the requester was successfully charged for the\n * request.

\n */\n RequestCharged?: RequestCharged | string;\n}\n\nexport namespace PutObjectLegalHoldOutput {\n export const filterSensitiveLog = (obj: PutObjectLegalHoldOutput): any => ({\n ...obj,\n });\n}\n\nexport interface PutObjectLegalHoldRequest {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

The key name for the object that you want to place a Legal Hold on.

\n */\n Key: string | undefined;\n\n /**\n *

Container element for the Legal Hold configuration you want to apply to the specified\n * object.

\n */\n LegalHold?: ObjectLockLegalHold;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

The version ID of the object that you want to place a Legal Hold on.

\n */\n VersionId?: string;\n\n /**\n *

The MD5 hash for the request body.

\n *

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

\n */\n ContentMD5?: string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutObjectLegalHoldRequest {\n export const filterSensitiveLog = (obj: PutObjectLegalHoldRequest): any => ({\n ...obj,\n });\n}\n\nexport interface PutObjectLockConfigurationOutput {\n /**\n *

If present, indicates that the requester was successfully charged for the\n * request.

\n */\n RequestCharged?: RequestCharged | string;\n}\n\nexport namespace PutObjectLockConfigurationOutput {\n export const filterSensitiveLog = (obj: PutObjectLockConfigurationOutput): any => ({\n ...obj,\n });\n}\n\nexport interface PutObjectLockConfigurationRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

The Object Lock configuration that you want to apply to the specified bucket.

\n */\n ObjectLockConfiguration?: ObjectLockConfiguration;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

A token to allow Object Lock to be enabled for an existing bucket.

\n */\n Token?: string;\n\n /**\n *

The MD5 hash for the request body.

\n *

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

\n */\n ContentMD5?: string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutObjectLockConfigurationRequest {\n export const filterSensitiveLog = (obj: PutObjectLockConfigurationRequest): any => ({\n ...obj,\n });\n}\n\nexport interface PutObjectRetentionOutput {\n /**\n *

If present, indicates that the requester was successfully charged for the\n * request.

\n */\n RequestCharged?: RequestCharged | string;\n}\n\nexport namespace PutObjectRetentionOutput {\n export const filterSensitiveLog = (obj: PutObjectRetentionOutput): any => ({\n ...obj,\n });\n}\n\nexport interface PutObjectRetentionRequest {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

The key name for the object that you want to apply this Object Retention configuration\n * to.

\n */\n Key: string | undefined;\n\n /**\n *

The container element for the Object Retention configuration.

\n */\n Retention?: ObjectLockRetention;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

The version ID for the object that you want to apply this Object Retention configuration\n * to.

\n */\n VersionId?: string;\n\n /**\n *

Indicates whether this operation should bypass Governance-mode restrictions.

\n */\n BypassGovernanceRetention?: boolean;\n\n /**\n *

The MD5 hash for the request body.

\n *

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

\n */\n ContentMD5?: string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutObjectRetentionRequest {\n export const filterSensitiveLog = (obj: PutObjectRetentionRequest): any => ({\n ...obj,\n });\n}\n\nexport interface PutObjectTaggingOutput {\n /**\n *

The versionId of the object the tag-set was added to.

\n */\n VersionId?: string;\n}\n\nexport namespace PutObjectTaggingOutput {\n export const filterSensitiveLog = (obj: PutObjectTaggingOutput): any => ({\n ...obj,\n });\n}\n\nexport interface PutObjectTaggingRequest {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

Name of the object key.

\n */\n Key: string | undefined;\n\n /**\n *

The versionId of the object that the tag-set will be added to.

\n */\n VersionId?: string;\n\n /**\n *

The MD5 hash for the request body.

\n *

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

\n */\n ContentMD5?: string;\n\n /**\n *

Container for the TagSet and Tag elements

\n */\n Tagging: Tagging | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutObjectTaggingRequest {\n export const filterSensitiveLog = (obj: PutObjectTaggingRequest): any => ({\n ...obj,\n });\n}\n\nexport interface PutPublicAccessBlockRequest {\n /**\n *

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

\n */\n Bucket: string | undefined;\n\n /**\n *

The MD5 hash of the PutPublicAccessBlock request body.

\n *

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

\n */\n ContentMD5?: string;\n\n /**\n *

The PublicAccessBlock configuration that you want to apply to this Amazon S3\n * bucket. You can enable the configuration options in any combination. For more information\n * about when Amazon S3 considers a bucket or object public, see The Meaning of \"Public\" in the Amazon Simple Storage Service Developer\n * Guide.

\n */\n PublicAccessBlockConfiguration: PublicAccessBlockConfiguration | undefined;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace PutPublicAccessBlockRequest {\n export const filterSensitiveLog = (obj: PutPublicAccessBlockRequest): any => ({\n ...obj,\n });\n}\n\n/**\n *

This operation is not allowed against this storage tier.

\n */\nexport interface ObjectAlreadyInActiveTierError extends __SmithyException, $MetadataBearer {\n name: \"ObjectAlreadyInActiveTierError\";\n $fault: \"client\";\n}\n\nexport namespace ObjectAlreadyInActiveTierError {\n export const filterSensitiveLog = (obj: ObjectAlreadyInActiveTierError): any => ({\n ...obj,\n });\n}\n\nexport interface RestoreObjectOutput {\n /**\n *

If present, indicates that the requester was successfully charged for the\n * request.

\n */\n RequestCharged?: RequestCharged | string;\n\n /**\n *

Indicates the path in the provided S3 output location where Select results will be\n * restored to.

\n */\n RestoreOutputPath?: string;\n}\n\nexport namespace RestoreObjectOutput {\n export const filterSensitiveLog = (obj: RestoreObjectOutput): any => ({\n ...obj,\n });\n}\n\nexport type Tier = \"Bulk\" | \"Expedited\" | \"Standard\";\n\n/**\n *

Container for S3 Glacier job parameters.

\n */\nexport interface GlacierJobParameters {\n /**\n *

Retrieval tier at which the restore will be processed.

\n */\n Tier: Tier | string | undefined;\n}\n\nexport namespace GlacierJobParameters {\n export const filterSensitiveLog = (obj: GlacierJobParameters): any => ({\n ...obj,\n });\n}\n\n/**\n *

Contains the type of server-side encryption used.

\n */\nexport interface Encryption {\n /**\n *

The server-side encryption algorithm used when storing job results in Amazon S3 (for example,\n * AES256, aws:kms).

\n */\n EncryptionType: ServerSideEncryption | string | undefined;\n\n /**\n *

If the encryption type is aws:kms, this optional value specifies the ID of\n * the symmetric customer managed AWS KMS CMK to use for encryption of job results. Amazon S3 only\n * supports symmetric CMKs. For more information, see Using Symmetric and\n * Asymmetric Keys in the AWS Key Management Service Developer\n * Guide.

\n */\n KMSKeyId?: string;\n\n /**\n *

If the encryption type is aws:kms, this optional value can be used to\n * specify the encryption context for the restore results.

\n */\n KMSContext?: string;\n}\n\nexport namespace Encryption {\n export const filterSensitiveLog = (obj: Encryption): any => ({\n ...obj,\n ...(obj.KMSKeyId && { KMSKeyId: SENSITIVE_STRING }),\n });\n}\n","import {\n Encryption,\n GlacierJobParameters,\n Grant,\n ObjectCannedACL,\n RequestCharged,\n RequestPayer,\n ServerSideEncryption,\n StorageClass,\n Tagging,\n Tier,\n} from \"./models_0\";\nimport { SENSITIVE_STRING } from \"@aws-sdk/smithy-client\";\nimport { Readable } from \"stream\";\n\n/**\n *

A metadata key-value pair to store with an object.

\n */\nexport interface MetadataEntry {\n /**\n *

Name of the Object.

\n */\n Name?: string;\n\n /**\n *

Value of the Object.

\n */\n Value?: string;\n}\n\nexport namespace MetadataEntry {\n export const filterSensitiveLog = (obj: MetadataEntry): any => ({\n ...obj,\n });\n}\n\n/**\n *

Describes an Amazon S3 location that will receive the results of the restore request.

\n */\nexport interface S3Location {\n /**\n *

The name of the bucket where the restore results will be placed.

\n */\n BucketName: string | undefined;\n\n /**\n *

The prefix that is prepended to the restore results for this request.

\n */\n Prefix: string | undefined;\n\n /**\n *

Contains the type of server-side encryption used.

\n */\n Encryption?: Encryption;\n\n /**\n *

The canned ACL to apply to the restore results.

\n */\n CannedACL?: ObjectCannedACL | string;\n\n /**\n *

A list of grants that control access to the staged results.

\n */\n AccessControlList?: Grant[];\n\n /**\n *

The tag-set that is applied to the restore results.

\n */\n Tagging?: Tagging;\n\n /**\n *

A list of metadata to store with the restore results in S3.

\n */\n UserMetadata?: MetadataEntry[];\n\n /**\n *

The class of storage used to store the restore results.

\n */\n StorageClass?: StorageClass | string;\n}\n\nexport namespace S3Location {\n export const filterSensitiveLog = (obj: S3Location): any => ({\n ...obj,\n ...(obj.Encryption && { Encryption: Encryption.filterSensitiveLog(obj.Encryption) }),\n });\n}\n\n/**\n *

Describes the location where the restore job's output is stored.

\n */\nexport interface OutputLocation {\n /**\n *

Describes an S3 location that will receive the results of the restore request.

\n */\n S3?: S3Location;\n}\n\nexport namespace OutputLocation {\n export const filterSensitiveLog = (obj: OutputLocation): any => ({\n ...obj,\n ...(obj.S3 && { S3: S3Location.filterSensitiveLog(obj.S3) }),\n });\n}\n\nexport type ExpressionType = \"SQL\";\n\nexport type CompressionType = \"BZIP2\" | \"GZIP\" | \"NONE\";\n\nexport enum FileHeaderInfo {\n IGNORE = \"IGNORE\",\n NONE = \"NONE\",\n USE = \"USE\",\n}\n\n/**\n *

Describes how an uncompressed comma-separated values (CSV)-formatted input object is\n * formatted.

\n */\nexport interface CSVInput {\n /**\n *

Describes the first line of input. Valid values are:

\n *
    \n *
  • \n *

    \n * NONE: First line is not a header.

    \n *
  • \n *
  • \n *

    \n * IGNORE: First line is a header, but you can't use the header values\n * to indicate the column in an expression. You can use column position (such as _1, _2,\n * …) to indicate the column (SELECT s._1 FROM OBJECT s).

    \n *
  • \n *
  • \n *

    \n * Use: First line is a header, and you can use the header value to\n * identify a column in an expression (SELECT \"name\" FROM OBJECT).

    \n *
  • \n *
\n */\n FileHeaderInfo?: FileHeaderInfo | string;\n\n /**\n *

A single character used to indicate that a row should be ignored when the character is\n * present at the start of that row. You can specify any character to indicate a comment\n * line.

\n */\n Comments?: string;\n\n /**\n *

A single character used for escaping the quotation mark character inside an already\n * escaped value. For example, the value \"\"\" a , b \"\"\" is parsed as \" a , b \".

\n */\n QuoteEscapeCharacter?: string;\n\n /**\n *

A single character used to separate individual records in the input. Instead of the\n * default value, you can specify an arbitrary delimiter.

\n */\n RecordDelimiter?: string;\n\n /**\n *

A single character used to separate individual fields in a record. You can specify an\n * arbitrary delimiter.

\n */\n FieldDelimiter?: string;\n\n /**\n *

A single character used for escaping when the field delimiter is part of the value. For\n * example, if the value is a, b, Amazon S3 wraps this field value in quotation marks,\n * as follows: \" a , b \".

\n *

Type: String

\n *

Default: \"\n *

\n *

Ancestors: CSV\n *

\n */\n QuoteCharacter?: string;\n\n /**\n *

Specifies that CSV field values may contain quoted record delimiters and such records\n * should be allowed. Default value is FALSE. Setting this value to TRUE may lower\n * performance.

\n */\n AllowQuotedRecordDelimiter?: boolean;\n}\n\nexport namespace CSVInput {\n export const filterSensitiveLog = (obj: CSVInput): any => ({\n ...obj,\n });\n}\n\nexport enum JSONType {\n DOCUMENT = \"DOCUMENT\",\n LINES = \"LINES\",\n}\n\n/**\n *

Specifies JSON as object's input serialization format.

\n */\nexport interface JSONInput {\n /**\n *

The type of JSON. Valid values: Document, Lines.

\n */\n Type?: JSONType | string;\n}\n\nexport namespace JSONInput {\n export const filterSensitiveLog = (obj: JSONInput): any => ({\n ...obj,\n });\n}\n\n/**\n *

Container for Parquet.

\n */\nexport interface ParquetInput {}\n\nexport namespace ParquetInput {\n export const filterSensitiveLog = (obj: ParquetInput): any => ({\n ...obj,\n });\n}\n\n/**\n *

Describes the serialization format of the object.

\n */\nexport interface InputSerialization {\n /**\n *

Describes the serialization of a CSV-encoded object.

\n */\n CSV?: CSVInput;\n\n /**\n *

Specifies object's compression format. Valid values: NONE, GZIP, BZIP2. Default Value:\n * NONE.

\n */\n CompressionType?: CompressionType | string;\n\n /**\n *

Specifies JSON as object's input serialization format.

\n */\n JSON?: JSONInput;\n\n /**\n *

Specifies Parquet as object's input serialization format.

\n */\n Parquet?: ParquetInput;\n}\n\nexport namespace InputSerialization {\n export const filterSensitiveLog = (obj: InputSerialization): any => ({\n ...obj,\n });\n}\n\nexport enum QuoteFields {\n ALWAYS = \"ALWAYS\",\n ASNEEDED = \"ASNEEDED\",\n}\n\n/**\n *

Describes how uncompressed comma-separated values (CSV)-formatted results are\n * formatted.

\n */\nexport interface CSVOutput {\n /**\n *

Indicates whether to use quotation marks around output fields.

\n *
    \n *
  • \n *

    \n * ALWAYS: Always use quotation marks for output fields.

    \n *
  • \n *
  • \n *

    \n * ASNEEDED: Use quotation marks for output fields when needed.

    \n *
  • \n *
\n */\n QuoteFields?: QuoteFields | string;\n\n /**\n *

The single character used for escaping the quote character inside an already escaped\n * value.

\n */\n QuoteEscapeCharacter?: string;\n\n /**\n *

A single character used to separate individual records in the output. Instead of the\n * default value, you can specify an arbitrary delimiter.

\n */\n RecordDelimiter?: string;\n\n /**\n *

The value used to separate individual fields in a record. You can specify an arbitrary\n * delimiter.

\n */\n FieldDelimiter?: string;\n\n /**\n *

A single character used for escaping when the field delimiter is part of the value. For\n * example, if the value is a, b, Amazon S3 wraps this field value in quotation marks,\n * as follows: \" a , b \".

\n */\n QuoteCharacter?: string;\n}\n\nexport namespace CSVOutput {\n export const filterSensitiveLog = (obj: CSVOutput): any => ({\n ...obj,\n });\n}\n\n/**\n *

Specifies JSON as request's output serialization format.

\n */\nexport interface JSONOutput {\n /**\n *

The value used to separate individual records in the output. If no value is specified,\n * Amazon S3 uses a newline character ('\\n').

\n */\n RecordDelimiter?: string;\n}\n\nexport namespace JSONOutput {\n export const filterSensitiveLog = (obj: JSONOutput): any => ({\n ...obj,\n });\n}\n\n/**\n *

Describes how results of the Select job are serialized.

\n */\nexport interface OutputSerialization {\n /**\n *

Describes the serialization of CSV-encoded Select results.

\n */\n CSV?: CSVOutput;\n\n /**\n *

Specifies JSON as request's output serialization format.

\n */\n JSON?: JSONOutput;\n}\n\nexport namespace OutputSerialization {\n export const filterSensitiveLog = (obj: OutputSerialization): any => ({\n ...obj,\n });\n}\n\n/**\n *

Describes the parameters for Select job types.

\n */\nexport interface SelectParameters {\n /**\n *

Describes the serialization format of the object.

\n */\n InputSerialization: InputSerialization | undefined;\n\n /**\n *

The type of the provided expression (for example, SQL).

\n */\n ExpressionType: ExpressionType | string | undefined;\n\n /**\n *

The expression that is used to query the object.

\n */\n Expression: string | undefined;\n\n /**\n *

Describes how the results of the Select job are serialized.

\n */\n OutputSerialization: OutputSerialization | undefined;\n}\n\nexport namespace SelectParameters {\n export const filterSensitiveLog = (obj: SelectParameters): any => ({\n ...obj,\n });\n}\n\nexport enum RestoreRequestType {\n SELECT = \"SELECT\",\n}\n\n/**\n *

Container for restore job parameters.

\n */\nexport interface RestoreRequest {\n /**\n *

Lifetime of the active copy in days. Do not use with restores that specify\n * OutputLocation.

\n *

The Days element is required for regular restores, and must not be provided for select\n * requests.

\n */\n Days?: number;\n\n /**\n *

S3 Glacier related parameters pertaining to this job. Do not use with restores that\n * specify OutputLocation.

\n */\n GlacierJobParameters?: GlacierJobParameters;\n\n /**\n *

Type of restore request.

\n */\n Type?: RestoreRequestType | string;\n\n /**\n *

Retrieval tier at which the restore will be processed.

\n */\n Tier?: Tier | string;\n\n /**\n *

The optional description for the job.

\n */\n Description?: string;\n\n /**\n *

Describes the parameters for Select job types.

\n */\n SelectParameters?: SelectParameters;\n\n /**\n *

Describes the location where the restore job's output is stored.

\n */\n OutputLocation?: OutputLocation;\n}\n\nexport namespace RestoreRequest {\n export const filterSensitiveLog = (obj: RestoreRequest): any => ({\n ...obj,\n ...(obj.OutputLocation && { OutputLocation: OutputLocation.filterSensitiveLog(obj.OutputLocation) }),\n });\n}\n\nexport interface RestoreObjectRequest {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

Object key for which the operation was initiated.

\n */\n Key: string | undefined;\n\n /**\n *

VersionId used to reference a specific version of the object.

\n */\n VersionId?: string;\n\n /**\n *

Container for restore job parameters.

\n */\n RestoreRequest?: RestoreRequest;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace RestoreObjectRequest {\n export const filterSensitiveLog = (obj: RestoreObjectRequest): any => ({\n ...obj,\n ...(obj.RestoreRequest && { RestoreRequest: RestoreRequest.filterSensitiveLog(obj.RestoreRequest) }),\n });\n}\n\n/**\n *

\n */\nexport interface ContinuationEvent {}\n\nexport namespace ContinuationEvent {\n export const filterSensitiveLog = (obj: ContinuationEvent): any => ({\n ...obj,\n });\n}\n\n/**\n *

A message that indicates the request is complete and no more messages will be sent. You\n * should not assume that the request is complete until the client receives an\n * EndEvent.

\n */\nexport interface EndEvent {}\n\nexport namespace EndEvent {\n export const filterSensitiveLog = (obj: EndEvent): any => ({\n ...obj,\n });\n}\n\n/**\n *

This data type contains information about progress of an operation.

\n */\nexport interface Progress {\n /**\n *

The current number of object bytes scanned.

\n */\n BytesScanned?: number;\n\n /**\n *

The current number of uncompressed object bytes processed.

\n */\n BytesProcessed?: number;\n\n /**\n *

The current number of bytes of records payload data returned.

\n */\n BytesReturned?: number;\n}\n\nexport namespace Progress {\n export const filterSensitiveLog = (obj: Progress): any => ({\n ...obj,\n });\n}\n\n/**\n *

This data type contains information about the progress event of an operation.

\n */\nexport interface ProgressEvent {\n /**\n *

The Progress event details.

\n */\n Details?: Progress;\n}\n\nexport namespace ProgressEvent {\n export const filterSensitiveLog = (obj: ProgressEvent): any => ({\n ...obj,\n });\n}\n\n/**\n *

The container for the records event.

\n */\nexport interface RecordsEvent {\n /**\n *

The byte array of partial, one or more result records.

\n */\n Payload?: Uint8Array;\n}\n\nexport namespace RecordsEvent {\n export const filterSensitiveLog = (obj: RecordsEvent): any => ({\n ...obj,\n });\n}\n\n/**\n *

Container for the stats details.

\n */\nexport interface Stats {\n /**\n *

The total number of object bytes scanned.

\n */\n BytesScanned?: number;\n\n /**\n *

The total number of uncompressed object bytes processed.

\n */\n BytesProcessed?: number;\n\n /**\n *

The total number of bytes of records payload data returned.

\n */\n BytesReturned?: number;\n}\n\nexport namespace Stats {\n export const filterSensitiveLog = (obj: Stats): any => ({\n ...obj,\n });\n}\n\n/**\n *

Container for the Stats Event.

\n */\nexport interface StatsEvent {\n /**\n *

The Stats event details.

\n */\n Details?: Stats;\n}\n\nexport namespace StatsEvent {\n export const filterSensitiveLog = (obj: StatsEvent): any => ({\n ...obj,\n });\n}\n\n/**\n *

The container for selecting objects from a content event stream.

\n */\nexport type SelectObjectContentEventStream =\n | SelectObjectContentEventStream.ContMember\n | SelectObjectContentEventStream.EndMember\n | SelectObjectContentEventStream.ProgressMember\n | SelectObjectContentEventStream.RecordsMember\n | SelectObjectContentEventStream.StatsMember\n | SelectObjectContentEventStream.$UnknownMember;\n\nexport namespace SelectObjectContentEventStream {\n /**\n *

The Records Event.

\n */\n export interface RecordsMember {\n Records: RecordsEvent;\n Stats?: never;\n Progress?: never;\n Cont?: never;\n End?: never;\n $unknown?: never;\n }\n\n /**\n *

The Stats Event.

\n */\n export interface StatsMember {\n Records?: never;\n Stats: StatsEvent;\n Progress?: never;\n Cont?: never;\n End?: never;\n $unknown?: never;\n }\n\n /**\n *

The Progress Event.

\n */\n export interface ProgressMember {\n Records?: never;\n Stats?: never;\n Progress: ProgressEvent;\n Cont?: never;\n End?: never;\n $unknown?: never;\n }\n\n /**\n *

The Continuation Event.

\n */\n export interface ContMember {\n Records?: never;\n Stats?: never;\n Progress?: never;\n Cont: ContinuationEvent;\n End?: never;\n $unknown?: never;\n }\n\n /**\n *

The End Event.

\n */\n export interface EndMember {\n Records?: never;\n Stats?: never;\n Progress?: never;\n Cont?: never;\n End: EndEvent;\n $unknown?: never;\n }\n\n export interface $UnknownMember {\n Records?: never;\n Stats?: never;\n Progress?: never;\n Cont?: never;\n End?: never;\n $unknown: [string, any];\n }\n\n export interface Visitor {\n Records: (value: RecordsEvent) => T;\n Stats: (value: StatsEvent) => T;\n Progress: (value: ProgressEvent) => T;\n Cont: (value: ContinuationEvent) => T;\n End: (value: EndEvent) => T;\n _: (name: string, value: any) => T;\n }\n\n export const visit = (value: SelectObjectContentEventStream, visitor: Visitor): T => {\n if (value.Records !== undefined) return visitor.Records(value.Records);\n if (value.Stats !== undefined) return visitor.Stats(value.Stats);\n if (value.Progress !== undefined) return visitor.Progress(value.Progress);\n if (value.Cont !== undefined) return visitor.Cont(value.Cont);\n if (value.End !== undefined) return visitor.End(value.End);\n return visitor._(value.$unknown[0], value.$unknown[1]);\n };\n\n export const filterSensitiveLog = (obj: SelectObjectContentEventStream): any => {\n if (obj.Records !== undefined) return { Records: RecordsEvent.filterSensitiveLog(obj.Records) };\n if (obj.Stats !== undefined) return { Stats: StatsEvent.filterSensitiveLog(obj.Stats) };\n if (obj.Progress !== undefined) return { Progress: ProgressEvent.filterSensitiveLog(obj.Progress) };\n if (obj.Cont !== undefined) return { Cont: ContinuationEvent.filterSensitiveLog(obj.Cont) };\n if (obj.End !== undefined) return { End: EndEvent.filterSensitiveLog(obj.End) };\n if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: \"UNKNOWN\" };\n };\n}\n\nexport interface SelectObjectContentOutput {\n /**\n *

The array of results.

\n */\n Payload?: AsyncIterable;\n}\n\nexport namespace SelectObjectContentOutput {\n export const filterSensitiveLog = (obj: SelectObjectContentOutput): any => ({\n ...obj,\n ...(obj.Payload && { Payload: \"STREAMING_CONTENT\" }),\n });\n}\n\n/**\n *

Container for specifying if periodic QueryProgress messages should be\n * sent.

\n */\nexport interface RequestProgress {\n /**\n *

Specifies whether periodic QueryProgress frames should be sent. Valid values: TRUE,\n * FALSE. Default value: FALSE.

\n */\n Enabled?: boolean;\n}\n\nexport namespace RequestProgress {\n export const filterSensitiveLog = (obj: RequestProgress): any => ({\n ...obj,\n });\n}\n\n/**\n *

Specifies the byte range of the object to get the records from. A record is processed\n * when its first byte is contained by the range. This parameter is optional, but when\n * specified, it must not be empty. See RFC 2616, Section 14.35.1 about how to specify the\n * start and end of the range.

\n */\nexport interface ScanRange {\n /**\n *

Specifies the start of the byte range. This parameter is optional. Valid values:\n * non-negative integers. The default value is 0. If only start is supplied, it means scan\n * from that point to the end of the file.For example;\n * 50 means scan\n * from byte 50 until the end of the file.

\n */\n Start?: number;\n\n /**\n *

Specifies the end of the byte range. This parameter is optional. Valid values:\n * non-negative integers. The default value is one less than the size of the object being\n * queried. If only the End parameter is supplied, it is interpreted to mean scan the last N\n * bytes of the file. For example,\n * 50 means scan the\n * last 50 bytes.

\n */\n End?: number;\n}\n\nexport namespace ScanRange {\n export const filterSensitiveLog = (obj: ScanRange): any => ({\n ...obj,\n });\n}\n\n/**\n *

Request to filter 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 specify a\n * data serialization format (JSON or CSV) of the object. Amazon S3 uses this to parse object data\n * into records. It returns only records that match the specified SQL expression. You must\n * also specify the data serialization format for the response. For more information, see\n * S3Select API Documentation.

\n */\nexport interface SelectObjectContentRequest {\n /**\n *

The S3 bucket.

\n */\n Bucket: string | undefined;\n\n /**\n *

The object key.

\n */\n Key: string | undefined;\n\n /**\n *

The SSE Algorithm used to encrypt the object. For more information, see Server-Side Encryption (Using Customer-Provided Encryption Keys.

\n */\n SSECustomerAlgorithm?: string;\n\n /**\n *

The SSE Customer Key. For more information, see Server-Side Encryption\n * (Using Customer-Provided Encryption Keys.

\n */\n SSECustomerKey?: string;\n\n /**\n *

The SSE Customer Key MD5. For more information, see Server-Side Encryption\n * (Using Customer-Provided Encryption Keys.

\n */\n SSECustomerKeyMD5?: string;\n\n /**\n *

The expression that is used to query the object.

\n */\n Expression: string | undefined;\n\n /**\n *

The type of the provided expression (for example, SQL).

\n */\n ExpressionType: ExpressionType | string | undefined;\n\n /**\n *

Specifies if periodic request progress information should be enabled.

\n */\n RequestProgress?: RequestProgress;\n\n /**\n *

Describes the format of the data in the object that is being queried.

\n */\n InputSerialization: InputSerialization | undefined;\n\n /**\n *

Describes the format of the data that you want Amazon S3 to return in response.

\n */\n OutputSerialization: OutputSerialization | undefined;\n\n /**\n *

Specifies the byte range of the object to get the records from. A record is processed\n * when its first byte is contained by the range. This parameter is optional, but when\n * specified, it must not be empty. See RFC 2616, Section 14.35.1 about how to specify the\n * start and end of the range.

\n *

\n * ScanRangemay be used in the following ways:

\n *
    \n *
  • \n *

    \n * 50100\n * - process only the records starting between the bytes 50 and 100 (inclusive, counting\n * from zero)

    \n *
  • \n *
  • \n *

    \n * 50 -\n * process only the records starting after the byte 50

    \n *
  • \n *
  • \n *

    \n * 50 -\n * process only the records within the last 50 bytes of the file.

    \n *
  • \n *
\n */\n ScanRange?: ScanRange;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace SelectObjectContentRequest {\n export const filterSensitiveLog = (obj: SelectObjectContentRequest): any => ({\n ...obj,\n ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),\n });\n}\n\nexport interface UploadPartOutput {\n /**\n *

The server-side encryption algorithm used when storing this object in Amazon S3 (for example,\n * AES256, aws:kms).

\n */\n ServerSideEncryption?: ServerSideEncryption | string;\n\n /**\n *

Entity tag for the uploaded object.

\n */\n ETag?: string;\n\n /**\n *

If server-side encryption with a customer-provided encryption key was requested, the\n * response will include this header confirming the encryption algorithm used.

\n */\n SSECustomerAlgorithm?: string;\n\n /**\n *

If server-side encryption with a customer-provided encryption key was requested, the\n * response will include this header to provide round-trip message integrity verification of\n * the customer-provided encryption key.

\n */\n SSECustomerKeyMD5?: string;\n\n /**\n *

If present, specifies the ID of the AWS Key Management Service (AWS KMS) symmetric\n * customer managed customer master key (CMK) was used for the object.

\n */\n SSEKMSKeyId?: string;\n\n /**\n *

Indicates whether the multipart upload uses an S3 Bucket Key for server-side encryption with AWS KMS (SSE-KMS).

\n */\n BucketKeyEnabled?: boolean;\n\n /**\n *

If present, indicates that the requester was successfully charged for the\n * request.

\n */\n RequestCharged?: RequestCharged | string;\n}\n\nexport namespace UploadPartOutput {\n export const filterSensitiveLog = (obj: UploadPartOutput): any => ({\n ...obj,\n ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),\n });\n}\n\nexport interface UploadPartRequest {\n /**\n *

Object data.

\n */\n Body?: Readable | ReadableStream | Blob;\n\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

Size of the body in bytes. This parameter is useful when the size of the body cannot be\n * determined automatically.

\n */\n ContentLength?: number;\n\n /**\n *

The base64-encoded 128-bit MD5 digest of the part data. This parameter is auto-populated\n * when using the command from the CLI. This parameter is required if object lock parameters\n * are specified.

\n */\n ContentMD5?: string;\n\n /**\n *

Object key for which the multipart upload was initiated.

\n */\n Key: string | undefined;\n\n /**\n *

Part number of part being uploaded. This is a positive integer between 1 and\n * 10,000.

\n */\n PartNumber: number | undefined;\n\n /**\n *

Upload ID identifying the multipart upload whose part is being uploaded.

\n */\n UploadId: string | undefined;\n\n /**\n *

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

\n */\n SSECustomerAlgorithm?: string;\n\n /**\n *

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. This must be the\n * same encryption key specified in the initiate multipart upload request.

\n */\n SSECustomerKey?: string;\n\n /**\n *

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses\n * this header for a message integrity check to ensure that the encryption key was transmitted\n * without error.

\n */\n SSECustomerKeyMD5?: string;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n}\n\nexport namespace UploadPartRequest {\n export const filterSensitiveLog = (obj: UploadPartRequest): any => ({\n ...obj,\n ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),\n });\n}\n\n/**\n *

Container for all response elements.

\n */\nexport interface CopyPartResult {\n /**\n *

Entity tag of the object.

\n */\n ETag?: string;\n\n /**\n *

Date and time at which the object was uploaded.

\n */\n LastModified?: Date;\n}\n\nexport namespace CopyPartResult {\n export const filterSensitiveLog = (obj: CopyPartResult): any => ({\n ...obj,\n });\n}\n\nexport interface UploadPartCopyOutput {\n /**\n *

The version of the source object that was copied, if you have enabled versioning on the\n * source bucket.

\n */\n CopySourceVersionId?: string;\n\n /**\n *

Container for all response elements.

\n */\n CopyPartResult?: CopyPartResult;\n\n /**\n *

The server-side encryption algorithm used when storing this object in Amazon S3 (for example,\n * AES256, aws:kms).

\n */\n ServerSideEncryption?: ServerSideEncryption | string;\n\n /**\n *

If server-side encryption with a customer-provided encryption key was requested, the\n * response will include this header confirming the encryption algorithm used.

\n */\n SSECustomerAlgorithm?: string;\n\n /**\n *

If server-side encryption with a customer-provided encryption key was requested, the\n * response will include this header to provide round-trip message integrity verification of\n * the customer-provided encryption key.

\n */\n SSECustomerKeyMD5?: string;\n\n /**\n *

If present, specifies the ID of the AWS Key Management Service (AWS KMS) symmetric\n * customer managed customer master key (CMK) that was used for the object.

\n */\n SSEKMSKeyId?: string;\n\n /**\n *

Indicates whether the multipart upload uses an S3 Bucket Key for server-side encryption with AWS KMS (SSE-KMS).

\n */\n BucketKeyEnabled?: boolean;\n\n /**\n *

If present, indicates that the requester was successfully charged for the\n * request.

\n */\n RequestCharged?: RequestCharged | string;\n}\n\nexport namespace UploadPartCopyOutput {\n export const filterSensitiveLog = (obj: UploadPartCopyOutput): any => ({\n ...obj,\n ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),\n });\n}\n\nexport interface UploadPartCopyRequest {\n /**\n *

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.

\n */\n Bucket: string | undefined;\n\n /**\n *

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 *
  • \n *

    For objects not accessed through an access point, specify the name of the source\n * bucket and key of the source object, separated by a slash (/). For example, to copy\n * the object reports/january.pdf from the bucket\n * awsexamplebucket, use\n * awsexamplebucket/reports/january.pdf. The value must be URL\n * encoded.

    \n *
  • \n *
  • \n *

    For objects accessed through access points, specify the Amazon Resource Name (ARN) of the object as accessed through the access point, in the format arn:aws:s3:::accesspoint//object/. For example, to copy the object reports/january.pdf through access point my-access-point owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3:us-west-2:123456789012:accesspoint/my-access-point/object/reports/january.pdf. The value must be URL encoded.

    \n * \n *

    Amazon S3 supports copy operations using access points only when the source and destination buckets are in the same AWS Region.

    \n *
    \n *

    Alternatively, for objects accessed through Amazon S3 on Outposts, specify the ARN of the object as accessed in the format arn:aws:s3-outposts:::outpost//object/. For example, to copy the object reports/january.pdf through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/object/reports/january.pdf. The value must be URL encoded.

    \n *
  • \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.

\n */\n CopySource: string | undefined;\n\n /**\n *

Copies the object if its entity tag (ETag) matches the specified tag.

\n */\n CopySourceIfMatch?: string;\n\n /**\n *

Copies the object if it has been modified since the specified time.

\n */\n CopySourceIfModifiedSince?: Date;\n\n /**\n *

Copies the object if its entity tag (ETag) is different than the specified ETag.

\n */\n CopySourceIfNoneMatch?: string;\n\n /**\n *

Copies the object if it hasn't been modified since the specified time.

\n */\n CopySourceIfUnmodifiedSince?: Date;\n\n /**\n *

The range of bytes to copy from the source object. The range value must use the form\n * bytes=first-last, where the first and last are the zero-based byte offsets to copy. For\n * example, bytes=0-9 indicates that you want to copy the first 10 bytes of the source. You\n * can copy a range only if the source object is greater than 5 MB.

\n */\n CopySourceRange?: string;\n\n /**\n *

Object key for which the multipart upload was initiated.

\n */\n Key: string | undefined;\n\n /**\n *

Part number of part being copied. This is a positive integer between 1 and\n * 10,000.

\n */\n PartNumber: number | undefined;\n\n /**\n *

Upload ID identifying the multipart upload whose part is being copied.

\n */\n UploadId: string | undefined;\n\n /**\n *

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

\n */\n SSECustomerAlgorithm?: string;\n\n /**\n *

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. This must be the\n * same encryption key specified in the initiate multipart upload request.

\n */\n SSECustomerKey?: string;\n\n /**\n *

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses\n * this header for a message integrity check to ensure that the encryption key was transmitted\n * without error.

\n */\n SSECustomerKeyMD5?: string;\n\n /**\n *

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

\n */\n CopySourceSSECustomerAlgorithm?: string;\n\n /**\n *

Specifies the customer-provided encryption key for Amazon S3 to use to decrypt the source\n * object. The encryption key provided in this header must be one that was used when the\n * source object was created.

\n */\n CopySourceSSECustomerKey?: string;\n\n /**\n *

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses\n * this header for a message integrity check to ensure that the encryption key was transmitted\n * without error.

\n */\n CopySourceSSECustomerKeyMD5?: string;\n\n /**\n *

Confirms that the requester knows that they will be charged for the request. Bucket\n * owners need not specify this parameter in their requests. For information about downloading\n * objects from requester pays buckets, see Downloading Objects in\n * Requestor Pays Buckets in the Amazon S3 Developer Guide.

\n */\n RequestPayer?: RequestPayer | string;\n\n /**\n *

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.

\n */\n ExpectedBucketOwner?: string;\n\n /**\n *

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.

\n */\n ExpectedSourceBucketOwner?: string;\n}\n\nexport namespace UploadPartCopyRequest {\n export const filterSensitiveLog = (obj: UploadPartCopyRequest): any => ({\n ...obj,\n ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),\n ...(obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: SENSITIVE_STRING }),\n });\n}\n","import { Int64 as IInt64 } from \"@aws-sdk/types\";\nimport { toHex } from \"@aws-sdk/util-hex-encoding\";\n\nexport interface Int64 extends IInt64 {}\n\n/**\n * A lossless representation of a signed, 64-bit integer. Instances of this\n * class may be used in arithmetic expressions as if they were numeric\n * primitives, but the binary representation will be preserved unchanged as the\n * `bytes` property of the object. The bytes should be encoded as big-endian,\n * two's complement integers.\n */\nexport class Int64 {\n constructor(readonly bytes: Uint8Array) {\n if (bytes.byteLength !== 8) {\n throw new Error(\"Int64 buffers must be exactly 8 bytes\");\n }\n }\n\n static fromNumber(number: number): Int64 {\n if (number > 9223372036854775807 || number < -9223372036854775808) {\n throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`);\n }\n\n const bytes = new Uint8Array(8);\n for (let i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) {\n bytes[i] = remaining;\n }\n\n if (number < 0) {\n negate(bytes);\n }\n\n return new Int64(bytes);\n }\n\n /**\n * Called implicitly by infix arithmetic operators.\n */\n valueOf(): number {\n const bytes = this.bytes.slice(0);\n const negative = bytes[0] & 0b10000000;\n if (negative) {\n negate(bytes);\n }\n\n return parseInt(toHex(bytes), 16) * (negative ? -1 : 1);\n }\n\n toString() {\n return String(this.valueOf());\n }\n}\n\nfunction negate(bytes: Uint8Array): void {\n for (let i = 0; i < 8; i++) {\n bytes[i] ^= 0xff;\n }\n\n for (let i = 7; i > -1; i--) {\n bytes[i]++;\n if (bytes[i] !== 0) break;\n }\n}\n","import { Decoder, Encoder, MessageHeaders, MessageHeaderValue } from \"@aws-sdk/types\";\nimport { fromHex, toHex } from \"@aws-sdk/util-hex-encoding\";\n\nimport { Int64 } from \"./Int64\";\n\n/**\n * @internal\n */\nexport class HeaderMarshaller {\n constructor(private readonly toUtf8: Encoder, private readonly fromUtf8: Decoder) {}\n\n format(headers: MessageHeaders): Uint8Array {\n const chunks: Array = [];\n\n for (const headerName of Object.keys(headers)) {\n const bytes = this.fromUtf8(headerName);\n chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));\n }\n\n const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0));\n let position = 0;\n for (const chunk of chunks) {\n out.set(chunk, position);\n position += chunk.byteLength;\n }\n\n return out;\n }\n\n private formatHeaderValue(header: MessageHeaderValue): Uint8Array {\n switch (header.type) {\n case \"boolean\":\n return Uint8Array.from([header.value ? HEADER_VALUE_TYPE.boolTrue : HEADER_VALUE_TYPE.boolFalse]);\n case \"byte\":\n return Uint8Array.from([HEADER_VALUE_TYPE.byte, header.value]);\n case \"short\":\n const shortView = new DataView(new ArrayBuffer(3));\n shortView.setUint8(0, HEADER_VALUE_TYPE.short);\n shortView.setInt16(1, header.value, false);\n return new Uint8Array(shortView.buffer);\n case \"integer\":\n const intView = new DataView(new ArrayBuffer(5));\n intView.setUint8(0, HEADER_VALUE_TYPE.integer);\n intView.setInt32(1, header.value, false);\n return new Uint8Array(intView.buffer);\n case \"long\":\n const longBytes = new Uint8Array(9);\n longBytes[0] = HEADER_VALUE_TYPE.long;\n longBytes.set(header.value.bytes, 1);\n return longBytes;\n case \"binary\":\n const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));\n binView.setUint8(0, HEADER_VALUE_TYPE.byteArray);\n binView.setUint16(1, header.value.byteLength, false);\n const binBytes = new Uint8Array(binView.buffer);\n binBytes.set(header.value, 3);\n return binBytes;\n case \"string\":\n const utf8Bytes = this.fromUtf8(header.value);\n const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));\n strView.setUint8(0, HEADER_VALUE_TYPE.string);\n strView.setUint16(1, utf8Bytes.byteLength, false);\n const strBytes = new Uint8Array(strView.buffer);\n strBytes.set(utf8Bytes, 3);\n return strBytes;\n case \"timestamp\":\n const tsBytes = new Uint8Array(9);\n tsBytes[0] = HEADER_VALUE_TYPE.timestamp;\n tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);\n return tsBytes;\n case \"uuid\":\n if (!UUID_PATTERN.test(header.value)) {\n throw new Error(`Invalid UUID received: ${header.value}`);\n }\n\n const uuidBytes = new Uint8Array(17);\n uuidBytes[0] = HEADER_VALUE_TYPE.uuid;\n uuidBytes.set(fromHex(header.value.replace(/\\-/g, \"\")), 1);\n return uuidBytes;\n }\n }\n\n parse(headers: DataView): MessageHeaders {\n const out: MessageHeaders = {};\n let position = 0;\n\n while (position < headers.byteLength) {\n const nameLength = headers.getUint8(position++);\n const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength));\n position += nameLength;\n\n switch (headers.getUint8(position++)) {\n case HEADER_VALUE_TYPE.boolTrue:\n out[name] = {\n type: BOOLEAN_TAG,\n value: true,\n };\n break;\n case HEADER_VALUE_TYPE.boolFalse:\n out[name] = {\n type: BOOLEAN_TAG,\n value: false,\n };\n break;\n case HEADER_VALUE_TYPE.byte:\n out[name] = {\n type: BYTE_TAG,\n value: headers.getInt8(position++),\n };\n break;\n case HEADER_VALUE_TYPE.short:\n out[name] = {\n type: SHORT_TAG,\n value: headers.getInt16(position, false),\n };\n position += 2;\n break;\n case HEADER_VALUE_TYPE.integer:\n out[name] = {\n type: INT_TAG,\n value: headers.getInt32(position, false),\n };\n position += 4;\n break;\n case HEADER_VALUE_TYPE.long:\n out[name] = {\n type: LONG_TAG,\n value: new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)),\n };\n position += 8;\n break;\n case HEADER_VALUE_TYPE.byteArray:\n const binaryLength = headers.getUint16(position, false);\n position += 2;\n out[name] = {\n type: BINARY_TAG,\n value: new Uint8Array(headers.buffer, headers.byteOffset + position, binaryLength),\n };\n position += binaryLength;\n break;\n case HEADER_VALUE_TYPE.string:\n const stringLength = headers.getUint16(position, false);\n position += 2;\n out[name] = {\n type: STRING_TAG,\n value: this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, stringLength)),\n };\n position += stringLength;\n break;\n case HEADER_VALUE_TYPE.timestamp:\n out[name] = {\n type: TIMESTAMP_TAG,\n value: new Date(new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()),\n };\n position += 8;\n break;\n case HEADER_VALUE_TYPE.uuid:\n const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);\n position += 16;\n out[name] = {\n type: UUID_TAG,\n value: `${toHex(uuidBytes.subarray(0, 4))}-${toHex(uuidBytes.subarray(4, 6))}-${toHex(\n uuidBytes.subarray(6, 8)\n )}-${toHex(uuidBytes.subarray(8, 10))}-${toHex(uuidBytes.subarray(10))}`,\n };\n break;\n default:\n throw new Error(`Unrecognized header type tag`);\n }\n }\n\n return out;\n }\n}\n\nconst enum HEADER_VALUE_TYPE {\n boolTrue = 0,\n boolFalse,\n byte,\n short,\n integer,\n long,\n byteArray,\n string,\n timestamp,\n uuid,\n}\n\nconst BOOLEAN_TAG = \"boolean\";\nconst BYTE_TAG = \"byte\";\nconst SHORT_TAG = \"short\";\nconst INT_TAG = \"integer\";\nconst LONG_TAG = \"long\";\nconst BINARY_TAG = \"binary\";\nconst STRING_TAG = \"string\";\nconst TIMESTAMP_TAG = \"timestamp\";\nconst UUID_TAG = \"uuid\";\n\nconst UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;\n","import { Crc32 } from \"@aws-crypto/crc32\";\nimport { Message, MessageHeaders } from \"@aws-sdk/types\";\nimport { Decoder, Encoder } from \"@aws-sdk/types\";\n\nimport { HeaderMarshaller } from \"./HeaderMarshaller\";\nimport { splitMessage } from \"./splitMessage\";\n\n/**\n * A marshaller that can convert binary-packed event stream messages into\n * JavaScript objects and back again into their binary format.\n */\nexport class EventStreamMarshaller {\n private readonly headerMarshaller: HeaderMarshaller;\n\n constructor(toUtf8: Encoder, fromUtf8: Decoder) {\n this.headerMarshaller = new HeaderMarshaller(toUtf8, fromUtf8);\n }\n\n /**\n * Convert a structured JavaScript object with tagged headers into a binary\n * event stream message.\n */\n marshall({ headers: rawHeaders, body }: Message): Uint8Array {\n const headers = this.headerMarshaller.format(rawHeaders);\n const length = headers.byteLength + body.byteLength + 16;\n\n const out = new Uint8Array(length);\n const view = new DataView(out.buffer, out.byteOffset, out.byteLength);\n const checksum = new Crc32();\n\n // Format message\n view.setUint32(0, length, false);\n view.setUint32(4, headers.byteLength, false);\n view.setUint32(8, checksum.update(out.subarray(0, 8)).digest(), false);\n out.set(headers, 12);\n out.set(body, headers.byteLength + 12);\n\n // Write trailing message checksum\n view.setUint32(length - 4, checksum.update(out.subarray(8, length - 4)).digest(), false);\n\n return out;\n }\n\n /**\n * Convert a binary event stream message into a JavaScript object with an\n * opaque, binary body and tagged, parsed headers.\n */\n unmarshall(message: ArrayBufferView): Message {\n const { headers, body } = splitMessage(message);\n\n return { headers: this.headerMarshaller.parse(headers), body };\n }\n\n /**\n * Convert a structured JavaScript object with tagged headers into a binary\n * event stream message header.\n */\n formatHeaders(rawHeaders: MessageHeaders): Uint8Array {\n return this.headerMarshaller.format(rawHeaders);\n }\n}\n","import { Crc32 } from \"@aws-crypto/crc32\";\n\n// All prelude components are unsigned, 32-bit integers\nconst PRELUDE_MEMBER_LENGTH = 4;\n// The prelude consists of two components\nconst PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2;\n// Checksums are always CRC32 hashes.\nconst CHECKSUM_LENGTH = 4;\n// Messages must include a full prelude, a prelude checksum, and a message checksum\nconst MINIMUM_MESSAGE_LENGTH = PRELUDE_LENGTH + CHECKSUM_LENGTH * 2;\n\n/**\n * @internal\n */\nexport interface MessageParts {\n headers: DataView;\n body: Uint8Array;\n}\n\n/**\n * @internal\n */\nexport function splitMessage({ byteLength, byteOffset, buffer }: ArrayBufferView): MessageParts {\n if (byteLength < MINIMUM_MESSAGE_LENGTH) {\n throw new Error(\"Provided message too short to accommodate event stream message overhead\");\n }\n\n const view = new DataView(buffer, byteOffset, byteLength);\n\n const messageLength = view.getUint32(0, false);\n\n if (byteLength !== messageLength) {\n throw new Error(\"Reported message length does not match received message length\");\n }\n\n const headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false);\n const expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false);\n const expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false);\n\n const checksummer = new Crc32().update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH));\n if (expectedPreludeChecksum !== checksummer.digest()) {\n throw new Error(\n `The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digest()})`\n );\n }\n\n checksummer.update(\n new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH))\n );\n if (expectedMessageChecksum !== checksummer.digest()) {\n throw new Error(\n `The message checksum (${checksummer.digest()}) did not match the expected value of ${expectedMessageChecksum}`\n );\n }\n\n return {\n headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength),\n body: new Uint8Array(\n buffer,\n byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH + headerLength,\n messageLength - headerLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH + CHECKSUM_LENGTH)\n ),\n };\n}\n","import { EventStreamMarshaller as EventMarshaller } from \"@aws-sdk/eventstream-marshaller\";\nimport { Decoder, Encoder, EventStreamMarshaller as IEventStreamMarshaller, Message } from \"@aws-sdk/types\";\n\nimport { getChunkedStream } from \"./getChunkedStream\";\nimport { getUnmarshalledStream } from \"./getUnmarshalledStream\";\n\nexport interface EventStreamMarshaller extends IEventStreamMarshaller {}\n\nexport interface EventStreamMarshallerOptions {\n utf8Encoder: Encoder;\n utf8Decoder: Decoder;\n}\n\nexport class EventStreamMarshaller {\n private readonly eventMarshaller: EventMarshaller;\n private readonly utfEncoder: Encoder;\n constructor({ utf8Encoder, utf8Decoder }: EventStreamMarshallerOptions) {\n this.eventMarshaller = new EventMarshaller(utf8Encoder, utf8Decoder);\n this.utfEncoder = utf8Encoder;\n }\n\n deserialize(\n body: AsyncIterable,\n deserializer: (input: { [event: string]: Message }) => Promise\n ): AsyncIterable {\n const chunkedStream = getChunkedStream(body);\n const unmarshalledStream = getUnmarshalledStream(chunkedStream, {\n eventMarshaller: this.eventMarshaller,\n deserializer,\n toUtf8: this.utfEncoder,\n });\n return unmarshalledStream;\n }\n\n serialize(input: AsyncIterable, serializer: (event: T) => Message): AsyncIterable {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const self = this;\n const serializedIterator = async function* () {\n for await (const chunk of input) {\n const payloadBuf = self.eventMarshaller.marshall(serializer(chunk));\n yield payloadBuf;\n }\n // Ending frame\n yield new Uint8Array(0);\n };\n return {\n [Symbol.asyncIterator]: serializedIterator,\n };\n }\n}\n","export function getChunkedStream(source: AsyncIterable): AsyncIterable {\n let currentMessageTotalLength = 0;\n let currentMessagePendingLength = 0;\n let currentMessage: Uint8Array | null = null;\n let messageLengthBuffer: Uint8Array | null = null;\n const allocateMessage = (size: number) => {\n if (typeof size !== \"number\") {\n throw new Error(\"Attempted to allocate an event message where size was not a number: \" + size);\n }\n currentMessageTotalLength = size;\n currentMessagePendingLength = 4;\n currentMessage = new Uint8Array(size);\n const currentMessageView = new DataView(currentMessage.buffer);\n currentMessageView.setUint32(0, size, false); //set big-endian Uint32 to 0~3 bytes\n };\n\n const iterator = async function* () {\n const sourceIterator = source[Symbol.asyncIterator]();\n while (true) {\n const { value, done } = await sourceIterator.next();\n if (done) {\n if (!currentMessageTotalLength) {\n return;\n } else if (currentMessageTotalLength === currentMessagePendingLength) {\n yield currentMessage as Uint8Array;\n } else {\n throw new Error(\"Truncated event message received.\");\n }\n return;\n }\n\n const chunkLength = value.length;\n let currentOffset = 0;\n\n while (currentOffset < chunkLength) {\n // create new message if necessary\n if (!currentMessage) {\n // working on a new message, determine total length\n const bytesRemaining = chunkLength - currentOffset;\n // prevent edge case where total length spans 2 chunks\n if (!messageLengthBuffer) {\n messageLengthBuffer = new Uint8Array(4);\n }\n const numBytesForTotal = Math.min(\n 4 - currentMessagePendingLength, // remaining bytes to fill the messageLengthBuffer\n bytesRemaining // bytes left in chunk\n );\n\n messageLengthBuffer.set(\n // @ts-ignore error TS2532: Object is possibly 'undefined' for value\n value.slice(currentOffset, currentOffset + numBytesForTotal),\n currentMessagePendingLength\n );\n\n currentMessagePendingLength += numBytesForTotal;\n currentOffset += numBytesForTotal;\n\n if (currentMessagePendingLength < 4) {\n // not enough information to create the current message\n break;\n }\n allocateMessage(new DataView(messageLengthBuffer.buffer).getUint32(0, false));\n messageLengthBuffer = null;\n }\n\n // write data into current message\n const numBytesToWrite = Math.min(\n currentMessageTotalLength - currentMessagePendingLength, // number of bytes left to complete message\n chunkLength - currentOffset // number of bytes left in the original chunk\n );\n currentMessage!.set(\n // @ts-ignore error TS2532: Object is possibly 'undefined' for value\n value.slice(currentOffset, currentOffset + numBytesToWrite),\n currentMessagePendingLength\n );\n currentMessagePendingLength += numBytesToWrite;\n currentOffset += numBytesToWrite;\n\n // check if a message is ready to be pushed\n if (currentMessageTotalLength && currentMessageTotalLength === currentMessagePendingLength) {\n // push out the message\n yield currentMessage as Uint8Array;\n // cleanup\n currentMessage = null;\n currentMessageTotalLength = 0;\n currentMessagePendingLength = 0;\n }\n }\n }\n };\n\n return {\n [Symbol.asyncIterator]: iterator,\n };\n}\n","import { EventStreamMarshaller as EventMarshaller } from \"@aws-sdk/eventstream-marshaller\";\nimport { Encoder, Message } from \"@aws-sdk/types\";\n\nexport type UnmarshalledStreamOptions = {\n eventMarshaller: EventMarshaller;\n deserializer: (input: { [name: string]: Message }) => Promise;\n toUtf8: Encoder;\n};\n\nexport function getUnmarshalledStream(\n source: AsyncIterable,\n options: UnmarshalledStreamOptions\n): AsyncIterable {\n return {\n [Symbol.asyncIterator]: async function* () {\n for await (const chunk of source) {\n const message = options.eventMarshaller.unmarshall(chunk);\n const { value: messageType } = message.headers[\":message-type\"];\n if (messageType === \"error\") {\n // Unmodeled exception in event\n const unmodeledError = new Error((message.headers[\":error-message\"].value as string) || \"UnknownError\");\n unmodeledError.name = message.headers[\":error-code\"].value as string;\n throw unmodeledError;\n } else if (messageType === \"exception\") {\n // For modeled exception, push it to deserializer and throw after deserializing\n const code = message.headers[\":exception-type\"].value as string;\n const exception = { [code]: message };\n // Get parsed exception event in key(error code) value(structured error) pair.\n const deserializedException = await options.deserializer(exception);\n if (deserializedException.$unknown) {\n //this is an unmodeled exception then try parsing it with best effort\n const error = new Error(options.toUtf8(message.body));\n error.name = code;\n throw error;\n }\n throw deserializedException[code];\n } else if (messageType === \"event\") {\n const event = {\n [message.headers[\":event-type\"].value as string]: message,\n };\n const deserialized = await options.deserializer(event);\n if (deserialized.$unknown) continue;\n yield deserialized;\n } else {\n throw Error(`Unrecognizable event type: ${message.headers[\":event-type\"].value}`);\n }\n }\n },\n };\n}\n","import { EventStreamMarshaller as EventMarshaller } from \"@aws-sdk/eventstream-marshaller\";\nimport { EventStreamMarshaller as UniversalEventStreamMarshaller } from \"@aws-sdk/eventstream-serde-universal\";\nimport { Decoder, Encoder, EventStreamMarshaller as IEventStreamMarshaller, Message } from \"@aws-sdk/types\";\n\nimport { iterableToReadableStream, readableStreamtoIterable } from \"./utils\";\n\nexport interface EventStreamMarshaller extends IEventStreamMarshaller {}\n\nexport interface EventStreamMarshallerOptions {\n utf8Encoder: Encoder;\n utf8Decoder: Decoder;\n}\n\n/**\n * Utility class used to serialize and deserialize event streams in\n * browsers and ReactNative.\n *\n * In browsers where ReadableStream API is available:\n * * deserialize from ReadableStream to an async iterable of output structure\n * * serialize from async iterable of input structure to ReadableStream\n * In ReactNative where only async iterable API is available:\n * * deserialize from async iterable of binaries to async iterable of output structure\n * * serialize from async iterable of input structure to async iterable of binaries\n *\n * We use ReadableStream API in browsers because of the consistency with other\n * streaming operations, where ReadableStream API is used to denote streaming data.\n * Whereas in ReactNative, ReadableStream API is not available, we use async iterable\n * for streaming data although it has lower throughput.\n */\nexport class EventStreamMarshaller {\n private readonly eventMarshaller: EventMarshaller;\n private readonly universalMarshaller: UniversalEventStreamMarshaller;\n constructor({ utf8Encoder, utf8Decoder }: EventStreamMarshallerOptions) {\n this.eventMarshaller = new EventMarshaller(utf8Encoder, utf8Decoder);\n this.universalMarshaller = new UniversalEventStreamMarshaller({\n utf8Decoder,\n utf8Encoder,\n });\n }\n\n deserialize(\n body: ReadableStream | AsyncIterable,\n deserializer: (input: { [event: string]: Message }) => Promise\n ): AsyncIterable {\n const bodyIterable = isReadableStream(body) ? readableStreamtoIterable(body) : body;\n return this.universalMarshaller.deserialize(bodyIterable, deserializer);\n }\n\n /**\n * Generate a stream that serialize events into stream of binary chunks;\n *\n * Caveat is that streaming request payload doesn't work on browser with native\n * xhr or fetch handler currently because they don't support upload streaming.\n * reference:\n * * https://bugs.chromium.org/p/chromium/issues/detail?id=688906\n * * https://bugzilla.mozilla.org/show_bug.cgi?id=1387483\n *\n */\n serialize(input: AsyncIterable, serializer: (event: T) => Message): ReadableStream | AsyncIterable {\n const serialziedIterable = this.universalMarshaller.serialize(input, serializer);\n return typeof ReadableStream === \"function\" ? iterableToReadableStream(serialziedIterable) : serialziedIterable;\n }\n}\n\nconst isReadableStream = (body: any): body is ReadableStream =>\n typeof ReadableStream === \"function\" && body instanceof ReadableStream;\n","/**\n * A util function converting ReadableStream into an async iterable.\n * Reference: https://jakearchibald.com/2017/async-iterators-and-generators/#making-streams-iterate\n */\nexport const readableStreamtoIterable = (readableStream: ReadableStream): AsyncIterable => ({\n [Symbol.asyncIterator]: async function* () {\n const reader = readableStream.getReader();\n try {\n while (true) {\n const { done, value } = await reader.read();\n if (done) return;\n yield value as T;\n }\n } finally {\n reader.releaseLock();\n }\n },\n});\n\n/**\n * A util function converting async iterable to a ReadableStream.\n */\nexport const iterableToReadableStream = (asyncIterable: AsyncIterable): ReadableStream => {\n const iterator = asyncIterable[Symbol.asyncIterator]();\n return new ReadableStream({\n async pull(controller) {\n const { done, value } = await iterator.next();\n if (done) {\n return controller.close();\n }\n controller.enqueue(value);\n },\n });\n};\n","/**\n * @internal\n */\nexport const BLOCK_SIZE = 64;\n\n/**\n * @internal\n */\nexport const DIGEST_LENGTH = 16;\n\n/**\n * @internal\n */\nexport const INIT = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476];\n","import { Hash, SourceData } from \"@aws-sdk/types\";\nimport { fromUtf8 } from \"@aws-sdk/util-utf8-browser\";\n\nimport { BLOCK_SIZE, DIGEST_LENGTH, INIT } from \"./constants\";\n\nexport class Md5 implements Hash {\n private state = Uint32Array.from(INIT);\n private buffer: DataView = new DataView(new ArrayBuffer(BLOCK_SIZE));\n private bufferLength = 0;\n private bytesHashed = 0;\n private finished = false;\n\n update(sourceData: SourceData): void {\n if (isEmptyData(sourceData)) {\n return;\n } else if (this.finished) {\n throw new Error(\"Attempted to update an already finished hash.\");\n }\n\n const data = convertToBuffer(sourceData);\n\n let position = 0;\n let { byteLength } = data;\n this.bytesHashed += byteLength;\n\n while (byteLength > 0) {\n this.buffer.setUint8(this.bufferLength++, data[position++]);\n byteLength--;\n\n if (this.bufferLength === BLOCK_SIZE) {\n this.hashBuffer();\n this.bufferLength = 0;\n }\n }\n }\n\n async digest(): Promise {\n if (!this.finished) {\n const { buffer, bufferLength: undecoratedLength, bytesHashed } = this;\n const bitsHashed = bytesHashed * 8;\n buffer.setUint8(this.bufferLength++, 0b10000000);\n\n // Ensure the final block has enough room for the hashed length\n if (undecoratedLength % BLOCK_SIZE >= BLOCK_SIZE - 8) {\n for (let i = this.bufferLength; i < BLOCK_SIZE; i++) {\n buffer.setUint8(i, 0);\n }\n this.hashBuffer();\n this.bufferLength = 0;\n }\n\n for (let i = this.bufferLength; i < BLOCK_SIZE - 8; i++) {\n buffer.setUint8(i, 0);\n }\n buffer.setUint32(BLOCK_SIZE - 8, bitsHashed >>> 0, true);\n buffer.setUint32(BLOCK_SIZE - 4, Math.floor(bitsHashed / 0x100000000), true);\n\n this.hashBuffer();\n\n this.finished = true;\n }\n\n const out = new DataView(new ArrayBuffer(DIGEST_LENGTH));\n for (let i = 0; i < 4; i++) {\n out.setUint32(i * 4, this.state[i], true);\n }\n\n return new Uint8Array(out.buffer, out.byteOffset, out.byteLength);\n }\n\n private hashBuffer(): void {\n const { buffer, state } = this;\n\n let a = state[0],\n b = state[1],\n c = state[2],\n d = state[3];\n\n a = ff(a, b, c, d, buffer.getUint32(0, true), 7, 0xd76aa478);\n d = ff(d, a, b, c, buffer.getUint32(4, true), 12, 0xe8c7b756);\n c = ff(c, d, a, b, buffer.getUint32(8, true), 17, 0x242070db);\n b = ff(b, c, d, a, buffer.getUint32(12, true), 22, 0xc1bdceee);\n a = ff(a, b, c, d, buffer.getUint32(16, true), 7, 0xf57c0faf);\n d = ff(d, a, b, c, buffer.getUint32(20, true), 12, 0x4787c62a);\n c = ff(c, d, a, b, buffer.getUint32(24, true), 17, 0xa8304613);\n b = ff(b, c, d, a, buffer.getUint32(28, true), 22, 0xfd469501);\n a = ff(a, b, c, d, buffer.getUint32(32, true), 7, 0x698098d8);\n d = ff(d, a, b, c, buffer.getUint32(36, true), 12, 0x8b44f7af);\n c = ff(c, d, a, b, buffer.getUint32(40, true), 17, 0xffff5bb1);\n b = ff(b, c, d, a, buffer.getUint32(44, true), 22, 0x895cd7be);\n a = ff(a, b, c, d, buffer.getUint32(48, true), 7, 0x6b901122);\n d = ff(d, a, b, c, buffer.getUint32(52, true), 12, 0xfd987193);\n c = ff(c, d, a, b, buffer.getUint32(56, true), 17, 0xa679438e);\n b = ff(b, c, d, a, buffer.getUint32(60, true), 22, 0x49b40821);\n\n a = gg(a, b, c, d, buffer.getUint32(4, true), 5, 0xf61e2562);\n d = gg(d, a, b, c, buffer.getUint32(24, true), 9, 0xc040b340);\n c = gg(c, d, a, b, buffer.getUint32(44, true), 14, 0x265e5a51);\n b = gg(b, c, d, a, buffer.getUint32(0, true), 20, 0xe9b6c7aa);\n a = gg(a, b, c, d, buffer.getUint32(20, true), 5, 0xd62f105d);\n d = gg(d, a, b, c, buffer.getUint32(40, true), 9, 0x02441453);\n c = gg(c, d, a, b, buffer.getUint32(60, true), 14, 0xd8a1e681);\n b = gg(b, c, d, a, buffer.getUint32(16, true), 20, 0xe7d3fbc8);\n a = gg(a, b, c, d, buffer.getUint32(36, true), 5, 0x21e1cde6);\n d = gg(d, a, b, c, buffer.getUint32(56, true), 9, 0xc33707d6);\n c = gg(c, d, a, b, buffer.getUint32(12, true), 14, 0xf4d50d87);\n b = gg(b, c, d, a, buffer.getUint32(32, true), 20, 0x455a14ed);\n a = gg(a, b, c, d, buffer.getUint32(52, true), 5, 0xa9e3e905);\n d = gg(d, a, b, c, buffer.getUint32(8, true), 9, 0xfcefa3f8);\n c = gg(c, d, a, b, buffer.getUint32(28, true), 14, 0x676f02d9);\n b = gg(b, c, d, a, buffer.getUint32(48, true), 20, 0x8d2a4c8a);\n\n a = hh(a, b, c, d, buffer.getUint32(20, true), 4, 0xfffa3942);\n d = hh(d, a, b, c, buffer.getUint32(32, true), 11, 0x8771f681);\n c = hh(c, d, a, b, buffer.getUint32(44, true), 16, 0x6d9d6122);\n b = hh(b, c, d, a, buffer.getUint32(56, true), 23, 0xfde5380c);\n a = hh(a, b, c, d, buffer.getUint32(4, true), 4, 0xa4beea44);\n d = hh(d, a, b, c, buffer.getUint32(16, true), 11, 0x4bdecfa9);\n c = hh(c, d, a, b, buffer.getUint32(28, true), 16, 0xf6bb4b60);\n b = hh(b, c, d, a, buffer.getUint32(40, true), 23, 0xbebfbc70);\n a = hh(a, b, c, d, buffer.getUint32(52, true), 4, 0x289b7ec6);\n d = hh(d, a, b, c, buffer.getUint32(0, true), 11, 0xeaa127fa);\n c = hh(c, d, a, b, buffer.getUint32(12, true), 16, 0xd4ef3085);\n b = hh(b, c, d, a, buffer.getUint32(24, true), 23, 0x04881d05);\n a = hh(a, b, c, d, buffer.getUint32(36, true), 4, 0xd9d4d039);\n d = hh(d, a, b, c, buffer.getUint32(48, true), 11, 0xe6db99e5);\n c = hh(c, d, a, b, buffer.getUint32(60, true), 16, 0x1fa27cf8);\n b = hh(b, c, d, a, buffer.getUint32(8, true), 23, 0xc4ac5665);\n\n a = ii(a, b, c, d, buffer.getUint32(0, true), 6, 0xf4292244);\n d = ii(d, a, b, c, buffer.getUint32(28, true), 10, 0x432aff97);\n c = ii(c, d, a, b, buffer.getUint32(56, true), 15, 0xab9423a7);\n b = ii(b, c, d, a, buffer.getUint32(20, true), 21, 0xfc93a039);\n a = ii(a, b, c, d, buffer.getUint32(48, true), 6, 0x655b59c3);\n d = ii(d, a, b, c, buffer.getUint32(12, true), 10, 0x8f0ccc92);\n c = ii(c, d, a, b, buffer.getUint32(40, true), 15, 0xffeff47d);\n b = ii(b, c, d, a, buffer.getUint32(4, true), 21, 0x85845dd1);\n a = ii(a, b, c, d, buffer.getUint32(32, true), 6, 0x6fa87e4f);\n d = ii(d, a, b, c, buffer.getUint32(60, true), 10, 0xfe2ce6e0);\n c = ii(c, d, a, b, buffer.getUint32(24, true), 15, 0xa3014314);\n b = ii(b, c, d, a, buffer.getUint32(52, true), 21, 0x4e0811a1);\n a = ii(a, b, c, d, buffer.getUint32(16, true), 6, 0xf7537e82);\n d = ii(d, a, b, c, buffer.getUint32(44, true), 10, 0xbd3af235);\n c = ii(c, d, a, b, buffer.getUint32(8, true), 15, 0x2ad7d2bb);\n b = ii(b, c, d, a, buffer.getUint32(36, true), 21, 0xeb86d391);\n\n state[0] = (a + state[0]) & 0xffffffff;\n state[1] = (b + state[1]) & 0xffffffff;\n state[2] = (c + state[2]) & 0xffffffff;\n state[3] = (d + state[3]) & 0xffffffff;\n }\n}\n\nfunction cmn(q: number, a: number, b: number, x: number, s: number, t: number) {\n a = (((a + q) & 0xffffffff) + ((x + t) & 0xffffffff)) & 0xffffffff;\n return (((a << s) | (a >>> (32 - s))) + b) & 0xffffffff;\n}\n\nfunction ff(a: number, b: number, c: number, d: number, x: number, s: number, t: number) {\n return cmn((b & c) | (~b & d), a, b, x, s, t);\n}\n\nfunction gg(a: number, b: number, c: number, d: number, x: number, s: number, t: number) {\n return cmn((b & d) | (c & ~d), a, b, x, s, t);\n}\n\nfunction hh(a: number, b: number, c: number, d: number, x: number, s: number, t: number) {\n return cmn(b ^ c ^ d, a, b, x, s, t);\n}\n\nfunction ii(a: number, b: number, c: number, d: number, x: number, s: number, t: number) {\n return cmn(c ^ (b | ~d), a, b, x, s, t);\n}\n\nfunction isEmptyData(data: SourceData): boolean {\n if (typeof data === \"string\") {\n return data.length === 0;\n }\n\n return data.byteLength === 0;\n}\n\nfunction convertToBuffer(data: SourceData): Uint8Array {\n if (typeof data === \"string\") {\n return fromUtf8(data);\n }\n\n if (ArrayBuffer.isView(data)) {\n return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);\n }\n\n return new Uint8Array(data);\n}\n","import { RegionInfo, RegionInfoProvider } from \"@aws-sdk/types\";\n\n// Partition default templates\nconst AWS_TEMPLATE = \"s3.{region}.amazonaws.com\";\nconst AWS_CN_TEMPLATE = \"s3.{region}.amazonaws.com.cn\";\nconst AWS_ISO_TEMPLATE = \"s3.{region}.c2s.ic.gov\";\nconst AWS_ISO_B_TEMPLATE = \"s3.{region}.sc2s.sgov.gov\";\nconst AWS_US_GOV_TEMPLATE = \"s3.{region}.amazonaws.com\";\n\n// Partition regions\nconst AWS_REGIONS = new Set([\n \"af-south-1\",\n \"ap-east-1\",\n \"ap-northeast-1\",\n \"ap-northeast-2\",\n \"ap-south-1\",\n \"ap-southeast-1\",\n \"ap-southeast-2\",\n \"ca-central-1\",\n \"eu-central-1\",\n \"eu-north-1\",\n \"eu-south-1\",\n \"eu-west-1\",\n \"eu-west-2\",\n \"eu-west-3\",\n \"me-south-1\",\n \"sa-east-1\",\n \"us-east-1\",\n \"us-east-2\",\n \"us-west-1\",\n \"us-west-2\",\n]);\nconst AWS_CN_REGIONS = new Set([\"cn-north-1\", \"cn-northwest-1\"]);\nconst AWS_ISO_REGIONS = new Set([\"us-iso-east-1\"]);\nconst AWS_ISO_B_REGIONS = new Set([\"us-isob-east-1\"]);\nconst AWS_US_GOV_REGIONS = new Set([\"us-gov-east-1\", \"us-gov-west-1\"]);\n\nexport const defaultRegionInfoProvider: RegionInfoProvider = (region: string, options?: any) => {\n let regionInfo: RegionInfo | undefined = undefined;\n switch (region) {\n // First, try to match exact region names.\n case \"af-south-1\":\n regionInfo = {\n hostname: \"s3.af-south-1.amazonaws.com\",\n partition: \"aws\",\n };\n break;\n case \"ap-east-1\":\n regionInfo = {\n hostname: \"s3.ap-east-1.amazonaws.com\",\n partition: \"aws\",\n };\n break;\n case \"ap-northeast-1\":\n regionInfo = {\n hostname: \"s3.ap-northeast-1.amazonaws.com\",\n partition: \"aws\",\n };\n break;\n case \"ap-northeast-2\":\n regionInfo = {\n hostname: \"s3.ap-northeast-2.amazonaws.com\",\n partition: \"aws\",\n };\n break;\n case \"ap-south-1\":\n regionInfo = {\n hostname: \"s3.ap-south-1.amazonaws.com\",\n partition: \"aws\",\n };\n break;\n case \"ap-southeast-1\":\n regionInfo = {\n hostname: \"s3.ap-southeast-1.amazonaws.com\",\n partition: \"aws\",\n };\n break;\n case \"ap-southeast-2\":\n regionInfo = {\n hostname: \"s3.ap-southeast-2.amazonaws.com\",\n partition: \"aws\",\n };\n break;\n case \"aws-global\":\n regionInfo = {\n hostname: \"s3.amazonaws.com\",\n partition: \"aws\",\n signingRegion: \"us-east-1\",\n };\n break;\n case \"ca-central-1\":\n regionInfo = {\n hostname: \"s3.ca-central-1.amazonaws.com\",\n partition: \"aws\",\n };\n break;\n case \"cn-north-1\":\n regionInfo = {\n hostname: \"s3.cn-north-1.amazonaws.com.cn\",\n partition: \"aws-cn\",\n };\n break;\n case \"cn-northwest-1\":\n regionInfo = {\n hostname: \"s3.cn-northwest-1.amazonaws.com.cn\",\n partition: \"aws-cn\",\n };\n break;\n case \"eu-central-1\":\n regionInfo = {\n hostname: \"s3.eu-central-1.amazonaws.com\",\n partition: \"aws\",\n };\n break;\n case \"eu-north-1\":\n regionInfo = {\n hostname: \"s3.eu-north-1.amazonaws.com\",\n partition: \"aws\",\n };\n break;\n case \"eu-south-1\":\n regionInfo = {\n hostname: \"s3.eu-south-1.amazonaws.com\",\n partition: \"aws\",\n };\n break;\n case \"eu-west-1\":\n regionInfo = {\n hostname: \"s3.eu-west-1.amazonaws.com\",\n partition: \"aws\",\n };\n break;\n case \"eu-west-2\":\n regionInfo = {\n hostname: \"s3.eu-west-2.amazonaws.com\",\n partition: \"aws\",\n };\n break;\n case \"eu-west-3\":\n regionInfo = {\n hostname: \"s3.eu-west-3.amazonaws.com\",\n partition: \"aws\",\n };\n break;\n case \"fips-us-gov-west-1\":\n regionInfo = {\n hostname: \"s3-fips.us-gov-west-1.amazonaws.com\",\n partition: \"aws-us-gov\",\n signingRegion: \"us-gov-west-1\",\n };\n break;\n case \"me-south-1\":\n regionInfo = {\n hostname: \"s3.me-south-1.amazonaws.com\",\n partition: \"aws\",\n };\n break;\n case \"s3-external-1\":\n regionInfo = {\n hostname: \"s3-external-1.amazonaws.com\",\n partition: \"aws\",\n signingRegion: \"us-east-1\",\n };\n break;\n case \"sa-east-1\":\n regionInfo = {\n hostname: \"s3.sa-east-1.amazonaws.com\",\n partition: \"aws\",\n };\n break;\n case \"us-east-1\":\n regionInfo = {\n hostname: \"s3.us-east-1.amazonaws.com\",\n partition: \"aws\",\n };\n break;\n case \"us-east-2\":\n regionInfo = {\n hostname: \"s3.us-east-2.amazonaws.com\",\n partition: \"aws\",\n };\n break;\n case \"us-gov-east-1\":\n regionInfo = {\n hostname: \"s3.us-gov-east-1.amazonaws.com\",\n partition: \"aws-us-gov\",\n };\n break;\n case \"us-gov-west-1\":\n regionInfo = {\n hostname: \"s3.us-gov-west-1.amazonaws.com\",\n partition: \"aws-us-gov\",\n };\n break;\n case \"us-iso-east-1\":\n regionInfo = {\n hostname: \"s3.us-iso-east-1.c2s.ic.gov\",\n partition: \"aws-iso\",\n };\n break;\n case \"us-isob-east-1\":\n regionInfo = {\n hostname: \"s3.us-isob-east-1.sc2s.sgov.gov\",\n partition: \"aws-iso-b\",\n };\n break;\n case \"us-west-1\":\n regionInfo = {\n hostname: \"s3.us-west-1.amazonaws.com\",\n partition: \"aws\",\n };\n break;\n case \"us-west-2\":\n regionInfo = {\n hostname: \"s3.us-west-2.amazonaws.com\",\n partition: \"aws\",\n };\n break;\n // Next, try to match partition endpoints.\n default:\n if (AWS_REGIONS.has(region)) {\n regionInfo = {\n hostname: AWS_TEMPLATE.replace(\"{region}\", region),\n partition: \"aws\",\n };\n }\n if (AWS_CN_REGIONS.has(region)) {\n regionInfo = {\n hostname: AWS_CN_TEMPLATE.replace(\"{region}\", region),\n partition: \"aws-cn\",\n };\n }\n if (AWS_ISO_REGIONS.has(region)) {\n regionInfo = {\n hostname: AWS_ISO_TEMPLATE.replace(\"{region}\", region),\n partition: \"aws-iso\",\n };\n }\n if (AWS_ISO_B_REGIONS.has(region)) {\n regionInfo = {\n hostname: AWS_ISO_B_TEMPLATE.replace(\"{region}\", region),\n partition: \"aws-iso-b\",\n };\n }\n if (AWS_US_GOV_REGIONS.has(region)) {\n regionInfo = {\n hostname: AWS_US_GOV_TEMPLATE.replace(\"{region}\", region),\n partition: \"aws-us-gov\",\n };\n }\n // Finally, assume it's an AWS partition endpoint.\n if (regionInfo === undefined) {\n regionInfo = {\n hostname: AWS_TEMPLATE.replace(\"{region}\", region),\n partition: \"aws\",\n };\n }\n }\n return Promise.resolve({ signingService: \"s3\", ...regionInfo });\n};\n","import { defaultRegionInfoProvider } from \"./endpoints\";\nimport { Logger as __Logger } from \"@aws-sdk/types\";\nimport { parseUrl } from \"@aws-sdk/url-parser\";\n\n/**\n * @internal\n */\nexport const ClientSharedValues = {\n apiVersion: \"2006-03-01\",\n disableHostPrefix: false,\n logger: {} as __Logger,\n regionInfoProvider: defaultRegionInfoProvider,\n serviceId: \"S3\",\n signingEscapePath: false,\n urlParser: parseUrl,\n useArnRegion: false,\n};\n","import packageInfo from \"./package.json\";\n\nimport { Sha256 } from \"@aws-crypto/sha256-browser\";\nimport { eventStreamSerdeProvider } from \"@aws-sdk/eventstream-serde-browser\";\nimport { FetchHttpHandler, streamCollector } from \"@aws-sdk/fetch-http-handler\";\nimport { blobHasher as streamHasher } from \"@aws-sdk/hash-blob-browser\";\nimport { invalidProvider } from \"@aws-sdk/invalid-dependency\";\nimport { Md5 } from \"@aws-sdk/md5-js\";\nimport { DEFAULT_MAX_ATTEMPTS } from \"@aws-sdk/middleware-retry\";\nimport { fromBase64, toBase64 } from \"@aws-sdk/util-base64-browser\";\nimport { calculateBodyLength } from \"@aws-sdk/util-body-length-browser\";\nimport { defaultUserAgent } from \"@aws-sdk/util-user-agent-browser\";\nimport { fromUtf8, toUtf8 } from \"@aws-sdk/util-utf8-browser\";\nimport { ClientDefaults } from \"./S3Client\";\nimport { ClientSharedValues } from \"./runtimeConfig.shared\";\n\n/**\n * @internal\n */\nexport const ClientDefaultValues: Required = {\n ...ClientSharedValues,\n runtime: \"browser\",\n base64Decoder: fromBase64,\n base64Encoder: toBase64,\n bodyLengthChecker: calculateBodyLength,\n credentialDefaultProvider: (_: unknown) => () => Promise.reject(new Error(\"Credential is missing\")),\n defaultUserAgentProvider: defaultUserAgent({\n serviceId: ClientSharedValues.serviceId,\n clientVersion: packageInfo.version,\n }),\n eventStreamSerdeProvider,\n maxAttempts: DEFAULT_MAX_ATTEMPTS,\n md5: Md5,\n region: invalidProvider(\"Region is missing\"),\n requestHandler: new FetchHttpHandler(),\n sha256: Sha256,\n streamCollector,\n streamHasher,\n utf8Decoder: fromUtf8,\n utf8Encoder: toUtf8,\n};\n","import { Decoder, Encoder, EventSigner, EventStreamSerdeProvider, Provider } from \"@aws-sdk/types\";\n\nimport { EventStreamMarshaller } from \"./EventStreamMarshaller\";\n\n/** browser event stream serde utils provider */\nexport const eventStreamSerdeProvider: EventStreamSerdeProvider = (options: {\n utf8Encoder: Encoder;\n utf8Decoder: Decoder;\n eventSigner: EventSigner | Provider;\n}) => new EventStreamMarshaller(options);\n","import { blobReader } from \"@aws-sdk/chunked-blob-reader\";\nimport { HashConstructor, StreamHasher } from \"@aws-sdk/types\";\n\nexport const blobHasher: StreamHasher = async function blobHasher(\n hashCtor: HashConstructor,\n blob: Blob\n): Promise {\n const hash = new hashCtor();\n\n await blobReader(blob, (chunk) => {\n hash.update(chunk);\n });\n\n return hash.digest();\n};\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from) {\r\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\r\n to[j] = from[i];\r\n return to;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { Endpoint, Provider, RegionInfoProvider, UrlParser } from \"@aws-sdk/types\";\n\nexport interface EndpointsInputConfig {\n /**\n * The fully qualified endpoint of the webservice. This is only required when using a custom endpoint (for example, when using a local version of S3).\n */\n endpoint?: string | Endpoint | Provider;\n\n /**\n * Whether TLS is enabled for requests.\n */\n tls?: boolean;\n}\n\ninterface PreviouslyResolved {\n regionInfoProvider: RegionInfoProvider;\n urlParser: UrlParser;\n region: Provider;\n}\n\nexport interface EndpointsResolvedConfig extends Required {\n endpoint: Provider;\n isCustomEndpoint: boolean;\n}\n\nexport const resolveEndpointsConfig = (\n input: T & EndpointsInputConfig & PreviouslyResolved\n): T & EndpointsResolvedConfig => ({\n ...input,\n tls: input.tls ?? true,\n endpoint: input.endpoint ? normalizeEndpoint(input) : () => getEndPointFromRegion(input),\n isCustomEndpoint: input.endpoint ? true : false,\n});\n\nconst normalizeEndpoint = (input: EndpointsInputConfig & PreviouslyResolved): Provider => {\n const { endpoint, urlParser } = input;\n if (typeof endpoint === \"string\") {\n const promisified = Promise.resolve(urlParser(endpoint));\n return () => promisified;\n } else if (typeof endpoint === \"object\") {\n const promisified = Promise.resolve(endpoint);\n return () => promisified;\n }\n return endpoint!;\n};\n\nconst getEndPointFromRegion = async (input: EndpointsInputConfig & PreviouslyResolved) => {\n const { tls = true } = input;\n const region = await input.region();\n\n const dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);\n if (!dnsHostRegex.test(region)) {\n throw new Error(\"Invalid region in client config\");\n }\n\n const { hostname } = (await input.regionInfoProvider(region)) ?? {};\n if (!hostname) {\n throw new Error(\"Cannot resolve hostname from client config\");\n }\n\n return input.urlParser(`${tls ? \"https:\" : \"http:\"}//${hostname}`);\n};\n","import { LoadedConfigSelectors, LocalConfigOptions } from \"@aws-sdk/node-config-provider\";\nimport { Provider } from \"@aws-sdk/types\";\n\nexport const REGION_ENV_NAME = \"AWS_REGION\";\nexport const REGION_INI_NAME = \"region\";\n\nexport const NODE_REGION_CONFIG_OPTIONS: LoadedConfigSelectors = {\n environmentVariableSelector: (env) => env[REGION_ENV_NAME],\n configFileSelector: (profile) => profile[REGION_INI_NAME],\n default: () => {\n throw new Error(\"Region is missing\");\n },\n};\n\nexport const NODE_REGION_CONFIG_FILE_OPTIONS: LocalConfigOptions = {\n preferredFile: \"credentials\",\n};\n\nexport interface RegionInputConfig {\n /**\n * The AWS region to which this client will send requests\n */\n region?: string | Provider;\n}\n\ninterface PreviouslyResolved {}\n\nexport interface RegionResolvedConfig {\n region: Provider;\n}\n\nexport const resolveRegionConfig = (input: T & RegionInputConfig & PreviouslyResolved): T & RegionResolvedConfig => {\n if (!input.region) {\n throw new Error(\"Region is missing\");\n }\n return {\n ...input,\n region: normalizeRegion(input.region!),\n };\n};\n\nconst normalizeRegion = (region: string | Provider): Provider => {\n if (typeof region === \"string\") {\n const promisified = Promise.resolve(region);\n return () => promisified;\n }\n return region as Provider;\n};\n","import { GetCredentialsForIdentityCommand } from \"@aws-sdk/client-cognito-identity\";\nimport { ProviderError } from \"@aws-sdk/property-provider\";\nimport { CredentialProvider, Credentials } from \"@aws-sdk/types\";\n\nimport { CognitoProviderParameters } from \"./CognitoProviderParameters\";\nimport { resolveLogins } from \"./resolveLogins\";\n\nexport interface CognitoIdentityCredentials extends Credentials {\n /**\n * The Cognito ID returned by the last call to AWS.CognitoIdentity.getOpenIdToken().\n */\n identityId: string;\n}\n\n/**\n * Retrieves temporary AWS credentials using Amazon Cognito's\n * `GetCredentialsForIdentity` operation.\n *\n * Results from this function call are not cached internally.\n */\nexport function fromCognitoIdentity(parameters: FromCognitoIdentityParameters): CredentialProvider {\n return async (): Promise => {\n const {\n Credentials: {\n AccessKeyId = throwOnMissingAccessKeyId(),\n Expiration,\n SecretKey = throwOnMissingSecretKey(),\n SessionToken,\n } = throwOnMissingCredentials(),\n } = await parameters.client.send(\n new GetCredentialsForIdentityCommand({\n CustomRoleArn: parameters.customRoleArn,\n IdentityId: parameters.identityId,\n Logins: parameters.logins ? await resolveLogins(parameters.logins) : undefined,\n })\n );\n\n return {\n identityId: parameters.identityId,\n accessKeyId: AccessKeyId,\n secretAccessKey: SecretKey,\n sessionToken: SessionToken,\n expiration: Expiration,\n };\n };\n}\n\nexport interface FromCognitoIdentityParameters extends CognitoProviderParameters {\n /**\n * The unique identifier for the identity against which credentials will be\n * issued.\n */\n identityId: string;\n}\n\nfunction throwOnMissingAccessKeyId(): never {\n throw new ProviderError(\"Response from Amazon Cognito contained no access key ID\");\n}\n\nfunction throwOnMissingCredentials(): never {\n throw new ProviderError(\"Response from Amazon Cognito contained no credentials\");\n}\n\nfunction throwOnMissingSecretKey(): never {\n throw new ProviderError(\"Response from Amazon Cognito contained no secret key\");\n}\n","import { Storage } from \"./Storage\";\n\nconst STORE_NAME = \"IdentityIds\";\n\nexport class IndexedDbStorage implements Storage {\n constructor(private readonly dbName: string = \"aws:cognito-identity-ids\") {}\n\n getItem(key: string): Promise {\n return this.withObjectStore(\"readonly\", (store) => {\n const req = store.get(key);\n\n return new Promise((resolve) => {\n req.onerror = () => resolve(null);\n\n req.onsuccess = () => resolve(req.result ? req.result.value : null);\n });\n }).catch(() => null);\n }\n\n removeItem(key: string): Promise {\n return this.withObjectStore(\"readwrite\", (store) => {\n const req = store.delete(key);\n\n return new Promise((resolve, reject) => {\n req.onerror = () => reject(req.error);\n\n req.onsuccess = () => resolve();\n });\n });\n }\n\n setItem(id: string, value: string): Promise {\n return this.withObjectStore(\"readwrite\", (store) => {\n const req = store.put({ id, value });\n\n return new Promise((resolve, reject) => {\n req.onerror = () => reject(req.error);\n\n req.onsuccess = () => resolve();\n });\n });\n }\n\n private getDb(): Promise {\n const openDbRequest = self.indexedDB.open(this.dbName, 1);\n return new Promise((resolve, reject) => {\n openDbRequest.onsuccess = () => {\n resolve(openDbRequest.result);\n };\n\n openDbRequest.onerror = () => {\n reject(openDbRequest.error);\n };\n\n openDbRequest.onblocked = () => {\n reject(new Error(\"Unable to access DB\"));\n };\n\n openDbRequest.onupgradeneeded = () => {\n const db = openDbRequest.result;\n db.onerror = () => {\n reject(new Error(\"Failed to create object store\"));\n };\n\n db.createObjectStore(STORE_NAME, { keyPath: \"id\" });\n };\n });\n }\n\n private withObjectStore(mode: IDBTransactionMode, action: (store: IDBObjectStore) => Promise): Promise {\n return this.getDb().then((db) => {\n const tx = db.transaction(STORE_NAME, mode);\n tx.oncomplete = () => db.close();\n\n return new Promise((resolve, reject) => {\n tx.onerror = () => reject(tx.error);\n\n resolve(action(tx.objectStore(STORE_NAME)));\n }).catch((err) => {\n db.close();\n throw err;\n });\n });\n }\n}\n","import { IndexedDbStorage } from \"./IndexedDbStorage\";\nimport { InMemoryStorage } from \"./InMemoryStorage\";\nimport { Storage } from \"./Storage\";\n\nconst inMemoryStorage = new InMemoryStorage();\n\nexport function localStorage(): Storage {\n if (typeof self === \"object\" && self.indexedDB) {\n return new IndexedDbStorage();\n }\n\n if (typeof window === \"object\" && window.localStorage) {\n return window.localStorage;\n }\n\n return inMemoryStorage;\n}\n","import { Storage } from \"./Storage\";\n\nexport class InMemoryStorage implements Storage {\n constructor(private store: { [key: string]: string } = {}) {}\n\n getItem(key: string): string | null {\n if (key in this.store) {\n return this.store[key];\n }\n\n return null;\n }\n\n removeItem(key: string): void {\n delete this.store[key];\n }\n\n setItem(key: string, value: string): void {\n this.store[key] = value;\n }\n}\n","import { GetIdCommand } from \"@aws-sdk/client-cognito-identity\";\nimport { ProviderError } from \"@aws-sdk/property-provider\";\nimport { CredentialProvider } from \"@aws-sdk/types\";\n\nimport { CognitoProviderParameters } from \"./CognitoProviderParameters\";\nimport { fromCognitoIdentity } from \"./fromCognitoIdentity\";\nimport { localStorage } from \"./localStorage\";\nimport { resolveLogins } from \"./resolveLogins\";\nimport { Storage } from \"./Storage\";\n\n/**\n * Retrieves or generates a unique identifier using Amazon Cognito's `GetId`\n * operation, then generates temporary AWS credentials using Amazon Cognito's\n * `GetCredentialsForIdentity` operation.\n *\n * Results from `GetId` are cached internally, but results from\n * `GetCredentialsForIdentity` are not.\n */\nexport function fromCognitoIdentityPool({\n accountId,\n cache = localStorage(),\n client,\n customRoleArn,\n identityPoolId,\n logins,\n userIdentifier = !logins || Object.keys(logins).length === 0 ? \"ANONYMOUS\" : undefined,\n}: FromCognitoIdentityPoolParameters): CredentialProvider {\n const cacheKey = userIdentifier ? `aws:cognito-identity-credentials:${identityPoolId}:${userIdentifier}` : undefined;\n\n let provider: CredentialProvider = async () => {\n let identityId = cacheKey && (await cache.getItem(cacheKey));\n if (!identityId) {\n const { IdentityId = throwOnMissingId() } = await client.send(\n new GetIdCommand({\n AccountId: accountId,\n IdentityPoolId: identityPoolId,\n Logins: logins ? await resolveLogins(logins) : undefined,\n })\n );\n identityId = IdentityId;\n if (cacheKey) {\n Promise.resolve(cache.setItem(cacheKey, identityId)).catch(() => {});\n }\n }\n\n provider = fromCognitoIdentity({\n client,\n customRoleArn,\n logins,\n identityId,\n });\n\n return provider();\n };\n\n return () =>\n provider().catch(async (err) => {\n if (cacheKey) {\n Promise.resolve(cache.removeItem(cacheKey)).catch(() => {});\n }\n\n throw err;\n });\n}\n\nexport interface FromCognitoIdentityPoolParameters extends CognitoProviderParameters {\n /**\n * A standard AWS account ID (9+ digits).\n */\n accountId?: string;\n\n /**\n * A cache in which to store resolved Cognito IdentityIds. If not supplied,\n * the credential provider will attempt to store IdentityIds in one of the\n * following (in order of preference):\n * 1. IndexedDB\n * 2. LocalStorage\n * 3. An in-memory cache object that will not persist between pages.\n *\n * IndexedDB is preferred to maximize data sharing between top-level\n * browsing contexts and web workers.\n *\n * The provider will not cache IdentityIds of authenticated users unless a\n * separate `userIdentitifer` parameter is supplied.\n */\n cache?: Storage;\n\n /**\n * The unique identifier for the identity pool from which an identity should\n * be retrieved or generated.\n */\n identityPoolId: string;\n\n /**\n * A unique identifier for the user. This is distinct from a Cognito\n * IdentityId and should instead be an identifier meaningful to your\n * application. Used to cache Cognito IdentityIds on a per-user basis.\n */\n userIdentifier?: string;\n}\n\nfunction throwOnMissingId(): never {\n throw new ProviderError(\"Response from Amazon Cognito contained no identity ID\");\n}\n","import { Logins, ResolvedLogins } from \"./Logins\";\n\n/**\n * @internal\n */\nexport function resolveLogins(logins: Logins): Promise {\n return Promise.all(\n Object.keys(logins).reduce((arr: Array<[string, string] | Promise<[string, string]>>, name: string) => {\n const tokenOrProvider = logins[name];\n if (typeof tokenOrProvider === \"string\") {\n arr.push([name, tokenOrProvider] as [string, string]);\n } else {\n arr.push(tokenOrProvider().then((token) => [name, token] as [string, string]));\n }\n return arr;\n }, [] as Array>)\n ).then((resolvedPairs) =>\n resolvedPairs.reduce((logins: ResolvedLogins, [key, value]) => {\n logins[key] = value;\n return logins;\n }, {} as ResolvedLogins)\n );\n}\n","import { EventStreamMarshaller, EventStreamSerdeProvider } from \"@aws-sdk/types\";\n\nexport interface EventStreamSerdeInputConfig {}\n\nexport interface EventStreamSerdeResolvedConfig {\n eventStreamMarshaller: EventStreamMarshaller;\n}\n\ninterface PreviouslyResolved {\n eventStreamSerdeProvider: EventStreamSerdeProvider;\n}\n\nexport const resolveEventStreamSerdeConfig = (\n input: T & PreviouslyResolved & EventStreamSerdeInputConfig\n): T & EventStreamSerdeResolvedConfig => ({\n ...input,\n eventStreamMarshaller: input.eventStreamSerdeProvider(input),\n});\n","import { HttpHandler, HttpRequest, HttpResponse } from \"@aws-sdk/protocol-http\";\nimport { buildQueryString } from \"@aws-sdk/querystring-builder\";\nimport { HeaderBag, HttpHandlerOptions } from \"@aws-sdk/types\";\n\nimport { requestTimeout } from \"./request-timeout\";\n\ndeclare let AbortController: any;\n\n/**\n * Represents the http options that can be passed to a browser http client.\n */\nexport interface FetchHttpHandlerOptions {\n /**\n * The number of milliseconds a request can take before being automatically\n * terminated.\n */\n requestTimeout?: number;\n}\n\nexport class FetchHttpHandler implements HttpHandler {\n private readonly requestTimeout?: number;\n\n constructor({ requestTimeout }: FetchHttpHandlerOptions = {}) {\n this.requestTimeout = requestTimeout;\n }\n\n destroy(): void {\n // Do nothing. TLS and HTTP/2 connection pooling is handled by the browser.\n }\n\n handle(request: HttpRequest, { abortSignal }: HttpHandlerOptions = {}): Promise<{ response: HttpResponse }> {\n const requestTimeoutInMs = this.requestTimeout;\n\n // if the request was already aborted, prevent doing extra work\n if (abortSignal?.aborted) {\n const abortError = new Error(\"Request aborted\");\n abortError.name = \"AbortError\";\n return Promise.reject(abortError);\n }\n\n let path = request.path;\n if (request.query) {\n const queryString = buildQueryString(request.query);\n if (queryString) {\n path += `?${queryString}`;\n }\n }\n\n const { port, method } = request;\n const url = `${request.protocol}//${request.hostname}${port ? `:${port}` : \"\"}${path}`;\n // Request constructor doesn't allow GET/HEAD request with body\n // ref: https://github.com/whatwg/fetch/issues/551\n const body = method === \"GET\" || method === \"HEAD\" ? undefined : request.body;\n const requestOptions: RequestInit = {\n body,\n headers: new Headers(request.headers),\n method: method,\n };\n\n // some browsers support abort signal\n if (typeof AbortController !== \"undefined\") {\n (requestOptions as any)[\"signal\"] = abortSignal;\n }\n\n const fetchRequest = new Request(url, requestOptions);\n const raceOfPromises = [\n fetch(fetchRequest).then((response) => {\n const fetchHeaders: any = response.headers;\n const transformedHeaders: HeaderBag = {};\n\n for (const pair of >fetchHeaders.entries()) {\n transformedHeaders[pair[0]] = pair[1];\n }\n\n const hasReadableStream = response.body !== undefined;\n\n // Return the response with buffered body\n if (!hasReadableStream) {\n return response.blob().then((body) => ({\n response: new HttpResponse({\n headers: transformedHeaders,\n statusCode: response.status,\n body,\n }),\n }));\n }\n // Return the response with streaming body\n return {\n response: new HttpResponse({\n headers: transformedHeaders,\n statusCode: response.status,\n body: response.body,\n }),\n };\n }),\n requestTimeout(requestTimeoutInMs),\n ];\n if (abortSignal) {\n raceOfPromises.push(\n new Promise((resolve, reject) => {\n abortSignal.onabort = () => {\n const abortError = new Error(\"Request aborted\");\n abortError.name = \"AbortError\";\n reject(abortError);\n };\n })\n );\n }\n return Promise.race(raceOfPromises);\n }\n}\n","export function requestTimeout(timeoutInMs = 0): Promise {\n return new Promise((resolve, reject) => {\n if (timeoutInMs) {\n setTimeout(() => {\n const timeoutError = new Error(`Request did not complete within ${timeoutInMs} ms`);\n timeoutError.name = \"TimeoutError\";\n reject(timeoutError);\n }, timeoutInMs);\n }\n });\n}\n","import { StreamCollector } from \"@aws-sdk/types\";\nimport { fromBase64 } from \"@aws-sdk/util-base64-browser\";\n\n//reference: https://snack.expo.io/r1JCSWRGU\nexport const streamCollector: StreamCollector = (stream: Blob | ReadableStream): Promise => {\n if (typeof Blob === \"function\" && stream instanceof Blob) {\n return collectBlob(stream);\n }\n\n return collectStream(stream as ReadableStream);\n};\n\nasync function collectBlob(blob: Blob): Promise {\n const base64 = await readToBase64(blob);\n const arrayBuffer = fromBase64(base64);\n return new Uint8Array(arrayBuffer);\n}\n\nasync function collectStream(stream: ReadableStream): Promise {\n let res = new Uint8Array(0);\n const reader = stream.getReader();\n let isDone = false;\n while (!isDone) {\n const { done, value } = await reader.read();\n if (value) {\n const prior = res;\n res = new Uint8Array(prior.length + value.length);\n res.set(prior);\n res.set(value, prior.length);\n }\n isDone = done;\n }\n return res;\n}\n\nfunction readToBase64(blob: Blob): Promise {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onloadend = () => {\n // reference: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL\n // response from readAsDataURL is always prepended with \"data:*/*;base64,\"\n if (reader.readyState !== 2) {\n return reject(new Error(\"Reader aborted too early\"));\n }\n const result = (reader.result ?? \"\") as string;\n // Response can include only 'data:' for empty blob, return empty string in this case.\n // Otherwise, return the string after ','\n const commaIndex = result.indexOf(\",\");\n const dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length;\n resolve(result.substring(dataOffset));\n };\n reader.onabort = () => reject(new Error(\"Read aborted\"));\n reader.onerror = () => reject(reader.error);\n // reader.readAsArrayBuffer is not always available\n reader.readAsDataURL(blob);\n });\n}\n","import { Provider } from \"@aws-sdk/types\";\nexport const invalidProvider: (message: string) => Provider = (message: string) => () => Promise.reject(message);\n","import { ARN } from \"@aws-sdk/util-arn-parser\";\n\nconst DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\\.\\-]{1,61}[a-z0-9]$/;\nconst IP_ADDRESS_PATTERN = /(\\d+\\.){3}\\d+/;\nconst DOTS_PATTERN = /\\.\\./;\nexport const DOT_PATTERN = /\\./;\nexport const S3_HOSTNAME_PATTERN = /^(.+\\.)?s3[.-]([a-z0-9-]+)\\./;\nconst S3_US_EAST_1_ALTNAME_PATTERN = /^s3(-external-1)?\\.amazonaws\\.com$/;\nconst AWS_PARTITION_SUFFIX = \"amazonaws.com\";\n\nexport interface AccessPointArn extends ARN {\n accessPointName: string;\n}\n\nexport interface BucketHostnameParams {\n baseHostname: string;\n bucketName: string;\n accelerateEndpoint?: boolean;\n dualstackEndpoint?: boolean;\n pathStyleEndpoint?: boolean;\n tlsCompatible?: boolean;\n}\n\nexport interface ArnHostnameParams extends Omit {\n bucketName: ARN;\n clientSigningRegion?: string;\n clientPartition?: string;\n useArnRegion?: boolean;\n}\n\nexport const isBucketNameOptions = (\n options: BucketHostnameParams | ArnHostnameParams\n): options is BucketHostnameParams => typeof options.bucketName === \"string\";\n\n/**\n * Get pseudo region from supplied region. For example, if supplied with `fips-us-west-2`, it returns `us-west-2`.\n * @internal\n */\nexport const getPseudoRegion = (region: string) => (isFipsRegion(region) ? region.replace(/fips-|-fips/, \"\") : region);\n\n/**\n * Determines whether a given string is DNS compliant per the rules outlined by\n * S3. Length, capitaization, and leading dot restrictions are enforced by the\n * DOMAIN_PATTERN regular expression.\n * @internal\n *\n * @see https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html\n */\nexport const isDnsCompatibleBucketName = (bucketName: string): boolean =>\n DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName);\n\nconst getRegionalSuffix = (hostname: string): [string, string] => {\n const parts = hostname.match(S3_HOSTNAME_PATTERN)!;\n return [parts[2], hostname.replace(new RegExp(`^${parts[0]}`), \"\")];\n};\n\nexport const getSuffix = (hostname: string): [string, string] =>\n S3_US_EAST_1_ALTNAME_PATTERN.test(hostname) ? [\"us-east-1\", AWS_PARTITION_SUFFIX] : getRegionalSuffix(hostname);\n\n/**\n * Infer region and hostname suffix from a complete hostname\n * @internal\n * @param hostname - Hostname\n * @returns [Region, Hostname suffix]\n */\nexport const getSuffixForArnEndpoint = (hostname: string): [string, string] =>\n S3_US_EAST_1_ALTNAME_PATTERN.test(hostname)\n ? [hostname.replace(`.${AWS_PARTITION_SUFFIX}`, \"\"), AWS_PARTITION_SUFFIX]\n : getRegionalSuffix(hostname);\n\nexport const validateArnEndpointOptions = (options: {\n accelerateEndpoint?: boolean;\n tlsCompatible?: boolean;\n pathStyleEndpoint?: boolean;\n}) => {\n if (options.pathStyleEndpoint) {\n throw new Error(\"Path-style S3 endpoint is not supported when bucket is an ARN\");\n }\n if (options.accelerateEndpoint) {\n throw new Error(\"Accelerate endpoint is not supported when bucket is an ARN\");\n }\n if (!options.tlsCompatible) {\n throw new Error(\"HTTPS is required when bucket is an ARN\");\n }\n};\n\nexport const validateService = (service: string) => {\n if (service !== \"s3\" && service !== \"s3-outposts\") {\n throw new Error(\"Expect 's3' or 's3-outposts' in ARN service component\");\n }\n};\n\nexport const validateS3Service = (service: string) => {\n if (service !== \"s3\") {\n throw new Error(\"Expect 's3' in Accesspoint ARN service component\");\n }\n};\n\nexport const validateOutpostService = (service: string) => {\n if (service !== \"s3-outposts\") {\n throw new Error(\"Expect 's3-posts' in Outpost ARN service component\");\n }\n};\n\n/**\n * Validate partition inferred from ARN is the same to `options.clientPartition`.\n * @internal\n */\nexport const validatePartition = (partition: string, options: { clientPartition: string }) => {\n if (partition !== options.clientPartition) {\n throw new Error(`Partition in ARN is incompatible, got \"${partition}\" but expected \"${options.clientPartition}\"`);\n }\n};\n\n/**\n * validate region value inferred from ARN. If `options.useArnRegion` is set, it validates the region is not a FIPS\n * region. If `options.useArnRegion` is unset, it validates the region is equal to `options.clientRegion` or\n * `options.clientSigningRegion`.\n * @internal\n */\nexport const validateRegion = (\n region: string,\n options: {\n useArnRegion?: boolean;\n clientRegion: string;\n clientSigningRegion: string;\n }\n) => {\n if (region === \"\") {\n throw new Error(\"ARN region is empty\");\n }\n if (\n !options.useArnRegion &&\n !isEqualRegions(region, options.clientRegion) &&\n !isEqualRegions(region, options.clientSigningRegion)\n ) {\n throw new Error(`Region in ARN is incompatible, got ${region} but expected ${options.clientRegion}`);\n }\n if (options.useArnRegion && isFipsRegion(region)) {\n throw new Error(\"Endpoint does not support FIPS region\");\n }\n};\n\nconst isFipsRegion = (region: string) => region.startsWith(\"fips-\") || region.endsWith(\"-fips\");\n\nconst isEqualRegions = (regionA: string, regionB: string) =>\n regionA === regionB || getPseudoRegion(regionA) === regionB || regionA === getPseudoRegion(regionB);\n\n/**\n * Validate an account ID\n * @internal\n */\nexport const validateAccountId = (accountId: string) => {\n if (!/[0-9]{12}/.exec(accountId)) {\n throw new Error(\"Access point ARN accountID does not match regex '[0-9]{12}'\");\n }\n};\n\n/**\n * Validate a host label according to https://tools.ietf.org/html/rfc3986#section-3.2.2\n * @internal\n */\nexport const validateDNSHostLabel = (label: string, options: { tlsCompatible?: boolean } = { tlsCompatible: true }) => {\n // reference: https://tools.ietf.org/html/rfc3986#section-3.2.2\n if (\n label.length >= 64 ||\n !/^[a-z0-9][a-z0-9.-]+[a-z0-9]$/.test(label) ||\n /(\\d+\\.){3}\\d+/.test(label) ||\n /[.-]{2}/.test(label) ||\n (options?.tlsCompatible && DOT_PATTERN.test(label))\n ) {\n throw new Error(`Invalid DNS label ${label}`);\n }\n};\n\n/**\n * Validate and parse an Access Point ARN or Outposts ARN\n * @internal\n *\n * @param resource - The resource section of an ARN\n * @returns Access Point Name and optional Outpost ID.\n */\nexport const getArnResources = (\n resource: string\n): {\n accesspointName: string;\n outpostId?: string;\n} => {\n const delimiter = resource.includes(\":\") ? \":\" : \"/\";\n const [resourceType, ...rest] = resource.split(delimiter);\n if (resourceType === \"accesspoint\") {\n // Parse accesspoint ARN\n if (rest.length !== 1 || rest[0] === \"\") {\n throw new Error(`Access Point ARN should have one resource accesspoint${delimiter}{accesspointname}`);\n }\n return { accesspointName: rest[0] };\n } else if (resourceType === \"outpost\") {\n // Parse outpost ARN\n if (!rest[0] || rest[1] !== \"accesspoint\" || !rest[2] || rest.length !== 3) {\n throw new Error(\n `Outpost ARN should have resource outpost${delimiter}{outpostId}${delimiter}accesspoint${delimiter}{accesspointName}`\n );\n }\n const [outpostId, _, accesspointName] = rest;\n return { outpostId, accesspointName };\n } else {\n throw new Error(`ARN resource should begin with 'accesspoint${delimiter}' or 'outpost${delimiter}'`);\n }\n};\n\n/**\n * Throw if dual stack configuration is set to true.\n * @internal\n */\nexport const validateNoDualstack = (dualstackEndpoint: boolean) => {\n if (dualstackEndpoint) throw new Error(\"Dualstack endpoint is not supported with Outpost\");\n};\n\n/**\n * Validate region is not appended or prepended with a `fips-`\n * @internal\n */\nexport const validateNoFIPS = (region: string) => {\n if (isFipsRegion(region ?? \"\")) throw new Error(`FIPS region is not supported with Outpost, got ${region}`);\n};\n","import {\n ArnHostnameParams,\n BucketHostnameParams,\n DOT_PATTERN,\n getArnResources,\n getSuffix,\n getSuffixForArnEndpoint,\n isBucketNameOptions,\n isDnsCompatibleBucketName,\n S3_HOSTNAME_PATTERN,\n validateAccountId,\n validateArnEndpointOptions,\n validateDNSHostLabel,\n validateNoDualstack,\n validateNoFIPS,\n validateOutpostService,\n validatePartition,\n validateRegion,\n validateS3Service,\n validateService,\n} from \"./bucketHostnameUtils\";\n\nexport interface BucketHostname {\n hostname: string;\n bucketEndpoint: boolean;\n signingRegion?: string;\n signingService?: string;\n}\n\nexport const bucketHostname = (options: BucketHostnameParams | ArnHostnameParams): BucketHostname => {\n const { baseHostname } = options;\n if (!S3_HOSTNAME_PATTERN.test(baseHostname)) {\n return {\n bucketEndpoint: false,\n hostname: baseHostname,\n };\n }\n return isBucketNameOptions(options)\n ? // Construct endpoint when bucketName is a string referring to a bucket name\n getEndpointFromBucketName(options)\n : // Construct endpoint when bucketName is an ARN referring to an S3 resource like Access Point\n getEndpointFromArn(options);\n};\n\nconst getEndpointFromArn = (options: ArnHostnameParams): BucketHostname => {\n // Infer client region and hostname suffix from hostname from endpoints.json, like `s3.us-west-2.amazonaws.com`\n const [clientRegion, hostnameSuffix] = getSuffixForArnEndpoint(options.baseHostname);\n const {\n pathStyleEndpoint,\n dualstackEndpoint = false,\n accelerateEndpoint = false,\n tlsCompatible = true,\n useArnRegion,\n bucketName,\n clientPartition = \"aws\",\n clientSigningRegion = clientRegion,\n } = options;\n\n validateArnEndpointOptions({ pathStyleEndpoint, accelerateEndpoint, tlsCompatible });\n\n // Validate and parse the ARN supplied as a bucket name\n const { service, partition, accountId, region, resource } = bucketName;\n validateService(service);\n validatePartition(partition, { clientPartition });\n validateAccountId(accountId);\n validateRegion(region, { useArnRegion, clientRegion, clientSigningRegion });\n const { accesspointName, outpostId } = getArnResources(resource);\n validateDNSHostLabel(`${accesspointName}-${accountId}`, { tlsCompatible });\n\n const endpointRegion = useArnRegion ? region : clientRegion;\n const signingRegion = useArnRegion ? region : clientSigningRegion;\n if (outpostId) {\n // if this is an Outpost ARN\n validateOutpostService(service);\n validateDNSHostLabel(outpostId, { tlsCompatible });\n validateNoDualstack(dualstackEndpoint);\n validateNoFIPS(endpointRegion);\n return {\n bucketEndpoint: true,\n hostname: `${accesspointName}-${accountId}.${outpostId}.s3-outposts.${endpointRegion}.${hostnameSuffix}`,\n signingRegion,\n signingService: \"s3-outposts\",\n };\n }\n // construct endpoint from Accesspoint ARN\n validateS3Service(service);\n return {\n bucketEndpoint: true,\n hostname: `${accesspointName}-${accountId}.s3-accesspoint${\n dualstackEndpoint ? \".dualstack\" : \"\"\n }.${endpointRegion}.${hostnameSuffix}`,\n signingRegion,\n };\n};\n\nconst getEndpointFromBucketName = ({\n accelerateEndpoint = false,\n baseHostname,\n bucketName,\n dualstackEndpoint = false,\n pathStyleEndpoint = false,\n tlsCompatible = true,\n}: BucketHostnameParams): BucketHostname => {\n const [clientRegion, hostnameSuffix] = getSuffix(baseHostname);\n if (pathStyleEndpoint || !isDnsCompatibleBucketName(bucketName) || (tlsCompatible && DOT_PATTERN.test(bucketName))) {\n return {\n bucketEndpoint: false,\n hostname: dualstackEndpoint ? `s3.dualstack.${clientRegion}.${hostnameSuffix}` : baseHostname,\n };\n }\n\n if (accelerateEndpoint) {\n baseHostname = `s3-accelerate${dualstackEndpoint ? \".dualstack\" : \"\"}.${hostnameSuffix}`;\n } else if (dualstackEndpoint) {\n baseHostname = `s3.dualstack.${clientRegion}.${hostnameSuffix}`;\n }\n\n return {\n bucketEndpoint: true,\n hostname: `${bucketName}.${baseHostname}`,\n };\n};\n","import { HttpRequest } from \"@aws-sdk/protocol-http\";\nimport {\n BuildHandler,\n BuildHandlerArguments,\n BuildHandlerOutput,\n BuildMiddleware,\n HandlerExecutionContext,\n MetadataBearer,\n Pluggable,\n RelativeMiddlewareOptions,\n} from \"@aws-sdk/types\";\nimport { parse as parseArn, validate as validateArn } from \"@aws-sdk/util-arn-parser\";\n\nimport { bucketHostname } from \"./bucketHostname\";\nimport { getPseudoRegion } from \"./bucketHostnameUtils\";\nimport { BucketEndpointResolvedConfig } from \"./configurations\";\n\nexport const bucketEndpointMiddleware = (options: BucketEndpointResolvedConfig): BuildMiddleware => <\n Output extends MetadataBearer\n>(\n next: BuildHandler,\n context: HandlerExecutionContext\n): BuildHandler => async (args: BuildHandlerArguments): Promise> => {\n const { Bucket: bucketName } = args.input as { Bucket: string };\n let replaceBucketInPath = options.bucketEndpoint;\n const request = args.request;\n if (HttpRequest.isInstance(request)) {\n if (options.bucketEndpoint) {\n request.hostname = bucketName;\n } else if (validateArn(bucketName)) {\n const bucketArn = parseArn(bucketName);\n const clientRegion = getPseudoRegion(await options.region());\n const { partition, signingRegion = clientRegion } = (await options.regionInfoProvider(clientRegion)) || {};\n const useArnRegion = await options.useArnRegion();\n const { hostname, bucketEndpoint, signingRegion: modifiedSigningRegion, signingService } = bucketHostname({\n bucketName: bucketArn,\n baseHostname: request.hostname,\n accelerateEndpoint: options.useAccelerateEndpoint,\n dualstackEndpoint: options.useDualstackEndpoint,\n pathStyleEndpoint: options.forcePathStyle,\n tlsCompatible: request.protocol === \"https:\",\n useArnRegion,\n clientPartition: partition,\n clientSigningRegion: signingRegion,\n });\n\n // If the request needs to use a region or service name inferred from ARN that different from client region, we\n // need to set them in the handler context so the signer will use them\n if (modifiedSigningRegion && modifiedSigningRegion !== signingRegion) {\n context[\"signing_region\"] = modifiedSigningRegion;\n }\n if (signingService && signingService !== \"s3\") {\n context[\"signing_service\"] = signingService;\n }\n\n request.hostname = hostname;\n replaceBucketInPath = bucketEndpoint;\n } else {\n const { hostname, bucketEndpoint } = bucketHostname({\n bucketName,\n baseHostname: request.hostname,\n accelerateEndpoint: options.useAccelerateEndpoint,\n dualstackEndpoint: options.useDualstackEndpoint,\n pathStyleEndpoint: options.forcePathStyle,\n tlsCompatible: request.protocol === \"https:\",\n });\n\n request.hostname = hostname;\n replaceBucketInPath = bucketEndpoint;\n }\n\n if (replaceBucketInPath) {\n request.path = request.path.replace(/^(\\/)?[^\\/]+/, \"\");\n if (request.path === \"\") {\n request.path = \"/\";\n }\n }\n }\n\n return next({ ...args, request });\n};\n\nexport const bucketEndpointMiddlewareOptions: RelativeMiddlewareOptions = {\n tags: [\"BUCKET_ENDPOINT\"],\n name: \"bucketEndpointMiddleware\",\n relation: \"before\",\n toMiddleware: \"hostHeaderMiddleware\",\n override: true,\n};\n\nexport const getBucketEndpointPlugin = (options: BucketEndpointResolvedConfig): Pluggable => ({\n applyToStack: (clientStack) => {\n clientStack.addRelativeTo(bucketEndpointMiddleware(options), bucketEndpointMiddlewareOptions);\n },\n});\n","import { LoadedConfigSelectors } from \"@aws-sdk/node-config-provider\";\nimport { Provider, RegionInfoProvider } from \"@aws-sdk/types\";\n\nexport interface BucketEndpointInputConfig {\n /**\n * Whether the provided endpoint addresses an individual bucket.\n */\n bucketEndpoint?: boolean;\n /**\n * Whether to force path style URLs for S3 objects (e.g., https://s3.amazonaws.com// instead of https://.s3.amazonaws.com/\n */\n forcePathStyle?: boolean;\n /**\n * Whether to use the S3 Transfer Acceleration endpoint by default\n */\n useAccelerateEndpoint?: boolean;\n /**\n * Enables IPv6/IPv4 dualstack endpoint. When a DNS lookup is performed on an endpoint of this type, it returns an “A” record with an IPv4 address and an “AAAA” record with an IPv6 address. In most cases the network stack in the client environment will automatically prefer the AAAA record and make a connection using the IPv6 address. Note, however, that currently on Windows, the IPv4 address will be preferred.\n */\n useDualstackEndpoint?: boolean;\n /**\n * Whether to override the request region with the region inferred from requested resource's ARN. Defaults to false\n */\n useArnRegion?: boolean | Provider;\n}\n\ninterface PreviouslyResolved {\n region: Provider;\n regionInfoProvider: RegionInfoProvider;\n}\n\nexport interface BucketEndpointResolvedConfig {\n bucketEndpoint: boolean;\n forcePathStyle: boolean;\n useAccelerateEndpoint: boolean;\n useDualstackEndpoint: boolean;\n useArnRegion: Provider;\n region: Provider;\n regionInfoProvider: RegionInfoProvider;\n}\n\nexport function resolveBucketEndpointConfig(\n input: T & PreviouslyResolved & BucketEndpointInputConfig\n): T & BucketEndpointResolvedConfig {\n const {\n bucketEndpoint = false,\n forcePathStyle = false,\n useAccelerateEndpoint = false,\n useDualstackEndpoint = false,\n useArnRegion = false,\n } = input;\n return {\n ...input,\n bucketEndpoint,\n forcePathStyle,\n useAccelerateEndpoint,\n useDualstackEndpoint,\n useArnRegion: typeof useArnRegion === \"function\" ? useArnRegion : () => Promise.resolve(useArnRegion),\n };\n}\n\nexport const NODE_USE_ARN_REGION_ENV_NAME = \"AWS_S3_USE_ARN_REGION\";\nexport const NODE_USE_ARN_REGION_INI_NAME = \"s3_use_arn_region\";\n\n/**\n * Config to load useArnRegion from environment variables and shared INI files\n *\n * @api private\n */\nexport const NODE_USE_ARN_REGION_CONFIG_OPTIONS: LoadedConfigSelectors = {\n environmentVariableSelector: (env: NodeJS.ProcessEnv) => {\n if (!Object.prototype.hasOwnProperty.call(env, NODE_USE_ARN_REGION_ENV_NAME)) return undefined;\n if (env[NODE_USE_ARN_REGION_ENV_NAME] === \"true\") return true;\n if (env[NODE_USE_ARN_REGION_ENV_NAME] === \"false\") return false;\n throw new Error(\n `Cannot load env ${NODE_USE_ARN_REGION_ENV_NAME}. Expected \"true\" or \"false\", got ${env[NODE_USE_ARN_REGION_ENV_NAME]}.`\n );\n },\n configFileSelector: (profile) => {\n if (!Object.prototype.hasOwnProperty.call(profile, NODE_USE_ARN_REGION_INI_NAME)) return undefined;\n if (profile[NODE_USE_ARN_REGION_INI_NAME] === \"true\") return true;\n if (profile[NODE_USE_ARN_REGION_INI_NAME] === \"false\") return false;\n throw new Error(\n `Cannot load shared config entry ${NODE_USE_ARN_REGION_INI_NAME}. Expected \"true\" or \"false\", got ${profile[NODE_USE_ARN_REGION_INI_NAME]}.`\n );\n },\n default: false,\n};\n","import { HttpRequest } from \"@aws-sdk/protocol-http\";\nimport {\n BodyLengthCalculator,\n BuildHandler,\n BuildHandlerArguments,\n BuildHandlerOptions,\n BuildHandlerOutput,\n BuildMiddleware,\n MetadataBearer,\n Pluggable,\n} from \"@aws-sdk/types\";\n\nconst CONTENT_LENGTH_HEADER = \"content-length\";\n\nexport function contentLengthMiddleware(bodyLengthChecker: BodyLengthCalculator): BuildMiddleware {\n return (next: BuildHandler): BuildHandler => async (\n args: BuildHandlerArguments\n ): Promise> => {\n const request = args.request;\n if (HttpRequest.isInstance(request)) {\n const { body, headers } = request;\n if (\n body &&\n Object.keys(headers)\n .map((str) => str.toLowerCase())\n .indexOf(CONTENT_LENGTH_HEADER) === -1\n ) {\n const length = bodyLengthChecker(body);\n if (length !== undefined) {\n request.headers = {\n ...request.headers,\n [CONTENT_LENGTH_HEADER]: String(length),\n };\n }\n }\n }\n\n return next({\n ...args,\n request,\n });\n };\n}\n\nexport const contentLengthMiddlewareOptions: BuildHandlerOptions = {\n step: \"build\",\n tags: [\"SET_CONTENT_LENGTH\", \"CONTENT_LENGTH\"],\n name: \"contentLengthMiddleware\",\n override: true,\n};\n\nexport const getContentLengthPlugin = (options: { bodyLengthChecker: BodyLengthCalculator }): Pluggable => ({\n applyToStack: (clientStack) => {\n clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), contentLengthMiddlewareOptions);\n },\n});\n","import { HttpRequest } from \"@aws-sdk/protocol-http\";\nimport {\n BuildHandler,\n BuildHandlerArguments,\n BuildHandlerOptions,\n BuildHandlerOutput,\n BuildMiddleware,\n MetadataBearer,\n Pluggable,\n} from \"@aws-sdk/types\";\n\ninterface PreviouslyResolved {\n runtime: string;\n}\n\nexport function addExpectContinueMiddleware(options: PreviouslyResolved): BuildMiddleware {\n return (next: BuildHandler): BuildHandler => async (\n args: BuildHandlerArguments\n ): Promise> => {\n const { request } = args;\n if (HttpRequest.isInstance(request) && request.body && options.runtime === \"node\") {\n request.headers = {\n ...request.headers,\n Expect: \"100-continue\",\n };\n }\n return next({\n ...args,\n request,\n });\n };\n}\n\nexport const addExpectContinueMiddlewareOptions: BuildHandlerOptions = {\n step: \"build\",\n tags: [\"SET_EXPECT_HEADER\", \"EXPECT_HEADER\"],\n name: \"addExpectContinueMiddleware\",\n override: true,\n};\n\nexport const getAddExpectContinuePlugin = (options: PreviouslyResolved): Pluggable => ({\n applyToStack: (clientStack) => {\n clientStack.add(addExpectContinueMiddleware(options), addExpectContinueMiddlewareOptions);\n },\n});\n","import { HttpRequest } from \"@aws-sdk/protocol-http\";\nimport { AbsoluteLocation, BuildHandlerOptions, BuildMiddleware, Pluggable, RequestHandler } from \"@aws-sdk/types\";\n\nexport interface HostHeaderInputConfig {}\ninterface PreviouslyResolved {\n requestHandler: RequestHandler;\n}\nexport interface HostHeaderResolvedConfig {\n requestHandler: RequestHandler;\n}\nexport function resolveHostHeaderConfig(\n input: T & PreviouslyResolved & HostHeaderInputConfig\n): T & HostHeaderResolvedConfig {\n return input;\n}\n\nexport const hostHeaderMiddleware = (\n options: HostHeaderResolvedConfig\n): BuildMiddleware => (next) => async (args) => {\n if (!HttpRequest.isInstance(args.request)) return next(args);\n const { request } = args;\n const { handlerProtocol = \"\" } = options.requestHandler.metadata || {};\n //For H2 request, remove 'host' header and use ':authority' header instead\n //reference: https://nodejs.org/dist/latest-v13.x/docs/api/errors.html#ERR_HTTP2_INVALID_CONNECTION_HEADERS\n if (handlerProtocol.indexOf(\"h2\") >= 0 && !request.headers[\":authority\"]) {\n delete request.headers[\"host\"];\n request.headers[\":authority\"] = \"\";\n //non-H2 request and 'host' header is not set, set the 'host' header to request's hostname.\n } else if (!request.headers[\"host\"]) {\n request.headers[\"host\"] = request.hostname;\n }\n return next(args);\n};\n\nexport const hostHeaderMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation = {\n name: \"hostHeaderMiddleware\",\n step: \"build\",\n priority: \"low\",\n tags: [\"HOST\"],\n override: true,\n};\n\nexport const getHostHeaderPlugin = (options: HostHeaderResolvedConfig): Pluggable => ({\n applyToStack: (clientStack) => {\n clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions);\n },\n});\n","import { HttpResponse } from \"@aws-sdk/protocol-http\";\nimport {\n AbsoluteLocation,\n HandlerExecutionContext,\n InitializeHandler,\n InitializeHandlerArguments,\n InitializeHandlerOptions,\n InitializeHandlerOutput,\n MetadataBearer,\n Pluggable,\n} from \"@aws-sdk/types\";\n\nexport const loggerMiddleware = () => (\n next: InitializeHandler,\n context: HandlerExecutionContext\n): InitializeHandler => async (\n args: InitializeHandlerArguments\n): Promise> => {\n const { clientName, commandName, inputFilterSensitiveLog, logger, outputFilterSensitiveLog } = context;\n\n const response = await next(args);\n\n if (!logger) {\n return response;\n }\n\n if (typeof logger.info === \"function\") {\n const { $metadata, ...outputWithoutMetadata } = response.output;\n logger.info({\n clientName,\n commandName,\n input: inputFilterSensitiveLog(args.input),\n output: outputFilterSensitiveLog(outputWithoutMetadata),\n metadata: $metadata,\n });\n }\n\n return response;\n};\n\nexport const loggerMiddlewareOptions: InitializeHandlerOptions & AbsoluteLocation = {\n name: \"loggerMiddleware\",\n tags: [\"LOGGER\"],\n step: \"initialize\",\n override: true,\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport const getLoggerPlugin = (options: any): Pluggable => ({\n applyToStack: (clientStack) => {\n clientStack.add(loggerMiddleware(), loggerMiddlewareOptions);\n },\n});\n","import {\n AbsoluteLocation,\n FinalizeHandler,\n FinalizeHandlerArguments,\n FinalizeHandlerOutput,\n FinalizeRequestHandlerOptions,\n HandlerExecutionContext,\n MetadataBearer,\n Pluggable,\n} from \"@aws-sdk/types\";\n\nimport { RetryResolvedConfig } from \"./configurations\";\n\nexport const retryMiddleware = (options: RetryResolvedConfig) => (\n next: FinalizeHandler,\n context: HandlerExecutionContext\n): FinalizeHandler => async (\n args: FinalizeHandlerArguments\n): Promise> => {\n if (options?.retryStrategy?.mode)\n context.userAgent = [...(context.userAgent || []), [\"cfg/retry-mode\", options.retryStrategy.mode]];\n return options.retryStrategy.retry(next, args);\n};\n\nexport const retryMiddlewareOptions: FinalizeRequestHandlerOptions & AbsoluteLocation = {\n name: \"retryMiddleware\",\n tags: [\"RETRY\"],\n step: \"finalizeRequest\",\n priority: \"high\",\n override: true,\n};\n\nexport const getRetryPlugin = (options: RetryResolvedConfig): Pluggable => ({\n applyToStack: (clientStack) => {\n clientStack.add(retryMiddleware(options), retryMiddlewareOptions);\n },\n});\n","/**\n * Errors encountered when the client clock and server clock cannot agree on the\n * current time.\n *\n * These errors are retryable, assuming the SDK has enabled clock skew\n * correction.\n */\nexport const CLOCK_SKEW_ERROR_CODES = [\n \"AuthFailure\",\n \"InvalidSignatureException\",\n \"RequestExpired\",\n \"RequestInTheFuture\",\n \"RequestTimeTooSkewed\",\n \"SignatureDoesNotMatch\",\n];\n\n/**\n * Errors that indicate the SDK is being throttled.\n *\n * These errors are always retryable.\n */\nexport const THROTTLING_ERROR_CODES = [\n \"BandwidthLimitExceeded\",\n \"EC2ThrottledException\",\n \"LimitExceededException\",\n \"PriorRequestNotComplete\",\n \"ProvisionedThroughputExceededException\",\n \"RequestLimitExceeded\",\n \"RequestThrottled\",\n \"RequestThrottledException\",\n \"SlowDown\",\n \"ThrottledException\",\n \"Throttling\",\n \"ThrottlingException\",\n \"TooManyRequestsException\",\n \"TransactionInProgressException\", // DynamoDB\n];\n\n/**\n * Error codes that indicate transient issues\n */\nexport const TRANSIENT_ERROR_CODES = [\"AbortError\", \"TimeoutError\", \"RequestTimeout\", \"RequestTimeoutException\"];\n\n/**\n * Error codes that indicate transient issues\n */\nexport const TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504];\n","import { SdkError } from \"@aws-sdk/smithy-client\";\n\nimport {\n CLOCK_SKEW_ERROR_CODES,\n THROTTLING_ERROR_CODES,\n TRANSIENT_ERROR_CODES,\n TRANSIENT_ERROR_STATUS_CODES,\n} from \"./constants\";\n\nexport const isRetryableByTrait = (error: SdkError) => error.$retryable !== undefined;\n\nexport const isClockSkewError = (error: SdkError) => CLOCK_SKEW_ERROR_CODES.includes(error.name);\n\nexport const isThrottlingError = (error: SdkError) =>\n error.$metadata?.httpStatusCode === 429 ||\n THROTTLING_ERROR_CODES.includes(error.name) ||\n error.$retryable?.throttling == true;\n\nexport const isTransientError = (error: SdkError) =>\n TRANSIENT_ERROR_CODES.includes(error.name) ||\n TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0);\n","import { MAXIMUM_RETRY_DELAY } from \"./constants\";\n\n/**\n * Calculate a capped, fully-jittered exponential backoff time.\n */\nexport const defaultDelayDecider = (delayBase: number, attempts: number) =>\n Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase));\n","/**\n * The base number of milliseconds to use in calculating a suitable cool-down\n * time when a retryable error is encountered.\n */\nexport const DEFAULT_RETRY_DELAY_BASE = 100;\n\n/**\n * The maximum amount of time (in milliseconds) that will be used as a delay\n * between retry attempts.\n */\nexport const MAXIMUM_RETRY_DELAY = 20 * 1000;\n\n/**\n * The retry delay base (in milliseconds) to use when a throttling error is\n * encountered.\n */\nexport const THROTTLING_RETRY_DELAY_BASE = 500;\n\n/**\n * Initial number of retry tokens in Retry Quota\n */\nexport const INITIAL_RETRY_TOKENS = 500;\n\n/**\n * The total amount of retry tokens to be decremented from retry token balance.\n */\nexport const RETRY_COST = 5;\n\n/**\n * The total amount of retry tokens to be decremented from retry token balance\n * when a throttling error is encountered.\n */\nexport const TIMEOUT_RETRY_COST = 10;\n\n/**\n * The total amount of retry token to be incremented from retry token balance\n * if an SDK operation invocation succeeds without requiring a retry request.\n */\nexport const NO_RETRY_INCREMENT = 1;\n\n/**\n * Header name for SDK invocation ID\n */\nexport const INVOCATION_ID_HEADER = \"amz-sdk-invocation-id\";\n\n/**\n * Header name for request retry information.\n */\nexport const REQUEST_HEADER = \"amz-sdk-request\";\n","import {\n isClockSkewError,\n isRetryableByTrait,\n isThrottlingError,\n isTransientError,\n} from \"@aws-sdk/service-error-classification\";\nimport { SdkError } from \"@aws-sdk/smithy-client\";\n\nexport const defaultRetryDecider = (error: SdkError) => {\n if (!error) {\n return false;\n }\n\n return isRetryableByTrait(error) || isClockSkewError(error) || isThrottlingError(error) || isTransientError(error);\n};\n","import { HttpRequest } from \"@aws-sdk/protocol-http\";\nimport { isThrottlingError } from \"@aws-sdk/service-error-classification\";\nimport { SdkError } from \"@aws-sdk/smithy-client\";\nimport { FinalizeHandler, FinalizeHandlerArguments, MetadataBearer, Provider, RetryStrategy } from \"@aws-sdk/types\";\nimport { v4 } from \"uuid\";\n\nimport {\n DEFAULT_RETRY_DELAY_BASE,\n INITIAL_RETRY_TOKENS,\n INVOCATION_ID_HEADER,\n REQUEST_HEADER,\n THROTTLING_RETRY_DELAY_BASE,\n} from \"./constants\";\nimport { getDefaultRetryQuota } from \"./defaultRetryQuota\";\nimport { defaultDelayDecider } from \"./delayDecider\";\nimport { defaultRetryDecider } from \"./retryDecider\";\n\n/**\n * The default value for how many HTTP requests an SDK should make for a\n * single SDK operation invocation before giving up\n */\nexport const DEFAULT_MAX_ATTEMPTS = 3;\n\n/**\n * The default retry algorithm to use.\n */\nexport const DEFAULT_RETRY_MODE = \"standard\";\n\n/**\n * Determines whether an error is retryable based on the number of retries\n * already attempted, the HTTP status code, and the error received (if any).\n *\n * @param error The error encountered.\n */\nexport interface RetryDecider {\n (error: SdkError): boolean;\n}\n\n/**\n * Determines the number of milliseconds to wait before retrying an action.\n *\n * @param delayBase The base delay (in milliseconds).\n * @param attempts The number of times the action has already been tried.\n */\nexport interface DelayDecider {\n (delayBase: number, attempts: number): number;\n}\n\n/**\n * Interface that specifies the retry quota behavior.\n */\nexport interface RetryQuota {\n /**\n * returns true if retry tokens are available from the retry quota bucket.\n */\n hasRetryTokens: (error: SdkError) => boolean;\n\n /**\n * returns token amount from the retry quota bucket.\n * throws error is retry tokens are not available.\n */\n retrieveRetryTokens: (error: SdkError) => number;\n\n /**\n * releases tokens back to the retry quota.\n */\n releaseRetryTokens: (releaseCapacityAmount?: number) => void;\n}\n\n/**\n * Strategy options to be passed to StandardRetryStrategy\n */\nexport interface StandardRetryStrategyOptions {\n retryDecider?: RetryDecider;\n delayDecider?: DelayDecider;\n retryQuota?: RetryQuota;\n}\n\nexport class StandardRetryStrategy implements RetryStrategy {\n private retryDecider: RetryDecider;\n private delayDecider: DelayDecider;\n private retryQuota: RetryQuota;\n public readonly mode = DEFAULT_RETRY_MODE;\n\n constructor(private readonly maxAttemptsProvider: Provider, options?: StandardRetryStrategyOptions) {\n this.retryDecider = options?.retryDecider ?? defaultRetryDecider;\n this.delayDecider = options?.delayDecider ?? defaultDelayDecider;\n this.retryQuota = options?.retryQuota ?? getDefaultRetryQuota(INITIAL_RETRY_TOKENS);\n }\n\n private shouldRetry(error: SdkError, attempts: number, maxAttempts: number) {\n return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error);\n }\n\n private async getMaxAttempts() {\n let maxAttempts: number;\n try {\n maxAttempts = await this.maxAttemptsProvider();\n } catch (error) {\n maxAttempts = DEFAULT_MAX_ATTEMPTS;\n }\n return maxAttempts;\n }\n\n async retry(\n next: FinalizeHandler,\n args: FinalizeHandlerArguments\n ) {\n let retryTokenAmount;\n let attempts = 0;\n let totalDelay = 0;\n\n const maxAttempts = await this.getMaxAttempts();\n\n const { request } = args;\n if (HttpRequest.isInstance(request)) {\n request.headers[INVOCATION_ID_HEADER] = v4();\n }\n\n while (true) {\n try {\n if (HttpRequest.isInstance(request)) {\n request.headers[REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`;\n }\n const { response, output } = await next(args);\n\n this.retryQuota.releaseRetryTokens(retryTokenAmount);\n output.$metadata.attempts = attempts + 1;\n output.$metadata.totalRetryDelay = totalDelay;\n\n return { response, output };\n } catch (err) {\n attempts++;\n if (this.shouldRetry(err as SdkError, attempts, maxAttempts)) {\n retryTokenAmount = this.retryQuota.retrieveRetryTokens(err);\n const delay = this.delayDecider(\n isThrottlingError(err) ? THROTTLING_RETRY_DELAY_BASE : DEFAULT_RETRY_DELAY_BASE,\n attempts\n );\n totalDelay += delay;\n\n await new Promise((resolve) => setTimeout(resolve, delay));\n continue;\n }\n\n if (!err.$metadata) {\n err.$metadata = {};\n }\n\n err.$metadata.attempts = attempts;\n err.$metadata.totalRetryDelay = totalDelay;\n throw err;\n }\n }\n }\n}\n","import { SdkError } from \"@aws-sdk/smithy-client\";\n\nimport { NO_RETRY_INCREMENT, RETRY_COST, TIMEOUT_RETRY_COST } from \"./constants\";\nimport { RetryQuota } from \"./defaultStrategy\";\n\nexport const getDefaultRetryQuota = (initialRetryTokens: number): RetryQuota => {\n const MAX_CAPACITY = initialRetryTokens;\n let availableCapacity = initialRetryTokens;\n\n const getCapacityAmount = (error: SdkError) => (error.name === \"TimeoutError\" ? TIMEOUT_RETRY_COST : RETRY_COST);\n\n const hasRetryTokens = (error: SdkError) => getCapacityAmount(error) <= availableCapacity;\n\n const retrieveRetryTokens = (error: SdkError) => {\n if (!hasRetryTokens(error)) {\n // retryStrategy should stop retrying, and return last error\n throw new Error(\"No retry token available\");\n }\n const capacityAmount = getCapacityAmount(error);\n availableCapacity -= capacityAmount;\n return capacityAmount;\n };\n\n const releaseRetryTokens = (capacityReleaseAmount?: number) => {\n availableCapacity += capacityReleaseAmount ?? NO_RETRY_INCREMENT;\n availableCapacity = Math.min(availableCapacity, MAX_CAPACITY);\n };\n\n return Object.freeze({\n hasRetryTokens,\n retrieveRetryTokens,\n releaseRetryTokens,\n });\n};\n","import { LoadedConfigSelectors } from \"@aws-sdk/node-config-provider\";\nimport { Provider, RetryStrategy } from \"@aws-sdk/types\";\n\nimport { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE, StandardRetryStrategy } from \"./defaultStrategy\";\n\nexport const ENV_MAX_ATTEMPTS = \"AWS_MAX_ATTEMPTS\";\nexport const CONFIG_MAX_ATTEMPTS = \"max_attempts\";\n\nexport const NODE_MAX_ATTEMPT_CONFIG_OPTIONS: LoadedConfigSelectors = {\n environmentVariableSelector: (env) => {\n const value = env[ENV_MAX_ATTEMPTS];\n if (!value) return undefined;\n const maxAttempt = parseInt(value);\n if (Number.isNaN(maxAttempt)) {\n throw new Error(`Environment variable ${ENV_MAX_ATTEMPTS} mast be a number, got \"${value}\"`);\n }\n return maxAttempt;\n },\n configFileSelector: (profile) => {\n const value = profile[CONFIG_MAX_ATTEMPTS];\n if (!value) return undefined;\n const maxAttempt = parseInt(value);\n if (Number.isNaN(maxAttempt)) {\n throw new Error(`Shared config file entry ${CONFIG_MAX_ATTEMPTS} mast be a number, got \"${value}\"`);\n }\n return maxAttempt;\n },\n default: DEFAULT_MAX_ATTEMPTS,\n};\n\nexport interface RetryInputConfig {\n /**\n * The maximum number of times requests that encounter retryable failures should be attempted.\n */\n maxAttempts?: number | Provider;\n /**\n * The strategy to retry the request. Using built-in exponential backoff strategy by default.\n */\n retryStrategy?: RetryStrategy;\n}\n\ninterface PreviouslyResolved {}\nexport interface RetryResolvedConfig {\n maxAttempts: Provider;\n retryStrategy: RetryStrategy;\n}\n\nexport const resolveRetryConfig = (input: T & PreviouslyResolved & RetryInputConfig): T & RetryResolvedConfig => {\n const maxAttempts = normalizeMaxAttempts(input.maxAttempts);\n return {\n ...input,\n maxAttempts,\n retryStrategy: input.retryStrategy || new StandardRetryStrategy(maxAttempts),\n };\n};\n\nconst normalizeMaxAttempts = (maxAttempts: number | Provider = DEFAULT_MAX_ATTEMPTS): Provider => {\n if (typeof maxAttempts === \"number\") {\n const promisified = Promise.resolve(maxAttempts);\n return () => promisified;\n }\n return maxAttempts;\n};\n\nexport const ENV_RETRY_MODE = \"AWS_RETRY_MODE\";\nexport const CONFIG_RETRY_MODE = \"retry_mode\";\n\nexport const NODE_RETRY_MODE_CONFIG_OPTIONS: LoadedConfigSelectors = {\n environmentVariableSelector: (env) => env[ENV_RETRY_MODE],\n configFileSelector: (profile) => profile[CONFIG_RETRY_MODE],\n default: DEFAULT_RETRY_MODE,\n};\n","import {\n InitializeHandler,\n InitializeHandlerArguments,\n InitializeHandlerOptions,\n InitializeHandlerOutput,\n InitializeMiddleware,\n MetadataBearer,\n Pluggable,\n} from \"@aws-sdk/types\";\nimport { validate as validateArn } from \"@aws-sdk/util-arn-parser\";\n\n/**\n * @internal\n */\nexport function validateBucketNameMiddleware(): InitializeMiddleware {\n return (\n next: InitializeHandler\n ): InitializeHandler => async (\n args: InitializeHandlerArguments\n ): Promise> => {\n const {\n input: { Bucket },\n } = args;\n if (typeof Bucket === \"string\" && !validateArn(Bucket) && Bucket.indexOf(\"/\") >= 0) {\n const err = new Error(`Bucket name shouldn't contain '/', received '${Bucket}'`);\n err.name = \"InvalidBucketName\";\n throw err;\n }\n return next({ ...args });\n };\n}\n\n/**\n * @internal\n */\nexport const validateBucketNameMiddlewareOptions: InitializeHandlerOptions = {\n step: \"initialize\",\n tags: [\"VALIDATE_BUCKET_NAME\"],\n name: \"validateBucketNameMiddleware\",\n override: true,\n};\n\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport const getValidateBucketNamePlugin = (unused: any): Pluggable => ({\n applyToStack: (clientStack) => {\n clientStack.add(validateBucketNameMiddleware(), validateBucketNameMiddlewareOptions);\n },\n});\n","import { HttpRequest } from \"@aws-sdk/protocol-http\";\nimport {\n BuildHandler,\n BuildHandlerArguments,\n BuildHandlerOptions,\n BuildHandlerOutput,\n BuildMiddleware,\n MetadataBearer,\n Pluggable,\n Provider,\n} from \"@aws-sdk/types\";\n\ntype PreviouslyResolved = {\n region: Provider;\n isCustomEndpoint: boolean;\n};\n\n/**\n * @internal\n */\nexport const useRegionalEndpointMiddleware = (config: PreviouslyResolved): BuildMiddleware => <\n Output extends MetadataBearer\n>(\n next: BuildHandler\n): BuildHandler => async (args: BuildHandlerArguments): Promise> => {\n const { request } = args;\n if (!HttpRequest.isInstance(request) || config.isCustomEndpoint) return next({ ...args });\n if (request.hostname === \"s3.amazonaws.com\") {\n request.hostname = \"s3.us-east-1.amazonaws.com\";\n } else if (\"aws-global\" === (await config.region())) {\n request.hostname = \"s3.amazonaws.com\";\n }\n return next({ ...args });\n};\n\n/**\n * @internal\n */\nexport const useRegionalEndpointMiddlewareOptions: BuildHandlerOptions = {\n step: \"build\",\n tags: [\"USE_REGIONAL_ENDPOINT\", \"S3\"],\n name: \"useRegionalEndpointMiddleware\",\n override: true,\n};\n\n/**\n * @internal\n */\nexport const getUseRegionalEndpointPlugin = (config: PreviouslyResolved): Pluggable => ({\n applyToStack: (clientStack) => {\n clientStack.add(useRegionalEndpointMiddleware(config), useRegionalEndpointMiddlewareOptions);\n },\n});\n","import { HttpResponse } from \"@aws-sdk/protocol-http\";\nimport { DeserializeMiddleware, Encoder, Pluggable, RelativeMiddlewareOptions, StreamCollector } from \"@aws-sdk/types\";\n\ntype PreviouslyResolved = {\n streamCollector: StreamCollector;\n utf8Encoder: Encoder;\n};\n\n/**\n * In case of an internal error/terminated connection, S3 operations may return 200 errors. CopyObject, UploadPartCopy,\n * CompleteMultipartUpload may return empty payload or payload with only xml Preamble.\n * @internal\n */\nexport const throw200ExceptionsMiddleware = (config: PreviouslyResolved): DeserializeMiddleware => (\n next\n) => async (args) => {\n const result = await next(args);\n const { response } = result;\n if (!HttpResponse.isInstance(response)) return result;\n const { statusCode, body } = response;\n if (statusCode < 200 && statusCode >= 300) return result;\n\n // Throw 2XX response that's either an error or has empty body.\n const bodyBytes = await collectBody(body, config);\n const bodyString = await collectBodyString(bodyBytes, config);\n if (bodyBytes.length === 0) {\n const err = new Error(\"S3 aborted request\");\n err.name = \"InternalError\";\n throw err;\n }\n if (bodyString && bodyString.match(\"\")) {\n // Set the error code to 4XX so that error deserializer can parse them\n response.statusCode = 400;\n }\n\n // Body stream is consumed and paused at this point. So replace the response.body to the collected bytes.\n // So that the deserializer can consume the body as normal.\n response.body = bodyBytes;\n return result;\n};\n\n// Collect low-level response body stream to Uint8Array.\nconst collectBody = (streamBody: any = new Uint8Array(), context: PreviouslyResolved): Promise => {\n if (streamBody instanceof Uint8Array) {\n return Promise.resolve(streamBody);\n }\n return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());\n};\n\n// Encode Uint8Array data into string with utf-8.\nconst collectBodyString = (streamBody: any, context: PreviouslyResolved): Promise =>\n collectBody(streamBody, context).then((body) => context.utf8Encoder(body));\n\n/**\n * @internal\n */\nexport const throw200ExceptionsMiddlewareOptions: RelativeMiddlewareOptions = {\n relation: \"after\",\n toMiddleware: \"deserializerMiddleware\",\n tags: [\"THROW_200_EXCEPTIONS\", \"S3\"],\n name: \"throw200ExceptionsMiddleware\",\n override: true,\n};\n\n/**\n *\n * @internal\n */\nexport const getThrow200ExceptionsPlugin = (config: PreviouslyResolved): Pluggable => ({\n applyToStack: (clientStack) => {\n clientStack.addRelativeTo(throw200ExceptionsMiddleware(config), throw200ExceptionsMiddlewareOptions);\n },\n});\n","import {\n DeserializeHandlerOptions,\n EndpointBearer,\n MetadataBearer,\n MiddlewareStack,\n Pluggable,\n RequestSerializer,\n ResponseDeserializer,\n SerializeHandlerOptions,\n} from \"@aws-sdk/types\";\n\nimport { deserializerMiddleware } from \"./deserializerMiddleware\";\nimport { serializerMiddleware } from \"./serializerMiddleware\";\n\nexport const deserializerMiddlewareOption: DeserializeHandlerOptions = {\n name: \"deserializerMiddleware\",\n step: \"deserialize\",\n tags: [\"DESERIALIZER\"],\n override: true,\n};\n\nexport const serializerMiddlewareOption: SerializeHandlerOptions = {\n name: \"serializerMiddleware\",\n step: \"serialize\",\n tags: [\"SERIALIZER\"],\n override: true,\n};\n\nexport function getSerdePlugin<\n InputType extends object,\n SerDeContext extends EndpointBearer,\n OutputType extends MetadataBearer\n>(\n config: SerDeContext,\n serializer: RequestSerializer,\n deserializer: ResponseDeserializer\n): Pluggable {\n return {\n applyToStack: (commandStack: MiddlewareStack) => {\n commandStack.add(deserializerMiddleware(config, deserializer), deserializerMiddlewareOption);\n commandStack.add(serializerMiddleware(config, serializer), serializerMiddlewareOption);\n },\n };\n}\n","import {\n DeserializeHandler,\n DeserializeHandlerArguments,\n DeserializeHandlerOutput,\n DeserializeMiddleware,\n HandlerExecutionContext,\n ResponseDeserializer,\n} from \"@aws-sdk/types\";\n\nexport const deserializerMiddleware = (\n options: RuntimeUtils,\n deserializer: ResponseDeserializer\n): DeserializeMiddleware => (\n next: DeserializeHandler,\n context: HandlerExecutionContext\n): DeserializeHandler => async (\n args: DeserializeHandlerArguments\n): Promise> => {\n const { response } = await next(args);\n const parsed = await deserializer(response, options);\n return {\n response,\n output: parsed as Output,\n };\n};\n","import {\n EndpointBearer,\n HandlerExecutionContext,\n RequestSerializer,\n SerializeHandler,\n SerializeHandlerArguments,\n SerializeHandlerOutput,\n SerializeMiddleware,\n} from \"@aws-sdk/types\";\n\nexport const serializerMiddleware = (\n options: RuntimeUtils,\n serializer: RequestSerializer\n): SerializeMiddleware => (\n next: SerializeHandler,\n context: HandlerExecutionContext\n): SerializeHandler => async (\n args: SerializeHandlerArguments\n): Promise> => {\n const request = await serializer(args.input, options);\n return next({\n ...args,\n request,\n });\n};\n","import { SignatureV4 } from \"@aws-sdk/signature-v4\";\nimport { Credentials, HashConstructor, Provider, RegionInfo, RegionInfoProvider, RequestSigner } from \"@aws-sdk/types\";\n\nexport interface AwsAuthInputConfig {\n /**\n * The credentials used to sign requests.\n */\n credentials?: Credentials | Provider;\n\n /**\n * The signer to use when signing requests.\n */\n signer?: RequestSigner | Provider;\n\n /**\n * Whether to escape request path when signing the request.\n */\n signingEscapePath?: boolean;\n\n /**\n * An offset value in milliseconds to apply to all signing times.\n */\n systemClockOffset?: number;\n\n /**\n * The region where you want to sign your request against. This\n * can be different to the region in the endpoint.\n */\n signingRegion?: string;\n}\ninterface PreviouslyResolved {\n credentialDefaultProvider: (input: any) => Provider;\n region: string | Provider;\n regionInfoProvider: RegionInfoProvider;\n signingName?: string;\n serviceId: string;\n sha256: HashConstructor;\n}\nexport interface AwsAuthResolvedConfig {\n credentials: Provider;\n signer: Provider;\n signingEscapePath: boolean;\n systemClockOffset: number;\n}\nexport function resolveAwsAuthConfig(input: T & AwsAuthInputConfig & PreviouslyResolved): T & AwsAuthResolvedConfig {\n const credentials = input.credentials || input.credentialDefaultProvider(input as any);\n const normalizedCreds = normalizeProvider(credentials);\n const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input;\n let signer: Provider;\n if (input.signer) {\n //if signer is supplied by user, normalize it to a function returning a promise for signer.\n signer = normalizeProvider(input.signer);\n } else {\n //construct a provider inferring signing from region.\n signer = () =>\n normalizeProvider(input.region)()\n .then(async (region) => [(await input.regionInfoProvider(region)) || {}, region] as [RegionInfo, string])\n .then(([regionInfo, region]) => {\n const { signingRegion, signingService } = regionInfo;\n //update client's singing region and signing service config if they are resolved.\n //signing region resolving order: user supplied signingRegion -> endpoints.json inferred region -> client region\n input.signingRegion = input.signingRegion || signingRegion || region;\n //signing name resolving order:\n //user supplied signingName -> endpoints.json inferred (credential scope -> model arnNamespace) -> model service id\n input.signingName = input.signingName || signingService || input.serviceId;\n\n return new SignatureV4({\n credentials: normalizedCreds,\n region: input.signingRegion,\n service: input.signingName,\n sha256,\n uriEscapePath: signingEscapePath,\n });\n });\n }\n\n return {\n ...input,\n systemClockOffset,\n signingEscapePath,\n credentials: normalizedCreds,\n signer,\n };\n}\n\nfunction normalizeProvider(input: T | Provider): Provider {\n if (typeof input === \"object\") {\n const promisified = Promise.resolve(input);\n return () => promisified;\n }\n return input as Provider;\n}\n","import { HttpRequest } from \"@aws-sdk/protocol-http\";\nimport {\n FinalizeHandler,\n FinalizeHandlerArguments,\n FinalizeHandlerOutput,\n FinalizeRequestMiddleware,\n HandlerExecutionContext,\n Pluggable,\n RelativeMiddlewareOptions,\n} from \"@aws-sdk/types\";\n\nimport { AwsAuthResolvedConfig } from \"./configurations\";\n\nconst isClockSkewed = (newServerTime: number, systemClockOffset: number) =>\n Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - newServerTime) >= 300000;\n\nconst getSkewCorrectedDate = (systemClockOffset: number) => new Date(Date.now() + systemClockOffset);\n\nexport function awsAuthMiddleware(\n options: AwsAuthResolvedConfig\n): FinalizeRequestMiddleware {\n return (next: FinalizeHandler, context: HandlerExecutionContext): FinalizeHandler =>\n async function (args: FinalizeHandlerArguments): Promise> {\n if (!HttpRequest.isInstance(args.request)) return next(args);\n const signer = typeof options.signer === \"function\" ? await options.signer() : options.signer;\n const output = await next({\n ...args,\n request: await signer.sign(args.request, {\n signingDate: new Date(Date.now() + options.systemClockOffset),\n signingRegion: context[\"signing_region\"],\n signingService: context[\"signing_service\"],\n }),\n });\n\n const { headers } = output.response as any;\n const dateHeader = headers && (headers.date || headers.Date);\n if (dateHeader) {\n const serverTime = Date.parse(dateHeader);\n if (isClockSkewed(serverTime, options.systemClockOffset)) {\n options.systemClockOffset = serverTime - Date.now();\n }\n }\n\n return output;\n };\n}\n\nexport const awsAuthMiddlewareOptions: RelativeMiddlewareOptions = {\n name: \"awsAuthMiddleware\",\n tags: [\"SIGNATURE\", \"AWSAUTH\"],\n relation: \"after\",\n toMiddleware: \"retryMiddleware\",\n override: true,\n};\n\nexport const getAwsAuthPlugin = (options: AwsAuthResolvedConfig): Pluggable => ({\n applyToStack: (clientStack) => {\n clientStack.addRelativeTo(awsAuthMiddleware(options), awsAuthMiddlewareOptions);\n },\n});\n","import {\n InitializeHandler,\n InitializeHandlerArguments,\n InitializeHandlerOptions,\n InitializeHandlerOutput,\n InitializeMiddleware,\n MetadataBearer,\n Pluggable,\n SourceData,\n} from \"@aws-sdk/types\";\n\nimport { ResolvedSsecMiddlewareConfig } from \"./configuration\";\n\nexport function ssecMiddleware(options: ResolvedSsecMiddlewareConfig): InitializeMiddleware {\n return (\n next: InitializeHandler\n ): InitializeHandler => async (\n args: InitializeHandlerArguments\n ): Promise> => {\n let input = { ...args.input };\n const properties = [\n {\n target: \"SSECustomerKey\",\n hash: \"SSECustomerKeyMD5\",\n },\n {\n target: \"CopySourceSSECustomerKey\",\n hash: \"CopySourceSSECustomerKeyMD5\",\n },\n ];\n\n for (const prop of properties) {\n const value: SourceData | undefined = (input as any)[prop.target];\n if (value) {\n const valueView = ArrayBuffer.isView(value)\n ? new Uint8Array(value.buffer, value.byteOffset, value.byteLength)\n : typeof value === \"string\"\n ? options.utf8Decoder(value)\n : new Uint8Array(value);\n const encoded = options.base64Encoder(valueView);\n const hash = new options.md5();\n hash.update(valueView);\n input = {\n ...(input as any),\n [prop.target]: encoded,\n [prop.hash]: options.base64Encoder(await hash.digest()),\n };\n }\n }\n\n return next({\n ...args,\n input,\n });\n };\n}\n\nexport const ssecMiddlewareOptions: InitializeHandlerOptions = {\n name: \"ssecMiddleware\",\n step: \"initialize\",\n tags: [\"SSE\"],\n override: true,\n};\n\nexport const getSsecPlugin = (config: ResolvedSsecMiddlewareConfig): Pluggable => ({\n applyToStack: (clientStack) => {\n clientStack.add(ssecMiddleware(config), ssecMiddlewareOptions);\n },\n});\n","import { Provider, UserAgent } from \"@aws-sdk/types\";\nexport interface UserAgentInputConfig {\n /**\n * The custom user agent header that would be appended to default one\n */\n customUserAgent?: string | UserAgent;\n}\ninterface PreviouslyResolved {\n defaultUserAgentProvider: Provider;\n runtime: string;\n}\nexport interface UserAgentResolvedConfig {\n defaultUserAgentProvider: Provider;\n customUserAgent?: UserAgent;\n runtime: string;\n}\nexport function resolveUserAgentConfig(\n input: T & PreviouslyResolved & UserAgentInputConfig\n): T & UserAgentResolvedConfig {\n return {\n ...input,\n customUserAgent: typeof input.customUserAgent === \"string\" ? [[input.customUserAgent]] : input.customUserAgent,\n };\n}\n","export const USER_AGENT = \"user-agent\";\n\nexport const X_AMZ_USER_AGENT = \"x-amz-user-agent\";\n\nexport const SPACE = \" \";\n\nexport const UA_ESCAPE_REGEX = /[^\\!\\#\\$\\%\\&\\'\\*\\+\\-\\.\\^\\_\\`\\|\\~\\d\\w]/g;\n","import { HttpRequest } from \"@aws-sdk/protocol-http\";\nimport {\n AbsoluteLocation,\n BuildHandler,\n BuildHandlerArguments,\n BuildHandlerOptions,\n BuildHandlerOutput,\n HandlerExecutionContext,\n MetadataBearer,\n Pluggable,\n UserAgentPair,\n} from \"@aws-sdk/types\";\n\nimport { UserAgentResolvedConfig } from \"./configurations\";\nimport { SPACE, UA_ESCAPE_REGEX, USER_AGENT, X_AMZ_USER_AGENT } from \"./constants\";\n\n/**\n * Build user agent header sections from:\n * 1. runtime-specific default user agent provider;\n * 2. custom user agent from `customUserAgent` client config;\n * 3. handler execution context set by internal SDK components;\n * The built user agent will be set to `x-amz-user-agent` header for ALL the\n * runtimes.\n * Please note that any override to the `user-agent` or `x-amz-user-agent` header\n * in the HTTP request is discouraged. Please use `customUserAgent` client\n * config or middleware setting the `userAgent` context to generate desired user\n * agent.\n */\nexport const userAgentMiddleware = (options: UserAgentResolvedConfig) => (\n next: BuildHandler,\n context: HandlerExecutionContext\n): BuildHandler => async (args: BuildHandlerArguments): Promise> => {\n const { request } = args;\n if (!HttpRequest.isInstance(request)) return next(args);\n const { headers } = request;\n const userAgent = context?.userAgent?.map(escapeUserAgent) || [];\n const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent);\n const customUserAgent = options?.customUserAgent?.map(escapeUserAgent) || [];\n // Set value to AWS-specific user agent header\n headers[X_AMZ_USER_AGENT] = [...defaultUserAgent, ...userAgent, ...customUserAgent].join(SPACE);\n // Get value to be sent with non-AWS-specific user agent header.\n const normalUAValue = [\n ...defaultUserAgent.filter((section) => section.startsWith(\"aws-sdk-\")),\n ...customUserAgent,\n ].join(SPACE);\n if (options.runtime !== \"browser\" && normalUAValue) {\n headers[USER_AGENT] = headers[USER_AGENT] ? `${headers[USER_AGENT]} ${normalUAValue}` : normalUAValue;\n }\n\n return next({\n ...args,\n request,\n });\n};\n\n/**\n * Escape the each pair according to https://tools.ietf.org/html/rfc5234 and join the pair with pattern `name/version`.\n * User agent name may include prefix like `md/`, `api/`, `os/` etc., we should not escape the `/` after the prefix.\n * @private\n */\nconst escapeUserAgent = ([name, version]: UserAgentPair): string => {\n const prefixSeparatorIndex = name.indexOf(\"/\");\n const prefix = name.substring(0, prefixSeparatorIndex); // If no prefix, prefix is just \"\"\n let uaName = name.substring(prefixSeparatorIndex + 1);\n if (prefix === \"api\") {\n uaName = uaName.toLowerCase();\n }\n return [prefix, uaName, version]\n .filter((item) => item && item.length > 0)\n .map((item) => item?.replace(UA_ESCAPE_REGEX, \"_\"))\n .join(\"/\");\n};\n\nexport const getUserAgentMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation = {\n name: \"getUserAgentMiddleware\",\n step: \"build\",\n priority: \"low\",\n tags: [\"SET_USER_AGENT\", \"USER_AGENT\"],\n override: true,\n};\n\nexport const getUserAgentPlugin = (config: UserAgentResolvedConfig): Pluggable => ({\n applyToStack: (clientStack) => {\n clientStack.add(userAgentMiddleware(config), getUserAgentMiddlewareOptions);\n },\n});\n","/**\n * An error representing a failure of an individual credential provider.\n *\n * This error class has special meaning to the {@link chain} method. If a\n * provider in the chain is rejected with an error, the chain will only proceed\n * to the next provider if the value of the `tryNextLink` property on the error\n * is truthy. This allows individual providers to halt the chain and also\n * ensures the chain will stop if an entirely unexpected error is encountered.\n */\nexport class ProviderError extends Error {\n constructor(message: string, public readonly tryNextLink: boolean = true) {\n super(message);\n }\n}\n","import { HeaderBag, HttpMessage, HttpResponse as IHttpResponse } from \"@aws-sdk/types\";\n\ntype HttpResponseOptions = Partial & {\n statusCode: number;\n};\n\nexport interface HttpResponse extends IHttpResponse {}\n\nexport class HttpResponse {\n public statusCode: number;\n public headers: HeaderBag;\n public body?: any;\n\n constructor(options: HttpResponseOptions) {\n this.statusCode = options.statusCode;\n this.headers = options.headers || {};\n this.body = options.body;\n }\n\n static isInstance(response: unknown): response is HttpResponse {\n //determine if response is a valid HttpResponse\n if (!response) return false;\n const resp = response as any;\n return typeof resp.statusCode === \"number\" && typeof resp.headers === \"object\";\n }\n}\n","import { Endpoint, HeaderBag, HttpMessage, HttpRequest as IHttpRequest, QueryParameterBag } from \"@aws-sdk/types\";\n\ntype HttpRequestOptions = Partial & Partial & { method?: string };\n\nexport interface HttpRequest extends IHttpRequest {}\n\nexport class HttpRequest implements HttpMessage, Endpoint {\n public method: string;\n public protocol: string;\n public hostname: string;\n public port?: number;\n public path: string;\n public query: QueryParameterBag;\n public headers: HeaderBag;\n public body?: any;\n\n constructor(options: HttpRequestOptions) {\n this.method = options.method || \"GET\";\n this.hostname = options.hostname || \"localhost\";\n this.port = options.port;\n this.query = options.query || {};\n this.headers = options.headers || {};\n this.body = options.body;\n this.protocol = options.protocol\n ? options.protocol.substr(-1) !== \":\"\n ? `${options.protocol}:`\n : options.protocol\n : \"https:\";\n this.path = options.path ? (options.path.charAt(0) !== \"/\" ? `/${options.path}` : options.path) : \"/\";\n }\n\n static isInstance(request: unknown): request is HttpRequest {\n //determine if request is a valid httpRequest\n if (!request) return false;\n const req: any = request;\n return (\n \"method\" in req &&\n \"protocol\" in req &&\n \"hostname\" in req &&\n \"path\" in req &&\n typeof req[\"query\"] === \"object\" &&\n typeof req[\"headers\"] === \"object\"\n );\n }\n\n clone(): HttpRequest {\n const cloned = new HttpRequest({\n ...this,\n headers: { ...this.headers },\n });\n if (cloned.query) cloned.query = cloneQuery(cloned.query);\n return cloned;\n }\n}\n\nfunction cloneQuery(query: QueryParameterBag): QueryParameterBag {\n return Object.keys(query).reduce((carry: QueryParameterBag, paramName: string) => {\n const param = query[paramName];\n return {\n ...carry,\n [paramName]: Array.isArray(param) ? [...param] : param,\n };\n }, {});\n}\n","import { QueryParameterBag } from \"@aws-sdk/types\";\nimport { escapeUri } from \"@aws-sdk/util-uri-escape\";\n\nexport function buildQueryString(query: QueryParameterBag): string {\n const parts: string[] = [];\n for (let key of Object.keys(query).sort()) {\n const value = query[key];\n key = escapeUri(key);\n if (Array.isArray(value)) {\n for (let i = 0, iLen = value.length; i < iLen; i++) {\n parts.push(`${key}=${escapeUri(value[i])}`);\n }\n } else {\n let qsEntry = key;\n if (value || typeof value === \"string\") {\n qsEntry += `=${escapeUri(value)}`;\n }\n parts.push(qsEntry);\n }\n }\n\n return parts.join(\"&\");\n}\n","import { SignatureV4, SignatureV4CryptoInit, SignatureV4Init } from \"@aws-sdk/signature-v4\";\nimport { RequestPresigner, RequestPresigningArguments } from \"@aws-sdk/types\";\nimport { HttpRequest as IHttpRequest } from \"@aws-sdk/types\";\n\nimport { SHA256_HEADER, UNSIGNED_PAYLOAD } from \"./constants\";\n\n/**\n * PartialBy makes properties specified in K optional in interface T\n * see: https://stackoverflow.com/questions/43159887/make-a-single-property-optional-in-typescript\n * */\ntype Omit = Pick>;\ntype PartialBy = Omit & Partial>;\n\nexport type S3RequestPresignerOptions = PartialBy<\n SignatureV4Init & SignatureV4CryptoInit,\n \"service\" | \"uriEscapePath\"\n> & { signingName?: string };\n\nexport class S3RequestPresigner implements RequestPresigner {\n private readonly signer: SignatureV4;\n constructor(options: S3RequestPresignerOptions) {\n const resolvedOptions = {\n // Allow `signingName` because we want to support usecase of supply client's resolved config\n // directly. Where service equals signingName.\n service: options.signingName || options.service || \"s3\",\n uriEscapePath: options.uriEscapePath || false,\n ...options,\n };\n this.signer = new SignatureV4(resolvedOptions);\n }\n\n public async presign(\n requestToSign: IHttpRequest,\n { unsignableHeaders = new Set(), unhoistableHeaders = new Set(), ...options }: RequestPresigningArguments = {}\n ): Promise {\n unsignableHeaders.add(\"content-type\");\n // S3 requires SSE headers to be signed in headers instead of query\n // See: https://github.com/aws/aws-sdk-js-v3/issues/1576\n Object.keys(requestToSign.headers)\n .map((header) => header.toLowerCase())\n .filter((header) => header.startsWith(\"x-amz-server-side-encryption\"))\n .forEach((header) => {\n unhoistableHeaders.add(header);\n });\n requestToSign.headers[SHA256_HEADER] = UNSIGNED_PAYLOAD;\n return this.signer.presign(requestToSign, {\n expiresIn: 900,\n unsignableHeaders,\n unhoistableHeaders,\n ...options,\n });\n }\n}\n","export const UNSIGNED_PAYLOAD = \"UNSIGNED-PAYLOAD\";\nexport const SHA256_HEADER = \"X-Amz-Content-Sha256\";\n\nexport const ALGORITHM_QUERY_PARAM = \"X-Amz-Algorithm\";\nexport const CREDENTIAL_QUERY_PARAM = \"X-Amz-Credential\";\nexport const AMZ_DATE_QUERY_PARAM = \"X-Amz-Date\";\nexport const SIGNED_HEADERS_QUERY_PARAM = \"X-Amz-SignedHeaders\";\nexport const EXPIRES_QUERY_PARAM = \"X-Amz-Expires\";\nexport const HOST_HEADER = \"host\";\nexport const ALGORITHM_IDENTIFIER = \"AWS4-HMAC-SHA256\";\n","export const ALGORITHM_QUERY_PARAM = \"X-Amz-Algorithm\";\nexport const CREDENTIAL_QUERY_PARAM = \"X-Amz-Credential\";\nexport const AMZ_DATE_QUERY_PARAM = \"X-Amz-Date\";\nexport const SIGNED_HEADERS_QUERY_PARAM = \"X-Amz-SignedHeaders\";\nexport const EXPIRES_QUERY_PARAM = \"X-Amz-Expires\";\nexport const SIGNATURE_QUERY_PARAM = \"X-Amz-Signature\";\nexport const TOKEN_QUERY_PARAM = \"X-Amz-Security-Token\";\n\nexport const AUTH_HEADER = \"authorization\";\nexport const AMZ_DATE_HEADER = AMZ_DATE_QUERY_PARAM.toLowerCase();\nexport const DATE_HEADER = \"date\";\nexport const GENERATED_HEADERS = [AUTH_HEADER, AMZ_DATE_HEADER, DATE_HEADER];\nexport const SIGNATURE_HEADER = SIGNATURE_QUERY_PARAM.toLowerCase();\nexport const SHA256_HEADER = \"x-amz-content-sha256\";\nexport const TOKEN_HEADER = TOKEN_QUERY_PARAM.toLowerCase();\nexport const HOST_HEADER = \"host\";\n\nexport const ALWAYS_UNSIGNABLE_HEADERS = {\n authorization: true,\n \"cache-control\": true,\n connection: true,\n expect: true,\n from: true,\n \"keep-alive\": true,\n \"max-forwards\": true,\n pragma: true,\n referer: true,\n te: true,\n trailer: true,\n \"transfer-encoding\": true,\n upgrade: true,\n \"user-agent\": true,\n \"x-amzn-trace-id\": true,\n};\n\nexport const PROXY_HEADER_PATTERN = /^proxy-/;\n\nexport const SEC_HEADER_PATTERN = /^sec-/;\n\nexport const UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i];\n\nexport const ALGORITHM_IDENTIFIER = \"AWS4-HMAC-SHA256\";\n\nexport const EVENT_ALGORITHM_IDENTIFIER = \"AWS4-HMAC-SHA256-PAYLOAD\";\n\nexport const UNSIGNED_PAYLOAD = \"UNSIGNED-PAYLOAD\";\n\nexport const MAX_CACHE_SIZE = 50;\nexport const KEY_TYPE_IDENTIFIER = \"aws4_request\";\n\nexport const MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7;\n","import { Credentials, HashConstructor, SourceData } from \"@aws-sdk/types\";\nimport { toHex } from \"@aws-sdk/util-hex-encoding\";\n\nimport { KEY_TYPE_IDENTIFIER, MAX_CACHE_SIZE } from \"./constants\";\n\nconst signingKeyCache: { [key: string]: Uint8Array } = {};\nconst cacheQueue: Array = [];\n\n/**\n * Create a string describing the scope of credentials used to sign a request.\n *\n * @param shortDate The current calendar date in the form YYYYMMDD.\n * @param region The AWS region in which the service resides.\n * @param service The service to which the signed request is being sent.\n */\nexport function createScope(shortDate: string, region: string, service: string): string {\n return `${shortDate}/${region}/${service}/${KEY_TYPE_IDENTIFIER}`;\n}\n\n/**\n * Derive a signing key from its composite parts\n *\n * @param sha256Constructor A constructor function that can instantiate SHA-256\n * hash objects.\n * @param credentials The credentials with which the request will be\n * signed.\n * @param shortDate The current calendar date in the form YYYYMMDD.\n * @param region The AWS region in which the service resides.\n * @param service The service to which the signed request is being\n * sent.\n */\nexport const getSigningKey = async (\n sha256Constructor: HashConstructor,\n credentials: Credentials,\n shortDate: string,\n region: string,\n service: string\n): Promise => {\n const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId);\n const cacheKey = `${shortDate}:${region}:${service}:${toHex(credsHash)}:${credentials.sessionToken}`;\n if (cacheKey in signingKeyCache) {\n return signingKeyCache[cacheKey];\n }\n\n cacheQueue.push(cacheKey);\n while (cacheQueue.length > MAX_CACHE_SIZE) {\n delete signingKeyCache[cacheQueue.shift() as string];\n }\n\n let key: SourceData = `AWS4${credentials.secretAccessKey}`;\n for (const signable of [shortDate, region, service, KEY_TYPE_IDENTIFIER]) {\n key = await hmac(sha256Constructor, key, signable);\n }\n return (signingKeyCache[cacheKey] = key as Uint8Array);\n};\n\n/**\n * @internal\n */\nexport function clearCredentialCache(): void {\n cacheQueue.length = 0;\n Object.keys(signingKeyCache).forEach((cacheKey) => {\n delete signingKeyCache[cacheKey];\n });\n}\n\nfunction hmac(ctor: HashConstructor, secret: SourceData, data: SourceData): Promise {\n const hash = new ctor(secret);\n hash.update(data);\n return hash.digest();\n}\n","import { HeaderBag, HttpRequest } from \"@aws-sdk/types\";\n\nimport { ALWAYS_UNSIGNABLE_HEADERS, PROXY_HEADER_PATTERN, SEC_HEADER_PATTERN } from \"./constants\";\n\n/**\n * @internal\n */\nexport function getCanonicalHeaders(\n { headers }: HttpRequest,\n unsignableHeaders?: Set,\n signableHeaders?: Set\n): HeaderBag {\n const canonical: HeaderBag = {};\n for (const headerName of Object.keys(headers).sort()) {\n const canonicalHeaderName = headerName.toLowerCase();\n if (\n canonicalHeaderName in ALWAYS_UNSIGNABLE_HEADERS ||\n unsignableHeaders?.has(canonicalHeaderName) ||\n PROXY_HEADER_PATTERN.test(canonicalHeaderName) ||\n SEC_HEADER_PATTERN.test(canonicalHeaderName)\n ) {\n if (!signableHeaders || (signableHeaders && !signableHeaders.has(canonicalHeaderName))) {\n continue;\n }\n }\n\n canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\\s+/g, \" \");\n }\n\n return canonical;\n}\n","import { isArrayBuffer } from \"@aws-sdk/is-array-buffer\";\nimport { HashConstructor, HttpRequest } from \"@aws-sdk/types\";\nimport { toHex } from \"@aws-sdk/util-hex-encoding\";\n\nimport { SHA256_HEADER, UNSIGNED_PAYLOAD } from \"./constants\";\n\n/**\n * @internal\n */\nexport async function getPayloadHash(\n { headers, body }: HttpRequest,\n hashConstructor: HashConstructor\n): Promise {\n for (const headerName of Object.keys(headers)) {\n if (headerName.toLowerCase() === SHA256_HEADER) {\n return headers[headerName];\n }\n }\n\n if (body == undefined) {\n return \"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\";\n } else if (typeof body === \"string\" || ArrayBuffer.isView(body) || isArrayBuffer(body)) {\n const hashCtor = new hashConstructor();\n hashCtor.update(body);\n return toHex(await hashCtor.digest());\n }\n\n // As any defined body that is not a string or binary data is a stream, this\n // body is unsignable. Attempt to send the request with an unsigned payload,\n // which may or may not be accepted by the service.\n return UNSIGNED_PAYLOAD;\n}\n","export const isArrayBuffer = (arg: any): arg is ArrayBuffer =>\n (typeof ArrayBuffer === \"function\" && arg instanceof ArrayBuffer) ||\n Object.prototype.toString.call(arg) === \"[object ArrayBuffer]\";\n","import { HttpRequest, QueryParameterBag } from \"@aws-sdk/types\";\n\n/**\n * @internal\n */\nexport function cloneRequest({ headers, query, ...rest }: HttpRequest): HttpRequest {\n return {\n ...rest,\n headers: { ...headers },\n query: query ? cloneQuery(query) : undefined,\n };\n}\n\nfunction cloneQuery(query: QueryParameterBag): QueryParameterBag {\n return Object.keys(query).reduce((carry: QueryParameterBag, paramName: string) => {\n const param = query[paramName];\n return {\n ...carry,\n [paramName]: Array.isArray(param) ? [...param] : param,\n };\n }, {});\n}\n","import { HttpRequest } from \"@aws-sdk/types\";\n\nimport { cloneRequest } from \"./cloneRequest\";\nimport { GENERATED_HEADERS } from \"./constants\";\n\n/**\n * @internal\n */\nexport function prepareRequest(request: HttpRequest): HttpRequest {\n // Create a clone of the request object that does not clone the body\n request = typeof (request as any).clone === \"function\" ? (request as any).clone() : cloneRequest(request);\n\n for (const headerName of Object.keys(request.headers)) {\n if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) {\n delete request.headers[headerName];\n }\n }\n\n return request;\n}\n","export function iso8601(time: number | string | Date): string {\n return toDate(time)\n .toISOString()\n .replace(/\\.\\d{3}Z$/, \"Z\");\n}\n\nexport function toDate(time: number | string | Date): Date {\n if (typeof time === \"number\") {\n return new Date(time * 1000);\n }\n\n if (typeof time === \"string\") {\n if (Number(time)) {\n return new Date(Number(time) * 1000);\n }\n return new Date(time);\n }\n\n return time;\n}\n","import {\n Credentials,\n DateInput,\n EventSigner,\n EventSigningArguments,\n FormattedEvent,\n HashConstructor,\n HeaderBag,\n HttpRequest,\n Provider,\n RequestPresigner,\n RequestPresigningArguments,\n RequestSigner,\n RequestSigningArguments,\n SigningArguments,\n StringSigner,\n} from \"@aws-sdk/types\";\nimport { toHex } from \"@aws-sdk/util-hex-encoding\";\n\nimport {\n ALGORITHM_IDENTIFIER,\n ALGORITHM_QUERY_PARAM,\n AMZ_DATE_HEADER,\n AMZ_DATE_QUERY_PARAM,\n AUTH_HEADER,\n CREDENTIAL_QUERY_PARAM,\n EVENT_ALGORITHM_IDENTIFIER,\n EXPIRES_QUERY_PARAM,\n MAX_PRESIGNED_TTL,\n SHA256_HEADER,\n SIGNATURE_QUERY_PARAM,\n SIGNED_HEADERS_QUERY_PARAM,\n TOKEN_HEADER,\n TOKEN_QUERY_PARAM,\n} from \"./constants\";\nimport { createScope, getSigningKey } from \"./credentialDerivation\";\nimport { getCanonicalHeaders } from \"./getCanonicalHeaders\";\nimport { getCanonicalQuery } from \"./getCanonicalQuery\";\nimport { getPayloadHash } from \"./getPayloadHash\";\nimport { hasHeader } from \"./hasHeader\";\nimport { moveHeadersToQuery } from \"./moveHeadersToQuery\";\nimport { prepareRequest } from \"./prepareRequest\";\nimport { iso8601 } from \"./utilDate\";\n\nexport interface SignatureV4Init {\n /**\n * The service signing name.\n */\n service: string;\n\n /**\n * The region name or a function that returns a promise that will be\n * resolved with the region name.\n */\n region: string | Provider;\n\n /**\n * The credentials with which the request should be signed or a function\n * that returns a promise that will be resolved with credentials.\n */\n credentials: Credentials | Provider;\n\n /**\n * A constructor function for a hash object that will calculate SHA-256 HMAC\n * checksums.\n */\n sha256?: HashConstructor;\n\n /**\n * Whether to uri-escape the request URI path as part of computing the\n * canonical request string. This is required for every AWS service, except\n * Amazon S3, as of late 2017.\n *\n * @default [true]\n */\n uriEscapePath?: boolean;\n\n /**\n * Whether to calculate a checksum of the request body and include it as\n * either a request header (when signing) or as a query string parameter\n * (when presigning). This is required for AWS Glacier and Amazon S3 and optional for\n * every other AWS service as of late 2017.\n *\n * @default [true]\n */\n applyChecksum?: boolean;\n}\n\nexport interface SignatureV4CryptoInit {\n sha256: HashConstructor;\n}\n\nexport class SignatureV4 implements RequestPresigner, RequestSigner, StringSigner, EventSigner {\n private readonly service: string;\n private readonly regionProvider: Provider;\n private readonly credentialProvider: Provider;\n private readonly sha256: HashConstructor;\n private readonly uriEscapePath: boolean;\n private readonly applyChecksum: boolean;\n\n constructor({\n applyChecksum,\n credentials,\n region,\n service,\n sha256,\n uriEscapePath = true,\n }: SignatureV4Init & SignatureV4CryptoInit) {\n this.service = service;\n this.sha256 = sha256;\n this.uriEscapePath = uriEscapePath;\n // default to true if applyChecksum isn't set\n this.applyChecksum = typeof applyChecksum === \"boolean\" ? applyChecksum : true;\n this.regionProvider = normalizeRegionProvider(region);\n this.credentialProvider = normalizeCredentialsProvider(credentials);\n }\n\n public async presign(originalRequest: HttpRequest, options: RequestPresigningArguments = {}): Promise {\n const {\n signingDate = new Date(),\n expiresIn = 3600,\n unsignableHeaders,\n unhoistableHeaders,\n signableHeaders,\n signingRegion,\n signingService,\n } = options;\n const credentials = await this.credentialProvider();\n const region = signingRegion ?? (await this.regionProvider());\n\n const { longDate, shortDate } = formatDate(signingDate);\n if (expiresIn > MAX_PRESIGNED_TTL) {\n return Promise.reject(\n \"Signature version 4 presigned URLs\" + \" must have an expiration date less than one week in\" + \" the future\"\n );\n }\n\n const scope = createScope(shortDate, region, signingService ?? this.service);\n const request = moveHeadersToQuery(prepareRequest(originalRequest), { unhoistableHeaders });\n\n if (credentials.sessionToken) {\n request.query[TOKEN_QUERY_PARAM] = credentials.sessionToken;\n }\n request.query[ALGORITHM_QUERY_PARAM] = ALGORITHM_IDENTIFIER;\n request.query[CREDENTIAL_QUERY_PARAM] = `${credentials.accessKeyId}/${scope}`;\n request.query[AMZ_DATE_QUERY_PARAM] = longDate;\n request.query[EXPIRES_QUERY_PARAM] = expiresIn.toString(10);\n\n const canonicalHeaders = getCanonicalHeaders(request, unsignableHeaders, signableHeaders);\n request.query[SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders);\n\n request.query[SIGNATURE_QUERY_PARAM] = await this.getSignature(\n longDate,\n scope,\n this.getSigningKey(credentials, region, shortDate, signingService),\n this.createCanonicalRequest(request, canonicalHeaders, await getPayloadHash(originalRequest, this.sha256))\n );\n\n return request;\n }\n\n public async sign(stringToSign: string, options?: SigningArguments): Promise;\n public async sign(event: FormattedEvent, options: EventSigningArguments): Promise;\n public async sign(requestToSign: HttpRequest, options?: RequestSigningArguments): Promise;\n public async sign(toSign: any, options: any): Promise {\n if (typeof toSign === \"string\") {\n return this.signString(toSign, options);\n } else if (toSign.headers && toSign.payload) {\n return this.signEvent(toSign, options);\n } else {\n return this.signRequest(toSign, options);\n }\n }\n\n private async signEvent(\n { headers, payload }: FormattedEvent,\n { signingDate = new Date(), priorSignature, signingRegion, signingService }: EventSigningArguments\n ): Promise {\n const region = signingRegion ?? (await this.regionProvider());\n const { shortDate, longDate } = formatDate(signingDate);\n const scope = createScope(shortDate, region, signingService ?? this.service);\n const hashedPayload = await getPayloadHash({ headers: {}, body: payload } as any, this.sha256);\n const hash = new this.sha256();\n hash.update(headers);\n const hashedHeaders = toHex(await hash.digest());\n const stringToSign = [\n EVENT_ALGORITHM_IDENTIFIER,\n longDate,\n scope,\n priorSignature,\n hashedHeaders,\n hashedPayload,\n ].join(\"\\n\");\n return this.signString(stringToSign, { signingDate, signingRegion: region, signingService });\n }\n\n private async signString(\n stringToSign: string,\n { signingDate = new Date(), signingRegion, signingService }: SigningArguments = {}\n ): Promise {\n const credentials = await this.credentialProvider();\n const region = signingRegion ?? (await this.regionProvider());\n const { shortDate } = formatDate(signingDate);\n\n const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService));\n hash.update(stringToSign);\n return toHex(await hash.digest());\n }\n\n private async signRequest(\n requestToSign: HttpRequest,\n {\n signingDate = new Date(),\n signableHeaders,\n unsignableHeaders,\n signingRegion,\n signingService,\n }: RequestSigningArguments = {}\n ): Promise {\n const credentials = await this.credentialProvider();\n const region = signingRegion ?? (await this.regionProvider());\n const request = prepareRequest(requestToSign);\n const { longDate, shortDate } = formatDate(signingDate);\n const scope = createScope(shortDate, region, signingService ?? this.service);\n\n request.headers[AMZ_DATE_HEADER] = longDate;\n if (credentials.sessionToken) {\n request.headers[TOKEN_HEADER] = credentials.sessionToken;\n }\n\n const payloadHash = await getPayloadHash(request, this.sha256);\n if (!hasHeader(SHA256_HEADER, request.headers) && this.applyChecksum) {\n request.headers[SHA256_HEADER] = payloadHash;\n }\n\n const canonicalHeaders = getCanonicalHeaders(request, unsignableHeaders, signableHeaders);\n const signature = await this.getSignature(\n longDate,\n scope,\n this.getSigningKey(credentials, region, shortDate, signingService),\n this.createCanonicalRequest(request, canonicalHeaders, payloadHash)\n );\n\n request.headers[AUTH_HEADER] =\n `${ALGORITHM_IDENTIFIER} ` +\n `Credential=${credentials.accessKeyId}/${scope}, ` +\n `SignedHeaders=${getCanonicalHeaderList(canonicalHeaders)}, ` +\n `Signature=${signature}`;\n\n return request;\n }\n\n private createCanonicalRequest(request: HttpRequest, canonicalHeaders: HeaderBag, payloadHash: string): string {\n const sortedHeaders = Object.keys(canonicalHeaders).sort();\n return `${request.method}\n${this.getCanonicalPath(request)}\n${getCanonicalQuery(request)}\n${sortedHeaders.map((name) => `${name}:${canonicalHeaders[name]}`).join(\"\\n\")}\n\n${sortedHeaders.join(\";\")}\n${payloadHash}`;\n }\n\n private async createStringToSign(\n longDate: string,\n credentialScope: string,\n canonicalRequest: string\n ): Promise {\n const hash = new this.sha256();\n hash.update(canonicalRequest);\n const hashedRequest = await hash.digest();\n\n return `${ALGORITHM_IDENTIFIER}\n${longDate}\n${credentialScope}\n${toHex(hashedRequest)}`;\n }\n\n private getCanonicalPath({ path }: HttpRequest): string {\n if (this.uriEscapePath) {\n const doubleEncoded = encodeURIComponent(path.replace(/^\\//, \"\"));\n return `/${doubleEncoded.replace(/%2F/g, \"/\")}`;\n }\n\n return path;\n }\n\n private async getSignature(\n longDate: string,\n credentialScope: string,\n keyPromise: Promise,\n canonicalRequest: string\n ): Promise {\n const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest);\n\n const hash = new this.sha256(await keyPromise);\n hash.update(stringToSign);\n return toHex(await hash.digest());\n }\n\n private getSigningKey(\n credentials: Credentials,\n region: string,\n shortDate: string,\n service?: string\n ): Promise {\n return getSigningKey(this.sha256, credentials, shortDate, region, service || this.service);\n }\n}\n\nconst formatDate = (now: DateInput): { longDate: string; shortDate: string } => {\n const longDate = iso8601(now).replace(/[\\-:]/g, \"\");\n return {\n longDate,\n shortDate: longDate.substr(0, 8),\n };\n};\n\nconst getCanonicalHeaderList = (headers: object): string => Object.keys(headers).sort().join(\";\");\n\nconst normalizeRegionProvider = (region: string | Provider): Provider => {\n if (typeof region === \"string\") {\n const promisified = Promise.resolve(region);\n return () => promisified;\n } else {\n return region;\n }\n};\n\nconst normalizeCredentialsProvider = (credentials: Credentials | Provider): Provider => {\n if (typeof credentials === \"object\") {\n const promisified = Promise.resolve(credentials);\n return () => promisified;\n } else {\n return credentials;\n }\n};\n","import { HttpRequest, QueryParameterBag } from \"@aws-sdk/types\";\n\nimport { cloneRequest } from \"./cloneRequest\";\n\n/**\n * @internal\n */\nexport function moveHeadersToQuery(\n request: HttpRequest,\n options: { unhoistableHeaders?: Set } = {}\n): HttpRequest & { query: QueryParameterBag } {\n const { headers, query = {} as QueryParameterBag } =\n typeof (request as any).clone === \"function\" ? (request as any).clone() : cloneRequest(request);\n for (const name of Object.keys(headers)) {\n const lname = name.toLowerCase();\n if (lname.substr(0, 6) === \"x-amz-\" && !options.unhoistableHeaders?.has(lname)) {\n query[name] = headers[name];\n delete headers[name];\n }\n }\n\n return {\n ...request,\n headers,\n query,\n };\n}\n","import { HeaderBag } from \"@aws-sdk/types\";\n\nexport function hasHeader(soughtHeader: string, headers: HeaderBag): boolean {\n soughtHeader = soughtHeader.toLowerCase();\n for (const headerName of Object.keys(headers)) {\n if (soughtHeader === headerName.toLowerCase()) {\n return true;\n }\n }\n\n return false;\n}\n","import { HttpRequest } from \"@aws-sdk/types\";\nimport { escapeUri } from \"@aws-sdk/util-uri-escape\";\n\nimport { SIGNATURE_HEADER } from \"./constants\";\n\n/**\n * @internal\n */\nexport function getCanonicalQuery({ query = {} }: HttpRequest): string {\n const keys: Array = [];\n const serialized: { [key: string]: string } = {};\n for (const key of Object.keys(query).sort()) {\n if (key.toLowerCase() === SIGNATURE_HEADER) {\n continue;\n }\n\n keys.push(key);\n const value = query[key];\n if (typeof value === \"string\") {\n serialized[key] = `${escapeUri(key)}=${escapeUri(value)}`;\n } else if (Array.isArray(value)) {\n serialized[key] = value\n .slice(0)\n .sort()\n .reduce(\n (encoded: Array, value: string) => encoded.concat([`${escapeUri(key)}=${escapeUri(value)}`]),\n []\n )\n .join(\"&\");\n }\n }\n\n return keys\n .map((key) => serialized[key])\n .filter((serialized) => serialized) // omit any falsy values\n .join(\"&\");\n}\n","import {\n AbsoluteLocation,\n DeserializeHandler,\n Handler,\n HandlerExecutionContext,\n HandlerOptions,\n MiddlewareStack,\n MiddlewareType,\n Pluggable,\n Priority,\n RelativeLocation,\n Step,\n} from \"@aws-sdk/types\";\n\nimport { AbsoluteMiddlewareEntry, MiddlewareEntry, Normalized, RelativeMiddlewareEntry } from \"./types\";\n\nexport const constructStack = (): MiddlewareStack => {\n let absoluteEntries: AbsoluteMiddlewareEntry[] = [];\n let relativeEntries: RelativeMiddlewareEntry[] = [];\n const entriesNameSet: Set = new Set();\n\n const sort = >(entries: T[]): T[] =>\n entries.sort(\n (a, b) =>\n stepWeights[b.step] - stepWeights[a.step] ||\n priorityWeights[b.priority || \"normal\"] - priorityWeights[a.priority || \"normal\"]\n );\n\n const removeByName = (toRemove: string): boolean => {\n let isRemoved = false;\n const filterCb = (entry: MiddlewareEntry): boolean => {\n if (entry.name && entry.name === toRemove) {\n isRemoved = true;\n entriesNameSet.delete(toRemove);\n return false;\n }\n return true;\n };\n absoluteEntries = absoluteEntries.filter(filterCb);\n relativeEntries = relativeEntries.filter(filterCb);\n return isRemoved;\n };\n\n const removeByReference = (toRemove: MiddlewareType): boolean => {\n let isRemoved = false;\n const filterCb = (entry: MiddlewareEntry): boolean => {\n if (entry.middleware === toRemove) {\n isRemoved = true;\n if (entry.name) entriesNameSet.delete(entry.name);\n return false;\n }\n return true;\n };\n absoluteEntries = absoluteEntries.filter(filterCb);\n relativeEntries = relativeEntries.filter(filterCb);\n return isRemoved;\n };\n\n const cloneTo = (\n toStack: MiddlewareStack\n ): MiddlewareStack => {\n absoluteEntries.forEach((entry) => {\n //@ts-ignore\n toStack.add(entry.middleware, { ...entry });\n });\n relativeEntries.forEach((entry) => {\n //@ts-ignore\n toStack.addRelativeTo(entry.middleware, { ...entry });\n });\n return toStack;\n };\n\n const expandRelativeMiddlewareList = (\n from: Normalized, Input, Output>\n ): MiddlewareEntry[] => {\n const expandedMiddlewareList: MiddlewareEntry[] = [];\n from.before.forEach((entry) => {\n if (entry.before.length === 0 && entry.after.length === 0) {\n expandedMiddlewareList.push(entry);\n } else {\n expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry));\n }\n });\n expandedMiddlewareList.push(from);\n from.after.reverse().forEach((entry) => {\n if (entry.before.length === 0 && entry.after.length === 0) {\n expandedMiddlewareList.push(entry);\n } else {\n expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry));\n }\n });\n return expandedMiddlewareList;\n };\n\n /**\n * Get a final list of middleware in the order of being executed in the resolved handler.\n */\n const getMiddlewareList = (): Array> => {\n const normalizedAbsoluteEntries: Normalized, Input, Output>[] = [];\n const normalizedRelativeEntries: Normalized, Input, Output>[] = [];\n const normalizedEntriesNameMap: {\n [middlewareName: string]: Normalized, Input, Output>;\n } = {};\n\n absoluteEntries.forEach((entry) => {\n const normalizedEntry = {\n ...entry,\n before: [],\n after: [],\n };\n if (normalizedEntry.name) normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry;\n normalizedAbsoluteEntries.push(normalizedEntry);\n });\n\n relativeEntries.forEach((entry) => {\n const normalizedEntry = {\n ...entry,\n before: [],\n after: [],\n };\n if (normalizedEntry.name) normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry;\n normalizedRelativeEntries.push(normalizedEntry);\n });\n\n normalizedRelativeEntries.forEach((entry) => {\n if (entry.toMiddleware) {\n const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware];\n if (toMiddleware === undefined) {\n throw new Error(\n `${entry.toMiddleware} is not found when adding ${entry.name || \"anonymous\"} middleware ${entry.relation} ${\n entry.toMiddleware\n }`\n );\n }\n if (entry.relation === \"after\") {\n toMiddleware.after.push(entry);\n }\n if (entry.relation === \"before\") {\n toMiddleware.before.push(entry);\n }\n }\n });\n\n const mainChain = sort(normalizedAbsoluteEntries)\n .map(expandRelativeMiddlewareList)\n .reduce((wholeList, expendedMiddlewareList) => {\n // TODO: Replace it with Array.flat();\n wholeList.push(...expendedMiddlewareList);\n return wholeList;\n }, [] as MiddlewareEntry[]);\n return mainChain.map((entry) => entry.middleware);\n };\n\n const stack = {\n add: (middleware: MiddlewareType, options: HandlerOptions & AbsoluteLocation = {}) => {\n const { name, override } = options;\n const entry: AbsoluteMiddlewareEntry = {\n step: \"initialize\",\n priority: \"normal\",\n middleware,\n ...options,\n };\n if (name) {\n if (entriesNameSet.has(name)) {\n if (!override) throw new Error(`Duplicate middleware name '${name}'`);\n const toOverrideIndex = absoluteEntries.findIndex((entry) => entry.name === name);\n const toOverride = absoluteEntries[toOverrideIndex];\n if (toOverride.step !== entry.step || toOverride.priority !== entry.priority) {\n throw new Error(\n `\"${name}\" middleware with ${toOverride.priority} priority in ${toOverride.step} step cannot be ` +\n `overridden by same-name middleware with ${entry.priority} priority in ${entry.step} step.`\n );\n }\n absoluteEntries.splice(toOverrideIndex, 1);\n }\n entriesNameSet.add(name);\n }\n absoluteEntries.push(entry);\n },\n\n addRelativeTo: (middleware: MiddlewareType, options: HandlerOptions & RelativeLocation) => {\n const { name, override } = options;\n const entry: RelativeMiddlewareEntry = {\n middleware,\n ...options,\n };\n if (name) {\n if (entriesNameSet.has(name)) {\n if (!override) throw new Error(`Duplicate middleware name '${name}'`);\n const toOverrideIndex = relativeEntries.findIndex((entry) => entry.name === name);\n const toOverride = relativeEntries[toOverrideIndex];\n if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) {\n throw new Error(\n `\"${name}\" middleware ${toOverride.relation} \"${toOverride.toMiddleware}\" middleware cannot be overridden ` +\n `by same-name middleware ${entry.relation} \"${entry.toMiddleware}\" middleware.`\n );\n }\n relativeEntries.splice(toOverrideIndex, 1);\n }\n entriesNameSet.add(name);\n }\n relativeEntries.push(entry);\n },\n\n clone: () => cloneTo(constructStack()),\n\n use: (plugin: Pluggable) => {\n plugin.applyToStack(stack);\n },\n\n remove: (toRemove: MiddlewareType | string): boolean => {\n if (typeof toRemove === \"string\") return removeByName(toRemove);\n else return removeByReference(toRemove);\n },\n\n removeByTag: (toRemove: string): boolean => {\n let isRemoved = false;\n const filterCb = (entry: MiddlewareEntry): boolean => {\n const { tags, name } = entry;\n if (tags && tags.includes(toRemove)) {\n if (name) entriesNameSet.delete(name);\n isRemoved = true;\n return false;\n }\n return true;\n };\n absoluteEntries = absoluteEntries.filter(filterCb);\n relativeEntries = relativeEntries.filter(filterCb);\n return isRemoved;\n },\n\n concat: (\n from: MiddlewareStack\n ): MiddlewareStack => {\n const cloned = cloneTo(constructStack());\n cloned.use(from);\n return cloned;\n },\n\n applyToStack: cloneTo,\n\n resolve: (\n handler: DeserializeHandler,\n context: HandlerExecutionContext\n ): Handler => {\n for (const middleware of getMiddlewareList().reverse()) {\n handler = middleware(handler as Handler, context) as any;\n }\n return handler as Handler;\n },\n };\n return stack;\n};\n\nconst stepWeights: { [key in Step]: number } = {\n initialize: 5,\n serialize: 4,\n build: 3,\n finalizeRequest: 2,\n deserialize: 1,\n};\n\nconst priorityWeights: { [key in Priority]: number } = {\n high: 3,\n normal: 2,\n low: 1,\n};\n","import { constructStack } from \"@aws-sdk/middleware-stack\";\nimport { Client as IClient, Command, MetadataBearer, RequestHandler } from \"@aws-sdk/types\";\n\nexport interface SmithyConfiguration {\n requestHandler: RequestHandler;\n readonly apiVersion: string;\n}\n\nexport type SmithyResolvedConfiguration = SmithyConfiguration;\n\nexport class Client<\n HandlerOptions,\n ClientInput extends object,\n ClientOutput extends MetadataBearer,\n ResolvedClientConfiguration extends SmithyResolvedConfiguration\n> implements IClient {\n public middlewareStack = constructStack();\n readonly config: ResolvedClientConfiguration;\n constructor(config: ResolvedClientConfiguration) {\n this.config = config;\n }\n send(\n command: Command>,\n options?: HandlerOptions\n ): Promise;\n send(\n command: Command>,\n cb: (err: any, data?: OutputType) => void\n ): void;\n send(\n command: Command>,\n options: HandlerOptions,\n cb: (err: any, data?: OutputType) => void\n ): void;\n send(\n command: Command>,\n optionsOrCb?: HandlerOptions | ((err: any, data?: OutputType) => void),\n cb?: (err: any, data?: OutputType) => void\n ): Promise | void {\n const options = typeof optionsOrCb !== \"function\" ? optionsOrCb : undefined;\n const callback = typeof optionsOrCb === \"function\" ? (optionsOrCb as (err: any, data?: OutputType) => void) : cb;\n const handler = command.resolveMiddleware(this.middlewareStack as any, this.config, options);\n if (callback) {\n handler(command)\n .then(\n (result) => callback(null, result.output),\n (err: any) => callback(err)\n )\n .catch(\n // prevent any errors thrown in the callback from triggering an\n // unhandled promise rejection\n () => {}\n );\n } else {\n return handler(command).then((result) => result.output);\n }\n }\n\n destroy() {\n if (this.config.requestHandler.destroy) this.config.requestHandler.destroy();\n }\n}\n","import { constructStack } from \"@aws-sdk/middleware-stack\";\nimport { Command as ICommand, Handler, MetadataBearer, MiddlewareStack as IMiddlewareStack } from \"@aws-sdk/types\";\n\nexport abstract class Command<\n Input extends ClientInput,\n Output extends ClientOutput,\n ResolvedClientConfiguration,\n ClientInput extends object = any,\n ClientOutput extends MetadataBearer = any\n> implements ICommand {\n abstract input: Input;\n readonly middlewareStack: IMiddlewareStack = constructStack();\n abstract resolveMiddleware(\n stack: IMiddlewareStack,\n configuration: ResolvedClientConfiguration,\n options: any\n ): Handler;\n}\n","/**\n * Function that wraps encodeURIComponent to encode additional characters\n * to fully adhere to RFC 3986.\n */\nexport function extendedEncodeURIComponent(str: string): string {\n return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {\n return \"%\" + c.charCodeAt(0).toString(16);\n });\n}\n","/**\n * The XML parser will set one K:V for a member that could\n * return multiple entries but only has one.\n */\nexport const getArrayIfSingleItem = (mayBeArray: T): T | T[] =>\n Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray];\n","/**\n * Recursively parses object and populates value is node from\n * \"#text\" key if it's available\n */\nexport const getValueFromTextNode = (obj: any) => {\n const textNodeName = \"#text\";\n for (const key in obj) {\n if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== undefined) {\n obj[key] = obj[key][textNodeName];\n } else if (typeof obj[key] === \"object\" && obj[key] !== null) {\n obj[key] = getValueFromTextNode(obj[key]);\n }\n }\n return obj;\n};\n","/**\n * Lazy String holder for JSON typed contents.\n */\n\ninterface StringWrapper {\n new (arg: any): String;\n}\n\n/**\n * Because of https://github.com/microsoft/tslib/issues/95,\n * TS 'extends' shim doesn't support extending native types like String.\n * So here we create StringWrapper that duplicate everything from String\n * class including its prototype chain. So we can extend from here.\n */\n// @ts-ignore StringWrapper implementation is not a simple constructor\nexport const StringWrapper: StringWrapper = function () {\n //@ts-ignore 'this' cannot be assigned to any, but Object.getPrototypeOf accepts any\n const Class = Object.getPrototypeOf(this).constructor;\n const Constructor = Function.bind.apply(String, [null as any, ...arguments]);\n //@ts-ignore Call wrapped String constructor directly, don't bother typing it.\n const instance = new Constructor();\n Object.setPrototypeOf(instance, Class.prototype);\n return instance as String;\n};\nStringWrapper.prototype = Object.create(String.prototype, {\n constructor: {\n value: StringWrapper,\n enumerable: false,\n writable: true,\n configurable: true,\n },\n});\nObject.setPrototypeOf(StringWrapper, String);\n\nexport class LazyJsonString extends StringWrapper {\n deserializeJSON(): any {\n return JSON.parse(super.toString());\n }\n\n toJSON(): string {\n return super.toString();\n }\n\n static fromObject(object: any): LazyJsonString {\n if (object instanceof LazyJsonString) {\n return object;\n } else if (object instanceof String || typeof object === \"string\") {\n return new LazyJsonString(object);\n }\n return new LazyJsonString(JSON.stringify(object));\n }\n}\n","/**\n * Builds a proper UTC HttpDate timestamp from a Date object\n * since not all environments will have this as the expected\n * format.\n *\n * See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCString\n * > Prior to ECMAScript 2018, the format of the return value\n * > varied according to the platform. The most common return\n * > value was an RFC-1123 formatted date stamp, which is a\n * > slightly updated version of RFC-822 date stamps.\n */\n\n// Build indexes outside so we allocate them once.\nconst days: Array = [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"];\n// prettier-ignore\nconst months: Array = [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"];\n\nexport function dateToUtcString(date: Date): string {\n const year = date.getUTCFullYear();\n const month = date.getUTCMonth();\n const dayOfWeek = date.getUTCDay();\n const dayOfMonthInt = date.getUTCDate();\n const hoursInt = date.getUTCHours();\n const minutesInt = date.getUTCMinutes();\n const secondsInt = date.getUTCSeconds();\n\n // Build 0 prefixed strings for contents that need to be\n // two digits and where we get an integer back.\n const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`;\n const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`;\n const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`;\n const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`;\n\n return `${days[dayOfWeek]}, ${dayOfMonthString} ${months[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`;\n}\n","export const SENSITIVE_STRING = \"***SensitiveInformation***\";\n","import { parseQueryString } from \"@aws-sdk/querystring-parser\";\nimport { Endpoint, QueryParameterBag, UrlParser } from \"@aws-sdk/types\";\n\nexport const parseUrl: UrlParser = (url: string): Endpoint => {\n const { hostname, pathname, port, protocol, search } = new URL(url);\n\n let query: QueryParameterBag | undefined;\n if (search) {\n query = parseQueryString(search);\n }\n\n return {\n hostname,\n port: port ? parseInt(port) : undefined,\n protocol,\n path: pathname,\n query,\n };\n};\n","import { QueryParameterBag } from \"@aws-sdk/types\";\n\nexport function parseQueryString(querystring: string): QueryParameterBag {\n const query: QueryParameterBag = {};\n querystring = querystring.replace(/^\\?/, \"\");\n\n if (querystring) {\n for (const pair of querystring.split(\"&\")) {\n let [key, value = null] = pair.split(\"=\");\n key = decodeURIComponent(key);\n if (value) {\n value = decodeURIComponent(value);\n }\n if (!(key in query)) {\n query[key] = value;\n } else if (Array.isArray(query[key])) {\n (query[key] as Array).push(value as string);\n } else {\n query[key] = [query[key] as string, value as string];\n }\n }\n }\n\n return query;\n}\n","export interface ARN {\n partition: string;\n service: string;\n region: string;\n accountId: string;\n resource: string;\n}\n/**\n * Validate whether a string is an ARN.\n */\nexport const validate = (str: any): boolean =>\n typeof str === \"string\" && str.indexOf(\"arn:\") === 0 && str.split(\":\").length >= 6;\n\n/**\n * Parse an ARN string into structure with partition, service, region, accountId and resource values\n */\nexport const parse = (arn: string): ARN => {\n const segments = arn.split(\":\");\n if (segments.length < 6 || segments[0] !== \"arn\") throw new Error(\"Malformed ARN\");\n const [\n ,\n //Skip \"arn\" literal\n partition,\n service,\n region,\n accountId,\n ...resource\n ] = segments;\n\n return {\n partition,\n service,\n region,\n accountId,\n resource: resource.join(\":\"),\n };\n};\n\ntype buildOptions = Omit & { partition?: string };\n\n/**\n * Build an ARN with service, partition, region, accountId, and resources strings\n */\nexport const build = (arnObject: buildOptions): string => {\n const { partition = \"aws\", service, region, accountId, resource } = arnObject;\n if ([service, region, accountId, resource].some((segment) => typeof segment !== \"string\")) {\n throw new Error(\"Input ARN object is invalid\");\n }\n return `arn:${partition}:${service}:${region}:${accountId}:${resource}`;\n};\n","const alphabetByEncoding: { [key: string]: number } = {};\nconst alphabetByValue: Array = new Array(64);\n\nfor (let i = 0, start = \"A\".charCodeAt(0), limit = \"Z\".charCodeAt(0); i + start <= limit; i++) {\n const char = String.fromCharCode(i + start);\n alphabetByEncoding[char] = i;\n alphabetByValue[i] = char;\n}\n\nfor (let i = 0, start = \"a\".charCodeAt(0), limit = \"z\".charCodeAt(0); i + start <= limit; i++) {\n const char = String.fromCharCode(i + start);\n const index = i + 26;\n alphabetByEncoding[char] = index;\n alphabetByValue[index] = char;\n}\n\nfor (let i = 0; i < 10; i++) {\n alphabetByEncoding[i.toString(10)] = i + 52;\n const char = i.toString(10);\n const index = i + 52;\n alphabetByEncoding[char] = index;\n alphabetByValue[index] = char;\n}\n\nalphabetByEncoding[\"+\"] = 62;\nalphabetByValue[62] = \"+\";\nalphabetByEncoding[\"/\"] = 63;\nalphabetByValue[63] = \"/\";\n\nconst bitsPerLetter = 6;\nconst bitsPerByte = 8;\nconst maxLetterValue = 0b111111;\n\n/**\n * Converts a base-64 encoded string to a Uint8Array of bytes.\n *\n * @param input The base-64 encoded string\n *\n * @see https://tools.ietf.org/html/rfc4648#section-4\n */\nexport function fromBase64(input: string): Uint8Array {\n let totalByteLength = (input.length / 4) * 3;\n if (input.substr(-2) === \"==\") {\n totalByteLength -= 2;\n } else if (input.substr(-1) === \"=\") {\n totalByteLength--;\n }\n const out = new ArrayBuffer(totalByteLength);\n const dataView = new DataView(out);\n for (let i = 0; i < input.length; i += 4) {\n let bits = 0;\n let bitLength = 0;\n for (let j = i, limit = i + 3; j <= limit; j++) {\n if (input[j] !== \"=\") {\n bits |= alphabetByEncoding[input[j]] << ((limit - j) * bitsPerLetter);\n bitLength += bitsPerLetter;\n } else {\n bits >>= bitsPerLetter;\n }\n }\n\n const chunkOffset = (i / 4) * 3;\n bits >>= bitLength % bitsPerByte;\n const byteLength = Math.floor(bitLength / bitsPerByte);\n for (let k = 0; k < byteLength; k++) {\n const offset = (byteLength - k - 1) * bitsPerByte;\n dataView.setUint8(chunkOffset + k, (bits & (255 << offset)) >> offset);\n }\n }\n\n return new Uint8Array(out);\n}\n\n/**\n * Converts a Uint8Array of binary data to a base-64 encoded string.\n *\n * @param input The binary data to encode\n *\n * @see https://tools.ietf.org/html/rfc4648#section-4\n */\nexport function toBase64(input: Uint8Array): string {\n let str = \"\";\n for (let i = 0; i < input.length; i += 3) {\n let bits = 0;\n let bitLength = 0;\n for (let j = i, limit = Math.min(i + 3, input.length); j < limit; j++) {\n bits |= input[j] << ((limit - j - 1) * bitsPerByte);\n bitLength += bitsPerByte;\n }\n\n const bitClusterCount = Math.ceil(bitLength / bitsPerLetter);\n bits <<= bitClusterCount * bitsPerLetter - bitLength;\n for (let k = 1; k <= bitClusterCount; k++) {\n const offset = (bitClusterCount - k) * bitsPerLetter;\n str += alphabetByValue[(bits & (maxLetterValue << offset)) >> offset];\n }\n\n str += \"==\".slice(0, 4 - bitClusterCount);\n }\n\n return str;\n}\n","export function calculateBodyLength(body: any): number | undefined {\n if (typeof body === \"string\") {\n let len = body.length;\n\n for (let i = len - 1; i >= 0; i--) {\n const code = body.charCodeAt(i);\n if (code > 0x7f && code <= 0x7ff) len++;\n else if (code > 0x7ff && code <= 0xffff) len += 2;\n }\n\n return len;\n } else if (typeof body.byteLength === \"number\") {\n // handles Uint8Array, ArrayBuffer, Buffer, and ArrayBufferView\n return body.byteLength;\n } else if (typeof body.size === \"number\") {\n // handles browser File object\n return body.size;\n }\n}\n","import { Client, Command } from \"@aws-sdk/smithy-client\";\nimport { BuildMiddleware, HttpRequest, MetadataBearer } from \"@aws-sdk/types\";\n\nexport async function createRequest<\n InputTypesUnion extends object,\n InputType extends InputTypesUnion,\n OutputType extends MetadataBearer = MetadataBearer\n>(\n client: Client,\n command: Command\n): Promise {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const interceptMiddleware: BuildMiddleware = (next) => async (args) => {\n return { output: { request: args.request } as any, response: undefined };\n };\n const clientStack = client.middlewareStack.clone();\n\n // @ts-ignore: add middleware to the last of 'build' step\n clientStack.add(interceptMiddleware, {\n step: \"build\",\n priority: \"low\",\n });\n\n const handler = command.resolveMiddleware(clientStack, client.config, undefined);\n\n // @ts-ignore\n return await handler(command).then((output) => output.output.request);\n}\n","import { buildQueryString } from \"@aws-sdk/querystring-builder\";\nimport { HttpRequest } from \"@aws-sdk/types\";\n\nexport function formatUrl(request: Omit): string {\n const { port, query } = request;\n let { protocol, path, hostname } = request;\n if (protocol && protocol.substr(-1) !== \":\") {\n protocol += \":\";\n }\n if (port) {\n hostname += `:${port}`;\n }\n if (path && path.charAt(0) !== \"/\") {\n path = `/${path}`;\n }\n let queryString = query ? buildQueryString(query) : \"\";\n if (queryString && queryString[0] !== \"?\") {\n queryString = `?${queryString}`;\n }\n return `${protocol}//${hostname}${path}${queryString}`;\n}\n","const SHORT_TO_HEX: { [key: number]: string } = {};\nconst HEX_TO_SHORT: { [key: string]: number } = {};\n\nfor (let i = 0; i < 256; i++) {\n let encodedByte = i.toString(16).toLowerCase();\n if (encodedByte.length === 1) {\n encodedByte = `0${encodedByte}`;\n }\n\n SHORT_TO_HEX[i] = encodedByte;\n HEX_TO_SHORT[encodedByte] = i;\n}\n\n/**\n * Converts a hexadecimal encoded string to a Uint8Array of bytes.\n *\n * @param encoded The hexadecimal encoded string\n */\nexport function fromHex(encoded: string): Uint8Array {\n if (encoded.length % 2 !== 0) {\n throw new Error(\"Hex encoded strings must have an even number length\");\n }\n\n const out = new Uint8Array(encoded.length / 2);\n for (let i = 0; i < encoded.length; i += 2) {\n const encodedByte = encoded.substr(i, 2).toLowerCase();\n if (encodedByte in HEX_TO_SHORT) {\n out[i / 2] = HEX_TO_SHORT[encodedByte];\n } else {\n throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`);\n }\n }\n\n return out;\n}\n\n/**\n * Converts a Uint8Array of binary data to a hexadecimal encoded string.\n *\n * @param bytes The binary data to encode\n */\nexport function toHex(bytes: Uint8Array): string {\n let out = \"\";\n for (let i = 0; i < bytes.byteLength; i++) {\n out += SHORT_TO_HEX[bytes[i]];\n }\n\n return out;\n}\n","const fallbackWindow = {} as Window;\n\n/**\n * Locates the global scope for a browser or browser-like environment. If\n * neither `window` nor `self` is defined by the environment, the same object\n * will be returned on each invocation.\n */\nexport function locateWindow(): Window {\n if (typeof window !== \"undefined\") {\n return window;\n } else if (typeof self !== \"undefined\") {\n return self;\n }\n\n return fallbackWindow;\n}\n","export const escapeUri = (uri: string): string =>\n // AWS percent-encodes some extra non-standard characters in a URI\n encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode);\n\nconst hexEncode = (c: string) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`;\n","import { Provider, UserAgent } from \"@aws-sdk/types\";\nimport { parse } from \"bowser\";\n\nimport { DefaultUserAgentOptions } from \"./configurations\";\n\n/**\n * Default provider to the user agent in browsers. It's a best effort to infer\n * the device information. It uses bowser library to detect the browser and virsion\n */\nexport const defaultUserAgent = ({\n serviceId,\n clientVersion,\n}: DefaultUserAgentOptions): Provider => async () => {\n const parsedUA = window?.navigator?.userAgent ? parse(window.navigator.userAgent) : undefined;\n const sections: UserAgent = [\n // sdk-metadata\n [\"aws-sdk-js\", clientVersion],\n // os-metadata\n [`os/${parsedUA?.os?.name || \"other\"}`, parsedUA?.os?.version],\n // language-metadata\n // ECMAScript edition doesn't matter in JS.\n [\"lang/js\"],\n // browser vendor and version.\n [\"md/browser\", `${parsedUA?.browser?.name ?? \"unknown\"}_${parsedUA?.browser?.version ?? \"unknown\"}`],\n ];\n\n if (serviceId) {\n // api-metadata\n // service Id may not appear in non-AWS clients\n sections.push([`api/${serviceId}`, clientVersion]);\n }\n\n return sections;\n};\n","import { fromUtf8 as jsFromUtf8, toUtf8 as jsToUtf8 } from \"./pureJs\";\nimport { fromUtf8 as textEncoderFromUtf8, toUtf8 as textEncoderToUtf8 } from \"./whatwgEncodingApi\";\n\ndeclare const TextDecoder: Function | undefined;\ndeclare const TextEncoder: Function | undefined;\n\nexport const fromUtf8 = (input: string): Uint8Array =>\n typeof TextEncoder === \"function\" ? textEncoderFromUtf8(input) : jsFromUtf8(input);\n\nexport const toUtf8 = (input: Uint8Array): string =>\n typeof TextDecoder === \"function\" ? textEncoderToUtf8(input) : jsToUtf8(input);\n","/**\n * A declaration of the global TextEncoder and TextDecoder constructors.\n *\n * @see https://encoding.spec.whatwg.org/\n */\n// eslint-disable-next-line @typescript-eslint/no-namespace\nnamespace Encoding {\n interface TextDecoderOptions {\n fatal?: boolean;\n ignoreBOM?: boolean;\n }\n\n interface TextDecodeOptions {\n stream?: boolean;\n }\n\n interface TextDecoder {\n readonly encoding: string;\n readonly fatal: boolean;\n readonly ignoreBOM: boolean;\n decode(input?: ArrayBuffer | ArrayBufferView, options?: TextDecodeOptions): string;\n }\n\n export interface TextDecoderConstructor {\n new (label?: string, options?: TextDecoderOptions): TextDecoder;\n }\n\n interface TextEncoder {\n readonly encoding: \"utf-8\";\n encode(input?: string): Uint8Array;\n }\n\n export interface TextEncoderConstructor {\n new (): TextEncoder;\n }\n}\n\ndeclare const TextDecoder: Encoding.TextDecoderConstructor;\n\ndeclare const TextEncoder: Encoding.TextEncoderConstructor;\n\nexport function fromUtf8(input: string): Uint8Array {\n return new TextEncoder().encode(input);\n}\n\nexport function toUtf8(input: Uint8Array): string {\n return new TextDecoder(\"utf-8\").decode(input);\n}\n","/**\n * Converts a JS string from its native UCS-2/UTF-16 representation into a\n * Uint8Array of the bytes used to represent the equivalent characters in UTF-8.\n *\n * Cribbed from the `goog.crypt.stringToUtf8ByteArray` function in the Google\n * Closure library, though updated to use typed arrays.\n */\nexport const fromUtf8 = (input: string): Uint8Array => {\n const bytes: Array = [];\n for (let i = 0, len = input.length; i < len; i++) {\n const value = input.charCodeAt(i);\n if (value < 0x80) {\n bytes.push(value);\n } else if (value < 0x800) {\n bytes.push((value >> 6) | 0b11000000, (value & 0b111111) | 0b10000000);\n } else if (i + 1 < input.length && (value & 0xfc00) === 0xd800 && (input.charCodeAt(i + 1) & 0xfc00) === 0xdc00) {\n const surrogatePair = 0x10000 + ((value & 0b1111111111) << 10) + (input.charCodeAt(++i) & 0b1111111111);\n bytes.push(\n (surrogatePair >> 18) | 0b11110000,\n ((surrogatePair >> 12) & 0b111111) | 0b10000000,\n ((surrogatePair >> 6) & 0b111111) | 0b10000000,\n (surrogatePair & 0b111111) | 0b10000000\n );\n } else {\n bytes.push((value >> 12) | 0b11100000, ((value >> 6) & 0b111111) | 0b10000000, (value & 0b111111) | 0b10000000);\n }\n }\n\n return Uint8Array.from(bytes);\n};\n\n/**\n * Converts a typed array of bytes containing UTF-8 data into a native JS\n * string.\n *\n * Partly cribbed from the `goog.crypt.utf8ByteArrayToString` function in the\n * Google Closure library, though updated to use typed arrays and to better\n * handle astral plane code points.\n */\nexport const toUtf8 = (input: Uint8Array): string => {\n let decoded = \"\";\n for (let i = 0, len = input.length; i < len; i++) {\n const byte = input[i];\n if (byte < 0x80) {\n decoded += String.fromCharCode(byte);\n } else if (0b11000000 <= byte && byte < 0b11100000) {\n const nextByte = input[++i];\n decoded += String.fromCharCode(((byte & 0b11111) << 6) | (nextByte & 0b111111));\n } else if (0b11110000 <= byte && byte < 0b101101101) {\n const surrogatePair = [byte, input[++i], input[++i], input[++i]];\n const encoded = \"%\" + surrogatePair.map((byteValue) => byteValue.toString(16)).join(\"%\");\n decoded += decodeURIComponent(encoded);\n } else {\n decoded += String.fromCharCode(\n ((byte & 0b1111) << 12) | ((input[++i] & 0b111111) << 6) | (input[++i] & 0b111111)\n );\n }\n }\n\n return decoded;\n};\n","import { escapeAttribute } from \"./escape-attribute\";\nimport { Stringable } from \"./stringable\";\n\n/**\n * Represents an XML node.\n */\nexport class XmlNode {\n private attributes: { [name: string]: any } = {};\n\n constructor(private name: string, public readonly children: Stringable[] = []) {}\n\n withName(name: string): XmlNode {\n this.name = name;\n return this;\n }\n\n addAttribute(name: string, value: any): XmlNode {\n this.attributes[name] = value;\n return this;\n }\n\n addChildNode(child: Stringable): XmlNode {\n this.children.push(child);\n return this;\n }\n\n removeAttribute(name: string): XmlNode {\n delete this.attributes[name];\n return this;\n }\n\n toString(): string {\n const hasChildren = Boolean(this.children.length);\n let xmlText = `<${this.name}`;\n // add attributes\n const attributes = this.attributes;\n for (const attributeName of Object.keys(attributes)) {\n const attribute = attributes[attributeName];\n if (typeof attribute !== \"undefined\" && attribute !== null) {\n xmlText += ` ${attributeName}=\"${escapeAttribute(\"\" + attribute)}\"`;\n }\n }\n\n return (xmlText += !hasChildren ? \"/>\" : `>${this.children.map((c) => c.toString()).join(\"\")}`);\n }\n}\n","/**\n * Escapes characters that can not be in an XML attribute.\n */\nexport function escapeAttribute(value: string): string {\n return value.replace(/&/g, \"&\").replace(//g, \">\").replace(/\"/g, \""\");\n}\n","import { escapeElement } from \"./escape-element\";\nimport { Stringable } from \"./stringable\";\n/**\n * Represents an XML text value.\n */\nexport class XmlText implements Stringable {\n constructor(private value: string) {}\n\n toString(): string {\n return escapeElement(\"\" + this.value);\n }\n}\n","/**\n * Escapes characters that can not be in an XML element.\n */\nexport function escapeElement(value: string): string {\n return value.replace(/&/g, \"&\").replace(//g, \">\");\n}\n"],"names":["AbortIncompleteMultipartUpload","AbortMultipartUploadOutput","AbortMultipartUploadRequest","NoSuchUpload","AccelerateConfiguration","Grantee","Grant","Owner","AccessControlPolicy","AccessControlTranslation","CompleteMultipartUploadOutput","CompletedPart","CompletedMultipartUpload","CompleteMultipartUploadRequest","CopyObjectResult","CopyObjectOutput","CopyObjectRequest","ObjectNotInActiveTierError","BucketAlreadyExists","BucketAlreadyOwnedByYou","CreateBucketOutput","CreateBucketConfiguration","CreateBucketRequest","CreateMultipartUploadOutput","CreateMultipartUploadRequest","DeleteBucketRequest","DeleteBucketAnalyticsConfigurationRequest","DeleteBucketCorsRequest","DeleteBucketEncryptionRequest","DeleteBucketIntelligentTieringConfigurationRequest","DeleteBucketInventoryConfigurationRequest","DeleteBucketLifecycleRequest","DeleteBucketMetricsConfigurationRequest","DeleteBucketOwnershipControlsRequest","DeleteBucketPolicyRequest","DeleteBucketReplicationRequest","DeleteBucketTaggingRequest","DeleteBucketWebsiteRequest","DeleteObjectOutput","DeleteObjectRequest","DeletedObject","_Error","DeleteObjectsOutput","ObjectIdentifier","Delete","DeleteObjectsRequest","DeleteObjectTaggingOutput","DeleteObjectTaggingRequest","DeletePublicAccessBlockRequest","GetBucketAccelerateConfigurationOutput","GetBucketAccelerateConfigurationRequest","GetBucketAclOutput","GetBucketAclRequest","Tag","AnalyticsAndOperator","AnalyticsFilter","AnalyticsS3BucketDestination","AnalyticsExportDestination","StorageClassAnalysisDataExport","StorageClassAnalysis","AnalyticsConfiguration","GetBucketAnalyticsConfigurationOutput","GetBucketAnalyticsConfigurationRequest","CORSRule","GetBucketCorsOutput","GetBucketCorsRequest","ServerSideEncryptionByDefault","ServerSideEncryptionRule","ServerSideEncryptionConfiguration","GetBucketEncryptionOutput","GetBucketEncryptionRequest","IntelligentTieringAndOperator","IntelligentTieringFilter","Tiering","IntelligentTieringConfiguration","GetBucketIntelligentTieringConfigurationOutput","GetBucketIntelligentTieringConfigurationRequest","SSEKMS","SSES3","InventoryEncryption","InventoryS3BucketDestination","InventoryDestination","InventoryFilter","InventorySchedule","InventoryConfiguration","GetBucketInventoryConfigurationOutput","GetBucketInventoryConfigurationRequest","LifecycleExpiration","LifecycleRuleAndOperator","LifecycleRuleFilter","NoncurrentVersionExpiration","NoncurrentVersionTransition","Transition","LifecycleRule","GetBucketLifecycleConfigurationOutput","GetBucketLifecycleConfigurationRequest","GetBucketLocationOutput","GetBucketLocationRequest","TargetGrant","LoggingEnabled","GetBucketLoggingOutput","GetBucketLoggingRequest","MetricsAndOperator","MetricsFilter","MetricsConfiguration","GetBucketMetricsConfigurationOutput","GetBucketMetricsConfigurationRequest","GetBucketNotificationConfigurationRequest","FilterRule","S3KeyFilter","NotificationConfigurationFilter","LambdaFunctionConfiguration","QueueConfiguration","TopicConfiguration","NotificationConfiguration","OwnershipControlsRule","OwnershipControls","GetBucketOwnershipControlsOutput","GetBucketOwnershipControlsRequest","GetBucketPolicyOutput","GetBucketPolicyRequest","PolicyStatus","GetBucketPolicyStatusOutput","GetBucketPolicyStatusRequest","DeleteMarkerReplication","EncryptionConfiguration","ReplicationTimeValue","Metrics","ReplicationTime","Destination","ExistingObjectReplication","ReplicationRuleAndOperator","ReplicationRuleFilter","ReplicaModifications","SseKmsEncryptedObjects","SourceSelectionCriteria","ReplicationRule","ReplicationConfiguration","GetBucketReplicationOutput","GetBucketReplicationRequest","GetBucketRequestPaymentOutput","GetBucketRequestPaymentRequest","GetBucketTaggingOutput","GetBucketTaggingRequest","GetBucketVersioningOutput","GetBucketVersioningRequest","ErrorDocument","IndexDocument","RedirectAllRequestsTo","Condition","Redirect","RoutingRule","GetBucketWebsiteOutput","GetBucketWebsiteRequest","GetObjectOutput","GetObjectRequest","InvalidObjectState","NoSuchKey","GetObjectAclOutput","GetObjectAclRequest","ObjectLockLegalHold","GetObjectLegalHoldOutput","GetObjectLegalHoldRequest","DefaultRetention","ObjectLockRule","ObjectLockConfiguration","GetObjectLockConfigurationOutput","GetObjectLockConfigurationRequest","ObjectLockRetention","GetObjectRetentionOutput","GetObjectRetentionRequest","GetObjectTaggingOutput","GetObjectTaggingRequest","GetObjectTorrentOutput","GetObjectTorrentRequest","PublicAccessBlockConfiguration","GetPublicAccessBlockOutput","GetPublicAccessBlockRequest","HeadBucketRequest","NoSuchBucket","HeadObjectOutput","HeadObjectRequest","ListBucketAnalyticsConfigurationsOutput","ListBucketAnalyticsConfigurationsRequest","ListBucketIntelligentTieringConfigurationsOutput","ListBucketIntelligentTieringConfigurationsRequest","ListBucketInventoryConfigurationsOutput","ListBucketInventoryConfigurationsRequest","ListBucketMetricsConfigurationsOutput","ListBucketMetricsConfigurationsRequest","Bucket","ListBucketsOutput","CommonPrefix","Initiator","MultipartUpload","ListMultipartUploadsOutput","ListMultipartUploadsRequest","_Object","ListObjectsOutput","ListObjectsRequest","ListObjectsV2Output","ListObjectsV2Request","DeleteMarkerEntry","ObjectVersion","ListObjectVersionsOutput","ListObjectVersionsRequest","Part","ListPartsOutput","ListPartsRequest","PutBucketAccelerateConfigurationRequest","PutBucketAclRequest","PutBucketAnalyticsConfigurationRequest","CORSConfiguration","PutBucketCorsRequest","PutBucketEncryptionRequest","PutBucketIntelligentTieringConfigurationRequest","PutBucketInventoryConfigurationRequest","BucketLifecycleConfiguration","PutBucketLifecycleConfigurationRequest","BucketLoggingStatus","PutBucketLoggingRequest","PutBucketMetricsConfigurationRequest","PutBucketNotificationConfigurationRequest","PutBucketOwnershipControlsRequest","PutBucketPolicyRequest","PutBucketReplicationRequest","RequestPaymentConfiguration","PutBucketRequestPaymentRequest","Tagging","PutBucketTaggingRequest","VersioningConfiguration","PutBucketVersioningRequest","WebsiteConfiguration","PutBucketWebsiteRequest","PutObjectOutput","PutObjectRequest","PutObjectAclOutput","PutObjectAclRequest","PutObjectLegalHoldOutput","PutObjectLegalHoldRequest","PutObjectLockConfigurationOutput","PutObjectLockConfigurationRequest","PutObjectRetentionOutput","PutObjectRetentionRequest","PutObjectTaggingOutput","PutObjectTaggingRequest","PutPublicAccessBlockRequest","ObjectAlreadyInActiveTierError","RestoreObjectOutput","GlacierJobParameters","Encryption","filterSensitiveLog","obj","SSEKMSKeyId","SSEKMSEncryptionContext","SSECustomerKey","CopySourceSSECustomerKey","visit","value","visitor","undefined","Prefix","And","_","$unknown","Filter","KMSMasterKeyID","ApplyServerSideEncryptionByDefault","Rules","map","item","KeyId","S3BucketDestination","AnalyticsConfigurationList","InventoryConfigurationList","MetricsConfigurationList","LifecycleConfiguration","KMSKeyId","MetadataEntry","S3Location","OutputLocation","FileHeaderInfo","CSVInput","JSONType","JSONInput","ParquetInput","InputSerialization","QuoteFields","CSVOutput","JSONOutput","OutputSerialization","SelectParameters","RestoreRequestType","RestoreRequest","RestoreObjectRequest","ContinuationEvent","EndEvent","Progress","ProgressEvent","RecordsEvent","Stats","StatsEvent","SelectObjectContentEventStream","SelectObjectContentOutput","RequestProgress","ScanRange","SelectObjectContentRequest","UploadPartOutput","UploadPartRequest","CopyPartResult","UploadPartCopyOutput","UploadPartCopyRequest","S3","Records","Cont","End","Payload","bytes","byteLength","Error","fromNumber","number","Uint8Array","i","remaining","Math","abs","round","negate","Int64","valueOf","this","slice","negative","parseInt","toString","String","HEADER_VALUE_TYPE","toUtf8","fromUtf8","format","headers","chunks","Object","keys","headerName","push","from","formatHeaderValue","out","reduce","carry","position","chunk","set","header","type","shortView","DataView","ArrayBuffer","setUint8","setInt16","buffer","intView","setInt32","longBytes","binView","setUint16","binBytes","utf8Bytes","strView","strBytes","tsBytes","UUID_PATTERN","test","uuidBytes","replace","parse","nameLength","getUint8","name","byteOffset","BOOLEAN_TAG","BYTE_TAG","getInt8","SHORT_TAG","getInt16","INT_TAG","getInt32","LONG_TAG","binaryLength","getUint16","BINARY_TAG","stringLength","STRING_TAG","TIMESTAMP_TAG","Date","UUID_TAG","subarray","headerMarshaller","HeaderMarshaller","marshall","body","length","view","checksum","setUint32","update","digest","unmarshall","message","PRELUDE_LENGTH","messageLength","getUint32","headerLength","expectedPreludeChecksum","PRELUDE_MEMBER_LENGTH","expectedMessageChecksum","checksummer","splitMessage","formatHeaders","rawHeaders","utf8Encoder","eventMarshaller","utfEncoder","deserialize","deserializer","source","currentMessageTotalLength","currentMessagePendingLength","currentMessage","messageLengthBuffer","allocateMessage","chunkedStream","size","Symbol","asyncIterator","sourceIterator","next","chunkLength","currentOffset","bytesRemaining","numBytesForTotal","min","numBytesToWrite","unmarshalledStream","options","messageType","unmodeledError","code","deserializedException","error","deserialized","getUnmarshalledStream","serialize","input","serializer","self","payloadBuf","utf8Decoder","universalMarshaller","readableStream","bodyIterable","isReadableStream","reader","getReader","read","releaseLock","iterator","serialziedIterable","ReadableStream","pull","controller","close","enqueue","BLOCK_SIZE","INIT","state","Uint32Array","bufferLength","bytesHashed","finished","sourceData","data","isEmptyData","isView","BYTES_PER_ELEMENT","convertToBuffer","hashBuffer","undecoratedLength","bitsHashed","floor","a","b","c","d","ff","gg","hh","ii","cmn","q","x","s","t","AWS_TEMPLATE","AWS_REGIONS","Set","AWS_CN_REGIONS","AWS_ISO_REGIONS","AWS_ISO_B_REGIONS","AWS_US_GOV_REGIONS","ClientSharedValues","apiVersion","disableHostPrefix","logger","regionInfoProvider","region","regionInfo","hostname","partition","signingRegion","has","Promise","resolve","signingService","serviceId","signingEscapePath","urlParser","useArnRegion","ClientDefaultValues","runtime","base64Decoder","base64Encoder","bodyLengthChecker","credentialDefaultProvider","reject","defaultUserAgentProvider","clientVersion","eventStreamSerdeProvider","maxAttempts","md5","Md5","invalidProvider","requestHandler","sha256","Sha256","streamCollector","streamHasher","hashCtor","blob","hash","extendStatics","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","__extends","TypeError","__","constructor","create","__assign","assign","n","arguments","apply","__awaiter","thisArg","_arguments","P","generator","fulfilled","step","e","rejected","result","done","then","__generator","f","y","g","label","sent","trys","ops","verb","v","op","pop","resolveEndpointsConfig","tls","endpoint","normalizeEndpoint","getEndPointFromRegion","isCustomEndpoint","RegExp","resolveRegionConfig","normalizeRegion","fromCognitoIdentity","parameters","client","send","CustomRoleArn","customRoleArn","IdentityId","identityId","logins","Logins","throwOnMissingCredentials","AccessKeyId","throwOnMissingAccessKeyId","Expiration","SecretKey","throwOnMissingSecretKey","accessKeyId","secretAccessKey","sessionToken","expiration","STORE_NAME","dbName","getItem","key","withObjectStore","store","req","get","onerror","onsuccess","catch","removeItem","delete","setItem","id","put","getDb","openDbRequest","indexedDB","open","onblocked","onupgradeneeded","db","createObjectStore","keyPath","mode","action","tx","transaction","oncomplete","objectStore","err","inMemoryStorage","fromCognitoIdentityPool","accountId","cache","IndexedDbStorage","window","localStorage","identityPoolId","userIdentifier","cacheKey","provider","GetIdCommand","AccountId","IdentityPoolId","resolveLogins","throwOnMissingId","all","arr","tokenOrProvider","token","resolvedPairs","resolveEventStreamSerdeConfig","eventStreamMarshaller","requestTimeout","destroy","handle","request","abortSignal","requestTimeoutInMs","aborted","abortError","path","query","queryString","port","method","url","protocol","requestOptions","Headers","AbortController","timeoutInMs","fetchRequest","Request","raceOfPromises","fetch","response","fetchHeaders","transformedHeaders","entries","pair","statusCode","status","setTimeout","timeoutError","onabort","race","stream","Blob","readToBase64","base64","arrayBuffer","collectBlob","res","isDone","prior","collectStream","FileReader","onloadend","readyState","commaIndex","indexOf","substring","readAsDataURL","DOMAIN_PATTERN","IP_ADDRESS_PATTERN","DOTS_PATTERN","DOT_PATTERN","S3_HOSTNAME_PATTERN","S3_US_EAST_1_ALTNAME_PATTERN","AWS_PARTITION_SUFFIX","getPseudoRegion","isFipsRegion","getRegionalSuffix","parts","match","startsWith","endsWith","isEqualRegions","regionA","regionB","validateDNSHostLabel","tlsCompatible","bucketHostname","baseHostname","bucketName","isBucketNameOptions","getEndpointFromBucketName","getEndpointFromArn","bucketEndpoint","clientRegion","hostnameSuffix","dualstackEndpoint","clientPartition","clientSigningRegion","pathStyleEndpoint","accelerateEndpoint","validateArnEndpointOptions","service","resource","validateService","validatePartition","exec","validateAccountId","validateRegion","delimiter","includes","split","resourceType","rest","accesspointName","outpostId","getArnResources","endpointRegion","validateOutpostService","validateNoDualstack","validateNoFIPS","validateS3Service","isDnsCompatibleBucketName","bucketEndpointMiddlewareOptions","tags","relation","toMiddleware","override","getBucketEndpointPlugin","applyToStack","clientStack","addRelativeTo","context","args","replaceBucketInPath","bucketArn","useAccelerateEndpoint","useDualstackEndpoint","forcePathStyle","modifiedSigningRegion","bucketEndpointMiddleware","resolveBucketEndpointConfig","CONTENT_LENGTH_HEADER","contentLengthMiddlewareOptions","getContentLengthPlugin","add","str","toLowerCase","contentLengthMiddleware","addExpectContinueMiddlewareOptions","getAddExpectContinuePlugin","Expect","addExpectContinueMiddleware","resolveHostHeaderConfig","hostHeaderMiddlewareOptions","priority","getHostHeaderPlugin","metadata","hostHeaderMiddleware","loggerMiddlewareOptions","getLoggerPlugin","clientName","commandName","inputFilterSensitiveLog","outputFilterSensitiveLog","info","$metadata","output","outputWithoutMetadata","retryMiddlewareOptions","getRetryPlugin","retryStrategy","userAgent","retry","retryMiddleware","CLOCK_SKEW_ERROR_CODES","THROTTLING_ERROR_CODES","TRANSIENT_ERROR_CODES","TRANSIENT_ERROR_STATUS_CODES","isThrottlingError","httpStatusCode","$retryable","throttling","defaultDelayDecider","delayBase","attempts","random","defaultRetryDecider","isRetryableByTrait","isClockSkewError","isTransientError","DEFAULT_MAX_ATTEMPTS","DEFAULT_RETRY_MODE","maxAttemptsProvider","initialRetryTokens","MAX_CAPACITY","availableCapacity","getCapacityAmount","hasRetryTokens","retryDecider","delayDecider","retryQuota","freeze","retrieveRetryTokens","capacityAmount","releaseRetryTokens","capacityReleaseAmount","shouldRetry","getMaxAttempts","totalDelay","v4","retryTokenAmount","totalRetryDelay","resolveRetryConfig","normalizeMaxAttempts","StandardRetryStrategy","validateBucketNameMiddlewareOptions","getValidateBucketNamePlugin","unused","validateBucketNameMiddleware","useRegionalEndpointMiddlewareOptions","getUseRegionalEndpointPlugin","config","useRegionalEndpointMiddleware","collectBody","streamBody","collectBodyString","throw200ExceptionsMiddlewareOptions","getThrow200ExceptionsPlugin","bodyBytes","bodyString","throw200ExceptionsMiddleware","deserializerMiddlewareOption","serializerMiddlewareOption","getSerdePlugin","commandStack","parsed","deserializerMiddleware","serializerMiddleware","resolveAwsAuthConfig","signer","normalizedCreds","normalizeProvider","credentials","systemClockOffset","signingName","uriEscapePath","getSkewCorrectedDate","now","awsAuthMiddleware","sign","signingDate","dateHeader","date","serverTime","newServerTime","getTime","awsAuthMiddlewareOptions","getAwsAuthPlugin","ssecMiddlewareOptions","getSsecPlugin","properties","target","prop","valueView","encoded","ssecMiddleware","resolveUserAgentConfig","customUserAgent","USER_AGENT","UA_ESCAPE_REGEX","escapeUserAgent","version","prefixSeparatorIndex","prefix","uaName","filter","join","getUserAgentMiddlewareOptions","getUserAgentPlugin","defaultUserAgent","normalUAValue","section","tryNextLink","isInstance","substr","charAt","clone","cloned","HttpRequest","paramName","param","isArray","buildQueryString","sort","iLen","qsEntry","resolvedOptions","presign","requestToSign","unsignableHeaders","unhoistableHeaders","forEach","expiresIn","AMZ_DATE_QUERY_PARAM","SIGNATURE_QUERY_PARAM","TOKEN_QUERY_PARAM","AUTH_HEADER","AMZ_DATE_HEADER","GENERATED_HEADERS","SIGNATURE_HEADER","SHA256_HEADER","TOKEN_HEADER","ALWAYS_UNSIGNABLE_HEADERS","authorization","connection","expect","pragma","referer","te","trailer","upgrade","PROXY_HEADER_PATTERN","SEC_HEADER_PATTERN","ALGORITHM_IDENTIFIER","EVENT_ALGORITHM_IDENTIFIER","KEY_TYPE_IDENTIFIER","signingKeyCache","cacheQueue","createScope","shortDate","hmac","ctor","secret","getCanonicalHeaders","signableHeaders","canonical","canonicalHeaderName","trim","getPayloadHash","hashConstructor","arg","cloneRequest","cloneQuery","prepareRequest","iso8601","time","Number","toDate","toISOString","applyChecksum","regionProvider","normalizeRegionProvider","credentialProvider","normalizeCredentialsProvider","originalRequest","formatDate","longDate","scope","lname","moveHeadersToQuery","canonicalHeaders","getCanonicalHeaderList","getSignature","getSigningKey","createCanonicalRequest","toSign","signString","payload","signEvent","signRequest","priorSignature","hashedPayload","hashedHeaders","stringToSign","payloadHash","soughtHeader","hasHeader","signature","sortedHeaders","getCanonicalPath","serialized","concat","getCanonicalQuery","createStringToSign","credentialScope","canonicalRequest","hashedRequest","encodeURIComponent","keyPromise","sha256Constructor","credsHash","shift","constructStack","absoluteEntries","relativeEntries","entriesNameSet","cloneTo","toStack","entry","middleware","expandRelativeMiddlewareList","expandedMiddlewareList","before","after","reverse","getMiddlewareList","normalizedAbsoluteEntries","normalizedRelativeEntries","normalizedEntriesNameMap","normalizedEntry","stepWeights","priorityWeights","wholeList","expendedMiddlewareList","stack","toOverrideIndex","findIndex","toOverride","splice","use","plugin","remove","toRemove","isRemoved","filterCb","removeByName","removeByReference","removeByTag","handler","initialize","build","finalizeRequest","high","normal","low","middlewareStack","command","optionsOrCb","cb","callback","resolveMiddleware","extendedEncodeURIComponent","charCodeAt","getArrayIfSingleItem","mayBeArray","getValueFromTextNode","textNodeName","StringWrapper","Class","getPrototypeOf","Constructor","Function","bind","instance","enumerable","writable","configurable","deserializeJSON","JSON","toJSON","fromObject","object","LazyJsonString","stringify","days","months","dateToUtcString","year","getUTCFullYear","month","getUTCMonth","dayOfWeek","getUTCDay","dayOfMonthInt","getUTCDate","hoursInt","getUTCHours","minutesInt","getUTCMinutes","secondsInt","getUTCSeconds","SENSITIVE_STRING","parseUrl","URL","pathname","search","querystring","decodeURIComponent","parseQueryString","validate","arn","segments","alphabetByEncoding","alphabetByValue","start","limit","char","fromCharCode","index","fromBase64","totalByteLength","dataView","bits","bitLength","j","chunkOffset","k","offset","toBase64","bitClusterCount","ceil","calculateBodyLength","len","createRequest","interceptMiddleware","formatUrl","SHORT_TO_HEX","HEX_TO_SHORT","encodedByte","fromHex","toHex","fallbackWindow","locateWindow","escapeUri","uri","hexEncode","toUpperCase","parsedUA","navigator","sections","os","browser","TextEncoder","encode","surrogatePair","TextDecoder","decode","decoded","byte","nextByte","byteValue","children","attributes","withName","addAttribute","addChildNode","child","removeAttribute","hasChildren","Boolean","xmlText","attributeName","attribute"],"sourceRoot":""}