@aws-sdk/client-s3
Version:
AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native
845 lines • 787 kB
TypeScript
import type { StreamingBlobTypes } from "@smithy/types";
import type { AnalyticsS3ExportFileFormat, ArchiveStatus, BucketAbacStatus, BucketAccelerateStatus, BucketCannedACL, BucketLocationConstraint, BucketLogsPermission, BucketNamespace, BucketType, BucketVersioningStatus, ChecksumAlgorithm, ChecksumMode, ChecksumType, DataRedundancy, DeleteMarkerReplicationStatus, EncodingType, EncryptionType, Event, ExistingObjectReplicationStatus, ExpirationState, ExpirationStatus, FileHeaderInfo, FilterRuleName, IntelligentTieringAccessTier, IntelligentTieringStatus, InventoryConfigurationState, InventoryFormat, InventoryFrequency, InventoryIncludedObjectVersions, InventoryOptionalField, JSONType, LocationType, MetadataDirective, MetricsStatus, MFADelete, MFADeleteStatus, ObjectAttributes, ObjectCannedACL, ObjectLockEnabled, ObjectLockLegalHoldStatus, ObjectLockMode, ObjectLockRetentionMode, ObjectOwnership, ObjectStorageClass, ObjectVersionStorageClass, OptionalObjectAttributes, OwnerOverride, PartitionDateSource, Payer, Permission, Protocol, ReplicaModificationsStatus, ReplicationRuleStatus, ReplicationStatus, ReplicationTimeStatus, RequestCharged, RequestPayer, S3TablesBucketType, ServerSideEncryption, SessionMode, SseKmsEncryptedObjectsStatus, StorageClass, StorageClassAnalysisSchemaVersion, TableSseAlgorithm, TaggingDirective, Tier, TransitionDefaultMinimumObjectSize, TransitionStorageClass, Type } from "./enums";
/**
* <p>The ABAC status of the general purpose bucket. When ABAC is enabled for the general purpose bucket, you can use tags to manage access to the general purpose buckets as well as for cost tracking purposes. When ABAC is disabled for the general purpose buckets, you can only use tags for cost tracking purposes. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging.html">Using tags with S3 general purpose buckets</a>. </p>
* @public
*/
export interface AbacStatus {
/**
* <p>The ABAC status of the general purpose bucket. </p>
* @public
*/
Status?: BucketAbacStatus | undefined;
}
/**
* <p>Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before
* permanently removing all parts of the upload. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config"> Aborting
* Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* @public
*/
export interface AbortIncompleteMultipartUpload {
/**
* <p>Specifies the number of days after which Amazon S3 aborts an incomplete multipart upload.</p>
* @public
*/
DaysAfterInitiation?: number | undefined;
}
/**
* @public
*/
export interface AbortMultipartUploadOutput {
/**
* <p>If present, indicates that the requester was successfully charged for the request. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html">Using Requester Pays buckets for storage transfers and usage</a> in the <i>Amazon Simple
* Storage Service user guide</i>.</p>
* <note>
* <p>This functionality is not supported for directory buckets.</p>
* </note>
* @public
*/
RequestCharged?: RequestCharged | undefined;
}
/**
* @public
*/
export interface AbortMultipartUploadRequest {
/**
* <p>The bucket name to which the upload was taking place. </p>
* <p>
* <b>Directory buckets</b> - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format <code>
* <i>Bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must follow the format <code>
* <i>bucket-base-name</i>--<i>zone-id</i>--x-s3</code> (for example, <code>
* <i>amzn-s3-demo-bucket</i>--<i>usw2-az1</i>--x-s3</code>). For information about bucket naming
* restrictions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html">Directory bucket naming
* rules</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>
* <b>Access points</b> - When you use this action with an access point for general purpose buckets, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When you use this action with an access point for directory buckets, you must provide the access point name in place of the bucket name. When using the access point ARN, you must direct requests to the access point hostname. The access point hostname takes the form <i>AccessPointName</i>-<i>AccountId</i>.s3-accesspoint.<i>Region</i>.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html">Using access points</a> in the <i>Amazon S3 User Guide</i>.</p>
* <note>
* <p>Object Lambda access points are not supported by directory buckets.</p>
* </note>
* <p>
* <b>S3 on Outposts</b> - When you use this action with S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the
* form <code>
* <i>AccessPointName</i>-<i>AccountId</i>.<i>outpostID</i>.s3-outposts.<i>Region</i>.amazonaws.com</code>. When you use this action with S3 on Outposts, the destination bucket must be the Outposts access point ARN or the access point alias. For more information about S3 on Outposts, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">What is S3 on Outposts?</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies.
* For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues</p>
* @public
*/
Bucket: string | undefined;
/**
* <p>Key of the object for which the multipart upload was initiated.</p>
* @public
*/
Key: string | undefined;
/**
* <p>Upload ID that identifies the multipart upload.</p>
* @public
*/
UploadId: string | undefined;
/**
* <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
* specify this parameter in their requests. If either the source or destination S3 bucket has Requester
* Pays enabled, the requester will pay for the corresponding charges. For information about
* downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
* Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
* <note>
* <p>This functionality is not supported for directory buckets.</p>
* </note>
* @public
*/
RequestPayer?: RequestPayer | undefined;
/**
* <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
* @public
*/
ExpectedBucketOwner?: string | undefined;
/**
* <p>If present, this header aborts an in progress multipart upload only if it was initiated on the
* provided timestamp. If the initiated timestamp of the multipart upload does not match the provided
* value, the operation returns a <code>412 Precondition Failed</code> error. If the initiated timestamp
* matches or if the multipart upload doesn’t exist, the operation returns a <code>204 Success (No
* Content)</code> response. </p>
* <note>
* <p>This functionality is only supported for directory buckets.</p>
* </note>
* @public
*/
IfMatchInitiatedTime?: Date | undefined;
}
/**
* <p>Configures the transfer acceleration state for an Amazon S3 bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html">Amazon S3 Transfer
* Acceleration</a> in the <i>Amazon S3 User Guide</i>.</p>
* @public
*/
export interface AccelerateConfiguration {
/**
* <p>Specifies the transfer acceleration status of the bucket.</p>
* @public
*/
Status?: BucketAccelerateStatus | undefined;
}
/**
* <p>Container for the person being granted permissions.</p>
* @public
*/
export interface Grantee {
/**
* <p></p>
* @public
*/
DisplayName?: string | undefined;
/**
* <p></p>
* @public
*/
EmailAddress?: string | undefined;
/**
* <p>The canonical user ID of the grantee.</p>
* @public
*/
ID?: string | undefined;
/**
* <p>URI of the grantee group.</p>
* @public
*/
URI?: string | undefined;
/**
* <p>Type of grantee</p>
* @public
*/
Type: Type | undefined;
}
/**
* <p>Container for grant information.</p>
* @public
*/
export interface Grant {
/**
* <p>The person being granted permissions.</p>
* @public
*/
Grantee?: Grantee | undefined;
/**
* <p>Specifies the permission given to the grantee.</p>
* @public
*/
Permission?: Permission | undefined;
}
/**
* <p>Container for the owner's display name and ID.</p>
* @public
*/
export interface Owner {
/**
* <p></p>
* @public
*/
DisplayName?: string | undefined;
/**
* <p>Container for the ID of the owner.</p>
* @public
*/
ID?: string | undefined;
}
/**
* <p>Contains the elements that set the ACL permissions for an object per grantee.</p>
* @public
*/
export interface AccessControlPolicy {
/**
* <p>A list of grants.</p>
* @public
*/
Grants?: Grant[] | undefined;
/**
* <p>Container for the bucket owner's display name and ID.</p>
* @public
*/
Owner?: Owner | undefined;
}
/**
* <p>A container for information about access control for replicas.</p>
* @public
*/
export interface AccessControlTranslation {
/**
* <p>Specifies the replica ownership. For default and valid values, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTreplication.html">PUT bucket replication</a> in the
* <i>Amazon S3 API Reference</i>.</p>
* @public
*/
Owner: OwnerOverride | undefined;
}
/**
* @public
*/
export interface CompleteMultipartUploadOutput {
/**
* <p>The URI that identifies the newly created object.</p>
* @public
*/
Location?: string | undefined;
/**
* <p>The name of the bucket that contains the newly created object. Does not return the access point ARN or access point
* alias if used.</p>
* <note>
* <p>Access points are not supported by directory buckets.</p>
* </note>
* @public
*/
Bucket?: string | undefined;
/**
* <p>The object key of the newly created object.</p>
* @public
*/
Key?: string | undefined;
/**
* <p>If the object expiration is configured, this will contain the expiration date
* (<code>expiry-date</code>) and rule ID (<code>rule-id</code>). The value of <code>rule-id</code> is
* URL-encoded.</p>
* <note>
* <p>This functionality is not supported for directory buckets.</p>
* </note>
* @public
*/
Expiration?: string | undefined;
/**
* <p>Entity tag that identifies the newly created object's data. Objects with different object data will
* have different entity tags. The entity tag is an opaque string. The entity tag may or may not be an MD5
* digest of the object data. If the entity tag is not an MD5 digest of the object data, it will contain
* one or more nonhexadecimal characters and/or will consist of less than 32 or more than 32 hexadecimal
* digits. For more information about how the entity tag is calculated, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in
* the <i>Amazon S3 User Guide</i>.</p>
* @public
*/
ETag?: string | undefined;
/**
* <p>The Base64 encoded, 32-bit <code>CRC32 checksum</code> of the object. This checksum is only present if the checksum was uploaded
* with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated
* with multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums">
* Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
* @public
*/
ChecksumCRC32?: string | undefined;
/**
* <p>The Base64 encoded, 32-bit <code>CRC32C</code> checksum of the object. This checksum is only present if the checksum was uploaded
* with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated
* with multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums">
* Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
* @public
*/
ChecksumCRC32C?: string | undefined;
/**
* <p>This header can be used as a data integrity check to verify that the data received is the same data
* that was originally sent. This header specifies the Base64 encoded, 64-bit <code>CRC64NVME</code>
* checksum of the object. The <code>CRC64NVME</code> checksum is always a full object checksum. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3
* User Guide</a>. </p>
* @public
*/
ChecksumCRC64NVME?: string | undefined;
/**
* <p>The Base64 encoded, 160-bit <code>SHA1</code> digest of the object. This checksum is only present if the checksum was uploaded
* with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated
* with multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums">
* Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
* @public
*/
ChecksumSHA1?: string | undefined;
/**
* <p>The Base64 encoded, 256-bit <code>SHA256</code> digest of the object. This checksum is only present if the checksum was uploaded
* with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated
* with multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums">
* Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
* @public
*/
ChecksumSHA256?: string | undefined;
/**
* <p>The checksum type, which determines how part-level checksums are combined to create an object-level
* checksum for multipart objects. You can use this header as a data integrity check to verify that the
* checksum type that is received is the same checksum type that was specified during the
* <code>CreateMultipartUpload</code> request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3
* User Guide</a>.</p>
* @public
*/
ChecksumType?: ChecksumType | undefined;
/**
* <p>The server-side encryption algorithm used when storing this object in Amazon S3.</p>
* <note>
* <p>When accessing data stored in Amazon FSx file systems using S3 access points, the only valid server side
* encryption option is <code>aws:fsx</code>.</p>
* </note>
* <p></p>
* @public
*/
ServerSideEncryption?: ServerSideEncryption | undefined;
/**
* <p>Version ID of the newly created object, in case the bucket has versioning turned on.</p>
* <note>
* <p>This functionality is not supported for directory buckets.</p>
* </note>
* @public
*/
VersionId?: string | undefined;
/**
* <p>If present, indicates the ID of the KMS key that was used for object encryption.</p>
* @public
*/
SSEKMSKeyId?: string | undefined;
/**
* <p>Indicates whether the multipart upload uses an S3 Bucket Key for server-side encryption with
* Key Management Service (KMS) keys (SSE-KMS).</p>
* @public
*/
BucketKeyEnabled?: boolean | undefined;
/**
* <p>If present, indicates that the requester was successfully charged for the request. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html">Using Requester Pays buckets for storage transfers and usage</a> in the <i>Amazon Simple
* Storage Service user guide</i>.</p>
* <note>
* <p>This functionality is not supported for directory buckets.</p>
* </note>
* @public
*/
RequestCharged?: RequestCharged | undefined;
}
/**
* <p>Details of the parts that were uploaded.</p>
* @public
*/
export interface CompletedPart {
/**
* <p>Entity tag returned when the part was uploaded.</p>
* @public
*/
ETag?: string | undefined;
/**
* <p>The Base64 encoded, 32-bit <code>CRC32</code> checksum of the part. This checksum is present if the
* multipart upload request was created with the <code>CRC32</code> checksum algorithm. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in
* the <i>Amazon S3 User Guide</i>.</p>
* @public
*/
ChecksumCRC32?: string | undefined;
/**
* <p>The Base64 encoded, 32-bit <code>CRC32C</code> checksum of the part. This checksum is present if the
* multipart upload request was created with the <code>CRC32C</code> checksum algorithm. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in
* the <i>Amazon S3 User Guide</i>.</p>
* @public
*/
ChecksumCRC32C?: string | undefined;
/**
* <p>The Base64 encoded, 64-bit <code>CRC64NVME</code> checksum of the part. This checksum is present if
* the multipart upload request was created with the <code>CRC64NVME</code> checksum algorithm to the
* uploaded object). For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in
* the <i>Amazon S3 User Guide</i>.</p>
* @public
*/
ChecksumCRC64NVME?: string | undefined;
/**
* <p>The Base64 encoded, 160-bit <code>SHA1</code> checksum of the part. This checksum is present if the
* multipart upload request was created with the <code>SHA1</code> checksum algorithm. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in
* the <i>Amazon S3 User Guide</i>.</p>
* @public
*/
ChecksumSHA1?: string | undefined;
/**
* <p>The Base64 encoded, 256-bit <code>SHA256</code> checksum of the part. This checksum is present if
* the multipart upload request was created with the <code>SHA256</code> checksum algorithm. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in
* the <i>Amazon S3 User Guide</i>.</p>
* @public
*/
ChecksumSHA256?: string | undefined;
/**
* <p>Part number that identifies the part. This is a positive integer between 1 and 10,000.</p>
* <note>
* <ul>
* <li>
* <p>
* <b>General purpose buckets</b> - In
* <code>CompleteMultipartUpload</code>, when a additional checksum (including
* <code>x-amz-checksum-crc32</code>, <code>x-amz-checksum-crc32c</code>,
* <code>x-amz-checksum-sha1</code>, or <code>x-amz-checksum-sha256</code>) is applied to each
* part, the <code>PartNumber</code> must start at 1 and the part numbers must be consecutive.
* Otherwise, Amazon S3 generates an HTTP <code>400 Bad Request</code> status code and an
* <code>InvalidPartOrder</code> error code.</p>
* </li>
* <li>
* <p>
* <b>Directory buckets</b> - In
* <code>CompleteMultipartUpload</code>, the <code>PartNumber</code> must start at 1 and the part
* numbers must be consecutive.</p>
* </li>
* </ul>
* </note>
* @public
*/
PartNumber?: number | undefined;
}
/**
* <p>The container for the completed multipart upload details.</p>
* @public
*/
export interface CompletedMultipartUpload {
/**
* <p>Array of CompletedPart data types.</p>
* <p>If you do not supply a valid <code>Part</code> with your request, the service sends back an HTTP 400
* response.</p>
* @public
*/
Parts?: CompletedPart[] | undefined;
}
/**
* @public
*/
export interface CompleteMultipartUploadRequest {
/**
* <p>Name of the bucket to which the multipart upload was initiated.</p>
* <p>
* <b>Directory buckets</b> - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format <code>
* <i>Bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must follow the format <code>
* <i>bucket-base-name</i>--<i>zone-id</i>--x-s3</code> (for example, <code>
* <i>amzn-s3-demo-bucket</i>--<i>usw2-az1</i>--x-s3</code>). For information about bucket naming
* restrictions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html">Directory bucket naming
* rules</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>
* <b>Access points</b> - When you use this action with an access point for general purpose buckets, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When you use this action with an access point for directory buckets, you must provide the access point name in place of the bucket name. When using the access point ARN, you must direct requests to the access point hostname. The access point hostname takes the form <i>AccessPointName</i>-<i>AccountId</i>.s3-accesspoint.<i>Region</i>.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html">Using access points</a> in the <i>Amazon S3 User Guide</i>.</p>
* <note>
* <p>Object Lambda access points are not supported by directory buckets.</p>
* </note>
* <p>
* <b>S3 on Outposts</b> - When you use this action with S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the
* form <code>
* <i>AccessPointName</i>-<i>AccountId</i>.<i>outpostID</i>.s3-outposts.<i>Region</i>.amazonaws.com</code>. When you use this action with S3 on Outposts, the destination bucket must be the Outposts access point ARN or the access point alias. For more information about S3 on Outposts, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">What is S3 on Outposts?</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies.
* For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues</p>
* @public
*/
Bucket: string | undefined;
/**
* <p>Object key for which the multipart upload was initiated.</p>
* @public
*/
Key: string | undefined;
/**
* <p>The container for the multipart upload request information.</p>
* @public
*/
MultipartUpload?: CompletedMultipartUpload | undefined;
/**
* <p>ID for the initiated multipart upload.</p>
* @public
*/
UploadId: string | undefined;
/**
* <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.
* This header specifies the Base64 encoded, 32-bit <code>CRC32</code> checksum of the object. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* @public
*/
ChecksumCRC32?: string | undefined;
/**
* <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.
* This header specifies the Base64 encoded, 32-bit <code>CRC32C</code> checksum of the object. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* @public
*/
ChecksumCRC32C?: string | undefined;
/**
* <p>This header can be used as a data integrity check to verify that the data received is the same data
* that was originally sent. This header specifies the Base64 encoded, 64-bit <code>CRC64NVME</code>
* checksum of the object. The <code>CRC64NVME</code> checksum is always a full object checksum. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3
* User Guide</a>.</p>
* @public
*/
ChecksumCRC64NVME?: string | undefined;
/**
* <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.
* This header specifies the Base64 encoded, 160-bit <code>SHA1</code> digest of the object. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* @public
*/
ChecksumSHA1?: string | undefined;
/**
* <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.
* This header specifies the Base64 encoded, 256-bit <code>SHA256</code> digest of the object. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* @public
*/
ChecksumSHA256?: string | undefined;
/**
* <p>This header specifies the checksum type of the object, which determines how part-level checksums are
* combined to create an object-level checksum for multipart objects. You can use this header as a data
* integrity check to verify that the checksum type that is received is the same checksum that was
* specified. If the checksum type doesn’t match the checksum type that was specified for the object during
* the <code>CreateMultipartUpload</code> request, it’ll result in a <code>BadDigest</code> error. For more
* information, see Checking object integrity in the Amazon S3 User Guide. </p>
* @public
*/
ChecksumType?: ChecksumType | undefined;
/**
* <p> The expected total object size of the multipart upload request. If there’s a mismatch between the
* specified object size value and the actual object size value, it results in an <code>HTTP 400
* InvalidRequest</code> error. </p>
* @public
*/
MpuObjectSize?: number | undefined;
/**
* <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
* specify this parameter in their requests. If either the source or destination S3 bucket has Requester
* Pays enabled, the requester will pay for the corresponding charges. For information about
* downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
* Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
* <note>
* <p>This functionality is not supported for directory buckets.</p>
* </note>
* @public
*/
RequestPayer?: RequestPayer | undefined;
/**
* <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
* @public
*/
ExpectedBucketOwner?: string | undefined;
/**
* <p>Uploads the object only if the ETag (entity tag) value provided during the WRITE operation matches
* the ETag of the object in S3. If the ETag values do not match, the operation returns a <code>412
* Precondition Failed</code> error.</p>
* <p>If a conflicting operation occurs during the upload S3 returns a <code>409
* ConditionalRequestConflict</code> response. On a 409 failure you should fetch the object's ETag,
* re-initiate the multipart upload with <code>CreateMultipartUpload</code>, and re-upload each
* part.</p>
* <p>Expects the ETag value as a string.</p>
* <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>, or <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-requests.html">Conditional requests</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* @public
*/
IfMatch?: string | undefined;
/**
* <p>Uploads the object only if the object key name does not already exist in the bucket specified.
* Otherwise, Amazon S3 returns a <code>412 Precondition Failed</code> error.</p>
* <p>If a conflicting operation occurs during the upload S3 returns a <code>409
* ConditionalRequestConflict</code> response. On a 409 failure you should re-initiate the multipart
* upload with <code>CreateMultipartUpload</code> and re-upload each part.</p>
* <p>Expects the '*' (asterisk) character.</p>
* <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>, or <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-requests.html">Conditional requests</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* @public
*/
IfNoneMatch?: string | undefined;
/**
* <p>The server-side encryption (SSE) algorithm used to encrypt the object. This parameter is required
* only when the object was created using a checksum algorithm or if your bucket policy requires the use of
* SSE-C. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html#ssec-require-condition-key">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p>
* <note>
* <p>This functionality is not supported for directory buckets.</p>
* </note>
* @public
*/
SSECustomerAlgorithm?: string | undefined;
/**
* <p>The server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm.
* For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <note>
* <p>This functionality is not supported for directory buckets.</p>
* </note>
* @public
*/
SSECustomerKey?: string | undefined;
/**
* <p>The MD5 server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum
* algorithm. For more information,
* see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <note>
* <p>This functionality is not supported for directory buckets.</p>
* </note>
* @public
*/
SSECustomerKeyMD5?: string | undefined;
}
/**
* <p>Container for all response elements.</p>
* @public
*/
export interface CopyObjectResult {
/**
* <p>Returns the ETag of the new object. The ETag reflects only changes to the contents of an object, not
* its metadata.</p>
* @public
*/
ETag?: string | undefined;
/**
* <p>Creation date of the object.</p>
* @public
*/
LastModified?: Date | undefined;
/**
* <p>The checksum type that is used to calculate the object’s checksum value. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking
* object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
* @public
*/
ChecksumType?: ChecksumType | undefined;
/**
* <p>The Base64 encoded, 32-bit <code>CRC32</code> checksum of the object. This checksum is only present if the object was uploaded
* with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">
* Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
* @public
*/
ChecksumCRC32?: string | undefined;
/**
* <p>The Base64 encoded, 32-bit <code>CRC32C</code> checksum of the object. This checksum is only present if the checksum was uploaded
* with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">
* Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
* @public
*/
ChecksumCRC32C?: string | undefined;
/**
* <p>The Base64 encoded, 64-bit <code>CRC64NVME</code> checksum of the object. This checksum is present
* if the object being copied was uploaded with the <code>CRC64NVME</code> checksum algorithm, or if the
* object was uploaded without a checksum (and Amazon S3 added the default checksum, <code>CRC64NVME</code>, to
* the uploaded object). For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in
* the <i>Amazon S3 User Guide</i>.</p>
* @public
*/
ChecksumCRC64NVME?: string | undefined;
/**
* <p>The Base64 encoded, 160-bit <code>SHA1</code> digest of the object. This checksum is only present if the checksum was uploaded
* with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">
* Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
* @public
*/
ChecksumSHA1?: string | undefined;
/**
* <p>The Base64 encoded, 256-bit <code>SHA256</code> digest of the object. This checksum is only present if the checksum was uploaded
* with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">
* Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
* @public
*/
ChecksumSHA256?: string | undefined;
}
/**
* @public
*/
export interface CopyObjectOutput {
/**
* <p>Container for all response elements.</p>
* @public
*/
CopyObjectResult?: CopyObjectResult | undefined;
/**
* <p>If the object expiration is configured, the response includes this header.</p>
* <note>
* <p>Object expiration information is not returned in directory buckets and this header returns the
* value "<code>NotImplemented</code>" in all responses for directory buckets.</p>
* </note>
* @public
*/
Expiration?: string | undefined;
/**
* <p>Version ID of the source object that was copied.</p>
* <note>
* <p>This functionality is not supported when the source object is in a directory bucket.</p>
* </note>
* @public
*/
CopySourceVersionId?: string | undefined;
/**
* <p>Version ID of the newly created copy.</p>
* <note>
* <p>This functionality is not supported for directory buckets.</p>
* </note>
* @public
*/
VersionId?: string | undefined;
/**
* <p>The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx.</p>
* <note>
* <p>When accessing data stored in Amazon FSx file systems using S3 access points, the only valid server side
* encryption option is <code>aws:fsx</code>.</p>
* </note>
* @public
*/
ServerSideEncryption?: ServerSideEncryption | undefined;
/**
* <p>If server-side encryption with a customer-provided encryption key was requested, the response will
* include this header to confirm the encryption algorithm that's used.</p>
* <note>
* <p>This functionality is not supported for directory buckets.</p>
* </note>
* @public
*/
SSECustomerAlgorithm?: string | undefined;
/**
* <p>If server-side encryption with a customer-provided encryption key was requested, the response will
* include this header to provide the round-trip message integrity verification of the customer-provided
* encryption key.</p>
* <note>
* <p>This functionality is not supported for directory buckets.</p>
* </note>
* @public
*/
SSECustomerKeyMD5?: string | undefined;
/**
* <p>If present, indicates the ID of the KMS key that was used for object encryption.</p>
* @public
*/
SSEKMSKeyId?: string | undefined;
/**
* <p>If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of
* this header is a Base64 encoded UTF-8 string holding JSON with the encryption context key-value
* pairs.</p>
* @public
*/
SSEKMSEncryptionContext?: string | undefined;
/**
* <p>Indicates whether the copied object uses an S3 Bucket Key for server-side encryption with Key Management Service
* (KMS) keys (SSE-KMS).</p>
* @public
*/
BucketKeyEnabled?: boolean | undefined;
/**
* <p>If present, indicates that the requester was successfully charged for the request. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html">Using Requester Pays buckets for storage transfers and usage</a> in the <i>Amazon Simple
* Storage Service user guide</i>.</p>
* <note>
* <p>This functionality is not supported for directory buckets.</p>
* </note>
* @public
*/
RequestCharged?: RequestCharged | undefined;
}
/**
* @public
*/
export interface CopyObjectRequest {
/**
* <p>The canned access control list (ACL) to apply to the object.</p>
* <p>When you copy an object, the ACL metadata is not preserved and is set to <code>private</code> by
* default. Only the owner has full access control. To override the default ACL setting, specify a new ACL
* when you generate a copy request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html">Using ACLs</a>. </p>
* <p>If the destination bucket that you're copying objects to uses the bucket owner enforced setting for
* S3 Object Ownership, ACLs are disabled and no longer affect permissions. Buckets that use this setting
* only accept <code>PUT</code> requests that don't specify an ACL or <code>PUT</code> requests that
* specify bucket owner full control ACLs, such as the <code>bucket-owner-full-control</code> canned ACL or
* an equivalent form of this ACL expressed in the XML format. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html">Controlling ownership
* of objects and disabling ACLs</a> in the <i>Amazon S3 User Guide</i>.</p>
* <note>
* <ul>
* <li>
* <p>If your destination bucket uses the bucket owner enforced setting for Object Ownership, all
* objects written to the bucket by any account will be owned by the bucket owner.</p>
* </li>
* <li>
* <p>This functionality is not supported for directory buckets.</p>
* </li>
* <li>
* <p>This functionality is not supported for Amazon S3 on Outposts.</p>
* </li>
* </ul>
* </note>
* @public
*/
ACL?: ObjectCannedACL | undefined;
/**
* <p>The name of the destination bucket.</p>
* <p>
* <b>Directory buckets</b> - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format <code>
* <i>Bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must follow the format <code>
* <i>bucket-base-name</i>--<i>zone-id</i>--x-s3</code> (for example, <code>
* <i>amzn-s3-demo-bucket</i>--<i>usw2-az1</i>--x-s3</code>). For information about bucket naming
* restrictions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html">Directory bucket naming
* rules</a> in the <i>Amazon S3 User Guide</i>.</p>
* <note>
* <p>Copying objects across different Amazon Web Services Regions isn't supported when the source or destination
* bucket is in Amazon Web Services Local Zones. The source and destination buckets must have the same parent Amazon Web Services Region.
* Otherwise, you get an HTTP <code>400 Bad Request</code> error with the error code
* <code>InvalidRequest</code>.</p>
* </note>
* <p>
* <b>Access points</b> - When you use this action with an access point for general purpose buckets, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When you use this action with an access point for directory buckets, you must provide the access point name in place of the bucket name. When using the access point ARN, you must direct requests to the access point hostname. The access point hostname takes the form <i>AccessPointName</i>-<i>AccountId</i>.s3-accesspoint.<i>Region</i>.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html">Using access points</a> in the <i>Amazon S3 User Guide</i>.</p>
* <note>
* <p>Object Lambda access points are not supported by directory buckets.</p>
* </note>
* <p>
* <b>S3 on Outposts</b> - When you use this action with S3 on Outposts,
* you must use the Outpost bucket access point ARN or the access point alias for the destination bucket.
* You can only copy objects within the same Outpost bucket. It's not supported to copy objects across
* different Amazon Web Services Outposts, between buckets on the same Outposts, or between Outposts buckets and any
* other bucket types. For more information about S3 on Outposts, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">What is S3 on Outposts?</a> in the
* <i>S3 on Outposts guide</i>. When you use this action with S3 on Outposts through the REST
* API, you must direct requests to the S3 on Outposts hostname, in the format
* <code>
* <i>AccessPointName</i>-<i>AccountId</i>.<i>outpostID</i>.s3-outposts.<i>Region</i>.amazonaws.com</code>.
* The hostname isn't required when you use the Amazon Web Services CLI or SDKs. </p>
* <p>Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies.
* For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues</p>
* @public
*/
Bucket: string | undefined;
/**
* <p>Specifies the caching behavior along the request/reply chain.</p>
* @public
*/
CacheControl?: string | undefined;
/**
* <p>Indicates the algorithm that you want Amazon S3 to use to create the checksum for the object. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in
* the <i>Amazon S3 User Guide</i>.</p>
* <p>When you copy an object, if the source object has a checksum, that checksum value will be copied to
* the new object by default. If the <code>CopyObject</code> request does not include this
* <code>x-amz-checksum-algorithm</code> header, the checksum algorithm will be copied from the source
* object to the destination object (if it's present on the source object). You can optionally specify a
* different checksum algorithm to use with the <code>x-amz-checksum-algorithm</code> header. Unrecognized
* or unsupported values will respond with the HTTP status code <code>40