@aws-sdk/client-s3
Version:
AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native
1,034 lines • 649 kB
TypeScript
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
import { StreamingBlobTypes } from "@smithy/types";
import { S3ServiceException as __BaseException } from "./S3ServiceException";
/**
* <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
* @enum
*/
export declare const RequestCharged: {
readonly requester: "requester";
};
/**
* @public
*/
export type RequestCharged = (typeof RequestCharged)[keyof typeof RequestCharged];
/**
* @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
* @enum
*/
export declare const RequestPayer: {
readonly requester: "requester";
};
/**
* @public
*/
export type RequestPayer = (typeof RequestPayer)[keyof typeof RequestPayer];
/**
* @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 corresponding
* charges to copy the object. 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>The specified multipart upload does not exist.</p>
* @public
*/
export declare class NoSuchUpload extends __BaseException {
readonly name: "NoSuchUpload";
readonly $fault: "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<NoSuchUpload, __BaseException>);
}
/**
* @public
* @enum
*/
export declare const BucketAccelerateStatus: {
readonly Enabled: "Enabled";
readonly Suspended: "Suspended";
};
/**
* @public
*/
export type BucketAccelerateStatus = (typeof BucketAccelerateStatus)[keyof typeof BucketAccelerateStatus];
/**
* <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;
}
/**
* @public
* @enum
*/
export declare const Type: {
readonly AmazonCustomerByEmail: "AmazonCustomerByEmail";
readonly CanonicalUser: "CanonicalUser";
readonly Group: "Group";
};
/**
* @public
*/
export type Type = (typeof Type)[keyof typeof Type];
/**
* <p>Container for the person being granted permissions.</p>
* @public
*/
export interface Grantee {
/**
* <p>Screen name of the grantee.</p>
* @public
*/
DisplayName?: string | undefined;
/**
* <p>Email address of the grantee.</p>
* <note>
* <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions: </p>
* <ul>
* <li>
* <p>US East (N. Virginia)</p>
* </li>
* <li>
* <p>US West (N. California)</p>
* </li>
* <li>
* <p> US West (Oregon)</p>
* </li>
* <li>
* <p> Asia Pacific (Singapore)</p>
* </li>
* <li>
* <p>Asia Pacific (Sydney)</p>
* </li>
* <li>
* <p>Asia Pacific (Tokyo)</p>
* </li>
* <li>
* <p>Europe (Ireland)</p>
* </li>
* <li>
* <p>South America (São Paulo)</p>
* </li>
* </ul>
* <p>For a list of all the Amazon S3 supported Regions and endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a> in the Amazon Web Services General Reference.</p>
* </note>
* @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;
}
/**
* @public
* @enum
*/
export declare const Permission: {
readonly FULL_CONTROL: "FULL_CONTROL";
readonly READ: "READ";
readonly READ_ACP: "READ_ACP";
readonly WRITE: "WRITE";
readonly WRITE_ACP: "WRITE_ACP";
};
/**
* @public
*/
export type Permission = (typeof Permission)[keyof typeof Permission];
/**
* <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>Container for the display name of the owner. This value is only supported in the
* following Amazon Web Services Regions:</p>
* <ul>
* <li>
* <p>US East (N. Virginia)</p>
* </li>
* <li>
* <p>US West (N. California)</p>
* </li>
* <li>
* <p>US West (Oregon)</p>
* </li>
* <li>
* <p>Asia Pacific (Singapore)</p>
* </li>
* <li>
* <p>Asia Pacific (Sydney)</p>
* </li>
* <li>
* <p>Asia Pacific (Tokyo)</p>
* </li>
* <li>
* <p>Europe (Ireland)</p>
* </li>
* <li>
* <p>South America (São Paulo)</p>
* </li>
* </ul>
* <note>
* <p>This functionality is not supported for directory buckets.</p>
* </note>
* @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;
}
/**
* @public
* @enum
*/
export declare const OwnerOverride: {
readonly Destination: "Destination";
};
/**
* @public
*/
export type OwnerOverride = (typeof OwnerOverride)[keyof typeof OwnerOverride];
/**
* <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
* @enum
*/
export declare const ChecksumType: {
readonly COMPOSITE: "COMPOSITE";
readonly FULL_OBJECT: "FULL_OBJECT";
};
/**
* @public
*/
export type ChecksumType = (typeof ChecksumType)[keyof typeof ChecksumType];
/**
* @public
* @enum
*/
export declare const ServerSideEncryption: {
readonly AES256: "AES256";
readonly aws_kms: "aws:kms";
readonly aws_kms_dsse: "aws:kms:dsse";
};
/**
* @public
*/
export type ServerSideEncryption = (typeof ServerSideEncryption)[keyof typeof ServerSideEncryption];
/**
* @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 be 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 will only be present if the object 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 will only be present if the object 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 (for example,
* <code>AES256</code>, <code>aws:kms</code>).</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 corresponding
* charges to copy the object. 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 will only be 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
*/
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 will only be 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
*/
ChecksumSHA1?: string | undefined;
/**
* <p>The Base64 encoded, 256-bit <code>SHA256</code> digest of the object. This will only be 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
*/
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 (for
* example, <code>AES256</code>, <code>aws:kms</code>, <code>aws:kms:dsse</code>).</p>
* @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
* @enum
*/
export declare const ObjectCannedACL: {
readonly authenticated_read: "authenticated-read";
readonly aws_exec_read: "aws-exec-read";
readonly bucket_owner_full_control: "bucket-owner-full-control";
readonly bucket_owner_read: "bucket-owner-read";
readonly private: "private";
readonly public_read: "public-read";
readonly public_read_write: "public-read-write";
};
/**
* @public
*/
export type ObjectCannedACL = (typeof ObjectCannedACL)[keyof typeof ObjectCannedACL];
/**
* @public
* @enum
*/
export declare const ChecksumAlgorithm: {
readonly CRC32: "CRC32";
readonly CRC32C: "CRC32C";
readonly CRC64NVME: "CRC64NVME";
readonly SHA1: "SHA1";
readonly SHA256: "SHA256";
};
/**
* @public
*/
export type ChecksumAlgorithm = (typeof ChecksumAlgorithm)[keyof typeof ChecksumAlgorithm];
/**
* @public
* @enum
*/
export declare const MetadataDirective: {
readonly COPY: "COPY";
readonly REPLACE: "REPLACE";
};
/**
* @public
*/
export type MetadataDirective = (typeof MetadataDirective)[keyof typeof MetadataDirective];
/**
* @public
* @enum
*/
export declare const ObjectLockLegalHoldStatus: {
readonly OFF: "OFF";
readonly ON: "ON";
};
/**
* @public
*/
export type ObjectLockLegalHoldStatus = (typeof ObjectLockLegalHoldStatus)[keyof typeof ObjectLockLegalHoldStatus];
/**
* @public
* @enum
*/
export declare const ObjectLockMode: {
readonly COMPLIANCE: "COMPLIANCE";
readonly GOVERNANCE: "GOVERNANCE";
};
/**
* @public
*/
export type ObjectLockMode = (typeof ObjectLockMode)[keyof typeof ObjectLockMode];
/**
* @public
* @enum
*/
export declare const StorageClass: {
readonly DEEP_ARCHIVE: "DEEP_ARCHIVE";
readonly EXPRESS_ONEZONE: "EXPRESS_ONEZONE";
readonly GLACIER: "GLACIER";
readonly GLACIER_IR: "GLACIER_IR";
readonly INTELLIGENT_TIERING: "INTELLIGENT_TIERING";
readonly ONEZONE_IA: "ONEZONE_IA";
readonly OUTPOSTS: "OUTPOSTS";
readonly REDUCED_REDUNDANCY: "REDUCED_REDUNDANCY";
readonly SNOW: "SNOW";
readonly STANDARD: "STANDARD";
readonly STANDARD_IA: "STANDARD_IA";
};
/**
* @public
*/
export type StorageClass = (typeof StorageClass)[keyof typeof StorageClass];
/**
* @public
* @enum
*/
export declare const TaggingDirective: {
readonly COPY: "COPY";
readonly REPLACE: "REPLACE";
};
/**
* @public
*/
export type TaggingDirective = (typeof TaggingDirective)[keyof typeof TaggingDirective];
/**
* @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>
*