UNPKG

@aws-sdk/client-s3

Version:

AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native

1,027 lines 607 kB
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; } /** * @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.</p> * <note> * <p>This functionality is not supported for directory buckets.</p> * </note> * @public */ RequestCharged?: RequestCharged; } /** * @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>az_id</i>.<i>region</i>.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format <code> * <i>bucket_base_name</i>--<i>az-id</i>--x-s3</code> (for example, <code> * <i>DOC-EXAMPLE-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, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. 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>Access points and Object Lambda access points are not supported by directory buckets.</p> * </note> * <p> * <b>S3 on Outposts</b> - When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form <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 through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, 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; /** * <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; } /** * <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; } /** * @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; /** * <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; /** * <p>The canonical user ID of the grantee.</p> * @public */ ID?: string; /** * <p>URI of the grantee group.</p> * @public */ URI?: string; /** * <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; /** * <p>Specifies the permission given to the grantee.</p> * @public */ Permission?: Permission; } /** * <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; /** * <p>Container for the ID of the owner.</p> * @public */ ID?: string; } /** * <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[]; /** * <p>Container for the bucket owner's display name and ID.</p> * @public */ Owner?: Owner; } /** * @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 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; /** * <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; /** * <p>The object key of the newly created object.</p> * @public */ Key?: string; /** * <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; /** * <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; /** * <p>The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it 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; /** * <p>The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it 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; /** * <p>The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it 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; /** * <p>The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it 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; /** * <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; /** * <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; /** * <p>If present, indicates the ID of the KMS key that was used for object encryption.</p> * @public */ SSEKMSKeyId?: string; /** * <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; /** * <p>If present, indicates that the requester was successfully charged for the * request.</p> * <note> * <p>This functionality is not supported for directory buckets.</p> * </note> * @public */ RequestCharged?: RequestCharged; } /** * <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; /** * <p>The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it 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; /** * <p>The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it 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; /** * <p>The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it 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; /** * <p>The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it 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; /** * <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; } /** * <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[]; } /** * @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>az_id</i>.<i>region</i>.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format <code> * <i>bucket_base_name</i>--<i>az-id</i>--x-s3</code> (for example, <code> * <i>DOC-EXAMPLE-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, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. 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>Access points and Object Lambda access points are not supported by directory buckets.</p> * </note> * <p> * <b>S3 on Outposts</b> - When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form <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 through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, 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; /** * <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 CRC-32 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; /** * <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 CRC-32C 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; /** * <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 SHA-1 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; /** * <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 SHA-256 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; /** * <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; /** * <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; /** * <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; /** * <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; /** * <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; /** * <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; } /** * <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; /** * <p>Creation date of the object.</p> * @public */ LastModified?: Date; /** * <p>The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it 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; /** * <p>The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it 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; /** * <p>The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it 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; /** * <p>The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it 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; } /** * @public */ export interface CopyObjectOutput { /** * <p>Container for all response elements.</p> * @public */ CopyObjectResult?: CopyObjectResult; /** * <p>If the object expiration is configured, the response includes this header.</p> * <note> * <p>This functionality is not supported for directory buckets.</p> * </note> * @public */ Expiration?: string; /** * <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; /** * <p>Version ID of the newly created copy.</p> * <note> * <p>This functionality is not supported for directory buckets.</p> * </note> * @public */ VersionId?: string; /** * <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; /** * <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; /** * <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; /** * <p>If present, indicates the ID of the KMS key that was used for object encryption.</p> * @public */ SSEKMSKeyId?: string; /** * <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; /** * <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; /** * <p>If present, indicates that the requester was successfully charged for the * request.</p> * <note> * <p>This functionality is not supported for directory buckets.</p> * </note> * @public */ RequestCharged?: RequestCharged; } /** * @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 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> * <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; /** * <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>az_id</i>.<i>region</i>.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format <code> * <i>bucket_base_name</i>--<i>az-id</i>--x-s3</code> (for example, <code> * <i>DOC-EXAMPLE-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, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. 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>Access points and Object Lambda access points are not supported by directory buckets.</p> * </note> * <p> * <b>S3 on Outposts</b> - When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form <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 through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, 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>Specifies the caching behavior along the request/reply chain.</p> * @public */ CacheControl?: string; /** * <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>400 Bad Request</code>.</p> * <note> * <p>For directory buckets, when you use Amazon Web Services SDKs, <code>CRC32</code> is the default checksum algorithm that's used for performance.</p> * </note> * @public */ ChecksumAlgorithm?: ChecksumAlgorithm; /** * <p>Specifies presentational information for the object. Indicates whether an object should be displayed in a web browser or downloaded as a file. It allows specifying the desired filename for the downloaded file.</p> * @public */ ContentDisposition?: string; /** * <p>Specifies what content encodings have been applied to the object and thus what decoding * mechanisms must be applied to obtain the media-type referenced by the Content-Type header * field.</p> * <note> * <p>For directory buckets, only the <code>aws-chunked</code> value is supported in this header field.</p> * </note> * @public */ ContentEncoding?: string; /** * <p>The language the content is in.</p> * @public */ ContentLanguage?: string; /** * <p>A standard MIME type that describes the format of the object data.</p> * @public */ ContentType?: string; /** * <p>Specifies the source object for the copy operation. The source object * can be up to 5 GB. If the source object is an object that was uploaded by using a multipart upload, the object copy will be a single part object after the source object is copied to the destination bucket.</p> * <p>You specify the value of the copy source in one of two * formats, depending on whether you want to access the source object through an <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html">access point</a>:</p> * <ul> * <li> * <p>For objects not accessed through an access point, specify the name of the source bucket * and the key of the source object, separated by a slash (/). For example, to copy the * object <code>reports/january.pdf</code> from the general purpose bucket * <code>awsexamplebucket</code>, use <code>awsexamplebucket/reports/january.pdf</code>. * The value must be URL-encoded. To copy the * object <code>reports/january.pdf</code> from the directory bucket * <code>awsexamplebucket--use1-az5--x-s3</code>, use <code>awsexamplebucket--use1-az5--x-s3/reports/january.pdf</code>. * The value must be URL-encoded.</p> * </li> * <li> * <p>For objects accessed through access points, specify the Amazon Resource Name (ARN) of the object as accessed through the access point, in the format <code>arn:aws:s3:<Region>:<account-id>:accesspoint/<access-point-name>/object/<key></code>. For example, to copy the object <code>reports/january.pdf</code> through access point <code>my-access-point</code> owned by account <code>123456789012</code> in Region <code>us-west-2</code>, use the URL encoding of <code>arn:aws:s3:us-west-2:123456789012:accesspoint/my-access-point/object/reports/january.pdf</code>. The value must be URL encoded.</p> * <note> * <ul> * <li> * <p>Amazon S3 supports copy operations using Acces