openapi: 3.0.0 info: version: '2006-03-01' x-release: s3 title: Amazon Simple Storage Service description:

x-logo: url: 'https://twitter.com/awscloud/profile_image?size=original' backgroundColor: '#FFFFFF' termsOfService: 'https://aws.amazon.com/service-terms/' contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: 'https://github.com/mermade/aws2openapi' x-twitter: PermittedSoc license: name: Apache 2.0 License url: 'http://www.apache.org/licenses/' x-providerName: amazonaws.com x-serviceName: s3 x-origin: - contentType: application/json url: 'https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/s3-2006-03-01.normal.json' converter: url: 'https://github.com/mermade/aws2openapi' version: 1.0.0 x-apisguru-driver: external x-apiClientRegistration: url: 'https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct' x-apisguru-categories: - cloud x-preferred: true externalDocs: description: Amazon Web Services documentation url: 'https://docs.aws.amazon.com/s3/' servers: - url: 'http://s3{dash-or-dot}{region}.amazonaws.com' variables: region: description: The AWS region enum: - us-east-1 - us-west-1 - us-west-2 - us-gov-west-1 - eu-west-1 - ap-northeast-1 - ap-southeast-1 - ap-southeast-2 - sa-east-1 default: us-east-1 dash-or-dot: description: The service/region URL separator enum: - . - '-' default: . description: The Amazon S3 multi-region endpoint - url: 'https://s3{dash-or-dot}{region}.amazonaws.com' variables: region: description: The AWS region enum: - us-east-1 - us-west-1 - us-west-2 - us-gov-west-1 - eu-west-1 - ap-northeast-1 - ap-southeast-1 - ap-southeast-2 - sa-east-1 default: us-east-1 dash-or-dot: description: The service/region URL separator enum: - . - '-' default: . description: The Amazon S3 multi-region endpoint - url: 'http://s3.amazonaws.com' variables: {} description: The general Amazon S3 endpoint for US East (N. Virginia) - url: 'https://s3.amazonaws.com' variables: {} description: The general Amazon S3 endpoint for US East (N. Virginia) - url: 'http://s3.{region}.amazonaws.com' variables: region: description: The AWS region enum: - us-east-2 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-2 - ap-northeast-3 - ap-east-1 - ap-south-1 - me-south-1 default: us-east-2 description: The Amazon S3 multi-region endpoint - url: 'https://s3.{region}.amazonaws.com' variables: region: description: The AWS region enum: - us-east-2 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-2 - ap-northeast-3 - ap-east-1 - ap-south-1 - me-south-1 default: us-east-2 description: The Amazon S3 multi-region endpoint - url: 'http://s3.{region}.amazonaws.com.cn' variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon S3 endpoint for China (Beijing) and China (Ningxia) - url: 'https://s3.{region}.amazonaws.com.cn' variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon S3 endpoint for China (Beijing) and China (Ningxia) x-hasEquivalentPaths: true paths: '/{Bucket}/{Key}#uploadId': delete: operationId: AbortMultipartUpload description: '

This operation aborts a multipart upload. After a multipart upload is aborted, no additional parts can be uploaded using that upload ID. The storage consumed by any previously uploaded parts will be freed. However, if any part uploads are currently in progress, those part uploads might or might not succeed. As a result, it might be necessary to abort a given multipart upload multiple times in order to completely free all storage consumed by all parts.

To verify that all parts have been removed, so you don''t get charged for the part storage, you should call the ListParts operation and ensure that the parts list is empty.

For information about permissions required to use the multipart upload API, see Multipart Upload API and Permissions.

The following operations are related to AbortMultipartUpload:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadAbort.html' responses: '204': description: Success content: text/xml: schema: $ref: '#/components/schemas/AbortMultipartUploadOutput' '480': description: NoSuchUpload content: text/xml: schema: $ref: '#/components/schemas/NoSuchUpload' parameters: - name: Bucket in: path required: true description: '

The bucket name to which the upload was taking place.

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' schema: type: string - name: Key in: path required: true description: Key of the object for which the multipart upload was initiated. schema: type: string minLength: 1 - name: uploadId in: query required: true description: Upload ID that identifies the multipart upload. schema: type: string - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' parameters: - $ref: '#/components/parameters/x-amz-security-token' post: operationId: CompleteMultipartUpload description: '

Completes a multipart upload by assembling previously uploaded parts.

You first initiate the multipart upload and then upload all parts using the UploadPart operation. After successfully uploading all relevant parts of an upload, you call this operation to complete the upload. Upon receiving this request, Amazon S3 concatenates all the parts in ascending order by part number to create a new object. In the Complete Multipart Upload request, you must provide the parts list. You must ensure that the parts list is complete. This operation concatenates the parts that you provide in the list. For each part in the list, you must provide the part number and the ETag value, returned after that part was uploaded.

Processing of a Complete Multipart Upload request could take several minutes to complete. After Amazon S3 begins processing the request, it sends an HTTP response header that specifies a 200 OK response. While processing is in progress, Amazon S3 periodically sends white space characters to keep the connection from timing out. Because a request could fail after the initial 200 OK response has been sent, it is important that you check the response body to determine whether the request succeeded.

Note that if CompleteMultipartUpload fails, applications should be prepared to retry the failed requests. For more information, see Amazon S3 Error Best Practices.

For more information about multipart uploads, see Uploading Objects Using Multipart Upload.

For information about permissions required to use the multipart upload API, see Multipart Upload API and Permissions.

CompleteMultipartUpload has the following special errors:

The following operations are related to CompleteMultipartUpload:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadComplete.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/CompleteMultipartUploadOutput' parameters: - name: Bucket in: path required: true description: Name of the bucket to which the multipart upload was initiated. schema: type: string - name: Key in: path required: true description: Object key for which the multipart upload was initiated. schema: type: string minLength: 1 - name: uploadId in: query required: true description: ID for the initiated multipart upload. schema: type: string - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' requestBody: required: true content: text/xml: schema: type: object properties: CompleteMultipartUpload: description: The container for the completed multipart upload details. type: object properties: Parts: xml: name: Part $ref: '#/components/schemas/CompletedPartList' description: Array of CompletedPart data types. get: operationId: ListParts description: '

Lists the parts that have been uploaded for a specific multipart upload. This operation must include the upload ID, which you obtain by sending the initiate multipart upload request (see CreateMultipartUpload). This request returns a maximum of 1,000 uploaded parts. The default number of parts returned is 1,000 parts. You can restrict the number of parts returned by specifying the max-parts request parameter. If your multipart upload consists of more than 1,000 parts, the response returns an IsTruncated field with the value of true, and a NextPartNumberMarker element. In subsequent ListParts requests you can include the part-number-marker query string parameter and set its value to the NextPartNumberMarker field value from the previous response.

For more information on multipart uploads, see Uploading Objects Using Multipart Upload.

For information on permissions required to use the multipart upload API, see Multipart Upload API and Permissions.

The following operations are related to ListParts:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadListParts.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/ListPartsOutput' parameters: - name: Bucket in: path required: true description: '

Name of the bucket to which the parts are being uploaded.

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' schema: type: string - name: Key in: path required: true description: Object key for which the multipart upload was initiated. schema: type: string minLength: 1 - name: max-parts in: query required: false description: Sets the maximum number of parts to return. schema: type: integer - name: part-number-marker in: query required: false description: Specifies the part after which listing should begin. Only parts with higher part numbers will be listed. schema: type: integer - name: uploadId in: query required: true description: Upload ID identifying the multipart upload whose parts are being listed. schema: type: string - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' - name: MaxParts in: query schema: type: string description: Pagination limit required: false - name: PartNumberMarker in: query schema: type: string description: Pagination token required: false '/{Bucket}/{Key}#x-amz-copy-source': put: operationId: CopyObject description: '

Creates a copy of an object that is already stored in Amazon S3.

You can store individual objects of up to 5 TB in Amazon S3. You create a copy of your object up to 5 GB in size in a single atomic operation using this API. However, to copy an object greater than 5 GB, you must use the multipart upload Upload Part - Copy API. For more information, see Copy Object Using the REST Multipart Upload API.

All copy requests must be authenticated. Additionally, you must have read access to the source object and write access to the destination bucket. For more information, see REST Authentication. Both the Region that you want to copy the object from and the Region that you want to copy the object to must be enabled for your account.

A copy request might return an error when Amazon S3 receives the copy request or while Amazon S3 is copying the files. If the error occurs before the copy operation starts, you receive a standard Amazon S3 error. If the error occurs during the copy operation, the error response is embedded in the 200 OK response. This means that a 200 OK response can contain either a success or an error. Design your application to parse the contents of the response and handle it appropriately.

If the copy is successful, you receive a response with information about the copied object.

If the request is an HTTP 1.1 request, the response is chunk encoded. If it were not, it would not contain the content-length, and you would need to read the entire body.

The copy request charge is based on the storage class and Region that you specify for the destination object. For pricing information, see Amazon S3 pricing.

Amazon S3 transfer acceleration does not support cross-Region copies. If you request a cross-Region copy using a transfer acceleration endpoint, you get a 400 Bad Request error. For more information, see Transfer Acceleration.

Metadata

When copying an object, you can preserve all metadata (default) or specify new metadata. However, the ACL is not preserved and is set to private for the user making the request. To override the default ACL setting, specify a new ACL when generating a copy request. For more information, see Using ACLs.

To specify whether you want the object metadata copied from the source object or replaced with metadata provided in the request, you can optionally add the x-amz-metadata-directive header. When you grant permissions, you can use the s3:x-amz-metadata-directive condition key to enforce certain metadata behavior when objects are uploaded. For more information, see Specifying Conditions in a Policy in the Amazon S3 Developer Guide. For a complete list of Amazon S3-specific condition keys, see Actions, Resources, and Condition Keys for Amazon S3.

x-amz-copy-source-if Headers

To only copy an object under certain conditions, such as whether the Etag matches or whether the object was modified before or after a specified date, use the following request parameters:

If both the x-amz-copy-source-if-match and x-amz-copy-source-if-unmodified-since headers are present in the request and evaluate as follows, Amazon S3 returns 200 OK and copies the data:

If both the x-amz-copy-source-if-none-match and x-amz-copy-source-if-modified-since headers are present in the request and evaluate as follows, Amazon S3 returns the 412 Precondition Failed response code:

All headers with the x-amz- prefix, including x-amz-copy-source, must be signed.

Encryption

The source object that you are copying can be encrypted or unencrypted. The source object can be encrypted with server-side encryption using AWS managed encryption keys (SSE-S3 or SSE-KMS) or by using a customer-provided encryption key. With server-side encryption, Amazon S3 encrypts your data as it writes it to disks in its data centers and decrypts the data when you access it.

You can optionally use the appropriate encryption-related headers to request server-side encryption for the target object. You have the option to provide your own encryption key or use SSE-S3 or SSE-KMS, regardless of the form of server-side encryption that was used to encrypt the source object. You can even request encryption if the source object was not encrypted. For more information about server-side encryption, see Using Server-Side Encryption.

Access Control List (ACL)-Specific Request Headers

When copying an object, you can optionally use headers to grant ACL-based permissions. By default, all objects are private. Only the owner has full access control. When adding a new object, you can grant permissions to individual AWS accounts or to predefined groups defined by Amazon S3. These permissions are then added to the ACL on the object. For more information, see Access Control List (ACL) Overview and Managing ACLs Using the REST API.

Storage Class Options

You can use the CopyObject operation to change the storage class of an object that is already stored in Amazon S3 using the StorageClass parameter. For more information, see Storage Classes in the Amazon S3 Service Developer Guide.

Versioning

By default, x-amz-copy-source identifies the current version of an object to copy. If the current version is a delete marker, Amazon S3 behaves as if the object was deleted. To copy a different version, use the versionId subresource.

If you enable versioning on the target bucket, Amazon S3 generates a unique version ID for the object being copied. This version ID is different from the version ID of the source object. Amazon S3 returns the version ID of the copied object in the x-amz-version-id response header in the response.

If you do not enable versioning or suspend it on the target bucket, the version ID that Amazon S3 generates is always null.

If the source object''s storage class is GLACIER, you must restore a copy of this object before you can use it as a source object for the copy operation. For more information, see RestoreObject.

The following operations are related to CopyObject:

For more information, see Copying Objects.

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectCOPY.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/CopyObjectOutput' '480': description: ObjectNotInActiveTierError content: text/xml: schema: $ref: '#/components/schemas/ObjectNotInActiveTierError' parameters: - name: x-amz-acl in: header required: false description: The canned ACL to apply to the object. schema: type: string enum: - private - public-read - public-read-write - authenticated-read - aws-exec-read - bucket-owner-read - bucket-owner-full-control - name: Bucket in: path required: true description: The name of the destination bucket. schema: type: string - name: Cache-Control in: header required: false description: Specifies caching behavior along the request/reply chain. schema: type: string - name: Content-Disposition in: header required: false description: Specifies presentational information for the object. schema: type: string - name: Content-Encoding in: header required: false description: 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. schema: type: string - name: Content-Language in: header required: false description: The language the content is in. schema: type: string - name: Content-Type in: header required: false description: A standard MIME type describing the format of the object data. schema: type: string - name: x-amz-copy-source in: header required: true description: 'The name of the source bucket and key name of the source object, separated by a slash (/). Must be URL-encoded.' schema: type: string pattern: \/.+\/.+ - name: x-amz-copy-source-if-match in: header required: false description: Copies the object if its entity tag (ETag) matches the specified tag. schema: type: string - name: x-amz-copy-source-if-modified-since in: header required: false description: Copies the object if it has been modified since the specified time. schema: type: string format: date-time - name: x-amz-copy-source-if-none-match in: header required: false description: Copies the object if its entity tag (ETag) is different than the specified ETag. schema: type: string - name: x-amz-copy-source-if-unmodified-since in: header required: false description: Copies the object if it hasn't been modified since the specified time. schema: type: string format: date-time - name: Expires in: header required: false description: The date and time at which the object is no longer cacheable. schema: type: string format: date-time - name: x-amz-grant-full-control in: header required: false description: 'Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.' schema: type: string - name: x-amz-grant-read in: header required: false description: Allows grantee to read the object data and its metadata. schema: type: string - name: x-amz-grant-read-acp in: header required: false description: Allows grantee to read the object ACL. schema: type: string - name: x-amz-grant-write-acp in: header required: false description: Allows grantee to write the ACL for the applicable object. schema: type: string - name: Key in: path required: true description: The key of the destination object. schema: type: string minLength: 1 - name: x-amz-metadata-directive in: header required: false description: Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. schema: type: string enum: - COPY - REPLACE - name: x-amz-tagging-directive in: header required: false description: Specifies whether the object tag-set are copied from the source object or replaced with tag-set provided in the request. schema: type: string enum: - COPY - REPLACE - name: x-amz-server-side-encryption in: header required: false description: 'The server-side encryption algorithm used when storing this object in Amazon S3 (for example, AES256, aws:kms).' schema: type: string enum: - AES256 - 'aws:kms' - name: x-amz-storage-class in: header required: false description: The type of storage to use for the object. Defaults to 'STANDARD'. schema: type: string enum: - STANDARD - REDUCED_REDUNDANCY - STANDARD_IA - ONEZONE_IA - INTELLIGENT_TIERING - GLACIER - DEEP_ARCHIVE - name: x-amz-website-redirect-location in: header required: false description: 'If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.' schema: type: string - name: x-amz-server-side-encryption-customer-algorithm in: header required: false description: 'Specifies the algorithm to use to when encrypting the object (for example, AES256).' schema: type: string - name: x-amz-server-side-encryption-customer-key in: header required: false description: Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header. schema: type: string format: password - name: x-amz-server-side-encryption-customer-key-MD5 in: header required: false description: Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error. schema: type: string - name: x-amz-server-side-encryption-aws-kms-key-id in: header required: false description: 'Specifies the AWS KMS key ID to use for object encryption. All GET and PUT requests for an object protected by AWS KMS will fail if not made via SSL or using SigV4. For information about configuring using any of the officially supported AWS SDKs and AWS CLI, see Specifying the Signature Version in Request Authentication in the Amazon S3 Developer Guide.' schema: type: string format: password - name: x-amz-server-side-encryption-context in: header required: false description: Specifies the AWS 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. schema: type: string format: password - name: x-amz-copy-source-server-side-encryption-customer-algorithm in: header required: false description: 'Specifies the algorithm to use when decrypting the source object (for example, AES256).' schema: type: string - name: x-amz-copy-source-server-side-encryption-customer-key in: header required: false description: Specifies the customer-provided encryption key for Amazon S3 to use to decrypt the source object. The encryption key provided in this header must be one that was used when the source object was created. schema: type: string format: password - name: x-amz-copy-source-server-side-encryption-customer-key-MD5 in: header required: false description: Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error. schema: type: string - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' - name: x-amz-tagging in: header required: false description: The tag-set for the object destination object this value must be used in conjunction with the TaggingDirective. The tag-set must be encoded as URL Query parameters. schema: type: string - name: x-amz-object-lock-mode in: header required: false description: The Object Lock mode that you want to apply to the copied object. schema: type: string enum: - GOVERNANCE - COMPLIANCE - name: x-amz-object-lock-retain-until-date in: header required: false description: The date and time when you want the copied object's Object Lock to expire. schema: type: string format: date-time - name: x-amz-object-lock-legal-hold in: header required: false description: Specifies whether you want to apply a Legal Hold to the copied object. schema: type: string enum: - 'ON' - 'OFF' requestBody: required: true content: text/xml: schema: type: object properties: x-amz-meta-: description: A map of metadata to store with the object in S3. type: object additionalProperties: $ref: '#/components/schemas/MetadataValue' parameters: - $ref: '#/components/parameters/x-amz-security-token' '/{Bucket}': put: operationId: CreateBucket description: '

Creates a new bucket. To create a bucket, you must register with Amazon S3 and have a valid AWS Access Key ID to authenticate requests. Anonymous requests are never allowed to create buckets. By creating the bucket, you become the bucket owner.

Not every string is an acceptable bucket name. For information on bucket naming restrictions, see Working with Amazon S3 Buckets.

By default, the bucket is created in the US East (N. Virginia) Region. You can optionally specify a Region in the request body. You might choose a Region to optimize latency, minimize costs, or address regulatory requirements. For example, if you reside in Europe, you will probably find it advantageous to create buckets in the Europe (Ireland) Region. For more information, see How to Select a Region for Your Buckets.

If you send your create bucket request to the s3.amazonaws.com endpoint, the request goes to the us-east-1 Region. Accordingly, the signature calculations in Signature Version 4 must use us-east-1 as the Region, even if the location constraint in the request specifies another Region where the bucket is to be created. If you create a bucket in a Region other than US East (N. Virginia), your application must be able to handle 307 redirect. For more information, see Virtual Hosting of Buckets.

When creating a bucket using this operation, you can optionally specify the accounts or groups that should be granted specific permissions on the bucket. There are two ways to grant the appropriate permissions using the request headers.

You can use either a canned ACL or specify access permissions explicitly. You cannot do both.

The following operations are related to CreateBucket:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUT.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/CreateBucketOutput' '480': description: BucketAlreadyExists content: text/xml: schema: $ref: '#/components/schemas/BucketAlreadyExists' '481': description: BucketAlreadyOwnedByYou content: text/xml: schema: $ref: '#/components/schemas/BucketAlreadyOwnedByYou' parameters: - name: x-amz-acl in: header required: false description: The canned ACL to apply to the bucket. schema: type: string enum: - private - public-read - public-read-write - authenticated-read - name: Bucket in: path required: true description: The name of the bucket to create. schema: type: string - name: x-amz-grant-full-control in: header required: false description: 'Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.' schema: type: string - name: x-amz-grant-read in: header required: false description: Allows grantee to list the objects in the bucket. schema: type: string - name: x-amz-grant-read-acp in: header required: false description: Allows grantee to read the bucket ACL. schema: type: string - name: x-amz-grant-write in: header required: false description: 'Allows grantee to create, overwrite, and delete any object in the bucket.' schema: type: string - name: x-amz-grant-write-acp in: header required: false description: Allows grantee to write the ACL for the applicable bucket. schema: type: string - name: x-amz-bucket-object-lock-enabled in: header required: false description: Specifies whether you want S3 Object Lock to be enabled for the new bucket. schema: type: boolean requestBody: required: true content: text/xml: schema: type: object properties: CreateBucketConfiguration: description: The configuration information for the bucket. type: object properties: LocationConstraint: $ref: '#/components/schemas/BucketLocationConstraint' description: 'Specifies the Region where the bucket will be created. If you don''t specify a Region, the bucket is created in the US East (N. Virginia) Region (us-east-1).' parameters: - $ref: '#/components/parameters/x-amz-security-token' delete: operationId: DeleteBucket description: '

Deletes the bucket. All objects (including all object versions and delete markers) in the bucket must be deleted before the bucket itself can be deleted.

Related Resources

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketDELETE.html' responses: '204': description: Success parameters: - name: Bucket in: path required: true description: Specifies the bucket being deleted. schema: type: string head: operationId: HeadBucket description: '

This operation is useful to determine if a bucket exists and you have permission to access it. The operation returns a 200 OK if the bucket exists and you have permission to access it. Otherwise, the operation might return responses such as 404 Not Found and 403 Forbidden.

To use this operation, you must have permissions to perform the s3:ListBucket action. The bucket owner has this permission by default and can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketHEAD.html' responses: '200': description: Success '480': description: NoSuchBucket content: text/xml: schema: $ref: '#/components/schemas/NoSuchBucket' parameters: - name: Bucket in: path required: true description: The bucket name. schema: type: string get: operationId: ListObjects description: '

Returns some or all (up to 1,000) of the objects in a bucket. You can use the request parameters as selection criteria to return a subset of the objects in a bucket. A 200 OK response can contain valid or invalid XML. Be sure to design your application to parse the contents of the response and handle it appropriately.

This API has been revised. We recommend that you use the newer version, ListObjectsV2, when developing applications. For backward compatibility, Amazon S3 continues to support ListObjects.

The following operations are related to ListObjects:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGET.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/ListObjectsOutput' '480': description: NoSuchBucket content: text/xml: schema: $ref: '#/components/schemas/NoSuchBucket' parameters: - name: Bucket in: path required: true description: The name of the bucket containing the objects. schema: type: string - name: delimiter in: query required: false description: A delimiter is a character you use to group keys. schema: type: string - name: encoding-type in: query required: false description: '' schema: type: string enum: - url description: 'Requests Amazon S3 to encode the object keys in the response and specifies the encoding method to use. An object key may contain any Unicode character; however, XML 1.0 parser cannot parse some characters, such as characters with an ASCII value from 0 to 10. For characters that are not supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response.' - name: marker in: query required: false description: Specifies the key to start with when listing objects in a bucket. schema: type: string - name: max-keys in: query required: false description: 'Sets the maximum number of keys returned in the response. By default the API returns up to 1,000 key names. The response might contain fewer keys but will never contain more. ' schema: type: integer - name: prefix in: query required: false description: Limits the response to keys that begin with the specified prefix. schema: type: string - name: x-amz-request-payer in: header required: false description: Confirms that the requester knows that she or he will be charged for the list objects request. Bucket owners need not specify this parameter in their requests. schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' - name: MaxKeys in: query schema: type: string description: Pagination limit required: false - name: Marker in: query schema: type: string description: Pagination token required: false '/{Bucket}/{Key}#uploads': post: operationId: CreateMultipartUpload description: '

This operation initiates a multipart upload and returns an upload ID. This upload ID is used to associate all of the parts in the specific multipart upload. You specify this upload ID in each of your subsequent upload part requests (see UploadPart). You also include this upload ID in the final request to either complete or abort the multipart upload request.

For more information about multipart uploads, see Multipart Upload Overview.

If you have configured a lifecycle rule to abort incomplete multipart uploads, the upload must complete within the number of days specified in the bucket lifecycle configuration. Otherwise, the incomplete multipart upload becomes eligible for an abort operation and Amazon S3 aborts the multipart upload. For more information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Policy.

For information about the permissions required to use the multipart upload API, see Multipart Upload API and Permissions.

For request signing, multipart upload is just a series of regular requests. You initiate a multipart upload, send one or more requests to upload parts, and then complete the multipart upload process. You sign each request individually. There is nothing special about signing multipart upload requests. For more information about signing, see Authenticating Requests (AWS Signature Version 4).

After you initiate a multipart upload and upload one or more parts, to stop being charged for storing the uploaded parts, you must either complete or abort the multipart upload. Amazon S3 frees up the space used to store the parts and stop charging you for storing them only after you either complete or abort a multipart upload.

You can optionally request server-side encryption. For server-side encryption, Amazon S3 encrypts your data as it writes it to disks in its data centers and decrypts it when you access it. You can provide your own encryption key, or use AWS Key Management Service (AWS KMS) customer master keys (CMKs) or Amazon S3-managed encryption keys. If you choose to provide your own encryption key, the request headers you provide in UploadPart and UploadPartCopy requests must match the headers you used in the request to initiate the upload by using CreateMultipartUpload.

To perform a multipart upload with encryption using an AWS KMS CMK, the requester must have permission to the kms:Encrypt, kms:Decrypt, kms:ReEncrypt*, kms:GenerateDataKey*, and kms:DescribeKey actions on the key. These permissions are required because Amazon S3 must decrypt and read data from the encrypted file parts before it completes the multipart upload.

If your AWS Identity and Access Management (IAM) user or role is in the same AWS account as the AWS KMS CMK, then you must have these permissions on the key policy. If your IAM user or role belongs to a different account than the key, then you must have the permissions on both the key policy and your IAM user or role.

For more information, see Protecting Data Using Server-Side Encryption.

Access Permissions

When copying an object, you can optionally specify the accounts or groups that should be granted specific permissions on the new object. There are two ways to grant the permissions using the request headers:

You can use either a canned ACL or specify access permissions explicitly. You cannot do both.

Server-Side- Encryption-Specific Request Headers

You can optionally tell Amazon S3 to encrypt data at rest using server-side encryption. Server-side encryption is for data encryption at rest. Amazon S3 encrypts your data as it writes it to disks in its data centers and decrypts it when you access it. The option you use depends on whether you want to use AWS managed encryption keys or provide your own encryption key.

Access-Control-List (ACL)-Specific Request Headers

You also can use the following access control–related headers with this operation. By default, all objects are private. Only the owner has full access control. When adding a new object, you can grant permissions to individual AWS accounts or to predefined groups defined by Amazon S3. These permissions are then added to the access control list (ACL) on the object. For more information, see Using ACLs. With this operation, you can grant access permissions using one of the following two methods:

The following operations are related to CreateMultipartUpload:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadInitiate.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/CreateMultipartUploadOutput' parameters: - name: x-amz-acl in: header required: false description: The canned ACL to apply to the object. schema: type: string enum: - private - public-read - public-read-write - authenticated-read - aws-exec-read - bucket-owner-read - bucket-owner-full-control - name: Bucket in: path required: true description: The name of the bucket to which to initiate the upload schema: type: string - name: Cache-Control in: header required: false description: Specifies caching behavior along the request/reply chain. schema: type: string - name: Content-Disposition in: header required: false description: Specifies presentational information for the object. schema: type: string - name: Content-Encoding in: header required: false description: 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. schema: type: string - name: Content-Language in: header required: false description: The language the content is in. schema: type: string - name: Content-Type in: header required: false description: A standard MIME type describing the format of the object data. schema: type: string - name: Expires in: header required: false description: The date and time at which the object is no longer cacheable. schema: type: string format: date-time - name: x-amz-grant-full-control in: header required: false description: 'Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.' schema: type: string - name: x-amz-grant-read in: header required: false description: Allows grantee to read the object data and its metadata. schema: type: string - name: x-amz-grant-read-acp in: header required: false description: Allows grantee to read the object ACL. schema: type: string - name: x-amz-grant-write-acp in: header required: false description: Allows grantee to write the ACL for the applicable object. schema: type: string - name: Key in: path required: true description: Object key for which the multipart upload is to be initiated. schema: type: string minLength: 1 - name: x-amz-server-side-encryption in: header required: false description: 'The server-side encryption algorithm used when storing this object in Amazon S3 (for example, AES256, aws:kms).' schema: type: string enum: - AES256 - 'aws:kms' - name: x-amz-storage-class in: header required: false description: The type of storage to use for the object. Defaults to 'STANDARD'. schema: type: string enum: - STANDARD - REDUCED_REDUNDANCY - STANDARD_IA - ONEZONE_IA - INTELLIGENT_TIERING - GLACIER - DEEP_ARCHIVE - name: x-amz-website-redirect-location in: header required: false description: 'If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.' schema: type: string - name: x-amz-server-side-encryption-customer-algorithm in: header required: false description: 'Specifies the algorithm to use to when encrypting the object (for example, AES256).' schema: type: string - name: x-amz-server-side-encryption-customer-key in: header required: false description: Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header. schema: type: string format: password - name: x-amz-server-side-encryption-customer-key-MD5 in: header required: false description: Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error. schema: type: string - name: x-amz-server-side-encryption-aws-kms-key-id in: header required: false description: 'Specifies the ID of the symmetric customer managed AWS KMS CMK to use for object encryption. All GET and PUT requests for an object protected by AWS KMS will fail if not made via SSL or using SigV4. For information about configuring using any of the officially supported AWS SDKs and AWS CLI, see Specifying the Signature Version in Request Authentication in the Amazon S3 Developer Guide.' schema: type: string format: password - name: x-amz-server-side-encryption-context in: header required: false description: Specifies the AWS 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. schema: type: string format: password - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' - name: x-amz-tagging in: header required: false description: The tag-set for the object. The tag-set must be encoded as URL Query parameters. schema: type: string - name: x-amz-object-lock-mode in: header required: false description: Specifies the Object Lock mode that you want to apply to the uploaded object. schema: type: string enum: - GOVERNANCE - COMPLIANCE - name: x-amz-object-lock-retain-until-date in: header required: false description: Specifies the date and time when you want the Object Lock to expire. schema: type: string format: date-time - name: x-amz-object-lock-legal-hold in: header required: false description: Specifies whether you want to apply a Legal Hold to the uploaded object. schema: type: string enum: - 'ON' - 'OFF' - name: uploads in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object properties: x-amz-meta-: description: A map of metadata to store with the object in S3. type: object additionalProperties: $ref: '#/components/schemas/MetadataValue' parameters: - $ref: '#/components/parameters/x-amz-security-token' '/{Bucket}#analytics&id': delete: operationId: DeleteBucketAnalyticsConfiguration description: '

Deletes an analytics configuration for the bucket (specified by the analytics configuration ID).

To use this operation, you must have permissions to perform the s3:PutAnalyticsConfiguration action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

For information about the Amazon S3 analytics feature, see Amazon S3 Analytics – Storage Class Analysis.

The following operations are related to DeleteBucketAnalyticsConfiguration:

' responses: '204': description: Success parameters: - name: Bucket in: path required: true description: The name of the bucket from which an analytics configuration is deleted. schema: type: string - name: id in: query required: true description: The ID that identifies the analytics configuration. schema: type: string - name: analytics in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' get: operationId: GetBucketAnalyticsConfiguration description: '

This implementation of the GET operation returns an analytics configuration (identified by the analytics configuration ID) from the bucket.

To use this operation, you must have permissions to perform the s3:GetAnalyticsConfiguration action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources in the Amazon Simple Storage Service Developer Guide.

For information about Amazon S3 analytics feature, see Amazon S3 Analytics – Storage Class Analysis in the Amazon Simple Storage Service Developer Guide.

Related Resources

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetBucketAnalyticsConfigurationOutput' parameters: - name: Bucket in: path required: true description: The name of the bucket from which an analytics configuration is retrieved. schema: type: string - name: id in: query required: true description: The ID that identifies the analytics configuration. schema: type: string - name: analytics in: query required: true schema: type: boolean enum: - true allowEmptyValue: true put: operationId: PutBucketAnalyticsConfiguration description: '

Sets an analytics configuration for the bucket (specified by the analytics configuration ID). You can have up to 1,000 analytics configurations per bucket.

You can choose to have storage class analysis export analysis reports sent to a comma-separated values (CSV) flat file. See the DataExport request element. Reports are updated daily and are based on the object filters that you configure. When selecting data export, you specify a destination bucket and an optional destination prefix where the file is written. You can export the data to a destination bucket in a different account. However, the destination bucket must be in the same Region as the bucket that you are making the PUT analytics configuration to. For more information, see Amazon S3 Analytics – Storage Class Analysis.

You must create a bucket policy on the destination bucket where the exported file is written to grant permissions to Amazon S3 to write objects to the bucket. For an example policy, see Granting Permissions for Amazon S3 Inventory and Storage Class Analysis.

To use this operation, you must have permissions to perform the s3:PutAnalyticsConfiguration action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

Special Errors

Related Resources

' responses: '200': description: Success parameters: - name: Bucket in: path required: true description: The name of the bucket to which an analytics configuration is stored. schema: type: string - name: id in: query required: true description: The ID that identifies the analytics configuration. schema: type: string - name: analytics in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object required: - AnalyticsConfiguration properties: AnalyticsConfiguration: description: ' Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.' type: object properties: Id: $ref: '#/components/schemas/AnalyticsId' description: The ID that identifies the analytics configuration. Filter: $ref: '#/components/schemas/AnalyticsFilter' description: 'The filter used to describe a set of objects for analyses. A filter must have exactly one prefix, one tag, or one conjunction (AnalyticsAndOperator). If no filter is provided, all objects will be considered in any analysis.' StorageClassAnalysis: $ref: '#/components/schemas/StorageClassAnalysis' description: ' Contains data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes. ' '/{Bucket}#cors': delete: operationId: DeleteBucketCors description: '

Deletes the cors configuration information set for the bucket.

To use this operation, you must have permission to perform the s3:PutBucketCORS action. The bucket owner has this permission by default and can grant this permission to others.

For information about cors, see Enabling Cross-Origin Resource Sharing in the Amazon Simple Storage Service Developer Guide.

Related Resources:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketDELETEcors.html' responses: '204': description: Success parameters: - name: Bucket in: path required: true description: Specifies the bucket whose cors configuration is being deleted. schema: type: string - name: cors in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' get: operationId: GetBucketCors description: '

Returns the cors configuration information set for the bucket.

To use this operation, you must have permission to perform the s3:GetBucketCORS action. By default, the bucket owner has this permission and can grant it to others.

For more information about cors, see Enabling Cross-Origin Resource Sharing.

The following operations are related to GetBucketCors:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETcors.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetBucketCorsOutput' parameters: - name: Bucket in: path required: true description: The bucket name for which to get the cors configuration. schema: type: string - name: cors in: query required: true schema: type: boolean enum: - true allowEmptyValue: true put: operationId: PutBucketCors description: '

Sets the cors configuration for your bucket. If the configuration exists, Amazon S3 replaces it.

To use this operation, you must be allowed to perform the s3:PutBucketCORS action. By default, the bucket owner has this permission and can grant it to others.

You set this configuration on a bucket so that the bucket can service cross-origin requests. For example, you might want to enable a request whose origin is http://www.example.com to access your Amazon S3 bucket at my.example.bucket.com by using the browser''s XMLHttpRequest capability.

To enable cross-origin resource sharing (CORS) on a bucket, you add the cors subresource to the bucket. The cors subresource is an XML document in which you configure rules that identify origins and the HTTP methods that can be executed on your bucket. The document is limited to 64 KB in size.

When Amazon S3 receives a cross-origin request (or a pre-flight OPTIONS request) against a bucket, it evaluates the cors configuration on the bucket and uses the first CORSRule rule that matches the incoming browser request to enable a cross-origin request. For a rule to match, the following conditions must be met:

For more information about CORS, go to Enabling Cross-Origin Resource Sharing in the Amazon Simple Storage Service Developer Guide.

Related Resources

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTcors.html' responses: '200': description: Success parameters: - name: Bucket in: path required: true description: Specifies the bucket impacted by the corsconfiguration. schema: type: string - name: Content-MD5 in: header required: false description: 'The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864. ' schema: type: string - name: cors in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object required: - CORSConfiguration properties: CORSConfiguration: description: 'Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see Enabling Cross-Origin Resource Sharing in the Amazon Simple Storage Service Developer Guide.' type: object properties: CORSRules: xml: name: CORSRule $ref: '#/components/schemas/CORSRules' description: A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration. '/{Bucket}#encryption': delete: operationId: DeleteBucketEncryption description: '

This implementation of the DELETE operation removes default encryption from the bucket. For information about the Amazon S3 default encryption feature, see Amazon S3 Default Bucket Encryption in the Amazon Simple Storage Service Developer Guide.

To use this operation, you must have permissions to perform the s3:PutEncryptionConfiguration action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to your Amazon S3 Resources in the Amazon Simple Storage Service Developer Guide.

Related Resources

' responses: '204': description: Success parameters: - name: Bucket in: path required: true description: The name of the bucket containing the server-side encryption configuration to delete. schema: type: string - name: encryption in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' get: operationId: GetBucketEncryption description: '

Returns the default encryption configuration for an Amazon S3 bucket. For information about the Amazon S3 default encryption feature, see Amazon S3 Default Bucket Encryption.

To use this operation, you must have permission to perform the s3:GetEncryptionConfiguration action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

The following operations are related to GetBucketEncryption:

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetBucketEncryptionOutput' parameters: - name: Bucket in: path required: true description: The name of the bucket from which the server-side encryption configuration is retrieved. schema: type: string - name: encryption in: query required: true schema: type: boolean enum: - true allowEmptyValue: true put: operationId: PutBucketEncryption description: '

This implementation of the PUT operation uses the encryption subresource to set the default encryption state of an existing bucket.

This implementation of the PUT operation sets default encryption for a bucket using server-side encryption with Amazon S3-managed keys SSE-S3 or AWS KMS customer master keys (CMKs) (SSE-KMS). For information about the Amazon S3 default encryption feature, see Amazon S3 Default Bucket Encryption.

This operation requires AWS Signature Version 4. For more information, see Authenticating Requests (AWS Signature Version 4).

To use this operation, you must have permissions to perform the s3:PutEncryptionConfiguration action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources in the Amazon Simple Storage Service Developer Guide.

Related Resources

' responses: '200': description: Success parameters: - name: Bucket in: path required: true description: 'Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3) or customer master keys stored in AWS KMS (SSE-KMS). For information about the Amazon S3 default encryption feature, see Amazon S3 Default Bucket Encryption in the Amazon Simple Storage Service Developer Guide.' schema: type: string - name: Content-MD5 in: header required: false description: The base64-encoded 128-bit MD5 digest of the server-side encryption configuration. This parameter is auto-populated when using the command from the CLI. schema: type: string - name: encryption in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object required: - ServerSideEncryptionConfiguration properties: ServerSideEncryptionConfiguration: description: Specifies the default server-side-encryption configuration. type: object properties: Rules: xml: name: Rule $ref: '#/components/schemas/ServerSideEncryptionRules' description: Container for information about a particular server-side encryption configuration rule. '/{Bucket}#inventory&id': delete: operationId: DeleteBucketInventoryConfiguration description: '

Deletes an inventory configuration (identified by the inventory ID) from the bucket.

To use this operation, you must have permissions to perform the s3:PutInventoryConfiguration action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

For information about the Amazon S3 inventory feature, see Amazon S3 Inventory.

Operations related to DeleteBucketInventoryConfiguration include:

' responses: '204': description: Success parameters: - name: Bucket in: path required: true description: The name of the bucket containing the inventory configuration to delete. schema: type: string - name: id in: query required: true description: The ID used to identify the inventory configuration. schema: type: string - name: inventory in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' get: operationId: GetBucketInventoryConfiguration description: '

Returns an inventory configuration (identified by the inventory configuration ID) from the bucket.

To use this operation, you must have permissions to perform the s3:GetInventoryConfiguration action. The bucket owner has this permission by default and can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

For information about the Amazon S3 inventory feature, see Amazon S3 Inventory.

The following operations are related to GetBucketInventoryConfiguration:

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetBucketInventoryConfigurationOutput' parameters: - name: Bucket in: path required: true description: The name of the bucket containing the inventory configuration to retrieve. schema: type: string - name: id in: query required: true description: The ID used to identify the inventory configuration. schema: type: string - name: inventory in: query required: true schema: type: boolean enum: - true allowEmptyValue: true put: operationId: PutBucketInventoryConfiguration description: '

This implementation of the PUT operation adds an inventory configuration (identified by the inventory ID) to the bucket. You can have up to 1,000 inventory configurations per bucket.

Amazon S3 inventory generates inventories of the objects in the bucket on a daily or weekly basis, and the results are published to a flat file. The bucket that is inventoried is called the source bucket, and the bucket where the inventory flat file is stored is called the destination bucket. The destination bucket must be in the same AWS Region as the source bucket.

When you configure an inventory for a source bucket, you specify the destination bucket where you want the inventory to be stored, and whether to generate the inventory daily or weekly. You can also configure what object metadata to include and whether to inventory all object versions or only current versions. For more information, see Amazon S3 Inventory in the Amazon Simple Storage Service Developer Guide.

You must create a bucket policy on the destination bucket to grant permissions to Amazon S3 to write objects to the bucket in the defined location. For an example policy, see Granting Permissions for Amazon S3 Inventory and Storage Class Analysis.

To use this operation, you must have permissions to perform the s3:PutInventoryConfiguration action. The bucket owner has this permission by default and can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources in the Amazon Simple Storage Service Developer Guide.

Special Errors

Related Resources

' responses: '200': description: Success parameters: - name: Bucket in: path required: true description: The name of the bucket where the inventory configuration will be stored. schema: type: string - name: id in: query required: true description: The ID used to identify the inventory configuration. schema: type: string - name: inventory in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object required: - InventoryConfiguration properties: InventoryConfiguration: description: 'Specifies the inventory configuration for an Amazon S3 bucket. For more information, see GET Bucket inventory in the Amazon Simple Storage Service API Reference. ' type: object properties: Destination: $ref: '#/components/schemas/InventoryDestination' description: Contains information about where to publish the inventory results. IsEnabled: $ref: '#/components/schemas/IsEnabled' description: 'Specifies whether the inventory is enabled or disabled. If set to True, an inventory list is generated. If set to False, no inventory list is generated.' Filter: $ref: '#/components/schemas/InventoryFilter' description: Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria. Id: $ref: '#/components/schemas/InventoryId' description: The ID used to identify the inventory configuration. IncludedObjectVersions: $ref: '#/components/schemas/InventoryIncludedObjectVersions' description: 'Object versions to include in the inventory list. If set to All, the list includes all the object versions, which adds the version-related fields VersionId, IsLatest, and DeleteMarker to the list. If set to Current, the list does not contain these version-related fields.' OptionalFields: $ref: '#/components/schemas/InventoryOptionalFields' description: Contains the optional fields that are included in the inventory results. Schedule: $ref: '#/components/schemas/InventorySchedule' description: Specifies the schedule for generating inventory results. '/{Bucket}#lifecycle': delete: operationId: DeleteBucketLifecycle description: '

Deletes the lifecycle configuration from the specified bucket. Amazon S3 removes all the lifecycle configuration rules in the lifecycle subresource associated with the bucket. Your objects never expire, and Amazon S3 no longer automatically deletes any objects on the basis of rules contained in the deleted lifecycle configuration.

To use this operation, you must have permission to perform the s3:PutLifecycleConfiguration action. By default, the bucket owner has this permission and the bucket owner can grant this permission to others.

There is usually some time lag before lifecycle configuration deletion is fully propagated to all the Amazon S3 systems.

For more information about the object expiration, see Elements to Describe Lifecycle Actions.

Related actions include:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketDELETElifecycle.html' responses: '204': description: Success parameters: - name: Bucket in: path required: true description: The bucket name of the lifecycle to delete. schema: type: string - name: lifecycle in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' get: operationId: GetBucketLifecycleConfiguration description: '

Bucket lifecycle configuration now supports specifying a lifecycle rule using an object key name prefix, one or more object tags, or a combination of both. Accordingly, this section describes the latest API. The response describes the new filter element that you can use to specify a filter to select a subset of objects to which the rule applies. If you are still using previous version of the lifecycle configuration, it works. For the earlier API description, see GetBucketLifecycle.

Returns the lifecycle configuration information set on the bucket. For information about lifecycle configuration, see Object Lifecycle Management.

To use this operation, you must have permission to perform the s3:GetLifecycleConfiguration action. The bucket owner has this permission, by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

GetBucketLifecycleConfiguration has the following special error:

The following operations are related to GetBucketLifecycleConfiguration:

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetBucketLifecycleConfigurationOutput' parameters: - name: Bucket in: path required: true description: The name of the bucket for which to get the lifecycle information. schema: type: string - name: lifecycle in: query required: true schema: type: boolean enum: - true allowEmptyValue: true put: operationId: PutBucketLifecycleConfiguration description: '

Creates a new lifecycle configuration for the bucket or replaces an existing lifecycle configuration. For information about lifecycle configuration, see Managing Access Permissions to Your Amazon S3 Resources.

Bucket lifecycle configuration now supports specifying a lifecycle rule using an object key name prefix, one or more object tags, or a combination of both. Accordingly, this section describes the latest API. The previous version of the API supported filtering based only on an object key name prefix, which is supported for backward compatibility. For the related API description, see PutBucketLifecycle.

Rules

You specify the lifecycle configuration in your request body. The lifecycle configuration is specified as XML consisting of one or more rules. Each rule consists of the following:

For more information, see Object Lifecycle Management and Lifecycle Configuration Elements.

Permissions

By default, all Amazon S3 resources are private, including buckets, objects, and related subresources (for example, lifecycle configuration and website configuration). Only the resource owner (that is, the AWS account that created it) can access the resource. The resource owner can optionally grant access permissions to others by writing an access policy. For this operation, a user must get the s3:PutLifecycleConfiguration permission.

You can also explicitly deny permissions. Explicit deny also supersedes any other permissions. If you want to block users or accounts from removing or deleting objects from your bucket, you must deny them permissions for the following actions:

For more information about permissions, see Managing Access Permissions to Your Amazon S3 Resources.

The following are related to PutBucketLifecycleConfiguration:

' responses: '200': description: Success parameters: - name: Bucket in: path required: true description: The name of the bucket for which to set the configuration. schema: type: string - name: lifecycle in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object properties: LifecycleConfiguration: description: 'Specifies the lifecycle configuration for objects in an Amazon S3 bucket. For more information, see Object Lifecycle Management in the Amazon Simple Storage Service Developer Guide.' type: object properties: Rules: xml: name: Rule $ref: '#/components/schemas/LifecycleRules' description: A lifecycle rule for individual objects in an Amazon S3 bucket. '/{Bucket}#metrics&id': delete: operationId: DeleteBucketMetricsConfiguration description: '

Deletes a metrics configuration for the Amazon CloudWatch request metrics (specified by the metrics configuration ID) from the bucket. Note that this doesn''t include the daily storage metrics.

To use this operation, you must have permissions to perform the s3:PutMetricsConfiguration action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

For information about CloudWatch request metrics for Amazon S3, see Monitoring Metrics with Amazon CloudWatch.

The following operations are related to DeleteBucketMetricsConfiguration:

' responses: '204': description: Success parameters: - name: Bucket in: path required: true description: The name of the bucket containing the metrics configuration to delete. schema: type: string - name: id in: query required: true description: The ID used to identify the metrics configuration. schema: type: string - name: metrics in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' get: operationId: GetBucketMetricsConfiguration description: '

Gets a metrics configuration (specified by the metrics configuration ID) from the bucket. Note that this doesn''t include the daily storage metrics.

To use this operation, you must have permissions to perform the s3:GetMetricsConfiguration action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

For information about CloudWatch request metrics for Amazon S3, see Monitoring Metrics with Amazon CloudWatch.

The following operations are related to GetBucketMetricsConfiguration:

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetBucketMetricsConfigurationOutput' parameters: - name: Bucket in: path required: true description: The name of the bucket containing the metrics configuration to retrieve. schema: type: string - name: id in: query required: true description: The ID used to identify the metrics configuration. schema: type: string - name: metrics in: query required: true schema: type: boolean enum: - true allowEmptyValue: true put: operationId: PutBucketMetricsConfiguration description: '

Sets a metrics configuration (specified by the metrics configuration ID) for the bucket. You can have up to 1,000 metrics configurations per bucket. If you''re updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don''t include the elements you want to keep, they are erased.

To use this operation, you must have permissions to perform the s3:PutMetricsConfiguration action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

For information about CloudWatch request metrics for Amazon S3, see Monitoring Metrics with Amazon CloudWatch.

The following operations are related to PutBucketMetricsConfiguration:

GetBucketLifecycle has the following special error:

' responses: '200': description: Success parameters: - name: Bucket in: path required: true description: The name of the bucket for which the metrics configuration is set. schema: type: string - name: id in: query required: true description: The ID used to identify the metrics configuration. schema: type: string - name: metrics in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object required: - MetricsConfiguration properties: MetricsConfiguration: description: 'Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you''re updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don''t include the elements you want to keep, they are erased. For more information, see PUT Bucket metrics in the Amazon Simple Storage Service API Reference.' type: object properties: Id: $ref: '#/components/schemas/MetricsId' description: The ID used to identify the metrics configuration. Filter: $ref: '#/components/schemas/MetricsFilter' description: 'Specifies a metrics configuration filter. The metrics configuration will only include objects that meet the filter''s criteria. A filter must be a prefix, a tag, or a conjunction (MetricsAndOperator).' '/{Bucket}#policy': delete: operationId: DeleteBucketPolicy description: '

This implementation of the DELETE operation uses the policy subresource to delete the policy of a specified bucket. If you are using an identity other than the root user of the AWS account that owns the bucket, the calling identity must have the DeleteBucketPolicy permissions on the specified bucket and belong to the bucket owner''s account to use this operation.

If you don''t have DeleteBucketPolicy permissions, Amazon S3 returns a 403 Access Denied error. If you have the correct permissions, but you''re not using an identity that belongs to the bucket owner''s account, Amazon S3 returns a 405 Method Not Allowed error.

As a security precaution, the root user of the AWS account that owns a bucket can always use this operation, even if the policy explicitly denies the root user the ability to perform this action.

For more information about bucket policies, see Using Bucket Policies and UserPolicies.

The following operations are related to DeleteBucketPolicy

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketDELETEpolicy.html' responses: '204': description: Success parameters: - name: Bucket in: path required: true description: The bucket name. schema: type: string - name: policy in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' get: operationId: GetBucketPolicy description: '

Returns the policy of a specified bucket. If you are using an identity other than the root user of the AWS account that owns the bucket, the calling identity must have the GetBucketPolicy permissions on the specified bucket and belong to the bucket owner''s account in order to use this operation.

If you don''t have GetBucketPolicy permissions, Amazon S3 returns a 403 Access Denied error. If you have the correct permissions, but you''re not using an identity that belongs to the bucket owner''s account, Amazon S3 returns a 405 Method Not Allowed error.

As a security precaution, the root user of the AWS account that owns a bucket can always use this operation, even if the policy explicitly denies the root user the ability to perform this action.

For more information about bucket policies, see Using Bucket Policies and User Policies.

The following operation is related to GetBucketPolicy:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETpolicy.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetBucketPolicyOutput' parameters: - name: Bucket in: path required: true description: The bucket name for which to get the bucket policy. schema: type: string - name: policy in: query required: true schema: type: boolean enum: - true allowEmptyValue: true put: operationId: PutBucketPolicy description: '

Applies an Amazon S3 bucket policy to an Amazon S3 bucket. If you are using an identity other than the root user of the AWS account that owns the bucket, the calling identity must have the PutBucketPolicy permissions on the specified bucket and belong to the bucket owner''s account in order to use this operation.

If you don''t have PutBucketPolicy permissions, Amazon S3 returns a 403 Access Denied error. If you have the correct permissions, but you''re not using an identity that belongs to the bucket owner''s account, Amazon S3 returns a 405 Method Not Allowed error.

As a security precaution, the root user of the AWS account that owns a bucket can always use this operation, even if the policy explicitly denies the root user the ability to perform this action.

For more information about bucket policies, see Using Bucket Policies and User Policies.

The following operations are related to PutBucketPolicy:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTpolicy.html' responses: '200': description: Success parameters: - name: Bucket in: path required: true description: The name of the bucket. schema: type: string - name: Content-MD5 in: header required: false description: The MD5 hash of the request body. schema: type: string - name: x-amz-confirm-remove-self-bucket-access in: header required: false description: Set this parameter to true to confirm that you want to remove your permissions to change this bucket policy in the future. schema: type: boolean - name: policy in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object required: - Policy properties: Policy: description: The bucket policy as a JSON document. type: string '/{Bucket}#replication': delete: operationId: DeleteBucketReplication description: '

Deletes the replication configuration from the bucket.

To use this operation, you must have permissions to perform the s3:PutReplicationConfiguration action. The bucket owner has these permissions by default and can grant it to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

It can take a while for the deletion of a replication configuration to fully propagate.

For information about replication configuration, see Replication in the Amazon S3 Developer Guide.

The following operations are related to DeleteBucketReplication:

' responses: '204': description: Success parameters: - name: Bucket in: path required: true description: ' The bucket name. ' schema: type: string - name: replication in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' get: operationId: GetBucketReplication description: '

Returns the replication configuration of a bucket.

It can take a while to propagate the put or delete a replication configuration to all Amazon S3 systems. Therefore, a get request soon after put or delete can return a wrong result.

For information about replication configuration, see Replication in the Amazon Simple Storage Service Developer Guide.

This operation requires permissions for the s3:GetReplicationConfiguration action. For more information about permissions, see Using Bucket Policies and User Policies.

If you include the Filter element in a replication configuration, you must also include the DeleteMarkerReplication and Priority elements. The response also returns those elements.

For information about GetBucketReplication errors, see List of replication-related error codes

The following operations are related to GetBucketReplication:

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetBucketReplicationOutput' parameters: - name: Bucket in: path required: true description: The bucket name for which to get the replication information. schema: type: string - name: replication in: query required: true schema: type: boolean enum: - true allowEmptyValue: true put: operationId: PutBucketReplication description: '

Creates a replication configuration or replaces an existing one. For more information, see Replication in the Amazon S3 Developer Guide.

To perform this operation, the user or role performing the operation must have the iam:PassRole permission.

Specify the replication configuration in the request body. In the replication configuration, you provide the name of the destination bucket where you want Amazon S3 to replicate objects, the IAM role that Amazon S3 can assume to replicate objects on your behalf, and other relevant information.

A replication configuration must include at least one rule, and can contain a maximum of 1,000. Each rule identifies a subset of objects to replicate by filtering the objects in the source bucket. To choose additional subsets of objects to replicate, add a rule for each subset. All rules must specify the same destination bucket.

To specify a subset of the objects in the source bucket to apply a replication rule to, add the Filter element as a child of the Rule element. You can filter objects based on an object key prefix, one or more object tags, or both. When you add the Filter element in the configuration, you must also add the following elements: DeleteMarkerReplication, Status, and Priority.

The latest version of the replication configuration XML is V2. XML V2 replication configurations are those that contain the Filter element for rules, and rules that specify S3 Replication Time Control (S3 RTC). In XML V2 replication configurations, Amazon S3 doesn''t replicate delete markers. Therefore, you must set the DeleteMarkerReplication element to Disabled. For backward compatibility, Amazon S3 continues to support the XML V1 replication configuration.

For information about enabling versioning on a bucket, see Using Versioning.

By default, a resource owner, in this case the AWS account that created the bucket, can perform this operation. The resource owner can also grant others permissions to perform the operation. For more information about permissions, see Specifying Permissions in a Policy and Managing Access Permissions to Your Amazon S3 Resources.

Handling Replication of Encrypted Objects

By default, Amazon S3 doesn''t replicate objects that are stored at rest using server-side encryption with CMKs stored in AWS KMS. To replicate AWS KMS-encrypted objects, add the following: SourceSelectionCriteria, SseKmsEncryptedObjects, Status, EncryptionConfiguration, and ReplicaKmsKeyID. For information about replication configuration, see Replicating Objects Created with SSE Using CMKs stored in AWS KMS.

For information on PutBucketReplication errors, see List of replication-related error codes

The following operations are related to PutBucketReplication:

' responses: '200': description: Success parameters: - name: Bucket in: path required: true description: The name of the bucket schema: type: string - name: Content-MD5 in: header required: false description: 'The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.' schema: type: string - name: x-amz-bucket-object-lock-token in: header required: false description:

schema: type: string - name: replication in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object required: - ReplicationConfiguration properties: ReplicationConfiguration: description: 'A container for replication rules. You can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.' type: object properties: Role: $ref: '#/components/schemas/Role' description: 'The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that Amazon S3 assumes when replicating objects. For more information, see How to Set Up Replication in the Amazon Simple Storage Service Developer Guide.' Rules: xml: name: Rule $ref: '#/components/schemas/ReplicationRules' description: 'A container for one or more replication rules. A replication configuration must have at least one rule and can contain a maximum of 1,000 rules. ' '/{Bucket}#tagging': delete: operationId: DeleteBucketTagging description: '

Deletes the tags from the bucket.

To use this operation, you must have permission to perform the s3:PutBucketTagging action. By default, the bucket owner has this permission and can grant this permission to others.

The following operations are related to DeleteBucketTagging:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketDELETEtagging.html' responses: '204': description: Success parameters: - name: Bucket in: path required: true description: The bucket that has the tag set to be removed. schema: type: string - name: tagging in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' get: operationId: GetBucketTagging description: '

Returns the tag set associated with the bucket.

To use this operation, you must have permission to perform the s3:GetBucketTagging action. By default, the bucket owner has this permission and can grant this permission to others.

GetBucketTagging has the following special error:

The following operations are related to GetBucketTagging:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETtagging.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetBucketTaggingOutput' parameters: - name: Bucket in: path required: true description: The name of the bucket for which to get the tagging information. schema: type: string - name: tagging in: query required: true schema: type: boolean enum: - true allowEmptyValue: true put: operationId: PutBucketTagging description: '

Sets the tags for a bucket.

Use tags to organize your AWS bill to reflect your own cost structure. To do this, sign up to get your AWS account bill with tag key values included. Then, to see the cost of combined resources, organize your billing information according to resources with the same tag key values. For example, you can tag several resources with a specific application name, and then organize your billing information to see the total cost of that application across several services. For more information, see Cost Allocation and Tagging.

Within a bucket, if you add a tag that has the same key as an existing tag, the new value overwrites the old value. For more information, see Using Cost Allocation in Amazon S3 Bucket Tags.

To use this operation, you must have permissions to perform the s3:PutBucketTagging action. The bucket owner has this permission by default and can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

PutBucketTagging has the following special errors:

The following operations are related to PutBucketTagging:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTtagging.html' responses: '200': description: Success parameters: - name: Bucket in: path required: true description: The bucket name. schema: type: string - name: Content-MD5 in: header required: false description: 'The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.' schema: type: string - name: tagging in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object required: - Tagging properties: Tagging: description: Container for TagSet elements. type: object properties: TagSet: $ref: '#/components/schemas/TagSet' description: A collection for a set of tags '/{Bucket}#website': delete: operationId: DeleteBucketWebsite description: '

This operation removes the website configuration for a bucket. Amazon S3 returns a 200 OK response upon successfully deleting a website configuration on the specified bucket. You will get a 200 OK response if the website configuration you are trying to delete does not exist on the bucket. Amazon S3 returns a 404 response if the bucket specified in the request does not exist.

This DELETE operation requires the S3:DeleteBucketWebsite permission. By default, only the bucket owner can delete the website configuration attached to a bucket. However, bucket owners can grant other users permission to delete the website configuration by writing a bucket policy granting them the S3:DeleteBucketWebsite permission.

For more information about hosting websites, see Hosting Websites on Amazon S3.

The following operations are related to DeleteBucketWebsite:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketDELETEwebsite.html' responses: '204': description: Success parameters: - name: Bucket in: path required: true description: 'The bucket name for which you want to remove the website configuration. ' schema: type: string - name: website in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' get: operationId: GetBucketWebsite description: '

Returns the website configuration for a bucket. To host website on Amazon S3, you can configure a bucket as website by adding a website configuration. For more information about hosting websites, see Hosting Websites on Amazon S3.

This GET operation requires the S3:GetBucketWebsite permission. By default, only the bucket owner can read the bucket website configuration. However, bucket owners can allow other users to read the website configuration by writing a bucket policy granting them the S3:GetBucketWebsite permission.

The following operations are related to DeleteBucketWebsite:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETwebsite.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetBucketWebsiteOutput' parameters: - name: Bucket in: path required: true description: The bucket name for which to get the website configuration. schema: type: string - name: website in: query required: true schema: type: boolean enum: - true allowEmptyValue: true put: operationId: PutBucketWebsite description: '

Sets the configuration of the website that is specified in the website subresource. To configure a bucket as a website, you can add this subresource on the bucket with website configuration information such as the file name of the index document and any redirect rules. For more information, see Hosting Websites on Amazon S3.

This PUT operation requires the S3:PutBucketWebsite permission. By default, only the bucket owner can configure the website attached to a bucket; however, bucket owners can allow other users to set the website configuration by writing a bucket policy that grants them the S3:PutBucketWebsite permission.

To redirect all website requests sent to the bucket''s website endpoint, you add a website configuration with the following elements. Because all requests are sent to another website, you don''t need to provide index document name for the bucket.

If you want granular control over redirects, you can use the following elements to add routing rules that describe conditions for redirecting requests and information about the redirect destination. In this case, the website configuration must provide an index document for the bucket, because some requests might not be redirected.

Amazon S3 has a limitation of 50 routing rules per website configuration. If you require more than 50 routing rules, you can use object redirect. For more information, see Configuring an Object Redirect in the Amazon Simple Storage Service Developer Guide.

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTwebsite.html' responses: '200': description: Success parameters: - name: Bucket in: path required: true description: The bucket name. schema: type: string - name: Content-MD5 in: header required: false description: 'The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.' schema: type: string - name: website in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object required: - WebsiteConfiguration properties: WebsiteConfiguration: description: Specifies website configuration parameters for an Amazon S3 bucket. type: object properties: ErrorDocument: $ref: '#/components/schemas/ErrorDocument' description: The name of the error document for the website. IndexDocument: $ref: '#/components/schemas/IndexDocument' description: The name of the index document for the website. RedirectAllRequestsTo: $ref: '#/components/schemas/RedirectAllRequestsTo' description: '

The redirect behavior for every request to this bucket''s website endpoint.

If you specify this property, you can''t specify any other property.

' RoutingRules: $ref: '#/components/schemas/RoutingRules' description: Rules that define when a redirect is applied and the redirect behavior. '/{Bucket}/{Key}': delete: operationId: DeleteObject description: '

Removes the null version (if there is one) of an object and inserts a delete marker, which becomes the latest version of the object. If there isn''t a null version, Amazon S3 does not remove any objects.

To remove a specific version, you must be the bucket owner and you must use the version Id subresource. Using this subresource permanently deletes the version. If the object deleted is a delete marker, Amazon S3 sets the response header, x-amz-delete-marker, to true.

If the object you want to delete is in a bucket where the bucket versioning configuration is MFA Delete enabled, you must include the x-amz-mfa request header in the DELETE versionId request. Requests that include x-amz-mfa must use HTTPS.

For more information about MFA Delete, see Using MFA Delete. To see sample requests that use versioning, see Sample Request.

You can delete objects by explicitly calling the DELETE Object API or configure its lifecycle (PutBucketLifecycle) to enable Amazon S3 to remove them for you. If you want to block users or accounts from removing or deleting objects from your bucket, you must deny them the s3:DeleteObject, s3:DeleteObjectVersion, and s3:PutLifeCycleConfiguration actions.

The following operation is related to DeleteObject:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectDELETE.html' responses: '204': description: Success content: text/xml: schema: $ref: '#/components/schemas/DeleteObjectOutput' parameters: - name: Bucket in: path required: true description: '

The bucket name of the bucket containing the object.

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' schema: type: string - name: Key in: path required: true description: Key name of the object to delete. schema: type: string minLength: 1 - name: x-amz-mfa in: header required: false description: 'The concatenation of the authentication device''s serial number, a space, and the value that is displayed on your authentication device. Required to permanently delete a versioned object if versioning is configured with MFA delete enabled.' schema: type: string - name: versionId in: query required: false description: VersionId used to reference a specific version of the object. schema: type: string - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' - name: x-amz-bypass-governance-retention in: header required: false description: Indicates whether S3 Object Lock should bypass Governance-mode restrictions to process this operation. schema: type: boolean parameters: - $ref: '#/components/parameters/x-amz-security-token' get: operationId: GetObject description: '

Retrieves objects from Amazon S3. To use GET, you must have READ access to the object. If you grant READ access to the anonymous user, you can return the object without using an authorization header.

An Amazon S3 bucket has no directory hierarchy such as you would find in a typical computer file system. You can, however, create a logical hierarchy by using object key names that imply a folder structure. For example, instead of naming an object sample.jpg, you can name it photos/2006/February/sample.jpg.

To get an object from such a logical hierarchy, specify the full key name for the object in the GET operation. For a virtual hosted-style request example, if you have the object photos/2006/February/sample.jpg, specify the resource as /photos/2006/February/sample.jpg. For a path-style request example, if you have the object photos/2006/February/sample.jpg in the bucket named examplebucket, specify the resource as /examplebucket/photos/2006/February/sample.jpg. For more information about request types, see HTTP Host Header Bucket Specification.

To distribute large files to many people, you can save bandwidth costs by using BitTorrent. For more information, see Amazon S3 Torrent. For more information about returning the ACL of an object, see GetObjectAcl.

If the object you are retrieving is stored in the GLACIER or DEEP_ARCHIVE storage classes, before you can retrieve the object you must first restore a copy using RestoreObject. Otherwise, this operation returns an InvalidObjectStateError error. For information about restoring archived objects, see Restoring Archived Objects.

Encryption request headers, like x-amz-server-side-encryption, should not be sent for GET requests if your object uses server-side encryption with CMKs stored in AWS KMS (SSE-KMS) or server-side encryption with Amazon S3–managed encryption keys (SSE-S3). If your object does use these types of keys, you’ll get an HTTP 400 BadRequest error.

If you encrypt an object by using server-side encryption with customer-provided encryption keys (SSE-C) when you store the object in Amazon S3, then when you GET the object, you must use the following headers:

For more information about SSE-C, see Server-Side Encryption (Using Customer-Provided Encryption Keys).

Assuming you have permission to read object tags (permission for the s3:GetObjectVersionTagging action), the response also returns the x-amz-tagging-count header that provides the count of number of tags associated with the object. You can use GetObjectTagging to retrieve the tag set associated with an object.

Permissions

You need the s3:GetObject permission for this operation. For more information, see Specifying Permissions in a Policy. If the object you request does not exist, the error Amazon S3 returns depends on whether you also have the s3:ListBucket permission.

Versioning

By default, the GET operation returns the current version of an object. To return a different version, use the versionId subresource.

If the current version of the object is a delete marker, Amazon S3 behaves as if the object was deleted and includes x-amz-delete-marker: true in the response.

For more information about versioning, see PutBucketVersioning.

Overriding Response Header Values

There are times when you want to override certain response header values in a GET response. For example, you might override the Content-Disposition response header value in your GET request.

You can override values for a set of response headers using the following query parameters. These response header values are sent only on a successful request, that is, when status code 200 OK is returned. The set of headers you can override using these parameters is a subset of the headers that Amazon S3 accepts when you create an object. The response headers that you can override for the GET response are Content-Type, Content-Language, Expires, Cache-Control, Content-Disposition, and Content-Encoding. To override these header values in the GET response, you use the following request parameters.

You must sign the request, either using an Authorization header or a presigned URL, when using these parameters. They cannot be used with an unsigned (anonymous) request.

Additional Considerations about Request Headers

If both of the If-Match and If-Unmodified-Since headers are present in the request as follows: If-Match condition evaluates to true, and; If-Unmodified-Since condition evaluates to false; then, S3 returns 200 OK and the data requested.

If both of the If-None-Match and If-Modified-Since headers are present in the request as follows: If-None-Match condition evaluates to false, and; If-Modified-Since condition evaluates to true; then, S3 returns 304 Not Modified response code.

For more information about conditional requests, see RFC 7232.

The following operations are related to GetObject:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectGET.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetObjectOutput' '480': description: NoSuchKey content: text/xml: schema: $ref: '#/components/schemas/NoSuchKey' parameters: - name: Bucket in: path required: true description: '

The bucket name containing the object.

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' schema: type: string - name: If-Match in: header required: false description: 'Return the object only if its entity tag (ETag) is the same as the one specified, otherwise return a 412 (precondition failed).' schema: type: string - name: If-Modified-Since in: header required: false description: 'Return the object only if it has been modified since the specified time, otherwise return a 304 (not modified).' schema: type: string format: date-time - name: If-None-Match in: header required: false description: 'Return the object only if its entity tag (ETag) is different from the one specified, otherwise return a 304 (not modified).' schema: type: string - name: If-Unmodified-Since in: header required: false description: 'Return the object only if it has not been modified since the specified time, otherwise return a 412 (precondition failed).' schema: type: string format: date-time - name: Key in: path required: true description: Key of the object to get. schema: type: string minLength: 1 - name: Range in: header required: false description: '

Downloads the specified range bytes of an object. For more information about the HTTP Range header, see https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.

Amazon S3 doesn''t support retrieving multiple ranges of data per GET request.

' schema: type: string - name: response-cache-control in: query required: false description: Sets the Cache-Control header of the response. schema: type: string - name: response-content-disposition in: query required: false description: Sets the Content-Disposition header of the response schema: type: string - name: response-content-encoding in: query required: false description: Sets the Content-Encoding header of the response. schema: type: string - name: response-content-language in: query required: false description: Sets the Content-Language header of the response. schema: type: string - name: response-content-type in: query required: false description: Sets the Content-Type header of the response. schema: type: string - name: response-expires in: query required: false description: Sets the Expires header of the response. schema: type: string format: date-time - name: versionId in: query required: false description: VersionId used to reference a specific version of the object. schema: type: string - name: x-amz-server-side-encryption-customer-algorithm in: header required: false description: 'Specifies the algorithm to use to when encrypting the object (for example, AES256).' schema: type: string - name: x-amz-server-side-encryption-customer-key in: header required: false description: Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header. schema: type: string format: password - name: x-amz-server-side-encryption-customer-key-MD5 in: header required: false description: Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error. schema: type: string - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' - name: partNumber in: query required: false description: 'Part number of the object being read. This is a positive integer between 1 and 10,000. Effectively performs a ''ranged'' GET request for the part specified. Useful for downloading just a part of an object.' schema: type: integer head: operationId: HeadObject description: '

The HEAD operation retrieves metadata from an object without returning the object itself. This operation is useful if you''re only interested in an object''s metadata. To use HEAD, you must have READ access to the object.

A HEAD request has the same options as a GET operation on an object. The response is identical to the GET response except that there is no response body.

If you encrypt an object by using server-side encryption with customer-provided encryption keys (SSE-C) when you store the object in Amazon S3, then when you retrieve the metadata from the object, you must use the following headers:

For more information about SSE-C, see Server-Side Encryption (Using Customer-Provided Encryption Keys).

Encryption request headers, like x-amz-server-side-encryption, should not be sent for GET requests if your object uses server-side encryption with CMKs stored in AWS KMS (SSE-KMS) or server-side encryption with Amazon S3–managed encryption keys (SSE-S3). If your object does use these types of keys, you’ll get an HTTP 400 BadRequest error.

Request headers are limited to 8 KB in size. For more information, see Common Request Headers.

Consider the following when using request headers:

For more information about conditional requests, see RFC 7232.

Permissions

You need the s3:GetObject permission for this operation. For more information, see Specifying Permissions in a Policy. If the object you request does not exist, the error Amazon S3 returns depends on whether you also have the s3:ListBucket permission.

The following operation is related to HeadObject:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectHEAD.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/HeadObjectOutput' '480': description: NoSuchKey content: text/xml: schema: $ref: '#/components/schemas/NoSuchKey' parameters: - name: Bucket in: path required: true description: The name of the bucket containing the object. schema: type: string - name: If-Match in: header required: false description: 'Return the object only if its entity tag (ETag) is the same as the one specified, otherwise return a 412 (precondition failed).' schema: type: string - name: If-Modified-Since in: header required: false description: 'Return the object only if it has been modified since the specified time, otherwise return a 304 (not modified).' schema: type: string format: date-time - name: If-None-Match in: header required: false description: 'Return the object only if its entity tag (ETag) is different from the one specified, otherwise return a 304 (not modified).' schema: type: string - name: If-Unmodified-Since in: header required: false description: 'Return the object only if it has not been modified since the specified time, otherwise return a 412 (precondition failed).' schema: type: string format: date-time - name: Key in: path required: true description: The object key. schema: type: string minLength: 1 - name: Range in: header required: false description: '

Downloads the specified range bytes of an object. For more information about the HTTP Range header, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.

Amazon S3 doesn''t support retrieving multiple ranges of data per GET request.

' schema: type: string - name: versionId in: query required: false description: VersionId used to reference a specific version of the object. schema: type: string - name: x-amz-server-side-encryption-customer-algorithm in: header required: false description: 'Specifies the algorithm to use to when encrypting the object (for example, AES256).' schema: type: string - name: x-amz-server-side-encryption-customer-key in: header required: false description: Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header. schema: type: string format: password - name: x-amz-server-side-encryption-customer-key-MD5 in: header required: false description: Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error. schema: type: string - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' - name: partNumber in: query required: false description: 'Part number of the object being read. This is a positive integer between 1 and 10,000. Effectively performs a ''ranged'' HEAD request for the part specified. Useful querying about the size of the part and the number of parts in this object.' schema: type: integer put: operationId: PutObject description: '

Adds an object to a bucket. You must have WRITE permissions on a bucket to add an object to it.

Amazon S3 never adds partial objects; if you receive a success response, Amazon S3 added the entire object to the bucket.

Amazon S3 is a distributed system. If it receives multiple write requests for the same object simultaneously, it overwrites all but the last object written. Amazon S3 does not provide object locking; if you need this, make sure to build it into your application layer or use versioning instead.

To ensure that data is not corrupted traversing the network, use the Content-MD5 header. When you use this header, Amazon S3 checks the object against the provided MD5 value and, if they do not match, returns an error. Additionally, you can calculate the MD5 while putting an object to Amazon S3 and compare the returned ETag to the calculated MD5 value.

The Content-MD5 header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information about Amazon S3 Object Lock, see Amazon S3 Object Lock Overview in the Amazon Simple Storage Service Developer Guide.

Server-side Encryption

You can optionally request server-side encryption. With server-side encryption, Amazon S3 encrypts your data as it writes it to disks in its data centers and decrypts the data when you access it. You have the option to provide your own encryption key or use AWS managed encryption keys. For more information, see Using Server-Side Encryption.

Access Control List (ACL)-Specific Request Headers

You can use headers to grant ACL- based permissions. By default, all objects are private. Only the owner has full access control. When adding a new object, you can grant permissions to individual AWS accounts or to predefined groups defined by Amazon S3. These permissions are then added to the ACL on the object. For more information, see Access Control List (ACL) Overview and Managing ACLs Using the REST API.

Storage Class Options

By default, Amazon S3 uses the STANDARD storage class to store newly created objects. The STANDARD storage class provides high durability and high availability. Depending on performance needs, you can specify a different storage class. For more information, see Storage Classes in the Amazon S3 Service Developer Guide.

Versioning

If you enable versioning for a bucket, Amazon S3 automatically generates a unique version ID for the object being stored. Amazon S3 returns this ID in the response. When you enable versioning for a bucket, if Amazon S3 receives multiple write requests for the same object simultaneously, it stores all of the objects.

For more information about versioning, see Adding Objects to Versioning Enabled Buckets. For information about returning the versioning state of a bucket, see GetBucketVersioning.

Related Resources

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectPUT.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/PutObjectOutput' parameters: - name: x-amz-acl in: header required: false description: 'The canned ACL to apply to the object. For more information, see Canned ACL.' schema: type: string enum: - private - public-read - public-read-write - authenticated-read - aws-exec-read - bucket-owner-read - bucket-owner-full-control - name: Bucket in: path required: true description: '

Bucket name to which the PUT operation was initiated.

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' schema: type: string - name: Cache-Control in: header required: false description: ' Can be used to specify caching behavior along the request/reply chain. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.' schema: type: string - name: Content-Disposition in: header required: false description: 'Specifies presentational information for the object. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1.' schema: type: string - name: Content-Encoding in: header required: false description: '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. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11.' schema: type: string - name: Content-Language in: header required: false description: The language the content is in. schema: type: string - name: Content-Length in: header required: false description: 'Size of the body in bytes. This parameter is useful when the size of the body cannot be determined automatically. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13.' schema: type: integer - name: Content-MD5 in: header required: false description: 'The base64-encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more information about REST request authentication, see REST Authentication.' schema: type: string - name: Content-Type in: header required: false description: 'A standard MIME type describing the format of the contents. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17.' schema: type: string - name: Expires in: header required: false description: 'The date and time at which the object is no longer cacheable. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21.' schema: type: string format: date-time - name: x-amz-grant-full-control in: header required: false description: 'Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.' schema: type: string - name: x-amz-grant-read in: header required: false description: Allows grantee to read the object data and its metadata. schema: type: string - name: x-amz-grant-read-acp in: header required: false description: Allows grantee to read the object ACL. schema: type: string - name: x-amz-grant-write-acp in: header required: false description: Allows grantee to write the ACL for the applicable object. schema: type: string - name: Key in: path required: true description: Object key for which the PUT operation was initiated. schema: type: string minLength: 1 - name: x-amz-server-side-encryption in: header required: false description: 'The server-side encryption algorithm used when storing this object in Amazon S3 (for example, AES256, aws:kms).' schema: type: string enum: - AES256 - 'aws:kms' - name: x-amz-storage-class in: header required: false description: 'If you don''t specify, S3 Standard is the default storage class. Amazon S3 supports other storage classes.' schema: type: string enum: - STANDARD - REDUCED_REDUNDANCY - STANDARD_IA - ONEZONE_IA - INTELLIGENT_TIERING - GLACIER - DEEP_ARCHIVE - name: x-amz-website-redirect-location in: header required: false description: '

If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata. For information about object metadata, see Object Key and Metadata.

In the following example, the request header sets the redirect to an object (anotherPage.html) in the same bucket:

x-amz-website-redirect-location: /anotherPage.html

In the following example, the request header sets the object redirect to another website:

x-amz-website-redirect-location: http://www.example.com/

For more information about website hosting in Amazon S3, see Hosting Websites on Amazon S3 and How to Configure Website Page Redirects.

' schema: type: string - name: x-amz-server-side-encryption-customer-algorithm in: header required: false description: 'Specifies the algorithm to use to when encrypting the object (for example, AES256).' schema: type: string - name: x-amz-server-side-encryption-customer-key in: header required: false description: Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header. schema: type: string format: password - name: x-amz-server-side-encryption-customer-key-MD5 in: header required: false description: Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error. schema: type: string - name: x-amz-server-side-encryption-aws-kms-key-id in: header required: false description: '

If x-amz-server-side-encryption is present and has the value of aws:kms, this header specifies the ID of the AWS Key Management Service (AWS KMS) symmetrical customer managed customer master key (CMK) that was used for the object.

If the value of x-amz-server-side-encryption is aws:kms, this header specifies the ID of the symmetric customer managed AWS KMS CMK that will be used for the object. If you specify x-amz-server-side-encryption:aws:kms, but do not provide x-amz-server-side-encryption-aws-kms-key-id, Amazon S3 uses the AWS managed CMK in AWS to protect the data.

' schema: type: string format: password - name: x-amz-server-side-encryption-context in: header required: false description: Specifies the AWS 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. schema: type: string format: password - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' - name: x-amz-tagging in: header required: false description: 'The tag-set for the object. The tag-set must be encoded as URL Query parameters. (For example, "Key1=Value1")' schema: type: string - name: x-amz-object-lock-mode in: header required: false description: The Object Lock mode that you want to apply to this object. schema: type: string enum: - GOVERNANCE - COMPLIANCE - name: x-amz-object-lock-retain-until-date in: header required: false description: The date and time when you want this object's Object Lock to expire. schema: type: string format: date-time - name: x-amz-object-lock-legal-hold in: header required: false description: 'Specifies whether a legal hold will be applied to this object. For more information about S3 Object Lock, see Object Lock.' schema: type: string enum: - 'ON' - 'OFF' requestBody: required: true content: text/xml: schema: type: object properties: Body: description: Object data. type: string x-amz-meta-: description: A map of metadata to store with the object in S3. type: object additionalProperties: $ref: '#/components/schemas/MetadataValue' '/{Bucket}/{Key}#tagging': delete: operationId: DeleteObjectTagging description: '

Removes the entire tag set from the specified object. For more information about managing object tags, see Object Tagging.

To use this operation, you must have permission to perform the s3:DeleteObjectTagging action.

To delete tags of a specific object version, add the versionId query parameter in the request. You will need permission for the s3:DeleteObjectVersionTagging action.

The following operations are related to DeleteBucketMetricsConfiguration:

' responses: '204': description: Success content: text/xml: schema: $ref: '#/components/schemas/DeleteObjectTaggingOutput' parameters: - name: Bucket in: path required: true description: '

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

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' schema: type: string - name: Key in: path required: true description: Name of the object key. schema: type: string minLength: 1 - name: versionId in: query required: false description: The versionId of the object that the tag-set will be removed from. schema: type: string - name: tagging in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' get: operationId: GetObjectTagging description: '

Returns the tag-set of an object. You send the GET request against the tagging subresource associated with the object.

To use this operation, you must have permission to perform the s3:GetObjectTagging action. By default, the GET operation returns information about current version of an object. For a versioned bucket, you can have multiple versions of an object in your bucket. To retrieve tags of any other version, use the versionId query parameter. You also need permission for the s3:GetObjectVersionTagging action.

By default, the bucket owner has this permission and can grant this permission to others.

For information about the Amazon S3 object tagging feature, see Object Tagging.

The following operation is related to GetObjectTagging:

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetObjectTaggingOutput' parameters: - name: Bucket in: path required: true description: '

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

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' schema: type: string - name: Key in: path required: true description: Object key for which to get the tagging information. schema: type: string minLength: 1 - name: versionId in: query required: false description: The versionId of the object for which to get the tagging information. schema: type: string - name: tagging in: query required: true schema: type: boolean enum: - true allowEmptyValue: true put: operationId: PutObjectTagging description: '

Sets the supplied tag-set to an object that already exists in a bucket.

A tag is a key-value pair. You can associate tags with an object by sending a PUT request against the tagging subresource that is associated with the object. You can retrieve tags by sending a GET request. For more information, see GetObjectTagging.

For tagging-related restrictions related to characters and encodings, see Tag Restrictions. Note that Amazon S3 limits the maximum number of tags to 10 tags per object.

To use this operation, you must have permission to perform the s3:PutObjectTagging action. By default, the bucket owner has this permission and can grant this permission to others.

To put tags of any other version, use the versionId query parameter. You also need permission for the s3:PutObjectVersionTagging action.

For information about the Amazon S3 object tagging feature, see Object Tagging.

Special Errors

Related Resources

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/PutObjectTaggingOutput' parameters: - name: Bucket in: path required: true description: '

The bucket name containing the object.

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' schema: type: string - name: Key in: path required: true description: Name of the object key. schema: type: string minLength: 1 - name: versionId in: query required: false description: The versionId of the object that the tag-set will be added to. schema: type: string - name: Content-MD5 in: header required: false description: The MD5 hash for the request body. schema: type: string - name: tagging in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object required: - Tagging properties: Tagging: description: Container for TagSet elements. type: object properties: TagSet: $ref: '#/components/schemas/TagSet' description: A collection for a set of tags '/{Bucket}#delete': post: operationId: DeleteObjects description: '

This operation enables you to delete multiple objects from a bucket using a single HTTP request. If you know the object keys that you want to delete, then this operation provides a suitable alternative to sending individual delete requests, reducing per-request overhead.

The request contains a list of up to 1000 keys that you want to delete. In the XML, you provide the object key names, and optionally, version IDs if you want to delete a specific version of the object from a versioning-enabled bucket. For each key, Amazon S3 performs a delete operation and returns the result of that delete, success, or failure, in the response. Note that if the object specified in the request is not found, Amazon S3 returns the result as deleted.

The operation supports two modes for the response: verbose and quiet. By default, the operation uses verbose mode in which the response includes the result of deletion of each key in your request. In quiet mode the response includes only keys where the delete operation encountered an error. For a successful deletion, the operation does not return any information about the delete in the response body.

When performing this operation on an MFA Delete enabled bucket, that attempts to delete any versioned objects, you must include an MFA token. If you do not provide one, the entire request will fail, even if there are non-versioned objects you are trying to delete. If you provide an invalid token, whether there are versioned keys in the request or not, the entire Multi-Object Delete request will fail. For information about MFA Delete, see MFA Delete.

Finally, the Content-MD5 header is required for all Multi-Object Delete requests. Amazon S3 uses the header value to ensure that your request body has not been altered in transit.

The following operations are related to DeleteObjects:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/multiobjectdeleteapi.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/DeleteObjectsOutput' parameters: - name: Bucket in: path required: true description: '

The bucket name containing the objects to delete.

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' schema: type: string - name: x-amz-mfa in: header required: false description: 'The concatenation of the authentication device''s serial number, a space, and the value that is displayed on your authentication device. Required to permanently delete a versioned object if versioning is configured with MFA delete enabled.' schema: type: string - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' - name: x-amz-bypass-governance-retention in: header required: false description: Specifies whether you want to delete this object even if it has a Governance-type Object Lock in place. You must have sufficient permissions to perform this operation. schema: type: boolean - name: delete in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object required: - Delete properties: Delete: description: Container for the objects to delete. type: object properties: Objects: xml: name: Object $ref: '#/components/schemas/ObjectIdentifierList' description: The objects to delete. Quiet: $ref: '#/components/schemas/Quiet' description: 'Element to enable quiet mode for the request. When you add this element, you must set its value to true.' parameters: - $ref: '#/components/parameters/x-amz-security-token' '/{Bucket}#publicAccessBlock': delete: operationId: DeletePublicAccessBlock description: '

Removes the PublicAccessBlock configuration for an Amazon S3 bucket. To use this operation, you must have the s3:PutBucketPublicAccessBlock permission. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

The following operations are related to DeletePublicAccessBlock:

' responses: '204': description: Success parameters: - name: Bucket in: path required: true description: 'The Amazon S3 bucket whose PublicAccessBlock configuration you want to delete. ' schema: type: string - name: publicAccessBlock in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' get: operationId: GetPublicAccessBlock description: '

Retrieves the PublicAccessBlock configuration for an Amazon S3 bucket. To use this operation, you must have the s3:GetBucketPublicAccessBlock permission. For more information about Amazon S3 permissions, see Specifying Permissions in a Policy.

When Amazon S3 evaluates the PublicAccessBlock configuration for a bucket or an object, it checks the PublicAccessBlock configuration for both the bucket (or the bucket that contains the object) and the bucket owner''s account. If the PublicAccessBlock settings are different between the bucket and the account, Amazon S3 uses the most restrictive combination of the bucket-level and account-level settings.

For more information about when Amazon S3 considers a bucket or an object public, see The Meaning of "Public".

The following operations are related to GetPublicAccessBlock:

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetPublicAccessBlockOutput' parameters: - name: Bucket in: path required: true description: 'The name of the Amazon S3 bucket whose PublicAccessBlock configuration you want to retrieve. ' schema: type: string - name: publicAccessBlock in: query required: true schema: type: boolean enum: - true allowEmptyValue: true put: operationId: PutPublicAccessBlock description: '

Creates or modifies the PublicAccessBlock configuration for an Amazon S3 bucket. To use this operation, you must have the s3:PutBucketPublicAccessBlock permission. For more information about Amazon S3 permissions, see Specifying Permissions in a Policy.

When Amazon S3 evaluates the PublicAccessBlock configuration for a bucket or an object, it checks the PublicAccessBlock configuration for both the bucket (or the bucket that contains the object) and the bucket owner''s account. If the PublicAccessBlock configurations are different between the bucket and the account, Amazon S3 uses the most restrictive combination of the bucket-level and account-level settings.

For more information about when Amazon S3 considers a bucket or an object public, see The Meaning of "Public".

Related Resources

' responses: '200': description: Success parameters: - name: Bucket in: path required: true description: The name of the Amazon S3 bucket whose PublicAccessBlock configuration you want to set. schema: type: string - name: Content-MD5 in: header required: false description: 'The MD5 hash of the PutPublicAccessBlock request body. ' schema: type: string - name: publicAccessBlock in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object required: - PublicAccessBlockConfiguration properties: PublicAccessBlockConfiguration: description: 'The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket. You can enable the configuration options in any combination. For more information about when Amazon S3 considers a bucket or object public, see The Meaning of "Public" in the Amazon Simple Storage Service Developer Guide. ' type: object properties: BlockPublicAcls: $ref: '#/components/schemas/Setting' description: '

Specifies whether Amazon S3 should block public access control lists (ACLs) for this bucket and objects in this bucket. Setting this element to TRUE causes the following behavior:

Enabling this setting doesn''t affect existing policies or ACLs.

' IgnorePublicAcls: $ref: '#/components/schemas/Setting' description:

Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket. Setting this element to TRUE causes Amazon S3 to ignore all public ACLs on this bucket and objects in this bucket.

Enabling this setting doesn't affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set.

BlockPublicPolicy: $ref: '#/components/schemas/Setting' description:

Specifies whether Amazon S3 should block public bucket policies for this bucket. Setting this element to TRUE causes Amazon S3 to reject calls to PUT Bucket policy if the specified bucket policy allows public access.

Enabling this setting doesn't affect existing bucket policies.

RestrictPublicBuckets: $ref: '#/components/schemas/Setting' description: '

Specifies whether Amazon S3 should restrict public bucket policies for this bucket. Setting this element to TRUE restricts access to this bucket to only AWS services and authorized users within this account if the bucket has a public policy.

Enabling this setting doesn''t affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked.

' '/{Bucket}#accelerate': get: operationId: GetBucketAccelerateConfiguration description: '

This implementation of the GET operation uses the accelerate subresource to return the Transfer Acceleration state of a bucket, which is either Enabled or Suspended. Amazon S3 Transfer Acceleration is a bucket-level feature that enables you to perform faster data transfers to and from Amazon S3.

To use this operation, you must have permission to perform the s3:GetAccelerateConfiguration action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to your Amazon S3 Resources in the Amazon Simple Storage Service Developer Guide.

You set the Transfer Acceleration state of an existing bucket to Enabled or Suspended by using the PutBucketAccelerateConfiguration operation.

A GET accelerate request does not return a state value for a bucket that has no transfer acceleration state. A bucket has no Transfer Acceleration state if a state has never been set on the bucket.

For more information about transfer acceleration, see Transfer Acceleration in the Amazon Simple Storage Service Developer Guide.

Related Resources

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetBucketAccelerateConfigurationOutput' parameters: - name: Bucket in: path required: true description: Name of the bucket for which the accelerate configuration is retrieved. schema: type: string - name: accelerate in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' put: operationId: PutBucketAccelerateConfiguration description: '

Sets the accelerate configuration of an existing bucket. Amazon S3 Transfer Acceleration is a bucket-level feature that enables you to perform faster data transfers to Amazon S3.

To use this operation, you must have permission to perform the s3:PutAccelerateConfiguration action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

The Transfer Acceleration state of a bucket can be set to one of the following two values:

The GetBucketAccelerateConfiguration operation returns the transfer acceleration state of a bucket.

After setting the Transfer Acceleration state of a bucket to Enabled, it might take up to thirty minutes before the data transfer rates to the bucket increase.

The name of the bucket used for Transfer Acceleration must be DNS-compliant and must not contain periods (".").

For more information about transfer acceleration, see Transfer Acceleration.

The following operations are related to PutBucketAccelerateConfiguration:

' responses: '200': description: Success parameters: - name: Bucket in: path required: true description: Name of the bucket for which the accelerate configuration is set. schema: type: string - name: accelerate in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object required: - AccelerateConfiguration properties: AccelerateConfiguration: description: 'Configures the transfer acceleration state for an Amazon S3 bucket. For more information, see Amazon S3 Transfer Acceleration in the Amazon Simple Storage Service Developer Guide.' type: object properties: Status: $ref: '#/components/schemas/BucketAccelerateStatus' description: Specifies the transfer acceleration status of the bucket. '/{Bucket}#acl': get: operationId: GetBucketAcl description: '

This implementation of the GET operation uses the acl subresource to return the access control list (ACL) of a bucket. To use GET to return the ACL of the bucket, you must have READ_ACP access to the bucket. If READ_ACP permission is granted to the anonymous user, you can return the ACL of the bucket without using an authorization header.

Related Resources

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETacl.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetBucketAclOutput' parameters: - name: Bucket in: path required: true description: Specifies the S3 bucket whose ACL is being requested. schema: type: string - name: acl in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' put: operationId: PutBucketAcl description: '

Sets the permissions on an existing bucket using access control lists (ACL). For more information, see Using ACLs. To set the ACL of a bucket, you must have WRITE_ACP permission.

You can use one of the following two ways to set a bucket''s permissions:

You cannot specify access permission using both the body and the request headers.

Depending on your application needs, you may choose to set the ACL on a bucket using either the request body or the headers. For example, if you have an existing application that updates a bucket ACL using the request body, then you can continue to use that approach.

Access Permissions

You can set access permissions using one of the following methods:

You can use either a canned ACL or specify access permissions explicitly. You cannot do both.

Grantee Values

You can specify the person (grantee) to whom you''re assigning access rights (using request elements) in the following ways:

Related Resources

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTacl.html' responses: '200': description: Success parameters: - name: x-amz-acl in: header required: false description: The canned ACL to apply to the bucket. schema: type: string enum: - private - public-read - public-read-write - authenticated-read - name: Bucket in: path required: true description: The bucket to which to apply the ACL. schema: type: string - name: Content-MD5 in: header required: false description: 'The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864. ' schema: type: string - name: x-amz-grant-full-control in: header required: false description: 'Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.' schema: type: string - name: x-amz-grant-read in: header required: false description: Allows grantee to list the objects in the bucket. schema: type: string - name: x-amz-grant-read-acp in: header required: false description: Allows grantee to read the bucket ACL. schema: type: string - name: x-amz-grant-write in: header required: false description: 'Allows grantee to create, overwrite, and delete any object in the bucket.' schema: type: string - name: x-amz-grant-write-acp in: header required: false description: Allows grantee to write the ACL for the applicable bucket. schema: type: string - name: acl in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object properties: AccessControlPolicy: description: Contains the elements that set the ACL permissions for an object per grantee. type: object properties: Grants: xml: name: AccessControlList $ref: '#/components/schemas/Grants' description: A list of grants. Owner: $ref: '#/components/schemas/Owner' description: Container for the bucket owner's display name and ID. '/{Bucket}#lifecycle&deprecated!': get: deprecated: true operationId: GetBucketLifecycle description: '

For an updated version of this API, see GetBucketLifecycleConfiguration. If you configured a bucket lifecycle using the filter element, you should see the updated version of this topic. This topic is provided for backward compatibility.

Returns the lifecycle configuration information set on the bucket. For information about lifecycle configuration, see Object Lifecycle Management.

To use this operation, you must have permission to perform the s3:GetLifecycleConfiguration action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

GetBucketLifecycle has the following special error:

The following operations are related to GetBucketLifecycle:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETlifecycle.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetBucketLifecycleOutput' parameters: - name: Bucket in: path required: true description: The name of the bucket for which to get the lifecycle information. schema: type: string - name: lifecycle in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' put: deprecated: true operationId: PutBucketLifecycle description: '

For an updated version of this API, see PutBucketLifecycleConfiguration. This version has been deprecated. Existing lifecycle configurations will work. For new lifecycle configurations, use the updated API.

Creates a new lifecycle configuration for the bucket or replaces an existing lifecycle configuration. For information about lifecycle configuration, see Object Lifecycle Management in the Amazon Simple Storage Service Developer Guide.

By default, all Amazon S3 resources, including buckets, objects, and related subresources (for example, lifecycle configuration and website configuration) are private. Only the resource owner, the AWS account that created the resource, can access it. The resource owner can optionally grant access permissions to others by writing an access policy. For this operation, users must get the s3:PutLifecycleConfiguration permission.

You can also explicitly deny permissions. Explicit denial also supersedes any other permissions. If you want to prevent users or accounts from removing or deleting objects from your bucket, you must deny them permissions for the following actions:

For more information about permissions, see Managing Access Permissions to your Amazon S3 Resources in the Amazon Simple Storage Service Developer Guide.

For more examples of transitioning objects to storage classes such as STANDARD_IA or ONEZONE_IA, see Examples of Lifecycle Configuration.

Related Resources

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTlifecycle.html' responses: '200': description: Success parameters: - name: Bucket in: path required: true description:

schema: type: string - name: Content-MD5 in: header required: false description:

schema: type: string - name: lifecycle in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object properties: LifecycleConfiguration: description: Container for lifecycle rules. You can add as many as 1000 rules. type: object properties: Rules: xml: name: Rule $ref: '#/components/schemas/Rules' description: 'Specifies lifecycle configuration rules for an Amazon S3 bucket. ' '/{Bucket}#location': get: operationId: GetBucketLocation description: '

Returns the Region the bucket resides in. You set the bucket''s Region using the LocationConstraint request parameter in a CreateBucket request. For more information, see CreateBucket.

To use this implementation of the operation, you must be the bucket owner.

The following operations are related to GetBucketLocation:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETlocation.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetBucketLocationOutput' parameters: - name: Bucket in: path required: true description: The name of the bucket for which to get the location. schema: type: string - name: location in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' '/{Bucket}#logging': get: operationId: GetBucketLogging description: '

Returns the logging status of a bucket and the permissions users have to view and modify that status. To use GET, you must be the bucket owner.

The following operations are related to GetBucketLogging:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETlogging.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetBucketLoggingOutput' parameters: - name: Bucket in: path required: true description: The bucket name for which to get the logging information. schema: type: string - name: logging in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' put: operationId: PutBucketLogging description: '

Set the logging parameters for a bucket and to specify permissions for who can view and modify the logging parameters. All logs are saved to buckets in the same AWS Region as the source bucket. To set the logging status of a bucket, you must be the bucket owner.

The bucket owner is automatically granted FULL_CONTROL to all logs. You use the Grantee request element to grant access to other people. The Permissions request element specifies the kind of access the grantee has to the logs.

Grantee Values

You can specify the person (grantee) to whom you''re assigning access rights (using request elements) in the following ways:

To enable logging, you use LoggingEnabled and its children request elements. To disable logging, you use an empty BucketLoggingStatus request element:

<BucketLoggingStatus xmlns="http://doc.s3.amazonaws.com/2006-03-01" />

For more information about server access logging, see Server Access Logging.

For more information about creating a bucket, see CreateBucket. For more information about returning the logging status of a bucket, see GetBucketLogging.

The following operations are related to PutBucketLogging:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTlogging.html' responses: '200': description: Success parameters: - name: Bucket in: path required: true description: The name of the bucket for which to set the logging parameters. schema: type: string - name: Content-MD5 in: header required: false description: The MD5 hash of the PutBucketLogging request body. schema: type: string - name: logging in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object required: - BucketLoggingStatus properties: BucketLoggingStatus: description: Container for logging status information. type: object properties: LoggingEnabled: $ref: '#/components/schemas/LoggingEnabled' '/{Bucket}#notification': get: operationId: GetBucketNotificationConfiguration description: '

Returns the notification configuration of a bucket.

If notifications are not enabled on the bucket, the operation returns an empty NotificationConfiguration element.

By default, you must be the bucket owner to read the notification configuration of a bucket. However, the bucket owner can use a bucket policy to grant permission to other users to read this configuration with the s3:GetBucketNotification permission.

For more information about setting and reading the notification configuration on a bucket, see Setting Up Notification of Bucket Events. For more information about bucket policies, see Using Bucket Policies.

The following operation is related to GetBucketNotification:

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/NotificationConfiguration' parameters: - name: Bucket in: path required: true description: Name of the bucket for which to get the notification configuration. schema: type: string - name: notification in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' put: operationId: PutBucketNotificationConfiguration description: '

Enables notifications of specified events for a bucket. For more information about event notifications, see Configuring Event Notifications.

Using this API, you can replace an existing notification configuration. The configuration is an XML file that defines the event types that you want Amazon S3 to publish and the destination where you want Amazon S3 to publish an event notification when it detects an event of the specified type.

By default, your bucket has no event notifications configured. That is, the notification configuration will be an empty NotificationConfiguration.

<NotificationConfiguration>

</NotificationConfiguration>

This operation replaces the existing notification configuration with the configuration you include in the request body.

After Amazon S3 receives this request, it first verifies that any Amazon Simple Notification Service (Amazon SNS) or Amazon Simple Queue Service (Amazon SQS) destination exists, and that the bucket owner has permission to publish to it by sending a test notification. In the case of AWS Lambda destinations, Amazon S3 verifies that the Lambda function permissions grant Amazon S3 permission to invoke the function from the Amazon S3 bucket. For more information, see Configuring Notifications for Amazon S3 Events.

You can disable notifications by adding the empty NotificationConfiguration element.

By default, only the bucket owner can configure notifications on a bucket. However, bucket owners can use a bucket policy to grant permission to other users to set this configuration with s3:PutBucketNotification permission.

The PUT notification is an atomic operation. For example, suppose your notification configuration includes SNS topic, SQS queue, and Lambda function configurations. When you send a PUT request with this configuration, Amazon S3 sends test messages to your SNS topic. If the message fails, the entire PUT operation will fail, and Amazon S3 will not add the configuration to your bucket.

Responses

If the configuration in the request body includes only one TopicConfiguration specifying only the s3:ReducedRedundancyLostObject event type, the response will also include the x-amz-sns-test-message-id header containing the message ID of the test notification sent to the topic.

The following operation is related to PutBucketNotificationConfiguration:

' responses: '200': description: Success parameters: - name: Bucket in: path required: true description: The name of the bucket. schema: type: string - name: notification in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object required: - NotificationConfiguration properties: NotificationConfiguration: description: 'A container for specifying the notification configuration of the bucket. If this element is empty, notifications are turned off for the bucket.' type: object properties: TopicConfigurations: xml: name: TopicConfiguration $ref: '#/components/schemas/TopicConfigurationList' description: The topic to which notifications are sent and the events for which notifications are generated. QueueConfigurations: xml: name: QueueConfiguration $ref: '#/components/schemas/QueueConfigurationList' description: The Amazon Simple Queue Service queues to publish messages to and the events for which to publish messages. LambdaFunctionConfigurations: xml: name: CloudFunctionConfiguration $ref: '#/components/schemas/LambdaFunctionConfigurationList' description: Describes the AWS Lambda functions to invoke and the events for which to invoke them. '/{Bucket}#notification&deprecated!': get: deprecated: true operationId: GetBucketNotification description: ' No longer used, see GetBucketNotificationConfiguration.' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETnotification.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/NotificationConfigurationDeprecated' parameters: - name: Bucket in: path required: true description: Name of the bucket for which to get the notification configuration. schema: type: string - name: notification in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' put: deprecated: true operationId: PutBucketNotification description: ' No longer used, see the PutBucketNotificationConfiguration operation.' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTnotification.html' responses: '200': description: Success parameters: - name: Bucket in: path required: true description: The name of the bucket. schema: type: string - name: Content-MD5 in: header required: false description: The MD5 hash of the PutPublicAccessBlock request body. schema: type: string - name: notification in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object required: - NotificationConfiguration properties: NotificationConfiguration: description: The container for the configuration. type: object example: QueueConfiguration: Event: 's3:ObjectCreated:Put' Events: - 's3:ObjectCreated:Put' Id: MDQ2OGQ4NDEtOTBmNi00YTM4LTk0NzYtZDIwN2I3NWQ1NjIx Queue: 'arn:aws:sqs:us-east-1:acct-id:S3ObjectCreatedEventQueue' TopicConfiguration: Event: 's3:ObjectCreated:Copy' Events: - 's3:ObjectCreated:Copy' Id: YTVkMWEzZGUtNTY1NS00ZmE2LWJjYjktMmRlY2QwODFkNTJi Topic: 'arn:aws:sns:us-east-1:acct-id:S3ObjectCreatedEventTopic' properties: TopicConfiguration: $ref: '#/components/schemas/TopicConfigurationDeprecated' description: 'This data type is deprecated. A container for specifying the configuration for publication of messages to an Amazon Simple Notification Service (Amazon SNS) topic when Amazon S3 detects specified events. ' QueueConfiguration: $ref: '#/components/schemas/QueueConfigurationDeprecated' description: 'This data type is deprecated. This data type specifies the configuration for publishing messages to an Amazon Simple Queue Service (Amazon SQS) queue when Amazon S3 detects specified events. ' CloudFunctionConfiguration: $ref: '#/components/schemas/CloudFunctionConfiguration' description: Container for specifying the AWS Lambda notification configuration. '/{Bucket}#policyStatus': get: operationId: GetBucketPolicyStatus description: '

Retrieves the policy status for an Amazon S3 bucket, indicating whether the bucket is public. In order to use this operation, you must have the s3:GetBucketPolicyStatus permission. For more information about Amazon S3 permissions, see Specifying Permissions in a Policy.

For more information about when Amazon S3 considers a bucket public, see The Meaning of "Public".

The following operations are related to GetBucketPolicyStatus:

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetBucketPolicyStatusOutput' parameters: - name: Bucket in: path required: true description: The name of the Amazon S3 bucket whose policy status you want to retrieve. schema: type: string - name: policyStatus in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' '/{Bucket}#requestPayment': get: operationId: GetBucketRequestPayment description: '

Returns the request payment configuration of a bucket. To use this version of the operation, you must be the bucket owner. For more information, see Requester Pays Buckets.

The following operations are related to GetBucketRequestPayment:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTrequestPaymentGET.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetBucketRequestPaymentOutput' parameters: - name: Bucket in: path required: true description: The name of the bucket for which to get the payment request configuration schema: type: string - name: requestPayment in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' put: operationId: PutBucketRequestPayment description: '

Sets the request payment configuration for a bucket. By default, the bucket owner pays for downloads from the bucket. This configuration parameter enables the bucket owner (only) to specify that the person requesting the download will be charged for the download. For more information, see Requester Pays Buckets.

The following operations are related to PutBucketRequestPayment:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTrequestPaymentPUT.html' responses: '200': description: Success parameters: - name: Bucket in: path required: true description: The bucket name. schema: type: string - name: Content-MD5 in: header required: false description: '>The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.' schema: type: string - name: requestPayment in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object required: - RequestPaymentConfiguration properties: RequestPaymentConfiguration: description: Container for Payer. type: object properties: Payer: $ref: '#/components/schemas/Payer' description: Specifies who pays for the download and request fees. '/{Bucket}#versioning': get: operationId: GetBucketVersioning description: '

Returns the versioning state of a bucket.

To retrieve the versioning state of a bucket, you must be the bucket owner.

This implementation also returns the MFA Delete status of the versioning state. If the MFA Delete status is enabled, the bucket owner must use an authentication device to change the versioning state of the bucket.

The following operations are related to GetBucketVersioning:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETversioningStatus.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetBucketVersioningOutput' parameters: - name: Bucket in: path required: true description: The name of the bucket for which to get the versioning information. schema: type: string - name: versioning in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' put: operationId: PutBucketVersioning description: '

Sets the versioning state of an existing bucket. To set the versioning state, you must be the bucket owner.

You can set the versioning state with one of the following values:

Enabled—Enables versioning for the objects in the bucket. All objects added to the bucket receive a unique version ID.

Suspended—Disables versioning for the objects in the bucket. All objects added to the bucket receive the version ID null.

If the versioning state has never been set on a bucket, it has no versioning state; a GetBucketVersioning request does not return a versioning state value.

If the bucket owner enables MFA Delete in the bucket versioning configuration, the bucket owner must include the x-amz-mfa request header and the Status and the MfaDelete request elements in a request to set the versioning state of the bucket.

If you have an object expiration lifecycle policy in your non-versioned bucket and you want to maintain the same permanent delete behavior when you enable versioning, you must add a noncurrent expiration policy. The noncurrent expiration lifecycle policy will manage the deletes of the noncurrent object versions in the version-enabled bucket. (A version-enabled bucket maintains one current and zero or more noncurrent object versions.) For more information, see Lifecycle and Versioning.

Related Resources

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTVersioningStatus.html' responses: '200': description: Success parameters: - name: Bucket in: path required: true description: The bucket name. schema: type: string - name: Content-MD5 in: header required: false description: '>The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.' schema: type: string - name: x-amz-mfa in: header required: false description: 'The concatenation of the authentication device''s serial number, a space, and the value that is displayed on your authentication device.' schema: type: string - name: versioning in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object required: - VersioningConfiguration properties: VersioningConfiguration: description: 'Describes the versioning state of an Amazon S3 bucket. For more information, see PUT Bucket versioning in the Amazon Simple Storage Service API Reference.' type: object properties: MFADelete: xml: name: MfaDelete $ref: '#/components/schemas/MFADelete' description: 'Specifies whether MFA delete is enabled in the bucket versioning configuration. This element is only returned if the bucket has been configured with MFA delete. If the bucket has never been so configured, this element is not returned.' Status: $ref: '#/components/schemas/BucketVersioningStatus' description: The versioning state of the bucket. '/{Bucket}/{Key}#acl': get: operationId: GetObjectAcl description: '

Returns the access control list (ACL) of an object. To use this operation, you must have READ_ACP access to the object.

Versioning

By default, GET returns ACL information about the current version of an object. To return ACL information about a different version, use the versionId subresource.

The following operations are related to GetObjectAcl:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectGETacl.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetObjectAclOutput' '480': description: NoSuchKey content: text/xml: schema: $ref: '#/components/schemas/NoSuchKey' parameters: - name: Bucket in: path required: true description: '

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

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' schema: type: string - name: Key in: path required: true description: The key of the object for which to get the ACL information. schema: type: string minLength: 1 - name: versionId in: query required: false description: VersionId used to reference a specific version of the object. schema: type: string - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' - name: acl in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' put: operationId: PutObjectAcl description: '

Uses the acl subresource to set the access control list (ACL) permissions for an object that already exists in a bucket. You must have WRITE_ACP permission to set the ACL of an object.

Depending on your application needs, you can choose to set the ACL on an object using either the request body or the headers. For example, if you have an existing application that updates a bucket ACL using the request body, you can continue to use that approach. For more information, see Access Control List (ACL) Overview in the Amazon S3 Developer Guide.

Access Permissions

You can set access permissions using one of the following methods:

You can use either a canned ACL or specify access permissions explicitly. You cannot do both.

Grantee Values

You can specify the person (grantee) to whom you''re assigning access rights (using request elements) in the following ways:

Versioning

The ACL of an object is set at the object version level. By default, PUT sets the ACL of the current version of an object. To set the ACL of a different version, use the versionId subresource.

Related Resources

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectPUTacl.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/PutObjectAclOutput' '480': description: NoSuchKey content: text/xml: schema: $ref: '#/components/schemas/NoSuchKey' parameters: - name: x-amz-acl in: header required: false description: 'The canned ACL to apply to the object. For more information, see Canned ACL.' schema: type: string enum: - private - public-read - public-read-write - authenticated-read - aws-exec-read - bucket-owner-read - bucket-owner-full-control - name: Bucket in: path required: true description: '

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

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' schema: type: string - name: Content-MD5 in: header required: false description: 'The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.> ' schema: type: string - name: x-amz-grant-full-control in: header required: false description: 'Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.' schema: type: string - name: x-amz-grant-read in: header required: false description: Allows grantee to list the objects in the bucket. schema: type: string - name: x-amz-grant-read-acp in: header required: false description: Allows grantee to read the bucket ACL. schema: type: string - name: x-amz-grant-write in: header required: false description: 'Allows grantee to create, overwrite, and delete any object in the bucket.' schema: type: string - name: x-amz-grant-write-acp in: header required: false description: Allows grantee to write the ACL for the applicable bucket. schema: type: string - name: Key in: path required: true description: Key for which the PUT operation was initiated. schema: type: string minLength: 1 - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' - name: versionId in: query required: false description: VersionId used to reference a specific version of the object. schema: type: string - name: acl in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object properties: AccessControlPolicy: description: Contains the elements that set the ACL permissions for an object per grantee. type: object properties: Grants: xml: name: AccessControlList $ref: '#/components/schemas/Grants' description: A list of grants. Owner: $ref: '#/components/schemas/Owner' description: Container for the bucket owner's display name and ID. '/{Bucket}/{Key}#legal-hold': get: operationId: GetObjectLegalHold description: 'Gets an object''s current Legal Hold status. For more information, see Locking Objects.' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetObjectLegalHoldOutput' parameters: - name: Bucket in: path required: true description: '

The bucket name containing the object whose Legal Hold status you want to retrieve.

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' schema: type: string - name: Key in: path required: true description: The key name for the object whose Legal Hold status you want to retrieve. schema: type: string minLength: 1 - name: versionId in: query required: false description: The version ID of the object whose Legal Hold status you want to retrieve. schema: type: string - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' - name: legal-hold in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' put: operationId: PutObjectLegalHold description: '

Applies a Legal Hold configuration to the specified object.

Related Resources

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/PutObjectLegalHoldOutput' parameters: - name: Bucket in: path required: true description: '

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

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' schema: type: string - name: Key in: path required: true description: The key name for the object that you want to place a Legal Hold on. schema: type: string minLength: 1 - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' - name: versionId in: query required: false description: The version ID of the object that you want to place a Legal Hold on. schema: type: string - name: Content-MD5 in: header required: false description: The MD5 hash for the request body. schema: type: string - name: legal-hold in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object properties: LegalHold: description: A Legal Hold configuration for an object. type: object properties: Status: $ref: '#/components/schemas/ObjectLockLegalHoldStatus' description: Indicates whether the specified object has a Legal Hold in place. '/{Bucket}#object-lock': get: operationId: GetObjectLockConfiguration description: 'Gets the Object Lock configuration for a bucket. The rule specified in the Object Lock configuration will be applied by default to every new object placed in the specified bucket. For more information, see Locking Objects.' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetObjectLockConfigurationOutput' parameters: - name: Bucket in: path required: true description: The bucket whose Object Lock configuration you want to retrieve. schema: type: string - name: object-lock in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' put: operationId: PutObjectLockConfiguration description: '

Places an Object Lock configuration on the specified bucket. The rule specified in the Object Lock configuration will be applied by default to every new object placed in the specified bucket.

DefaultRetention requires either Days or Years. You can''t specify both at the same time.

Related Resources

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/PutObjectLockConfigurationOutput' parameters: - name: Bucket in: path required: true description: The bucket whose Object Lock configuration you want to create or replace. schema: type: string - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' - name: x-amz-bucket-object-lock-token in: header required: false description: A token to allow Object Lock to be enabled for an existing bucket. schema: type: string - name: Content-MD5 in: header required: false description: The MD5 hash for the request body. schema: type: string - name: object-lock in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object properties: ObjectLockConfiguration: description: The container element for Object Lock configuration parameters. type: object properties: ObjectLockEnabled: $ref: '#/components/schemas/ObjectLockEnabled' description: Indicates whether this bucket has an Object Lock configuration enabled. Rule: $ref: '#/components/schemas/ObjectLockRule' description: The Object Lock rule in place for the specified object. '/{Bucket}/{Key}#retention': get: operationId: GetObjectRetention description: 'Retrieves an object''s retention settings. For more information, see Locking Objects.' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetObjectRetentionOutput' parameters: - name: Bucket in: path required: true description: '

The bucket name containing the object whose retention settings you want to retrieve.

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' schema: type: string - name: Key in: path required: true description: The key name for the object whose retention settings you want to retrieve. schema: type: string minLength: 1 - name: versionId in: query required: false description: The version ID for the object whose retention settings you want to retrieve. schema: type: string - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' - name: retention in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' put: operationId: PutObjectRetention description: '

Places an Object Retention configuration on an object.

Related Resources

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/PutObjectRetentionOutput' parameters: - name: Bucket in: path required: true description: '

The bucket name that contains the object you want to apply this Object Retention configuration to.

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' schema: type: string - name: Key in: path required: true description: The key name for the object that you want to apply this Object Retention configuration to. schema: type: string minLength: 1 - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' - name: versionId in: query required: false description: The version ID for the object that you want to apply this Object Retention configuration to. schema: type: string - name: x-amz-bypass-governance-retention in: header required: false description: Indicates whether this operation should bypass Governance-mode restrictions. schema: type: boolean - name: Content-MD5 in: header required: false description: The MD5 hash for the request body. schema: type: string - name: retention in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object properties: Retention: description: A Retention configuration for an object. type: object properties: Mode: $ref: '#/components/schemas/ObjectLockRetentionMode' description: Indicates the Retention mode for the specified object. RetainUntilDate: $ref: '#/components/schemas/Date' description: The date on which this Object Lock Retention will expire. '/{Bucket}/{Key}#torrent': get: operationId: GetObjectTorrent description: '

Return torrent files from a bucket. BitTorrent can save you bandwidth when you''re distributing large files. For more information about BitTorrent, see Amazon S3 Torrent.

You can get torrent only for objects that are less than 5 GB in size and that are not encrypted using server-side encryption with customer-provided encryption key.

To use GET, you must have READ access to the object.

The following operation is related to GetObjectTorrent:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectGETtorrent.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetObjectTorrentOutput' parameters: - name: Bucket in: path required: true description: The name of the bucket containing the object for which to get the torrent files. schema: type: string - name: Key in: path required: true description: The object key for which to get the information. schema: type: string minLength: 1 - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' - name: torrent in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' '/{Bucket}#analytics': get: operationId: ListBucketAnalyticsConfigurations description: '

Lists the analytics configurations for the bucket. You can have up to 1,000 analytics configurations per bucket.

This operation supports list pagination and does not return more than 100 configurations at a time. You should always check the IsTruncated element in the response. If there are no more configurations to list, IsTruncated is set to false. If there are more configurations to list, IsTruncated is set to true, and there will be a value in NextContinuationToken. You use the NextContinuationToken value to continue the pagination of the list by passing the value in continuation-token in the request to GET the next page.

To use this operation, you must have permissions to perform the s3:GetAnalyticsConfiguration action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

For information about Amazon S3 analytics feature, see Amazon S3 Analytics – Storage Class Analysis.

The following operations are related to ListBucketAnalyticsConfigurations:

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/ListBucketAnalyticsConfigurationsOutput' parameters: - name: Bucket in: path required: true description: The name of the bucket from which analytics configurations are retrieved. schema: type: string - name: continuation-token in: query required: false description: The ContinuationToken that represents a placeholder from where this request should begin. schema: type: string - name: analytics in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' '/{Bucket}#inventory': get: operationId: ListBucketInventoryConfigurations description: '

Returns a list of inventory configurations for the bucket. You can have up to 1,000 analytics configurations per bucket.

This operation supports list pagination and does not return more than 100 configurations at a time. Always check the IsTruncated element in the response. If there are no more configurations to list, IsTruncated is set to false. If there are more configurations to list, IsTruncated is set to true, and there is a value in NextContinuationToken. You use the NextContinuationToken value to continue the pagination of the list by passing the value in continuation-token in the request to GET the next page.

To use this operation, you must have permissions to perform the s3:GetInventoryConfiguration action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

For information about the Amazon S3 inventory feature, see Amazon S3 Inventory

The following operations are related to ListBucketInventoryConfigurations:

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/ListBucketInventoryConfigurationsOutput' parameters: - name: Bucket in: path required: true description: The name of the bucket containing the inventory configurations to retrieve. schema: type: string - name: continuation-token in: query required: false description: The marker used to continue an inventory configuration listing that has been truncated. Use the NextContinuationToken from a previously truncated list response to continue the listing. The continuation token is an opaque value that Amazon S3 understands. schema: type: string - name: inventory in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' '/{Bucket}#metrics': get: operationId: ListBucketMetricsConfigurations description: '

Lists the metrics configurations for the bucket. The metrics configurations are only for the request metrics of the bucket and do not provide information on daily storage metrics. You can have up to 1,000 configurations per bucket.

This operation supports list pagination and does not return more than 100 configurations at a time. Always check the IsTruncated element in the response. If there are no more configurations to list, IsTruncated is set to false. If there are more configurations to list, IsTruncated is set to true, and there is a value in NextContinuationToken. You use the NextContinuationToken value to continue the pagination of the list by passing the value in continuation-token in the request to GET the next page.

To use this operation, you must have permissions to perform the s3:GetMetricsConfiguration action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

For more information about metrics configurations and CloudWatch request metrics, see Monitoring Metrics with Amazon CloudWatch.

The following operations are related to ListBucketMetricsConfigurations:

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/ListBucketMetricsConfigurationsOutput' parameters: - name: Bucket in: path required: true description: The name of the bucket containing the metrics configurations to retrieve. schema: type: string - name: continuation-token in: query required: false description: The marker that is used to continue a metrics configuration listing that has been truncated. Use the NextContinuationToken from a previously truncated list response to continue the listing. The continuation token is an opaque value that Amazon S3 understands. schema: type: string - name: metrics in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' /: get: operationId: ListBuckets description: Returns a list of all buckets owned by the authenticated sender of the request. externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTServiceGET.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/ListBucketsOutput' parameters: - $ref: '#/components/parameters/x-amz-security-token' '/{Bucket}#uploads': get: operationId: ListMultipartUploads description: '

This operation lists in-progress multipart uploads. An in-progress multipart upload is a multipart upload that has been initiated using the Initiate Multipart Upload request, but has not yet been completed or aborted.

This operation returns at most 1,000 multipart uploads in the response. 1,000 multipart uploads is the maximum number of uploads a response can include, which is also the default value. You can further limit the number of uploads in a response by specifying the max-uploads parameter in the response. If additional multipart uploads satisfy the list criteria, the response will contain an IsTruncated element with the value true. To list the additional multipart uploads, use the key-marker and upload-id-marker request parameters.

In the response, the uploads are sorted by key. If your application has initiated more than one multipart upload using the same object key, then uploads in the response are first sorted by key. Additionally, uploads are sorted in ascending order within each key by the upload initiation time.

For more information on multipart uploads, see Uploading Objects Using Multipart Upload.

For information on permissions required to use the multipart upload API, see Multipart Upload API and Permissions.

The following operations are related to ListMultipartUploads:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadListMPUpload.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/ListMultipartUploadsOutput' parameters: - name: Bucket in: path required: true description: '

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

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' schema: type: string - name: delimiter in: query required: false description: '

Character you use to group keys.

All keys that contain the same string between the prefix, if specified, and the first occurrence of the delimiter after the prefix are grouped under a single result element, CommonPrefixes. If you don''t specify the prefix parameter, then the substring starts at the beginning of the key. The keys that are grouped under CommonPrefixes result element are not returned elsewhere in the response.

' schema: type: string - name: encoding-type in: query required: false description: '' schema: type: string enum: - url description: 'Requests Amazon S3 to encode the object keys in the response and specifies the encoding method to use. An object key may contain any Unicode character; however, XML 1.0 parser cannot parse some characters, such as characters with an ASCII value from 0 to 10. For characters that are not supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response.' - name: key-marker in: query required: false description: '

Together with upload-id-marker, this parameter specifies the multipart upload after which listing should begin.

If upload-id-marker is not specified, only the keys lexicographically greater than the specified key-marker will be included in the list.

If upload-id-marker is specified, any multipart uploads for a key equal to the key-marker might also be included, provided those multipart uploads have upload IDs lexicographically greater than the specified upload-id-marker.

' schema: type: string - name: max-uploads in: query required: false description: 'Sets the maximum number of multipart uploads, from 1 to 1,000, to return in the response body. 1,000 is the maximum number of uploads that can be returned in a response.' schema: type: integer - name: prefix in: query required: false description: Lists in-progress uploads only for those keys that begin with the specified prefix. You can use prefixes to separate a bucket into different grouping of keys. (You can think of using prefix to make groups in the same way you'd use a folder in a file system.) schema: type: string - name: upload-id-marker in: query required: false description: 'Together with key-marker, specifies the multipart upload after which listing should begin. If key-marker is not specified, the upload-id-marker parameter is ignored. Otherwise, any multipart uploads for a key equal to the key-marker might be included in the list only if they have an upload ID lexicographically greater than the specified upload-id-marker.' schema: type: string - name: MaxUploads in: query schema: type: string description: Pagination limit required: false - name: KeyMarker in: query schema: type: string description: Pagination token required: false - name: UploadIdMarker in: query schema: type: string description: Pagination token required: false - name: uploads in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' '/{Bucket}#versions': get: operationId: ListObjectVersions description: '

Returns metadata about all of the versions of objects in a bucket. You can also use request parameters as selection criteria to return metadata about a subset of all the object versions.

A 200 OK response can contain valid or invalid XML. Make sure to design your application to parse the contents of the response and handle it appropriately.

To use this operation, you must have READ access to the bucket.

The following operations are related to ListObjectVersions:

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETVersion.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/ListObjectVersionsOutput' parameters: - name: Bucket in: path required: true description: '

The bucket name that contains the objects.

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' schema: type: string - name: delimiter in: query required: false description: A delimiter is a character that you specify to group keys. All keys that contain the same string between the prefix and the first occurrence of the delimiter are grouped under a single result element in CommonPrefixes. These groups are counted as one result against the max-keys limitation. These keys are not returned elsewhere in the response. schema: type: string - name: encoding-type in: query required: false description: '' schema: type: string enum: - url description: 'Requests Amazon S3 to encode the object keys in the response and specifies the encoding method to use. An object key may contain any Unicode character; however, XML 1.0 parser cannot parse some characters, such as characters with an ASCII value from 0 to 10. For characters that are not supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response.' - name: key-marker in: query required: false description: Specifies the key to start with when listing objects in a bucket. schema: type: string - name: max-keys in: query required: false description: 'Sets the maximum number of keys returned in the response. By default the API returns up to 1,000 key names. The response might contain fewer keys but will never contain more. If additional keys satisfy the search criteria, but were not returned because max-keys was exceeded, the response contains <isTruncated>true</isTruncated>. To return the additional keys, see key-marker and version-id-marker.' schema: type: integer - name: prefix in: query required: false description: 'Use this parameter to select only those keys that begin with the specified prefix. You can use prefixes to separate a bucket into different groupings of keys. (You can think of using prefix to make groups in the same way you''d use a folder in a file system.) You can use prefix with delimiter to roll up numerous objects into a single result under CommonPrefixes. ' schema: type: string - name: version-id-marker in: query required: false description: Specifies the object version you want to start listing from. schema: type: string - name: MaxKeys in: query schema: type: string description: Pagination limit required: false - name: KeyMarker in: query schema: type: string description: Pagination token required: false - name: VersionIdMarker in: query schema: type: string description: Pagination token required: false - name: versions in: query required: true schema: type: boolean enum: - true allowEmptyValue: true parameters: - $ref: '#/components/parameters/x-amz-security-token' '/{Bucket}#list-type=2': get: operationId: ListObjectsV2 description: '

Returns some or all (up to 1,000) of the objects in a bucket. You can use the request parameters as selection criteria to return a subset of the objects in a bucket. A 200 OK response can contain valid or invalid XML. Make sure to design your application to parse the contents of the response and handle it appropriately.

To use this operation, you must have READ access to the bucket.

To use this operation in an AWS Identity and Access Management (IAM) policy, you must have permissions to perform the s3:ListBucket action. The bucket owner has this permission by default and can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

This section describes the latest revision of the API. We recommend that you use this revised API for application development. For backward compatibility, Amazon S3 continues to support the prior version of this API, ListObjects.

To get a list of your buckets, see ListBuckets.

The following operations are related to ListObjectsV2:

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/ListObjectsV2Output' '480': description: NoSuchBucket content: text/xml: schema: $ref: '#/components/schemas/NoSuchBucket' parameters: - name: Bucket in: path required: true description: '

Bucket name to list.

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' schema: type: string - name: delimiter in: query required: false description: A delimiter is a character you use to group keys. schema: type: string - name: encoding-type in: query required: false description: Encoding type used by Amazon S3 to encode object keys in the response. schema: type: string enum: - url description: 'Requests Amazon S3 to encode the object keys in the response and specifies the encoding method to use. An object key may contain any Unicode character; however, XML 1.0 parser cannot parse some characters, such as characters with an ASCII value from 0 to 10. For characters that are not supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response.' - name: max-keys in: query required: false description: 'Sets the maximum number of keys returned in the response. By default the API returns up to 1,000 key names. The response might contain fewer keys but will never contain more.' schema: type: integer - name: prefix in: query required: false description: Limits the response to keys that begin with the specified prefix. schema: type: string - name: continuation-token in: query required: false description: ContinuationToken indicates Amazon S3 that the list is being continued on this bucket with a token. ContinuationToken is obfuscated and is not a real key. schema: type: string - name: fetch-owner in: query required: false description: 'The owner field is not present in listV2 by default, if you want to return owner field with each key in the result then set the fetch owner field to true.' schema: type: boolean - name: start-after in: query required: false description: StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts listing after this specified key. StartAfter can be any key in the bucket. schema: type: string - name: x-amz-request-payer in: header required: false description: Confirms that the requester knows that she or he will be charged for the list objects request in V2 style. Bucket owners need not specify this parameter in their requests. schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' - name: MaxKeys in: query schema: type: string description: Pagination limit required: false - name: ContinuationToken in: query schema: type: string description: Pagination token required: false - name: list-type in: query required: true schema: type: string enum: - '2' parameters: - $ref: '#/components/parameters/x-amz-security-token' '/{Bucket}/{Key}#restore': post: operationId: RestoreObject description: '

Restores an archived copy of an object back into Amazon S3

This operation performs the following types of requests:

To use this operation, you must have permissions to perform the s3:RestoreObject action. The bucket owner has this permission by default and can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources in the Amazon Simple Storage Service Developer Guide.

Querying Archives with Select Requests

You use a select type of request to perform SQL queries on archived objects. The archived objects that are being queried by the select request must be formatted as uncompressed comma-separated values (CSV) files. You can run queries and custom analytics on your archived data without having to restore your data to a hotter Amazon S3 tier. For an overview about select requests, see Querying Archived Objects in the Amazon Simple Storage Service Developer Guide.

When making a select request, do the following:

For more information about using SQL with S3 Glacier Select restore, see SQL Reference for Amazon S3 Select and S3 Glacier Select in the Amazon Simple Storage Service Developer Guide.

When making a select request, you can also do the following:

The following are additional important facts about the select feature:

Restoring Archives

Objects in the GLACIER and DEEP_ARCHIVE storage classes are archived. To access an archived object, you must first initiate a restore request. This restores a temporary copy of the archived object. In a restore request, you specify the number of days that you want the restored copy to exist. After the specified period, Amazon S3 deletes the temporary copy but the object remains archived in the GLACIER or DEEP_ARCHIVE storage class that object was restored from.

To restore a specific object version, you can provide a version ID. If you don''t provide a version ID, Amazon S3 restores the current version.

The time it takes restore jobs to finish depends on which storage class the object is being restored from and which data access tier you specify.

When restoring an archived object (or using a select request), you can specify one of the following data access tier options in the Tier element of the request body:

For more information about archive retrieval options and provisioned capacity for Expedited data access, see Restoring Archived Objects in the Amazon Simple Storage Service Developer Guide.

You can use Amazon S3 restore speed upgrade to change the restore speed to a faster speed while it is in progress. You upgrade the speed of an in-progress restoration by issuing another restore request to the same object, setting a new Tier request element. When issuing a request to upgrade the restore tier, you must choose a tier that is faster than the tier that the in-progress restore is using. You must not change any other parameters, such as the Days request element. For more information, see Upgrading the Speed of an In-Progress Restore in the Amazon Simple Storage Service Developer Guide.

To get the status of object restoration, you can send a HEAD request. Operations return the x-amz-restore header, which provides information about the restoration status, in the response. You can use Amazon S3 event notifications to notify you when a restore is initiated or completed. For more information, see Configuring Amazon S3 Event Notifications in the Amazon Simple Storage Service Developer Guide.

After restoring an archived object, you can update the restoration period by reissuing the request with a new period. Amazon S3 updates the restoration period relative to the current time and charges only for the request-there are no data transfer charges. You cannot update the restoration period when Amazon S3 is actively processing your current restore request for the object.

If your bucket has a lifecycle configuration with a rule that includes an expiration action, the object expiration overrides the life span that you specify in a restore request. For example, if you restore an object copy for 10 days, but the object is scheduled to expire in 3 days, Amazon S3 deletes the object in 3 days. For more information about lifecycle configuration, see PutBucketLifecycleConfiguration and Object Lifecycle Management in Amazon Simple Storage Service Developer Guide.

Responses

A successful operation returns either the 200 OK or 202 Accepted status code.

Special Errors

Related Resources

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectRestore.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/RestoreObjectOutput' '480': description: ObjectAlreadyInActiveTierError content: text/xml: schema: $ref: '#/components/schemas/ObjectAlreadyInActiveTierError' parameters: - name: Bucket in: path required: true description: '

The bucket name or containing the object to restore.

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' schema: type: string - name: Key in: path required: true description: Object key for which the operation was initiated. schema: type: string minLength: 1 - name: versionId in: query required: false description: VersionId used to reference a specific version of the object. schema: type: string - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' - name: restore in: query required: true schema: type: boolean enum: - true allowEmptyValue: true requestBody: required: true content: text/xml: schema: type: object properties: RestoreRequest: description: Container for restore job parameters. type: object properties: Days: $ref: '#/components/schemas/Days' description: Lifetime of the active copy in days. Do not use with restores that specify OutputLocation. GlacierJobParameters: $ref: '#/components/schemas/GlacierJobParameters' description: S3 Glacier related parameters pertaining to this job. Do not use with restores that specify OutputLocation. Type: $ref: '#/components/schemas/RestoreRequestType' description: Type of restore request. Tier: $ref: '#/components/schemas/Tier' description: S3 Glacier retrieval tier at which the restore will be processed. Description: $ref: '#/components/schemas/Description' description: The optional description for the job. SelectParameters: $ref: '#/components/schemas/SelectParameters' description: Describes the parameters for Select job types. OutputLocation: $ref: '#/components/schemas/OutputLocation' description: Describes the location where the restore job's output is stored. parameters: - $ref: '#/components/parameters/x-amz-security-token' '/{Bucket}/{Key}#select&select-type=2': post: operationId: SelectObjectContent description: "

This operation filters the contents of an Amazon S3 object based on a simple structured query language (SQL) statement. In the request, along with the SQL expression, you must also specify a data serialization format (JSON, CSV, or Apache Parquet) of the object. Amazon S3 uses this format to parse object data into records, and returns only records that match the specified SQL expression. You must also specify the data serialization format for the response.

For more information about Amazon S3 Select, see Selecting Content from Objects in the Amazon Simple Storage Service Developer Guide.

For more information about using SQL with Amazon S3 Select, see SQL Reference for Amazon S3 Select and S3 Glacier Select in the Amazon Simple Storage Service Developer Guide.

Permissions

You must have s3:GetObject permission for this operation.\_Amazon S3 Select does not support anonymous access. For more information about permissions, see Specifying Permissions in a Policy in the Amazon Simple Storage Service Developer Guide.

Object Data Formats

You can use Amazon S3 Select to query objects that have the following format properties:

  • CSV, JSON, and Parquet - Objects must be in CSV, JSON, or Parquet format.

  • UTF-8 - UTF-8 is the only encoding type Amazon S3 Select supports.

  • GZIP or BZIP2 - CSV and JSON files can be compressed using GZIP or BZIP2. GZIP and BZIP2 are the only compression formats that Amazon S3 Select supports for CSV and JSON files. Amazon S3 Select supports columnar compression for Parquet using GZIP or Snappy. Amazon S3 Select does not support whole-object compression for Parquet objects.

  • Server-side encryption - Amazon S3 Select supports querying objects that are protected with server-side encryption.

    For objects that are encrypted with customer-provided encryption keys (SSE-C), you must use HTTPS, and you must use the headers that are documented in the GetObject. For more information about SSE-C, see Server-Side Encryption (Using Customer-Provided Encryption Keys) in the Amazon Simple Storage Service Developer Guide.

    For objects that are encrypted with Amazon S3 managed encryption keys (SSE-S3) and customer master keys (CMKs) stored in AWS Key Management Service (SSE-KMS), server-side encryption is handled transparently, so you don't need to specify anything. For more information about server-side encryption, including SSE-S3 and SSE-KMS, see Protecting Data Using Server-Side Encryption in the Amazon Simple Storage Service Developer Guide.

Working with the Response Body

Given the response size is unknown, Amazon S3 Select streams the response as a series of messages and includes a Transfer-Encoding header with chunked as its value in the response. For more information, see Appendix: SelectObjectContent Response .

GetObject Support

The SelectObjectContent operation does not support the following GetObject functionality. For more information, see GetObject.

  • Range: Although you can specify a scan range for an Amazon S3 Select request (see SelectObjectContentRequest - ScanRange in the request parameters), you cannot specify the range of bytes of an object to return.

  • GLACIER, DEEP_ARCHIVE and REDUCED_REDUNDANCY storage classes: You cannot specify the GLACIER, DEEP_ARCHIVE, or REDUCED_REDUNDANCY storage classes. For more information, about storage classes see Storage Classes in the Amazon Simple Storage Service Developer Guide.

Special Errors

For a list of special errors for this operation, see List of SELECT Object Content Error Codes

Related Resources

" responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/SelectObjectContentOutput' parameters: - name: Bucket in: path required: true description: The S3 bucket. schema: type: string - name: Key in: path required: true description: The object key. schema: type: string minLength: 1 - name: x-amz-server-side-encryption-customer-algorithm in: header required: false description: 'The SSE Algorithm used to encrypt the object. For more information, see Server-Side Encryption (Using Customer-Provided Encryption Keys. ' schema: type: string - name: x-amz-server-side-encryption-customer-key in: header required: false description: 'The SSE Customer Key. For more information, see Server-Side Encryption (Using Customer-Provided Encryption Keys. ' schema: type: string format: password - name: x-amz-server-side-encryption-customer-key-MD5 in: header required: false description: 'The SSE Customer Key MD5. For more information, see Server-Side Encryption (Using Customer-Provided Encryption Keys. ' schema: type: string - name: select in: query required: true schema: type: boolean enum: - true allowEmptyValue: true - name: select-type in: query required: true schema: type: string enum: - '2' requestBody: required: true content: text/xml: schema: type: object required: - Expression - ExpressionType - InputSerialization - OutputSerialization properties: Expression: description: The expression that is used to query the object. type: string ExpressionType: description: 'The type of the provided expression (for example, SQL).' type: string enum: - SQL RequestProgress: description: Container for specifying if periodic QueryProgress messages should be sent. type: object properties: Enabled: $ref: '#/components/schemas/EnableRequestProgress' description: 'Specifies whether periodic QueryProgress frames should be sent. Valid values: TRUE, FALSE. Default value: FALSE.' InputSerialization: description: Describes the serialization format of the object. type: object properties: CSV: $ref: '#/components/schemas/CSVInput' description: Describes the serialization of a CSV-encoded object. CompressionType: $ref: '#/components/schemas/CompressionType' description: 'Specifies object''s compression format. Valid values: NONE, GZIP, BZIP2. Default Value: NONE.' JSON: $ref: '#/components/schemas/JSONInput' description: Specifies JSON as object's input serialization format. Parquet: $ref: '#/components/schemas/ParquetInput' description: Specifies Parquet as object's input serialization format. OutputSerialization: description: Describes how results of the Select job are serialized. type: object properties: CSV: $ref: '#/components/schemas/CSVOutput' description: Describes the serialization of CSV-encoded Select results. JSON: $ref: '#/components/schemas/JSONOutput' description: Specifies JSON as request's output serialization format. ScanRange: description: 'Specifies the byte range of the object to get the records from. A record is processed when its first byte is contained by the range. This parameter is optional, but when specified, it must not be empty. See RFC 2616, Section 14.35.1 about how to specify the start and end of the range.' type: object properties: Start: $ref: '#/components/schemas/Start' description: 'Specifies the start of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is 0. If only start is supplied, it means scan from that point to the end of the file.For example; <scanrange><start>50</start></scanrange> means scan from byte 50 until the end of the file.' End: $ref: '#/components/schemas/End' description: 'Specifies the end of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is one less than the size of the object being queried. If only the End parameter is supplied, it is interpreted to mean scan the last N bytes of the file. For example, <scanrange><end>50</end></scanrange> means scan the last 50 bytes.' parameters: - $ref: '#/components/parameters/x-amz-security-token' '/{Bucket}/{Key}#partNumber&uploadId': put: operationId: UploadPart description: '

Uploads a part in a multipart upload.

In this operation, you provide part data in your request. However, you have an option to specify your existing Amazon S3 object as a data source for the part you are uploading. To upload a part from an existing object, you use the UploadPartCopy operation.

You must initiate a multipart upload (see CreateMultipartUpload) before you can upload any part. In response to your initiate request, Amazon S3 returns an upload ID, a unique identifier, that you must include in your upload part request.

Part numbers can be any number from 1 to 10,000, inclusive. A part number uniquely identifies a part and also defines its position within the object being created. If you upload a new part using the same part number that was used with a previous part, the previously uploaded part is overwritten. Each part must be at least 5 MB in size, except the last part. There is no size limit on the last part of your multipart upload.

To ensure that data is not corrupted when traversing the network, specify the Content-MD5 header in the upload part request. Amazon S3 checks the part data against the provided MD5 value. If they do not match, Amazon S3 returns an error.

Note: After you initiate multipart upload and upload one or more parts, you must either complete or abort multipart upload in order to stop getting charged for storage of the uploaded parts. Only after you either complete or abort multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts storage.

For more information on multipart uploads, go to Multipart Upload Overview in the Amazon Simple Storage Service Developer Guide .

For information on the permissions required to use the multipart upload API, go to Multipart Upload API and Permissions in the Amazon Simple Storage Service Developer Guide.

You can optionally request server-side encryption where Amazon S3 encrypts your data as it writes it to disks in its data centers and decrypts it for you when you access it. You have the option of providing your own encryption key, or you can use the AWS managed encryption keys. If you choose to provide your own encryption key, the request headers you provide in the request must match the headers you used in the request to initiate the upload by using CreateMultipartUpload. For more information, go to Using Server-Side Encryption in the Amazon Simple Storage Service Developer Guide.

Server-side encryption is supported by the S3 Multipart Upload actions. Unless you are using a customer-provided encryption key, you don''t need to specify the encryption parameters in each UploadPart request. Instead, you only need to specify the server-side encryption parameters in the initial Initiate Multipart request. For more information, see CreateMultipartUpload.

If you requested server-side encryption using a customer-provided encryption key in your initiate multipart upload request, you must provide identical encryption information in each part upload using the following headers.

  • x-amz-server-side-encryption-customer-algorithm

  • x-amz-server-side-encryption-customer-key

  • x-amz-server-side-encryption-customer-key-MD5

Special Errors

    • Code: NoSuchUpload

    • Cause: The specified multipart upload does not exist. The upload ID might be invalid, or the multipart upload might have been aborted or completed.

    • HTTP Status Code: 404 Not Found

    • SOAP Fault Code Prefix: Client

Related Resources

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadUploadPart.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/UploadPartOutput' parameters: - name: Bucket in: path required: true description: Name of the bucket to which the multipart upload was initiated. schema: type: string - name: Content-Length in: header required: false description: Size of the body in bytes. This parameter is useful when the size of the body cannot be determined automatically. schema: type: integer - name: Content-MD5 in: header required: false description: The base64-encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified. schema: type: string - name: Key in: path required: true description: Object key for which the multipart upload was initiated. schema: type: string minLength: 1 - name: partNumber in: query required: true description: 'Part number of part being uploaded. This is a positive integer between 1 and 10,000.' schema: type: integer - name: uploadId in: query required: true description: Upload ID identifying the multipart upload whose part is being uploaded. schema: type: string - name: x-amz-server-side-encryption-customer-algorithm in: header required: false description: 'Specifies the algorithm to use to when encrypting the object (for example, AES256).' schema: type: string - name: x-amz-server-side-encryption-customer-key in: header required: false description: Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header. This must be the same encryption key specified in the initiate multipart upload request. schema: type: string format: password - name: x-amz-server-side-encryption-customer-key-MD5 in: header required: false description: Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error. schema: type: string - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' requestBody: required: true content: text/xml: schema: type: object properties: Body: description: Object data. type: string parameters: - $ref: '#/components/parameters/x-amz-security-token' '/{Bucket}/{Key}#x-amz-copy-source&partNumber&uploadId': put: operationId: UploadPartCopy description: '

Uploads a part by copying data from an existing object as data source. You specify the data source by adding the request header x-amz-copy-source in your request and a byte range by adding the request header x-amz-copy-source-range in your request.

The minimum allowable part size for a multipart upload is 5 MB. For more information about multipart upload limits, go to Quick Facts in the Amazon Simple Storage Service Developer Guide.

Instead of using an existing object as part data, you might use the UploadPart operation and provide data in your request.

You must initiate a multipart upload before you can upload any part. In response to your initiate request. Amazon S3 returns a unique identifier, the upload ID, that you must include in your upload part request.

For more information about using the UploadPartCopy operation, see the following:

  • For conceptual information about multipart uploads, see Uploading Objects Using Multipart Upload in the Amazon Simple Storage Service Developer Guide.

  • For information about permissions required to use the multipart upload API, see Multipart Upload API and Permissions in the Amazon Simple Storage Service Developer Guide.

  • For information about copying objects using a single atomic operation vs. the multipart upload, see Operations on Objects in the Amazon Simple Storage Service Developer Guide.

  • For information about using server-side encryption with customer-provided encryption keys with the UploadPartCopy operation, see CopyObject and UploadPart.

Note the following additional considerations about the request headers x-amz-copy-source-if-match, x-amz-copy-source-if-none-match, x-amz-copy-source-if-unmodified-since, and x-amz-copy-source-if-modified-since:

  • Consideration 1 - If both of the x-amz-copy-source-if-match and x-amz-copy-source-if-unmodified-since headers are present in the request as follows:

    x-amz-copy-source-if-match condition evaluates to true, and;

    x-amz-copy-source-if-unmodified-since condition evaluates to false;

    Amazon S3 returns 200 OK and copies the data.

  • Consideration 2 - If both of the x-amz-copy-source-if-none-match and x-amz-copy-source-if-modified-since headers are present in the request as follows:

    x-amz-copy-source-if-none-match condition evaluates to false, and;

    x-amz-copy-source-if-modified-since condition evaluates to true;

    Amazon S3 returns 412 Precondition Failed response code.

Versioning

If your bucket has versioning enabled, you could have multiple versions of the same object. By default, x-amz-copy-source identifies the current version of the object to copy. If the current version is a delete marker and you don''t specify a versionId in the x-amz-copy-source, Amazon S3 returns a 404 error, because the object does not exist. If you specify versionId in the x-amz-copy-source and the versionId is a delete marker, Amazon S3 returns an HTTP 400 error, because you are not allowed to specify a delete marker as a version for the x-amz-copy-source.

You can optionally specify a specific version of the source object to copy by adding the versionId subresource as shown in the following example:

x-amz-copy-source: /bucket/object?versionId=version id

Special Errors

    • Code: NoSuchUpload

    • Cause: The specified multipart upload does not exist. The upload ID might be invalid, or the multipart upload might have been aborted or completed.

    • HTTP Status Code: 404 Not Found

    • Code: InvalidRequest

    • Cause: The specified copy source is not supported as a byte-range copy source.

    • HTTP Status Code: 400 Bad Request

Related Resources

' externalDocs: url: 'http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadUploadPartCopy.html' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/UploadPartCopyOutput' parameters: - name: Bucket in: path required: true description: The bucket name. schema: type: string - name: x-amz-copy-source in: header required: true description: 'The name of the source bucket and key name of the source object, separated by a slash (/). Must be URL-encoded.' schema: type: string pattern: \/.+\/.+ - name: x-amz-copy-source-if-match in: header required: false description: Copies the object if its entity tag (ETag) matches the specified tag. schema: type: string - name: x-amz-copy-source-if-modified-since in: header required: false description: Copies the object if it has been modified since the specified time. schema: type: string format: date-time - name: x-amz-copy-source-if-none-match in: header required: false description: Copies the object if its entity tag (ETag) is different than the specified ETag. schema: type: string - name: x-amz-copy-source-if-unmodified-since in: header required: false description: Copies the object if it hasn't been modified since the specified time. schema: type: string format: date-time - name: x-amz-copy-source-range in: header required: false description: 'The range of bytes to copy from the source object. The range value must use the form bytes=first-last, where the first and last are the zero-based byte offsets to copy. For example, bytes=0-9 indicates that you want to copy the first 10 bytes of the source. You can copy a range only if the source object is greater than 5 MB.' schema: type: string - name: Key in: path required: true description: Object key for which the multipart upload was initiated. schema: type: string minLength: 1 - name: partNumber in: query required: true description: 'Part number of part being copied. This is a positive integer between 1 and 10,000.' schema: type: integer - name: uploadId in: query required: true description: Upload ID identifying the multipart upload whose part is being copied. schema: type: string - name: x-amz-server-side-encryption-customer-algorithm in: header required: false description: 'Specifies the algorithm to use to when encrypting the object (for example, AES256).' schema: type: string - name: x-amz-server-side-encryption-customer-key in: header required: false description: Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header. This must be the same encryption key specified in the initiate multipart upload request. schema: type: string format: password - name: x-amz-server-side-encryption-customer-key-MD5 in: header required: false description: Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error. schema: type: string - name: x-amz-copy-source-server-side-encryption-customer-algorithm in: header required: false description: 'Specifies the algorithm to use when decrypting the source object (for example, AES256).' schema: type: string - name: x-amz-copy-source-server-side-encryption-customer-key in: header required: false description: Specifies the customer-provided encryption key for Amazon S3 to use to decrypt the source object. The encryption key provided in this header must be one that was used when the source object was created. schema: type: string format: password - name: x-amz-copy-source-server-side-encryption-customer-key-MD5 in: header required: false description: Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error. schema: type: string - name: x-amz-request-payer in: header required: false description: '' schema: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' parameters: - $ref: '#/components/parameters/x-amz-security-token' components: parameters: x-amz-security-token: name: x-amz-security-token in: header required: false schema: type: string securitySchemes: hmac: type: apiKey name: Authorization in: header description: Amazon S3 signature x-amazon-apigateway-authtype: awsS3 schemas: AbortMultipartUploadOutput: type: object example: {} properties: {} NoSuchUpload: {} CompleteMultipartUploadOutput: type: object example: Bucket: acexamplebucket ETag: '"4d9031c7644d8081c2829f4ea23c55f7-2"' Key: bigobject Location: 'https://examplebucket.s3..amazonaws.com/bigobject' properties: Location: $ref: '#/components/schemas/Location' description: The URI that identifies the newly created object. Bucket: $ref: '#/components/schemas/BucketName' description: The name of the bucket that contains the newly created object. Key: $ref: '#/components/schemas/ObjectKey' description: The object key of the newly created object. ETag: $ref: '#/components/schemas/ETag' description: '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.' CompletedPartList: type: array items: $ref: '#/components/schemas/CompletedPart' xml: wrapped: false CopyObjectOutput: type: object example: CopyObjectResult: ETag: '"6805f2cfc46c0f04559748bb039d69ae"' LastModified: '2016-12-15T17:38:53.000Z' properties: CopyObjectResult: $ref: '#/components/schemas/CopyObjectResult' description: Container for all response elements. MetadataValue: type: string ObjectNotInActiveTierError: {} CreateBucketOutput: type: object example: Location: 'http://examplebucket..s3.amazonaws.com/' properties: {} BucketLocationConstraint: type: string enum: - EU - eu-west-1 - us-west-1 - us-west-2 - ap-south-1 - ap-southeast-1 - ap-southeast-2 - ap-northeast-1 - sa-east-1 - cn-north-1 - eu-central-1 BucketAlreadyExists: {} BucketAlreadyOwnedByYou: {} CreateMultipartUploadOutput: type: object example: Bucket: examplebucket Key: largeobject UploadId: ibZBv_75gd9r8lH_gqXatLdxMVpAlj6ZQjEs.OwyF3953YdwbcQnMA2BLGn8Lx12fQNICtMw5KyteFeHw.Sjng-- properties: Bucket: $ref: '#/components/schemas/BucketName' description: '

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

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' Key: $ref: '#/components/schemas/ObjectKey' description: Object key for which the multipart upload was initiated. UploadId: $ref: '#/components/schemas/MultipartUploadId' description: ID for the initiated multipart upload. DeleteObjectOutput: type: object example: {} properties: {} DeleteObjectTaggingOutput: type: object example: VersionId: ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI properties: {} DeleteObjectsOutput: type: object example: Deleted: - DeleteMarker: 'true' DeleteMarkerVersionId: A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F Key: objectkey1 - DeleteMarker: 'true' DeleteMarkerVersionId: iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt Key: objectkey2 properties: Deleted: $ref: '#/components/schemas/DeletedObjects' description: Container element for a successful delete. It identifies the object that was successfully deleted. Errors: xml: name: Error $ref: '#/components/schemas/Errors' description: Container for a failed delete operation that describes the object that Amazon S3 attempted to delete and the error it encountered. ObjectIdentifierList: type: array items: $ref: '#/components/schemas/ObjectIdentifier' xml: wrapped: false Quiet: type: boolean GetBucketAccelerateConfigurationOutput: type: object properties: Status: $ref: '#/components/schemas/BucketAccelerateStatus' description: The accelerate configuration of the bucket. GetBucketAclOutput: type: object properties: Owner: $ref: '#/components/schemas/Owner' description: Container for the bucket owner's display name and ID. Grants: xml: name: AccessControlList $ref: '#/components/schemas/Grants' description: A list of grants. GetBucketAnalyticsConfigurationOutput: type: object properties: AnalyticsConfiguration: $ref: '#/components/schemas/AnalyticsConfiguration' description: The configuration and any analyses for the analytics filter. GetBucketCorsOutput: type: object example: CORSRules: - AllowedHeaders: - Authorization AllowedMethods: - GET AllowedOrigins: - '*' MaxAgeSeconds: 3000 properties: CORSRules: xml: name: CORSRule $ref: '#/components/schemas/CORSRules' description: A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration. GetBucketEncryptionOutput: type: object properties: ServerSideEncryptionConfiguration: $ref: '#/components/schemas/ServerSideEncryptionConfiguration' GetBucketInventoryConfigurationOutput: type: object properties: InventoryConfiguration: $ref: '#/components/schemas/InventoryConfiguration' description: Specifies the inventory configuration. GetBucketLifecycleOutput: type: object example: Rules: - Expiration: Days: 1 ID: delete logs Prefix: 123/ Status: Enabled properties: Rules: xml: name: Rule $ref: '#/components/schemas/Rules' description: Container for a lifecycle rule. GetBucketLifecycleConfigurationOutput: type: object example: Rules: - ID: Rule for TaxDocs/ Prefix: TaxDocs Status: Enabled Transitions: - Days: 365 StorageClass: STANDARD_IA properties: Rules: xml: name: Rule $ref: '#/components/schemas/LifecycleRules' description: Container for a lifecycle rule. GetBucketLocationOutput: type: object example: LocationConstraint: us-west-2 properties: LocationConstraint: $ref: '#/components/schemas/BucketLocationConstraint' description: 'Specifies the Region where the bucket resides. For a list of all the Amazon S3 supported location constraints by Region, see Regions and Endpoints. Buckets in Region us-east-1 have a LocationConstraint of null.' GetBucketLoggingOutput: type: object properties: LoggingEnabled: $ref: '#/components/schemas/LoggingEnabled' GetBucketMetricsConfigurationOutput: type: object properties: MetricsConfiguration: $ref: '#/components/schemas/MetricsConfiguration' description: Specifies the metrics configuration. NotificationConfigurationDeprecated: type: object example: QueueConfiguration: Event: 's3:ObjectCreated:Put' Events: - 's3:ObjectCreated:Put' Id: MDQ2OGQ4NDEtOTBmNi00YTM4LTk0NzYtZDIwN2I3NWQ1NjIx Queue: 'arn:aws:sqs:us-east-1:acct-id:S3ObjectCreatedEventQueue' TopicConfiguration: Event: 's3:ObjectCreated:Copy' Events: - 's3:ObjectCreated:Copy' Id: YTVkMWEzZGUtNTY1NS00ZmE2LWJjYjktMmRlY2QwODFkNTJi Topic: 'arn:aws:sns:us-east-1:acct-id:S3ObjectCreatedEventTopic' properties: TopicConfiguration: $ref: '#/components/schemas/TopicConfigurationDeprecated' description: 'This data type is deprecated. A container for specifying the configuration for publication of messages to an Amazon Simple Notification Service (Amazon SNS) topic when Amazon S3 detects specified events. ' QueueConfiguration: $ref: '#/components/schemas/QueueConfigurationDeprecated' description: 'This data type is deprecated. This data type specifies the configuration for publishing messages to an Amazon Simple Queue Service (Amazon SQS) queue when Amazon S3 detects specified events. ' CloudFunctionConfiguration: $ref: '#/components/schemas/CloudFunctionConfiguration' description: Container for specifying the AWS Lambda notification configuration. NotificationConfiguration: type: object properties: TopicConfigurations: xml: name: TopicConfiguration $ref: '#/components/schemas/TopicConfigurationList' description: The topic to which notifications are sent and the events for which notifications are generated. QueueConfigurations: xml: name: QueueConfiguration $ref: '#/components/schemas/QueueConfigurationList' description: The Amazon Simple Queue Service queues to publish messages to and the events for which to publish messages. LambdaFunctionConfigurations: xml: name: CloudFunctionConfiguration $ref: '#/components/schemas/LambdaFunctionConfigurationList' description: Describes the AWS Lambda functions to invoke and the events for which to invoke them. description: 'A container for specifying the notification configuration of the bucket. If this element is empty, notifications are turned off for the bucket.' GetBucketPolicyOutput: type: object example: Policy: '{"Version":"2008-10-17","Id":"LogPolicy","Statement":[{"Sid":"Enables the log delivery group to publish logs to your bucket ","Effect":"Allow","Principal":{"AWS":"111122223333"},"Action":["s3:GetBucketAcl","s3:GetObjectAcl","s3:PutObject"],"Resource":["arn:aws:s3:::policytest1/*","arn:aws:s3:::policytest1"]}]}' properties: Policy: $ref: '#/components/schemas/Policy' description: The bucket policy as a JSON document. GetBucketPolicyStatusOutput: type: object properties: PolicyStatus: $ref: '#/components/schemas/PolicyStatus' description: The policy status for the specified bucket. GetBucketReplicationOutput: type: object example: ReplicationConfiguration: Role: 'arn:aws:iam::acct-id:role/example-role' Rules: - Destination: Bucket: 'arn:aws:s3:::destination-bucket' ID: MWIwNTkwZmItMTE3MS00ZTc3LWJkZDEtNzRmODQwYzc1OTQy Prefix: Tax Status: Enabled properties: ReplicationConfiguration: $ref: '#/components/schemas/ReplicationConfiguration' GetBucketRequestPaymentOutput: type: object example: Payer: BucketOwner properties: Payer: $ref: '#/components/schemas/Payer' description: Specifies who pays for the download and request fees. GetBucketTaggingOutput: type: object required: - TagSet example: TagSet: - Key: key1 Value: value1 - Key: key2 Value: value2 properties: TagSet: $ref: '#/components/schemas/TagSet' description: Contains the tag set. GetBucketVersioningOutput: type: object example: MFADelete: Disabled Status: Enabled properties: Status: $ref: '#/components/schemas/BucketVersioningStatus' description: The versioning state of the bucket. MFADelete: xml: name: MfaDelete $ref: '#/components/schemas/MFADeleteStatus' description: 'Specifies whether MFA delete is enabled in the bucket versioning configuration. This element is only returned if the bucket has been configured with MFA delete. If the bucket has never been so configured, this element is not returned.' GetBucketWebsiteOutput: type: object example: ErrorDocument: Key: error.html IndexDocument: Suffix: index.html properties: RedirectAllRequestsTo: $ref: '#/components/schemas/RedirectAllRequestsTo' description: Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket. IndexDocument: $ref: '#/components/schemas/IndexDocument' description: The name of the index document for the website (for example index.html). ErrorDocument: $ref: '#/components/schemas/ErrorDocument' description: The object key name of the website error document to use for 4XX class errors. RoutingRules: $ref: '#/components/schemas/RoutingRules' description: Rules that define when a redirect is applied and the redirect behavior. GetObjectOutput: type: object example: AcceptRanges: bytes ContentLength: '3191' ContentType: image/jpeg ETag: '"6805f2cfc46c0f04559748bb039d69ae"' LastModified: 'Thu, 15 Dec 2016 01:19:41 GMT' Metadata: {} TagCount: 2 VersionId: 'null' properties: Body: $ref: '#/components/schemas/Body' description: Object data. Metadata: xml: name: x-amz-meta- $ref: '#/components/schemas/Metadata' description: A map of metadata to store with the object in S3. NoSuchKey: {} GetObjectAclOutput: type: object example: Grants: - Grantee: DisplayName: owner-display-name ID: examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc Type: CanonicalUser Permission: WRITE - Grantee: DisplayName: owner-display-name ID: examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc Type: CanonicalUser Permission: WRITE_ACP - Grantee: DisplayName: owner-display-name ID: examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc Type: CanonicalUser Permission: READ - Grantee: DisplayName: owner-display-name ID: 852b113eexamplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc Type: CanonicalUser Permission: READ_ACP Owner: DisplayName: owner-display-name ID: examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc properties: Owner: $ref: '#/components/schemas/Owner' description: ' Container for the bucket owner''s display name and ID.' Grants: xml: name: AccessControlList $ref: '#/components/schemas/Grants' description: A list of grants. GetObjectLegalHoldOutput: type: object properties: LegalHold: $ref: '#/components/schemas/ObjectLockLegalHold' description: The current Legal Hold status for the specified object. GetObjectLockConfigurationOutput: type: object properties: ObjectLockConfiguration: $ref: '#/components/schemas/ObjectLockConfiguration' description: The specified bucket's Object Lock configuration. GetObjectRetentionOutput: type: object properties: Retention: $ref: '#/components/schemas/ObjectLockRetention' description: The container element for an object's retention settings. GetObjectTaggingOutput: type: object required: - TagSet example: TagSet: - Key: Key1 Value: Value1 VersionId: ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI properties: TagSet: $ref: '#/components/schemas/TagSet' description: Contains the tag set. GetObjectTorrentOutput: type: object example: {} properties: Body: $ref: '#/components/schemas/Body' description: A Bencoded dictionary as defined by the BitTorrent specification GetPublicAccessBlockOutput: type: object properties: PublicAccessBlockConfiguration: $ref: '#/components/schemas/PublicAccessBlockConfiguration' description: The PublicAccessBlock configuration currently in effect for this Amazon S3 bucket. NoSuchBucket: {} HeadObjectOutput: type: object example: AcceptRanges: bytes ContentLength: '3191' ContentType: image/jpeg ETag: '"6805f2cfc46c0f04559748bb039d69ae"' LastModified: 'Thu, 15 Dec 2016 01:19:41 GMT' Metadata: {} VersionId: 'null' properties: Metadata: xml: name: x-amz-meta- $ref: '#/components/schemas/Metadata' description: A map of metadata to store with the object in S3. ListBucketAnalyticsConfigurationsOutput: type: object properties: IsTruncated: $ref: '#/components/schemas/IsTruncated' description: Indicates whether the returned list of analytics configurations is complete. A value of true indicates that the list is not complete and the NextContinuationToken will be provided for a subsequent request. ContinuationToken: $ref: '#/components/schemas/Token' description: The marker that is used as a starting point for this analytics configuration list response. This value is present if it was sent in the request. NextContinuationToken: $ref: '#/components/schemas/NextToken' description: ' NextContinuationToken is sent when isTruncated is true, which indicates that there are more analytics configurations to list. The next request must include this NextContinuationToken. The token is obfuscated and is not a usable value.' AnalyticsConfigurationList: xml: name: AnalyticsConfiguration $ref: '#/components/schemas/AnalyticsConfigurationList' description: The list of analytics configurations for a bucket. ListBucketInventoryConfigurationsOutput: type: object properties: ContinuationToken: $ref: '#/components/schemas/Token' description: 'If sent in the request, the marker that is used as a starting point for this inventory configuration list response.' InventoryConfigurationList: xml: name: InventoryConfiguration $ref: '#/components/schemas/InventoryConfigurationList' description: The list of inventory configurations for a bucket. IsTruncated: $ref: '#/components/schemas/IsTruncated' description: Tells whether the returned list of inventory configurations is complete. A value of true indicates that the list is not complete and the NextContinuationToken is provided for a subsequent request. NextContinuationToken: $ref: '#/components/schemas/NextToken' description: The marker used to continue this inventory configuration listing. Use the NextContinuationToken from this response to continue the listing in a subsequent request. The continuation token is an opaque value that Amazon S3 understands. ListBucketMetricsConfigurationsOutput: type: object properties: IsTruncated: $ref: '#/components/schemas/IsTruncated' description: Indicates whether the returned list of metrics configurations is complete. A value of true indicates that the list is not complete and the NextContinuationToken will be provided for a subsequent request. ContinuationToken: $ref: '#/components/schemas/Token' description: The marker that is used as a starting point for this metrics configuration list response. This value is present if it was sent in the request. NextContinuationToken: $ref: '#/components/schemas/NextToken' description: The marker used to continue a metrics configuration listing that has been truncated. Use the NextContinuationToken from a previously truncated list response to continue the listing. The continuation token is an opaque value that Amazon S3 understands. MetricsConfigurationList: xml: name: MetricsConfiguration $ref: '#/components/schemas/MetricsConfigurationList' description: The list of metrics configurations for a bucket. ListBucketsOutput: type: object example: Buckets: - CreationDate: '2012-02-15T21: 03: 02.000Z' Name: examplebucket - CreationDate: '2011-07-24T19: 33: 50.000Z' Name: examplebucket2 - CreationDate: '2010-12-17T00: 56: 49.000Z' Name: examplebucket3 Owner: DisplayName: own-display-name ID: examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31 properties: Buckets: $ref: '#/components/schemas/Buckets' description: The list of buckets owned by the requestor. Owner: $ref: '#/components/schemas/Owner' description: The owner of the buckets listed. ListMultipartUploadsOutput: type: object example: Bucket: acl1 IsTruncated: true KeyMarker: '' MaxUploads: '2' NextKeyMarker: someobjectkey NextUploadIdMarker: examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw-- UploadIdMarker: '' Uploads: - Initiated: '2014-05-01T05:40:58.000Z' Initiator: DisplayName: ownder-display-name ID: examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc Key: JavaFile Owner: DisplayName: mohanataws ID: 852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc StorageClass: STANDARD UploadId: gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q-- - Initiated: '2014-05-01T05:41:27.000Z' Initiator: DisplayName: ownder-display-name ID: examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc Key: JavaFile Owner: DisplayName: ownder-display-name ID: examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc StorageClass: STANDARD UploadId: b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw-- properties: Bucket: $ref: '#/components/schemas/BucketName' description: Name of the bucket to which the multipart upload was initiated. KeyMarker: $ref: '#/components/schemas/KeyMarker' description: The key at or after which the listing began. UploadIdMarker: $ref: '#/components/schemas/UploadIdMarker' description: Upload ID after which listing began. NextKeyMarker: $ref: '#/components/schemas/NextKeyMarker' description: 'When a list is truncated, this element specifies the value that should be used for the key-marker request parameter in a subsequent request.' Prefix: $ref: '#/components/schemas/Prefix' description: 'When a prefix is provided in the request, this field contains the specified prefix. The result contains only keys starting with the specified prefix.' Delimiter: $ref: '#/components/schemas/Delimiter' description: 'Contains the delimiter you specified in the request. If you don''t specify a delimiter in your request, this element is absent from the response.' NextUploadIdMarker: $ref: '#/components/schemas/NextUploadIdMarker' description: 'When a list is truncated, this element specifies the value that should be used for the upload-id-marker request parameter in a subsequent request.' MaxUploads: $ref: '#/components/schemas/MaxUploads' description: Maximum number of multipart uploads that could have been included in the response. IsTruncated: $ref: '#/components/schemas/IsTruncated' description: Indicates whether the returned list of multipart uploads is truncated. A value of true indicates that the list was truncated. The list can be truncated if the number of multipart uploads exceeds the limit allowed or specified by max uploads. Uploads: xml: name: Upload $ref: '#/components/schemas/MultipartUploadList' description: Container for elements related to a particular multipart upload. A response can contain zero or more Upload elements. CommonPrefixes: $ref: '#/components/schemas/CommonPrefixList' description: 'If you specify a delimiter in the request, then the result returns each distinct key prefix containing the delimiter in a CommonPrefixes element. The distinct key prefixes are returned in the Prefix child element.' EncodingType: $ref: '#/components/schemas/EncodingType' description: '

Encoding type used by Amazon S3 to encode object keys in the response.

If you specify encoding-type request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements:

Delimiter, KeyMarker, Prefix, NextKeyMarker, Key.

' ListObjectVersionsOutput: type: object example: Versions: - ETag: '"6805f2cfc46c0f04559748bb039d69ae"' IsLatest: true Key: HappyFace.jpg LastModified: '2016-12-15T01:19:41.000Z' Owner: DisplayName: owner-display-name ID: examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc Size: 3191 StorageClass: STANDARD VersionId: 'null' - ETag: '"6805f2cfc46c0f04559748bb039d69ae"' IsLatest: false Key: HappyFace.jpg LastModified: '2016-12-13T00:58:26.000Z' Owner: DisplayName: owner-display-name ID: examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc Size: 3191 StorageClass: STANDARD VersionId: PHtexPGjH2y.zBgT8LmB7wwLI2mpbz.k properties: IsTruncated: $ref: '#/components/schemas/IsTruncated' description: 'A flag that indicates whether Amazon S3 returned all of the results that satisfied the search criteria. If your results were truncated, you can make a follow-up paginated request using the NextKeyMarker and NextVersionIdMarker response parameters as a starting place in another request to return the rest of the results.' KeyMarker: $ref: '#/components/schemas/KeyMarker' description: Marks the last key returned in a truncated response. VersionIdMarker: $ref: '#/components/schemas/VersionIdMarker' description: Marks the last version of the key returned in a truncated response. NextKeyMarker: $ref: '#/components/schemas/NextKeyMarker' description: 'When the number of responses exceeds the value of MaxKeys, NextKeyMarker specifies the first key not returned that satisfies the search criteria. Use this value for the key-marker request parameter in a subsequent request.' NextVersionIdMarker: $ref: '#/components/schemas/NextVersionIdMarker' description: 'When the number of responses exceeds the value of MaxKeys, NextVersionIdMarker specifies the first object version not returned that satisfies the search criteria. Use this value for the version-id-marker request parameter in a subsequent request.' Versions: xml: name: Version $ref: '#/components/schemas/ObjectVersionList' description: Container for version information. DeleteMarkers: xml: name: DeleteMarker $ref: '#/components/schemas/DeleteMarkers' description: Container for an object that is a delete marker. Name: $ref: '#/components/schemas/BucketName' description: Bucket name. Prefix: $ref: '#/components/schemas/Prefix' description: Selects objects that start with the value supplied by this parameter. Delimiter: $ref: '#/components/schemas/Delimiter' description: The delimiter grouping the included keys. A delimiter is a character that you specify to group keys. All keys that contain the same string between the prefix and the first occurrence of the delimiter are grouped under a single result element in CommonPrefixes. These groups are counted as one result against the max-keys limitation. These keys are not returned elsewhere in the response. MaxKeys: $ref: '#/components/schemas/MaxKeys' description: Specifies the maximum number of objects to return. CommonPrefixes: $ref: '#/components/schemas/CommonPrefixList' description: All of the keys rolled up into a common prefix count as a single return when calculating the number of returns. EncodingType: $ref: '#/components/schemas/EncodingType' description: '

Encoding type used by Amazon S3 to encode object key names in the XML response.

If you specify encoding-type request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements:

KeyMarker, NextKeyMarker, Prefix, Key, and Delimiter.

' ListObjectsOutput: type: object example: Contents: - ETag: '"70ee1738b6b21e2c8a43f3a5ab0eee71"' Key: example1.jpg LastModified: '2014-11-21T19:40:05.000Z' Owner: DisplayName: myname ID: 12345example25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc Size: 11 StorageClass: STANDARD - ETag: '"9c8af9a76df052144598c115ef33e511"' Key: example2.jpg LastModified: '2013-11-15T01:10:49.000Z' Owner: DisplayName: myname ID: 12345example25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc Size: 713193 StorageClass: STANDARD NextMarker: eyJNYXJrZXIiOiBudWxsLCAiYm90b190cnVuY2F0ZV9hbW91bnQiOiAyfQ== properties: IsTruncated: $ref: '#/components/schemas/IsTruncated' description: A flag that indicates whether Amazon S3 returned all of the results that satisfied the search criteria. Marker: $ref: '#/components/schemas/Marker' description: Indicates where in the bucket listing begins. Marker is included in the response if it was sent with the request. NextMarker: $ref: '#/components/schemas/NextMarker' description: 'When response is truncated (the IsTruncated element value in the response is true), you can use the key name in this field as marker in the subsequent request to get next set of objects. Amazon S3 lists objects in alphabetical order Note: This element is returned only if you have delimiter request parameter specified. If response does not include the NextMarker and it is truncated, you can use the value of the last Key in the response as the marker in the subsequent request to get the next set of object keys.' Contents: $ref: '#/components/schemas/ObjectList' description: Metadata about each object returned. Name: $ref: '#/components/schemas/BucketName' description: Bucket name. Prefix: $ref: '#/components/schemas/Prefix' description: Keys that begin with the indicated prefix. Delimiter: $ref: '#/components/schemas/Delimiter' description: Causes keys that contain the same string between the prefix and the first occurrence of the delimiter to be rolled up into a single result element in the CommonPrefixes collection. These rolled-up keys are not returned elsewhere in the response. Each rolled-up result counts as only one return against the MaxKeys value. MaxKeys: $ref: '#/components/schemas/MaxKeys' description: The maximum number of keys returned in the response body. CommonPrefixes: $ref: '#/components/schemas/CommonPrefixList' description: '

All of the keys rolled up in a common prefix count as a single return when calculating the number of returns.

A response can contain CommonPrefixes only if you specify a delimiter.

CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string specified by the delimiter.

CommonPrefixes lists keys that act like subdirectories in the directory specified by Prefix.

For example, if the prefix is notes/ and the delimiter is a slash (/) as in notes/summer/july, the common prefix is notes/summer/. All of the keys that roll up into a common prefix count as a single return when calculating the number of returns.

' EncodingType: $ref: '#/components/schemas/EncodingType' description: Encoding type used by Amazon S3 to encode object keys in the response. ListObjectsV2Output: type: object example: Contents: - ETag: '"70ee1738b6b21e2c8a43f3a5ab0eee71"' Key: happyface.jpg LastModified: '2014-11-21T19:40:05.000Z' Size: 11 StorageClass: STANDARD - ETag: '"becf17f89c30367a9a44495d62ed521a-1"' Key: test.jpg LastModified: '2014-05-02T04:51:50.000Z' Size: 4192256 StorageClass: STANDARD IsTruncated: true KeyCount: '2' MaxKeys: '2' Name: examplebucket NextContinuationToken: 1w41l63U0xa8q7smH50vCxyTQqdxo69O3EmK28Bi5PcROI4wI/EyIJg== Prefix: '' properties: IsTruncated: $ref: '#/components/schemas/IsTruncated' description: 'Set to false if all of the results were returned. Set to true if more keys are available to return. If the number of results exceeds that specified by MaxKeys, all of the results might not be returned.' Contents: $ref: '#/components/schemas/ObjectList' description: Metadata about each object returned. Name: $ref: '#/components/schemas/BucketName' description: '

Bucket name.

When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.

' Prefix: $ref: '#/components/schemas/Prefix' description: ' Keys that begin with the indicated prefix.' Delimiter: $ref: '#/components/schemas/Delimiter' description: Causes keys that contain the same string between the prefix and the first occurrence of the delimiter to be rolled up into a single result element in the CommonPrefixes collection. These rolled-up keys are not returned elsewhere in the response. Each rolled-up result counts as only one return against the MaxKeys value. MaxKeys: $ref: '#/components/schemas/MaxKeys' description: 'Sets the maximum number of keys returned in the response. By default the API returns up to 1,000 key names. The response might contain fewer keys but will never contain more.' CommonPrefixes: $ref: '#/components/schemas/CommonPrefixList' description: '

All of the keys rolled up into a common prefix count as a single return when calculating the number of returns.

A response can contain CommonPrefixes only if you specify a delimiter.

CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string specified by a delimiter.

CommonPrefixes lists keys that act like subdirectories in the directory specified by Prefix.

For example, if the prefix is notes/ and the delimiter is a slash (/) as in notes/summer/july, the common prefix is notes/summer/. All of the keys that roll up into a common prefix count as a single return when calculating the number of returns.

' EncodingType: $ref: '#/components/schemas/EncodingType' description: '

Encoding type used by Amazon S3 to encode object key names in the XML response.

If you specify the encoding-type request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements:

Delimiter, Prefix, Key, and StartAfter.

' KeyCount: $ref: '#/components/schemas/KeyCount' description: 'KeyCount is the number of keys returned with this request. KeyCount will always be less than equals to MaxKeys field. Say you ask for 50 keys, your result will include less than equals 50 keys ' ContinuationToken: $ref: '#/components/schemas/Token' description: ' If ContinuationToken was sent with the request, it is included in the response.' NextContinuationToken: $ref: '#/components/schemas/NextToken' description: ' NextContinuationToken is sent when isTruncated is true, which means there are more keys in the bucket that can be listed. The next list requests to Amazon S3 can be continued with this NextContinuationToken. NextContinuationToken is obfuscated and is not a real key' StartAfter: $ref: '#/components/schemas/StartAfter' description: 'If StartAfter was sent with the request, it is included in the response.' ListPartsOutput: type: object example: Initiator: DisplayName: owner-display-name ID: examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc Owner: DisplayName: owner-display-name ID: examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc Parts: - ETag: '"d8c2eafd90c266e19ab9dcacc479f8af"' LastModified: '2016-12-16T00:11:42.000Z' PartNumber: '1' Size: 26246026 - ETag: '"d8c2eafd90c266e19ab9dcacc479f8af"' LastModified: '2016-12-16T00:15:01.000Z' PartNumber: '2' Size: 26246026 StorageClass: STANDARD properties: Bucket: $ref: '#/components/schemas/BucketName' description: Name of the bucket to which the multipart upload was initiated. Key: $ref: '#/components/schemas/ObjectKey' description: Object key for which the multipart upload was initiated. UploadId: $ref: '#/components/schemas/MultipartUploadId' description: Upload ID identifying the multipart upload whose parts are being listed. PartNumberMarker: $ref: '#/components/schemas/PartNumberMarker' description: 'When a list is truncated, this element specifies the last part in the list, as well as the value to use for the part-number-marker request parameter in a subsequent request.' NextPartNumberMarker: $ref: '#/components/schemas/NextPartNumberMarker' description: 'When a list is truncated, this element specifies the last part in the list, as well as the value to use for the part-number-marker request parameter in a subsequent request.' MaxParts: $ref: '#/components/schemas/MaxParts' description: Maximum number of parts that were allowed in the response. IsTruncated: $ref: '#/components/schemas/IsTruncated' description: ' Indicates whether the returned list of parts is truncated. A true value indicates that the list was truncated. A list can be truncated if the number of parts exceeds the limit returned in the MaxParts element.' Parts: xml: name: Part $ref: '#/components/schemas/Parts' description: ' Container for elements related to a particular part. A response can contain zero or more Part elements.' Initiator: $ref: '#/components/schemas/Initiator' description: 'Container element that identifies who initiated the multipart upload. If the initiator is an AWS account, this element provides the same information as the Owner element. If the initiator is an IAM User, this element provides the user ARN and display name.' Owner: $ref: '#/components/schemas/Owner' description: ' Container element that identifies the object owner, after the object is created. If multipart upload is initiated by an IAM user, this element provides the parent account ID and display name.' StorageClass: $ref: '#/components/schemas/StorageClass' description: Class of storage (STANDARD or REDUCED_REDUNDANCY) used to store the uploaded object. BucketAccelerateStatus: type: string enum: - Enabled - Suspended Grants: type: array items: xml: name: Grant $ref: '#/components/schemas/Grant' Owner: type: object properties: DisplayName: $ref: '#/components/schemas/DisplayName' description: Container for the display name of the owner. ID: $ref: '#/components/schemas/ID' description: Container for the ID of the owner. description: Container for the owner's display name and ID. AnalyticsId: type: string AnalyticsFilter: type: object properties: Prefix: $ref: '#/components/schemas/Prefix' description: The prefix to use when evaluating an analytics filter. Tag: $ref: '#/components/schemas/Tag' description: The tag to use when evaluating an analytics filter. And: $ref: '#/components/schemas/AnalyticsAndOperator' description: 'A conjunction (logical AND) of predicates, which is used in evaluating an analytics filter. The operator must have at least two predicates.' description: 'The filter used to describe a set of objects for analyses. A filter must have exactly one prefix, one tag, or one conjunction (AnalyticsAndOperator). If no filter is provided, all objects will be considered in any analysis.' StorageClassAnalysis: type: object properties: DataExport: $ref: '#/components/schemas/StorageClassAnalysisDataExport' description: Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported. description: Specifies data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes for an Amazon S3 bucket. CORSRules: type: array items: $ref: '#/components/schemas/CORSRule' xml: wrapped: false ServerSideEncryptionRules: type: array items: $ref: '#/components/schemas/ServerSideEncryptionRule' xml: wrapped: false InventoryDestination: type: object required: - S3BucketDestination properties: S3BucketDestination: $ref: '#/components/schemas/InventoryS3BucketDestination' description: 'Contains the bucket name, file format, bucket owner (optional), and prefix (optional) where inventory results are published.' description: Specifies the inventory configuration for an Amazon S3 bucket. IsEnabled: type: boolean InventoryFilter: type: object required: - Prefix properties: Prefix: $ref: '#/components/schemas/Prefix' description: The prefix that an object must have to be included in the inventory results. description: Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria. InventoryId: type: string InventoryIncludedObjectVersions: type: string enum: - All - Current InventoryOptionalFields: type: array items: xml: name: Field $ref: '#/components/schemas/InventoryOptionalField' InventorySchedule: type: object required: - Frequency properties: Frequency: $ref: '#/components/schemas/InventoryFrequency' description: Specifies how frequently inventory results are produced. description: Specifies the schedule for generating inventory results. Rules: type: array items: $ref: '#/components/schemas/Rule' xml: wrapped: false LifecycleRules: type: array items: $ref: '#/components/schemas/LifecycleRule' xml: wrapped: false LoggingEnabled: type: object required: - TargetBucket - TargetPrefix properties: TargetBucket: $ref: '#/components/schemas/TargetBucket' description: 'Specifies the bucket where you want Amazon S3 to store server access logs. You can have your logs delivered to any bucket that you own, including the same bucket that is being logged. You can also configure multiple buckets to deliver their logs to the same target bucket. In this case, you should choose a different TargetPrefix for each source bucket so that the delivered log files can be distinguished by key.' TargetGrants: $ref: '#/components/schemas/TargetGrants' description: Container for granting information. TargetPrefix: $ref: '#/components/schemas/TargetPrefix' description: 'A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.' description: 'Describes where logs are stored and the prefix that Amazon S3 assigns to all log object keys for a bucket. For more information, see PUT Bucket logging in the Amazon Simple Storage Service API Reference.' MetricsId: type: string MetricsFilter: type: object properties: Prefix: $ref: '#/components/schemas/Prefix' description: The prefix used when evaluating a metrics filter. Tag: $ref: '#/components/schemas/Tag' description: The tag used when evaluating a metrics filter. And: $ref: '#/components/schemas/MetricsAndOperator' description: 'A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter. The operator must have at least two predicates, and an object must match all of the predicates in order for the filter to apply.' description: 'Specifies a metrics configuration filter. The metrics configuration only includes objects that meet the filter''s criteria. A filter must be a prefix, a tag, or a conjunction (MetricsAndOperator).' TopicConfigurationDeprecated: type: object properties: Id: $ref: '#/components/schemas/NotificationId' Events: xml: name: Event $ref: '#/components/schemas/EventList' description: A collection of events related to objects Event: deprecated: true $ref: '#/components/schemas/Event' description: Bucket event for which to send notifications. Topic: $ref: '#/components/schemas/TopicArn' description: Amazon SNS topic to which Amazon S3 will publish a message to report the specified events for the bucket. description: 'A container for specifying the configuration for publication of messages to an Amazon Simple Notification Service (Amazon SNS) topic when Amazon S3 detects specified events. This data type is deprecated. Use TopicConfiguration instead.' QueueConfigurationDeprecated: type: object properties: Id: $ref: '#/components/schemas/NotificationId' Event: deprecated: true $ref: '#/components/schemas/Event' Events: xml: name: Event $ref: '#/components/schemas/EventList' description: A collection of bucket events for which to send notifications Queue: $ref: '#/components/schemas/QueueArn' description: 'The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon S3 publishes a message when it detects events of the specified type. ' description: 'This data type is deprecated. Use QueueConfiguration for the same purposes. This data type specifies the configuration for publishing messages to an Amazon Simple Queue Service (Amazon SQS) queue when Amazon S3 detects specified events. ' CloudFunctionConfiguration: type: object properties: Id: $ref: '#/components/schemas/NotificationId' Event: deprecated: true $ref: '#/components/schemas/Event' Events: xml: name: Event $ref: '#/components/schemas/EventList' description: Bucket events for which to send notifications. CloudFunction: $ref: '#/components/schemas/CloudFunction' description: Lambda cloud function ARN that Amazon S3 can invoke when it detects events of the specified type. InvocationRole: $ref: '#/components/schemas/CloudFunctionInvocationRole' description: The role supporting the invocation of the Lambda function description: Container for specifying the AWS Lambda notification configuration. TopicConfigurationList: type: array items: $ref: '#/components/schemas/TopicConfiguration' xml: wrapped: false QueueConfigurationList: type: array items: $ref: '#/components/schemas/QueueConfiguration' xml: wrapped: false LambdaFunctionConfigurationList: type: array items: $ref: '#/components/schemas/LambdaFunctionConfiguration' xml: wrapped: false Role: type: string ReplicationRules: type: array items: $ref: '#/components/schemas/ReplicationRule' xml: wrapped: false Payer: type: string enum: - Requester - BucketOwner TagSet: type: array items: xml: name: Tag $ref: '#/components/schemas/Tag' MFADelete: type: string enum: - Enabled - Disabled BucketVersioningStatus: type: string enum: - Enabled - Suspended ErrorDocument: type: object required: - Key properties: Key: $ref: '#/components/schemas/ObjectKey' description: The object key name to use when a 4XX class error occurs. description: The error information. IndexDocument: type: object required: - Suffix properties: Suffix: $ref: '#/components/schemas/Suffix' description: 'A suffix that is appended to a request that is for a directory on the website endpoint (for example,if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character.' description: Container for the Suffix element. RedirectAllRequestsTo: type: object required: - HostName properties: HostName: $ref: '#/components/schemas/HostName' description: Name of the host where requests are redirected. Protocol: $ref: '#/components/schemas/Protocol' description: Protocol to use when redirecting requests. The default is the protocol that is used in the original request. description: Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket. RoutingRules: type: array items: xml: name: RoutingRule $ref: '#/components/schemas/RoutingRule' PutObjectOutput: type: object example: ETag: '"6805f2cfc46c0f04559748bb039d69ae"' ServerSideEncryption: AES256 VersionId: CG612hodqujkf8FaaNfp8U..FIhLROcp properties: {} PutObjectAclOutput: type: object example: {} properties: {} PutObjectLegalHoldOutput: type: object properties: {} ObjectLockLegalHoldStatus: type: string enum: - 'ON' - 'OFF' PutObjectLockConfigurationOutput: type: object properties: {} ObjectLockEnabled: type: string enum: - Enabled ObjectLockRule: type: object properties: DefaultRetention: $ref: '#/components/schemas/DefaultRetention' description: The default retention period that you want to apply to new objects placed in the specified bucket. description: The container element for an Object Lock rule. PutObjectRetentionOutput: type: object properties: {} ObjectLockRetentionMode: type: string enum: - GOVERNANCE - COMPLIANCE Date: type: string format: date-time PutObjectTaggingOutput: type: object example: VersionId: 'null' properties: {} Setting: type: boolean RestoreObjectOutput: type: object example: {} properties: {} Days: type: integer GlacierJobParameters: type: object required: - Tier properties: Tier: $ref: '#/components/schemas/Tier' description: S3 Glacier retrieval tier at which the restore will be processed. description: Container for S3 Glacier job parameters. RestoreRequestType: type: string enum: - SELECT Tier: type: string enum: - Standard - Bulk - Expedited Description: type: string SelectParameters: type: object required: - InputSerialization - ExpressionType - Expression - OutputSerialization properties: InputSerialization: $ref: '#/components/schemas/InputSerialization' description: Describes the serialization format of the object. ExpressionType: $ref: '#/components/schemas/ExpressionType' description: 'The type of the provided expression (for example, SQL).' Expression: $ref: '#/components/schemas/Expression' description: The expression that is used to query the object. OutputSerialization: $ref: '#/components/schemas/OutputSerialization' description: Describes how the results of the Select job are serialized. description: Describes the parameters for Select job types. OutputLocation: type: object properties: S3: $ref: '#/components/schemas/S3Location' description: Describes an S3 location that will receive the results of the restore request. description: Describes the location where the restore job's output is stored. ObjectAlreadyInActiveTierError: {} SelectObjectContentOutput: type: object properties: Payload: $ref: '#/components/schemas/SelectObjectContentEventStream' description: The array of results. EnableRequestProgress: type: boolean CSVInput: type: object properties: FileHeaderInfo: $ref: '#/components/schemas/FileHeaderInfo' description: '

Describes the first line of input. Valid values are:

  • NONE: First line is not a header.

  • IGNORE: First line is a header, but you can''t use the header values to indicate the column in an expression. You can use column position (such as _1, _2, …) to indicate the column (SELECT s._1 FROM OBJECT s).

  • Use: First line is a header, and you can use the header value to identify a column in an expression (SELECT "name" FROM OBJECT).

' Comments: $ref: '#/components/schemas/Comments' description: A single character used to indicate that a row should be ignored when the character is present at the start of that row. You can specify any character to indicate a comment line. QuoteEscapeCharacter: $ref: '#/components/schemas/QuoteEscapeCharacter' description: 'A single character used for escaping the quotation mark character inside an already escaped value. For example, the value """ a , b """ is parsed as " a , b ".' RecordDelimiter: $ref: '#/components/schemas/RecordDelimiter' description: 'A single character used to separate individual records in the input. Instead of the default value, you can specify an arbitrary delimiter.' FieldDelimiter: $ref: '#/components/schemas/FieldDelimiter' description: A single character used to separate individual fields in a record. You can specify an arbitrary delimiter. QuoteCharacter: $ref: '#/components/schemas/QuoteCharacter' description: '

A single character used for escaping when the field delimiter is part of the value. For example, if the value is a, b, Amazon S3 wraps this field value in quotation marks, as follows: " a , b ".

Type: String

Default: "

Ancestors: CSV

' AllowQuotedRecordDelimiter: $ref: '#/components/schemas/AllowQuotedRecordDelimiter' description: Specifies that CSV field values may contain quoted record delimiters and such records should be allowed. Default value is FALSE. Setting this value to TRUE may lower performance. description: Describes how an uncompressed comma-separated values (CSV)-formatted input object is formatted. CompressionType: type: string enum: - NONE - GZIP - BZIP2 JSONInput: type: object properties: Type: $ref: '#/components/schemas/JSONType' description: 'The type of JSON. Valid values: Document, Lines.' description: Specifies JSON as object's input serialization format. ParquetInput: type: object properties: {} description: Container for Parquet. CSVOutput: type: object properties: QuoteFields: $ref: '#/components/schemas/QuoteFields' description: '

Indicates whether to use quotation marks around output fields.

  • ALWAYS: Always use quotation marks for output fields.

  • ASNEEDED: Use quotation marks for output fields when needed.

' QuoteEscapeCharacter: $ref: '#/components/schemas/QuoteEscapeCharacter' description: The single character used for escaping the quote character inside an already escaped value. RecordDelimiter: $ref: '#/components/schemas/RecordDelimiter' description: 'A single character used to separate individual records in the output. Instead of the default value, you can specify an arbitrary delimiter.' FieldDelimiter: $ref: '#/components/schemas/FieldDelimiter' description: The value used to separate individual fields in a record. You can specify an arbitrary delimiter. QuoteCharacter: $ref: '#/components/schemas/QuoteCharacter' description: 'A single character used for escaping when the field delimiter is part of the value. For example, if the value is a, b, Amazon S3 wraps this field value in quotation marks, as follows: " a , b ".' description: Describes how uncompressed comma-separated values (CSV)-formatted results are formatted. JSONOutput: type: object properties: RecordDelimiter: $ref: '#/components/schemas/RecordDelimiter' description: 'The value used to separate individual records in the output. If no value is specified, Amazon S3 uses a newline character (''\n'').' description: Specifies JSON as request's output serialization format. Start: type: integer End: type: integer UploadPartOutput: type: object example: ETag: '"d8c2eafd90c266e19ab9dcacc479f8af"' properties: {} UploadPartCopyOutput: type: object example: CopyPartResult: ETag: '"b0c6f0e7e054ab8fa2536a2677f8734d"' LastModified: '2016-12-29T21:24:43.000Z' properties: CopyPartResult: $ref: '#/components/schemas/CopyPartResult' description: Container for all response elements. AbortDate: type: string format: date-time DaysAfterInitiation: type: integer AbortIncompleteMultipartUpload: type: object properties: DaysAfterInitiation: $ref: '#/components/schemas/DaysAfterInitiation' description: Specifies the number of days after which Amazon S3 aborts an incomplete multipart upload. description: '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 Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Policy in the Amazon Simple Storage Service Developer Guide.' RequestCharged: type: string enum: - requester description: 'If present, indicates that the requester was successfully charged for the request.' BucketName: type: string ObjectKey: type: string minLength: 1 MultipartUploadId: type: string RequestPayer: type: string enum: - requester description: 'Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide.' AbortMultipartUploadRequest: type: object title: AbortMultipartUploadRequest properties: {} AbortRuleId: type: string AccelerateConfiguration: type: object properties: Status: $ref: '#/components/schemas/BucketAccelerateStatus' description: Specifies the transfer acceleration status of the bucket. description: 'Configures the transfer acceleration state for an Amazon S3 bucket. For more information, see Amazon S3 Transfer Acceleration in the Amazon Simple Storage Service Developer Guide.' AcceptRanges: type: string AccessControlPolicy: type: object properties: Grants: xml: name: AccessControlList $ref: '#/components/schemas/Grants' description: A list of grants. Owner: $ref: '#/components/schemas/Owner' description: Container for the bucket owner's display name and ID. description: Contains the elements that set the ACL permissions for an object per grantee. OwnerOverride: type: string enum: - Destination AccessControlTranslation: type: object required: - Owner properties: Owner: $ref: '#/components/schemas/OwnerOverride' description: 'Specifies the replica ownership. For default and valid values, see PUT bucket replication in the Amazon Simple Storage Service API Reference.' description: A container for information about access control for replicas. AccountId: type: string AllowQuotedRecordDelimiter: type: boolean AllowedHeader: type: string AllowedHeaders: type: array items: $ref: '#/components/schemas/AllowedHeader' xml: wrapped: false AllowedMethod: type: string AllowedMethods: type: array items: $ref: '#/components/schemas/AllowedMethod' xml: wrapped: false AllowedOrigin: type: string AllowedOrigins: type: array items: $ref: '#/components/schemas/AllowedOrigin' xml: wrapped: false Prefix: type: string AnalyticsAndOperator: type: object properties: Prefix: $ref: '#/components/schemas/Prefix' description: 'The prefix to use when evaluating an AND predicate: The prefix that an object must have to be included in the metrics results.' Tags: xml: name: Tag $ref: '#/components/schemas/TagSet' description: The list of tags to use when evaluating an AND predicate. description: 'A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter. The operator must have at least two predicates in any combination, and an object must match all of the predicates for the filter to apply.' xml: wrapped: false AnalyticsConfiguration: type: object required: - Id - StorageClassAnalysis properties: Id: $ref: '#/components/schemas/AnalyticsId' description: The ID that identifies the analytics configuration. Filter: $ref: '#/components/schemas/AnalyticsFilter' description: 'The filter used to describe a set of objects for analyses. A filter must have exactly one prefix, one tag, or one conjunction (AnalyticsAndOperator). If no filter is provided, all objects will be considered in any analysis.' StorageClassAnalysis: $ref: '#/components/schemas/StorageClassAnalysis' description: ' Contains data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes. ' description: ' Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.' AnalyticsConfigurationList: type: array items: $ref: '#/components/schemas/AnalyticsConfiguration' xml: wrapped: false AnalyticsS3BucketDestination: type: object required: - Format - Bucket properties: Format: $ref: '#/components/schemas/AnalyticsS3ExportFileFormat' description: Specifies the file format used when exporting data to Amazon S3. BucketAccountId: $ref: '#/components/schemas/AccountId' description: '

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

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

' Bucket: $ref: '#/components/schemas/BucketName' description: The Amazon Resource Name (ARN) of the bucket to which data is exported. Prefix: $ref: '#/components/schemas/Prefix' description: The prefix to use when exporting data. The prefix is prepended to all results. description: Contains information about where to publish the analytics results. AnalyticsExportDestination: type: object required: - S3BucketDestination properties: S3BucketDestination: $ref: '#/components/schemas/AnalyticsS3BucketDestination' description: A destination signifying output to an S3 bucket. description: Where to publish the analytics results. Tag: type: object required: - Key - Value properties: Key: $ref: '#/components/schemas/ObjectKey' description: Name of the object key. Value: $ref: '#/components/schemas/Value' description: Value of the tag. description: A container of a key value name pair. AnalyticsS3ExportFileFormat: type: string enum: - CSV Body: type: string CreationDate: type: string format: date-time Bucket: type: object properties: Name: $ref: '#/components/schemas/BucketName' description: The name of the bucket. CreationDate: $ref: '#/components/schemas/CreationDate' description: Date the bucket was created. description: ' In terms of implementation, a Bucket is a resource. An Amazon S3 bucket name is globally unique, and the namespace is shared by all AWS accounts. ' BucketCannedACL: type: string enum: - private - public-read - public-read-write - authenticated-read BucketLifecycleConfiguration: type: object required: - Rules properties: Rules: xml: name: Rule $ref: '#/components/schemas/LifecycleRules' description: A lifecycle rule for individual objects in an Amazon S3 bucket. description: 'Specifies the lifecycle configuration for objects in an Amazon S3 bucket. For more information, see Object Lifecycle Management in the Amazon Simple Storage Service Developer Guide.' BucketLoggingStatus: type: object properties: LoggingEnabled: $ref: '#/components/schemas/LoggingEnabled' description: Container for logging status information. BucketLogsPermission: type: string enum: - FULL_CONTROL - READ - WRITE Buckets: type: array items: xml: name: Bucket $ref: '#/components/schemas/Bucket' BypassGovernanceRetention: type: boolean BytesProcessed: type: integer BytesReturned: type: integer BytesScanned: type: integer CORSConfiguration: type: object required: - CORSRules properties: CORSRules: xml: name: CORSRule $ref: '#/components/schemas/CORSRules' description: A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration. description: 'Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see Enabling Cross-Origin Resource Sharing in the Amazon Simple Storage Service Developer Guide.' ExposeHeaders: type: array items: $ref: '#/components/schemas/ExposeHeader' xml: wrapped: false MaxAgeSeconds: type: integer CORSRule: type: object required: - AllowedMethods - AllowedOrigins properties: AllowedHeaders: xml: name: AllowedHeader $ref: '#/components/schemas/AllowedHeaders' description: 'Headers that are specified in the Access-Control-Request-Headers header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed.' AllowedMethods: xml: name: AllowedMethod $ref: '#/components/schemas/AllowedMethods' description: 'An HTTP method that you allow the origin to execute. Valid values are GET, PUT, HEAD, POST, and DELETE.' AllowedOrigins: xml: name: AllowedOrigin $ref: '#/components/schemas/AllowedOrigins' description: One or more origins you want customers to be able to access the bucket from. ExposeHeaders: xml: name: ExposeHeader $ref: '#/components/schemas/ExposeHeaders' description: 'One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object).' MaxAgeSeconds: $ref: '#/components/schemas/MaxAgeSeconds' description: The time in seconds that your browser is to cache the preflight response for the specified resource. description: Specifies a cross-origin access rule for an Amazon S3 bucket. FileHeaderInfo: type: string enum: - USE - IGNORE - NONE Comments: type: string QuoteEscapeCharacter: type: string RecordDelimiter: type: string FieldDelimiter: type: string QuoteCharacter: type: string QuoteFields: type: string enum: - ALWAYS - ASNEEDED CacheControl: type: string CloudFunction: type: string NotificationId: type: string description: 'An optional unique identifier for configurations in a notification configuration. If you don''t provide one, Amazon S3 will assign an ID.' Event: type: string enum: - 's3:ReducedRedundancyLostObject' - 's3:ObjectCreated:*' - 's3:ObjectCreated:Put' - 's3:ObjectCreated:Post' - 's3:ObjectCreated:Copy' - 's3:ObjectCreated:CompleteMultipartUpload' - 's3:ObjectRemoved:*' - 's3:ObjectRemoved:Delete' - 's3:ObjectRemoved:DeleteMarkerCreated' - 's3:ObjectRestore:*' - 's3:ObjectRestore:Post' - 's3:ObjectRestore:Completed' - 's3:Replication:*' - 's3:Replication:OperationFailedReplication' - 's3:Replication:OperationNotTracked' - 's3:Replication:OperationMissedThreshold' - 's3:Replication:OperationReplicatedAfterThreshold' description: The bucket event for which to send notifications. EventList: type: array items: $ref: '#/components/schemas/Event' xml: wrapped: false CloudFunctionInvocationRole: type: string Code: type: string CommonPrefix: type: object properties: Prefix: $ref: '#/components/schemas/Prefix' description: Container for the specified common prefix. description: 'Container for all (if there are any) keys between Prefix and the next occurrence of the string specified by a delimiter. CommonPrefixes lists keys that act like subdirectories in the directory specified by Prefix. For example, if the prefix is notes/ and the delimiter is a slash (/) as in notes/summer/july, the common prefix is notes/summer/. ' CommonPrefixList: type: array items: $ref: '#/components/schemas/CommonPrefix' xml: wrapped: false Location: type: string Expiration: type: string ETag: type: string ServerSideEncryption: type: string enum: - AES256 - 'aws:kms' ObjectVersionId: type: string SSEKMSKeyId: type: string format: password CompletedMultipartUpload: type: object properties: Parts: xml: name: Part $ref: '#/components/schemas/CompletedPartList' description: Array of CompletedPart data types. description: The container for the completed multipart upload details. CompleteMultipartUploadRequest: type: object title: CompleteMultipartUploadRequest properties: MultipartUpload: xml: name: CompleteMultipartUpload $ref: '#/components/schemas/CompletedMultipartUpload' description: The container for the multipart upload request information. xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' PartNumber: type: integer CompletedPart: type: object properties: ETag: $ref: '#/components/schemas/ETag' description: Entity tag returned when the part was uploaded. PartNumber: $ref: '#/components/schemas/PartNumber' description: 'Part number that identifies the part. This is a positive integer between 1 and 10,000.' description: Details of the parts that were uploaded. HttpErrorCodeReturnedEquals: type: string KeyPrefixEquals: type: string Condition: type: object properties: HttpErrorCodeReturnedEquals: $ref: '#/components/schemas/HttpErrorCodeReturnedEquals' description: 'The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied. Required when parent element Condition is specified and sibling KeyPrefixEquals is not specified. If both are specified, then both must be true for the redirect to be applied.' KeyPrefixEquals: $ref: '#/components/schemas/KeyPrefixEquals' description: 'The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix docs/, the key prefix will be /docs, which identifies all objects in the docs/ folder. Required when the parent element Condition is specified and sibling HttpErrorCodeReturnedEquals is not specified. If both conditions are specified, both must be true for the redirect to be applied.' description: 'A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the /docs folder, redirect to the /documents folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.' ConfirmRemoveSelfBucketAccess: type: boolean ContentDisposition: type: string ContentEncoding: type: string ContentLanguage: type: string ContentLength: type: integer ContentMD5: type: string ContentRange: type: string ContentType: type: string ContinuationEvent: type: object properties: {} description:

CopyObjectResult: type: object properties: ETag: $ref: '#/components/schemas/ETag' description: 'Returns the ETag of the new object. The ETag reflects only changes to the contents of an object, not its metadata. The source and destination ETag is identical for a successfully copied object.' LastModified: $ref: '#/components/schemas/LastModified' description: Returns the date that the object was last modified. description: Container for all response elements. CopySourceVersionId: type: string SSECustomerAlgorithm: type: string SSECustomerKeyMD5: type: string SSEKMSEncryptionContext: type: string format: password ObjectCannedACL: type: string enum: - private - public-read - public-read-write - authenticated-read - aws-exec-read - bucket-owner-read - bucket-owner-full-control CopySource: type: string pattern: \/.+\/.+ CopySourceIfMatch: type: string CopySourceIfModifiedSince: type: string format: date-time CopySourceIfNoneMatch: type: string CopySourceIfUnmodifiedSince: type: string format: date-time Expires: type: string format: date-time GrantFullControl: type: string GrantRead: type: string GrantReadACP: type: string GrantWriteACP: type: string Metadata: type: object additionalProperties: $ref: '#/components/schemas/MetadataValue' MetadataDirective: type: string enum: - COPY - REPLACE TaggingDirective: type: string enum: - COPY - REPLACE StorageClass: type: string enum: - STANDARD - REDUCED_REDUNDANCY - STANDARD_IA - ONEZONE_IA - INTELLIGENT_TIERING - GLACIER - DEEP_ARCHIVE WebsiteRedirectLocation: type: string SSECustomerKey: type: string format: password CopySourceSSECustomerAlgorithm: type: string CopySourceSSECustomerKey: type: string format: password CopySourceSSECustomerKeyMD5: type: string TaggingHeader: type: string ObjectLockMode: type: string enum: - GOVERNANCE - COMPLIANCE ObjectLockRetainUntilDate: type: string format: date-time CopyObjectRequest: type: object title: CopyObjectRequest properties: Metadata: xml: name: x-amz-meta- $ref: '#/components/schemas/Metadata' description: A map of metadata to store with the object in S3. LastModified: type: string format: date-time CopyPartResult: type: object properties: ETag: $ref: '#/components/schemas/ETag' description: Entity tag of the object. LastModified: $ref: '#/components/schemas/LastModified' description: Date and time at which the object was uploaded. description: Container for all response elements. CopySourceRange: type: string CreateBucketConfiguration: type: object properties: LocationConstraint: $ref: '#/components/schemas/BucketLocationConstraint' description: 'Specifies the Region where the bucket will be created. If you don''t specify a Region, the bucket is created in the US East (N. Virginia) Region (us-east-1).' description: The configuration information for the bucket. GrantWrite: type: string ObjectLockEnabledForBucket: type: boolean CreateBucketRequest: type: object title: CreateBucketRequest properties: CreateBucketConfiguration: $ref: '#/components/schemas/CreateBucketConfiguration' description: The configuration information for the bucket. xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' CreateMultipartUploadRequest: type: object title: CreateMultipartUploadRequest properties: Metadata: xml: name: x-amz-meta- $ref: '#/components/schemas/Metadata' description: A map of metadata to store with the object in S3. Years: type: integer DefaultRetention: type: object properties: Mode: $ref: '#/components/schemas/ObjectLockRetentionMode' description: The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. Days: $ref: '#/components/schemas/Days' description: The number of days that you want to specify for the default retention period. Years: $ref: '#/components/schemas/Years' description: The number of years that you want to specify for the default retention period. description: The container element for specifying the default Object Lock retention settings for new objects placed in the specified bucket. Delete: type: object required: - Objects properties: Objects: xml: name: Object $ref: '#/components/schemas/ObjectIdentifierList' description: The objects to delete. Quiet: $ref: '#/components/schemas/Quiet' description: 'Element to enable quiet mode for the request. When you add this element, you must set its value to true.' description: Container for the objects to delete. DeleteBucketAnalyticsConfigurationRequest: type: object title: DeleteBucketAnalyticsConfigurationRequest properties: {} DeleteBucketCorsRequest: type: object title: DeleteBucketCorsRequest properties: {} DeleteBucketEncryptionRequest: type: object title: DeleteBucketEncryptionRequest properties: {} DeleteBucketInventoryConfigurationRequest: type: object title: DeleteBucketInventoryConfigurationRequest properties: {} DeleteBucketLifecycleRequest: type: object title: DeleteBucketLifecycleRequest properties: {} DeleteBucketMetricsConfigurationRequest: type: object title: DeleteBucketMetricsConfigurationRequest properties: {} DeleteBucketPolicyRequest: type: object title: DeleteBucketPolicyRequest properties: {} DeleteBucketReplicationRequest: type: object title: DeleteBucketReplicationRequest properties: {} DeleteBucketRequest: type: object title: DeleteBucketRequest properties: {} DeleteBucketTaggingRequest: type: object title: DeleteBucketTaggingRequest properties: {} DeleteBucketWebsiteRequest: type: object title: DeleteBucketWebsiteRequest properties: {} DeleteMarker: type: boolean IsLatest: type: boolean DeleteMarkerEntry: type: object properties: Owner: $ref: '#/components/schemas/Owner' description: The account that created the delete marker.> Key: $ref: '#/components/schemas/ObjectKey' description: The object key. VersionId: $ref: '#/components/schemas/ObjectVersionId' description: Version ID of an object. IsLatest: $ref: '#/components/schemas/IsLatest' description: Specifies whether the object is (true) or is not (false) the latest version of an object. LastModified: $ref: '#/components/schemas/LastModified' description: Date and time the object was last modified. description: Information about the delete marker. DeleteMarkerReplicationStatus: type: string enum: - Enabled - Disabled DeleteMarkerReplication: type: object properties: Status: $ref: '#/components/schemas/DeleteMarkerReplicationStatus' description: '

Indicates whether to replicate delete markers.

In the current implementation, Amazon S3 doesn''t replicate the delete markers. The status must be Disabled.

' description: '

Specifies whether Amazon S3 replicates the delete markers. If you specify a Filter, you must specify this element. However, in the latest version of replication configuration (when Filter is specified), Amazon S3 doesn''t replicate delete markers. Therefore, the DeleteMarkerReplication element can contain only <Status>Disabled</Status>. For an example configuration, see Basic Rule Configuration.

If you don''t specify the Filter element, Amazon S3 assumes that the replication configuration is the earlier version, V1. In the earlier version, Amazon S3 handled replication of delete markers differently. For more information, see Backward Compatibility.

' DeleteMarkerVersionId: type: string DeleteMarkers: type: array items: $ref: '#/components/schemas/DeleteMarkerEntry' xml: wrapped: false MFA: type: string DeleteObjectRequest: type: object title: DeleteObjectRequest properties: {} DeleteObjectTaggingRequest: type: object title: DeleteObjectTaggingRequest properties: {} DeletedObjects: type: array items: $ref: '#/components/schemas/DeletedObject' xml: wrapped: false Errors: type: array items: $ref: '#/components/schemas/Error' xml: wrapped: false DeleteObjectsRequest: type: object required: - Delete title: DeleteObjectsRequest properties: Delete: $ref: '#/components/schemas/Delete' description: Container for the request. xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' DeletePublicAccessBlockRequest: type: object title: DeletePublicAccessBlockRequest properties: {} DeletedObject: type: object properties: Key: $ref: '#/components/schemas/ObjectKey' description: The name of the deleted object. VersionId: $ref: '#/components/schemas/ObjectVersionId' description: The version ID of the deleted object. DeleteMarker: $ref: '#/components/schemas/DeleteMarker' description: 'Specifies whether the versioned object that was permanently deleted was (true) or was not (false) a delete marker. In a simple DELETE, this header indicates whether (true) or not (false) a delete marker was created.' DeleteMarkerVersionId: $ref: '#/components/schemas/DeleteMarkerVersionId' description: 'The version ID of the delete marker created as a result of the DELETE operation. If you delete a specific object version, the value returned by this header is the version ID of the object version deleted.' description: Information about the deleted object. Delimiter: type: string EncryptionConfiguration: type: object properties: ReplicaKmsKeyID: $ref: '#/components/schemas/ReplicaKmsKeyID' description: 'Specifies the ID (Key ARN or Alias ARN) of the customer managed customer master key (CMK) stored in AWS Key Management Service (KMS) for the destination bucket. Amazon S3 uses this key to encrypt replica objects. Amazon S3 only supports symmetric customer managed CMKs. For more information, see Using Symmetric and Asymmetric Keys in the AWS Key Management Service Developer Guide.' description: Specifies encryption-related information for an Amazon S3 bucket that is a destination for replicated objects. ReplicationTime: type: object required: - Status - Time properties: Status: $ref: '#/components/schemas/ReplicationTimeStatus' description: ' Specifies whether the replication time is enabled. ' Time: $ref: '#/components/schemas/ReplicationTimeValue' description: ' A container specifying the time by which replication should be complete for all objects and operations on objects. ' description: ' A container specifying S3 Replication Time Control (S3 RTC) related information, including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. Must be specified together with a Metrics block. ' Metrics: type: object required: - Status - EventThreshold properties: Status: $ref: '#/components/schemas/MetricsStatus' description: ' Specifies whether the replication metrics are enabled. ' EventThreshold: $ref: '#/components/schemas/ReplicationTimeValue' description: ' A container specifying the time threshold for emitting the s3:Replication:OperationMissedThreshold event. ' description: ' A container specifying replication metrics-related settings enabling metrics and Amazon S3 events for S3 Replication Time Control (S3 RTC). Must be specified together with a ReplicationTime block. ' Destination: type: object required: - Bucket properties: Bucket: $ref: '#/components/schemas/BucketName' description: ' The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.' Account: $ref: '#/components/schemas/AccountId' description: 'Destination bucket owner account ID. In a cross-account scenario, if you direct Amazon S3 to change replica ownership to the AWS account that owns the destination bucket by specifying the AccessControlTranslation property, this is the account ID of the destination bucket owner. For more information, see Replication Additional Configuration: Changing the Replica Owner in the Amazon Simple Storage Service Developer Guide.' StorageClass: $ref: '#/components/schemas/StorageClass' description: '

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

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

' AccessControlTranslation: $ref: '#/components/schemas/AccessControlTranslation' description: 'Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the AWS account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same AWS account that owns the source object.' EncryptionConfiguration: $ref: '#/components/schemas/EncryptionConfiguration' description: 'A container that provides information about encryption. If SourceSelectionCriteria is specified, you must specify this element.' ReplicationTime: $ref: '#/components/schemas/ReplicationTime' description: ' A container specifying S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. Must be specified together with a Metrics block. ' Metrics: $ref: '#/components/schemas/Metrics' description: ' A container specifying replication metrics-related settings enabling metrics and Amazon S3 events for S3 Replication Time Control (S3 RTC). Must be specified together with a ReplicationTime block. ' description: Specifies information about where to publish analysis or configuration results for an Amazon S3 bucket and S3 Replication Time Control (S3 RTC). DisplayName: type: string EmailAddress: type: string EncodingType: type: string enum: - url description: 'Requests Amazon S3 to encode the object keys in the response and specifies the encoding method to use. An object key may contain any Unicode character; however, XML 1.0 parser cannot parse some characters, such as characters with an ASCII value from 0 to 10. For characters that are not supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response.' KMSContext: type: string Encryption: type: object required: - EncryptionType properties: EncryptionType: $ref: '#/components/schemas/ServerSideEncryption' description: 'The server-side encryption algorithm used when storing job results in Amazon S3 (for example, AES256, aws:kms).' KMSKeyId: $ref: '#/components/schemas/SSEKMSKeyId' description: 'If the encryption type is aws:kms, this optional value specifies the ID of the symmetric customer managed AWS KMS CMK to use for encryption of job results. Amazon S3 only supports symmetric CMKs. For more information, see Using Symmetric and Asymmetric Keys in the AWS Key Management Service Developer Guide.' KMSContext: $ref: '#/components/schemas/KMSContext' description: 'If the encryption type is aws:kms, this optional value can be used to specify the encryption context for the restore results.' description: Contains the type of server-side encryption used. ReplicaKmsKeyID: type: string EndEvent: type: object properties: {} description: A message that indicates the request is complete and no more messages will be sent. You should not assume that the request is complete until the client receives an EndEvent. Message: type: string Error: type: object properties: Key: $ref: '#/components/schemas/ObjectKey' description: The error key. VersionId: $ref: '#/components/schemas/ObjectVersionId' description: The version ID of the error. Code: $ref: '#/components/schemas/Code' description: '

The error code is a string that uniquely identifies an error condition. It is meant to be read and understood by programs that detect and handle errors by type.

Amazon S3 error codes

    • Code: AccessDenied

    • Description: Access Denied

    • HTTP Status Code: 403 Forbidden

    • SOAP Fault Code Prefix: Client

    • Code: AccountProblem

    • Description: There is a problem with your AWS account that prevents the operation from completing successfully. Contact AWS Support for further assistance.

    • HTTP Status Code: 403 Forbidden

    • SOAP Fault Code Prefix: Client

    • Code: AllAccessDisabled

    • Description: All access to this Amazon S3 resource has been disabled. Contact AWS Support for further assistance.

    • HTTP Status Code: 403 Forbidden

    • SOAP Fault Code Prefix: Client

    • Code: AmbiguousGrantByEmailAddress

    • Description: The email address you provided is associated with more than one account.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: AuthorizationHeaderMalformed

    • Description: The authorization header you provided is invalid.

    • HTTP Status Code: 400 Bad Request

    • HTTP Status Code: N/A

    • Code: BadDigest

    • Description: The Content-MD5 you specified did not match what we received.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: BucketAlreadyExists

    • Description: The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.

    • HTTP Status Code: 409 Conflict

    • SOAP Fault Code Prefix: Client

    • Code: BucketAlreadyOwnedByYou

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

    • Code: 409 Conflict (in all Regions except the North Virginia Region)

    • SOAP Fault Code Prefix: Client

    • Code: BucketNotEmpty

    • Description: The bucket you tried to delete is not empty.

    • HTTP Status Code: 409 Conflict

    • SOAP Fault Code Prefix: Client

    • Code: CredentialsNotSupported

    • Description: This request does not support credentials.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: CrossLocationLoggingProhibited

    • Description: Cross-location logging not allowed. Buckets in one geographic location cannot log information to a bucket in another location.

    • HTTP Status Code: 403 Forbidden

    • SOAP Fault Code Prefix: Client

    • Code: EntityTooSmall

    • Description: Your proposed upload is smaller than the minimum allowed object size.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: EntityTooLarge

    • Description: Your proposed upload exceeds the maximum allowed object size.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: ExpiredToken

    • Description: The provided token has expired.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: IllegalVersioningConfigurationException

    • Description: Indicates that the versioning configuration specified in the request is invalid.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: IncompleteBody

    • Description: You did not provide the number of bytes specified by the Content-Length HTTP header

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: IncorrectNumberOfFilesInPostRequest

    • Description: POST requires exactly one file upload per request.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: InlineDataTooLarge

    • Description: Inline data exceeds the maximum allowed size.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: InternalError

    • Description: We encountered an internal error. Please try again.

    • HTTP Status Code: 500 Internal Server Error

    • SOAP Fault Code Prefix: Server

    • Code: InvalidAccessKeyId

    • Description: The AWS access key ID you provided does not exist in our records.

    • HTTP Status Code: 403 Forbidden

    • SOAP Fault Code Prefix: Client

    • Code: InvalidAddressingHeader

    • Description: You must specify the Anonymous role.

    • HTTP Status Code: N/A

    • SOAP Fault Code Prefix: Client

    • Code: InvalidArgument

    • Description: Invalid Argument

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: InvalidBucketName

    • Description: The specified bucket is not valid.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: InvalidBucketState

    • Description: The request is not valid with the current state of the bucket.

    • HTTP Status Code: 409 Conflict

    • SOAP Fault Code Prefix: Client

    • Code: InvalidDigest

    • Description: The Content-MD5 you specified is not valid.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: InvalidEncryptionAlgorithmError

    • Description: The encryption request you specified is not valid. The valid value is AES256.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: InvalidLocationConstraint

    • Description: The specified location constraint is not valid. For more information about Regions, see How to Select a Region for Your Buckets.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: InvalidObjectState

    • Description: The operation is not valid for the current state of the object.

    • HTTP Status Code: 403 Forbidden

    • SOAP Fault Code Prefix: Client

    • Code: InvalidPart

    • Description: One or more of the specified parts could not be found. The part might not have been uploaded, or the specified entity tag might not have matched the part''s entity tag.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: InvalidPartOrder

    • Description: The list of parts was not in ascending order. Parts list must be specified in order by part number.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: InvalidPayer

    • Description: All access to this object has been disabled. Please contact AWS Support for further assistance.

    • HTTP Status Code: 403 Forbidden

    • SOAP Fault Code Prefix: Client

    • Code: InvalidPolicyDocument

    • Description: The content of the form does not meet the conditions specified in the policy document.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: InvalidRange

    • Description: The requested range cannot be satisfied.

    • HTTP Status Code: 416 Requested Range Not Satisfiable

    • SOAP Fault Code Prefix: Client

    • Code: InvalidRequest

    • Description: Please use AWS4-HMAC-SHA256.

    • HTTP Status Code: 400 Bad Request

    • Code: N/A

    • Code: InvalidRequest

    • Description: SOAP requests must be made over an HTTPS connection.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: InvalidRequest

    • Description: Amazon S3 Transfer Acceleration is not supported for buckets with non-DNS compliant names.

    • HTTP Status Code: 400 Bad Request

    • Code: N/A

    • Code: InvalidRequest

    • Description: Amazon S3 Transfer Acceleration is not supported for buckets with periods (.) in their names.

    • HTTP Status Code: 400 Bad Request

    • Code: N/A

    • Code: InvalidRequest

    • Description: Amazon S3 Transfer Accelerate endpoint only supports virtual style requests.

    • HTTP Status Code: 400 Bad Request

    • Code: N/A

    • Code: InvalidRequest

    • Description: Amazon S3 Transfer Accelerate is not configured on this bucket.

    • HTTP Status Code: 400 Bad Request

    • Code: N/A

    • Code: InvalidRequest

    • Description: Amazon S3 Transfer Accelerate is disabled on this bucket.

    • HTTP Status Code: 400 Bad Request

    • Code: N/A

    • Code: InvalidRequest

    • Description: Amazon S3 Transfer Acceleration is not supported on this bucket. Contact AWS Support for more information.

    • HTTP Status Code: 400 Bad Request

    • Code: N/A

    • Code: InvalidRequest

    • Description: Amazon S3 Transfer Acceleration cannot be enabled on this bucket. Contact AWS Support for more information.

    • HTTP Status Code: 400 Bad Request

    • Code: N/A

    • Code: InvalidSecurity

    • Description: The provided security credentials are not valid.

    • HTTP Status Code: 403 Forbidden

    • SOAP Fault Code Prefix: Client

    • Code: InvalidSOAPRequest

    • Description: The SOAP request body is invalid.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: InvalidStorageClass

    • Description: The storage class you specified is not valid.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: InvalidTargetBucketForLogging

    • Description: The target bucket for logging does not exist, is not owned by you, or does not have the appropriate grants for the log-delivery group.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: InvalidToken

    • Description: The provided token is malformed or otherwise invalid.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: InvalidURI

    • Description: Couldn''t parse the specified URI.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: KeyTooLongError

    • Description: Your key is too long.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: MalformedACLError

    • Description: The XML you provided was not well-formed or did not validate against our published schema.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: MalformedPOSTRequest

    • Description: The body of your POST request is not well-formed multipart/form-data.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: MalformedXML

    • Description: This happens when the user sends malformed XML (XML that doesn''t conform to the published XSD) for the configuration. The error message is, "The XML you provided was not well-formed or did not validate against our published schema."

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: MaxMessageLengthExceeded

    • Description: Your request was too big.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: MaxPostPreDataLengthExceededError

    • Description: Your POST request fields preceding the upload file were too large.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: MetadataTooLarge

    • Description: Your metadata headers exceed the maximum allowed metadata size.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: MethodNotAllowed

    • Description: The specified method is not allowed against this resource.

    • HTTP Status Code: 405 Method Not Allowed

    • SOAP Fault Code Prefix: Client

    • Code: MissingAttachment

    • Description: A SOAP attachment was expected, but none were found.

    • HTTP Status Code: N/A

    • SOAP Fault Code Prefix: Client

    • Code: MissingContentLength

    • Description: You must provide the Content-Length HTTP header.

    • HTTP Status Code: 411 Length Required

    • SOAP Fault Code Prefix: Client

    • Code: MissingRequestBodyError

    • Description: This happens when the user sends an empty XML document as a request. The error message is, "Request body is empty."

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: MissingSecurityElement

    • Description: The SOAP 1.1 request is missing a security element.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: MissingSecurityHeader

    • Description: Your request is missing a required header.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: NoLoggingStatusForKey

    • Description: There is no such thing as a logging status subresource for a key.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: NoSuchBucket

    • Description: The specified bucket does not exist.

    • HTTP Status Code: 404 Not Found

    • SOAP Fault Code Prefix: Client

    • Code: NoSuchBucketPolicy

    • Description: The specified bucket does not have a bucket policy.

    • HTTP Status Code: 404 Not Found

    • SOAP Fault Code Prefix: Client

    • Code: NoSuchKey

    • Description: The specified key does not exist.

    • HTTP Status Code: 404 Not Found

    • SOAP Fault Code Prefix: Client

    • Code: NoSuchLifecycleConfiguration

    • Description: The lifecycle configuration does not exist.

    • HTTP Status Code: 404 Not Found

    • SOAP Fault Code Prefix: Client

    • Code: NoSuchUpload

    • Description: The specified multipart upload does not exist. The upload ID might be invalid, or the multipart upload might have been aborted or completed.

    • HTTP Status Code: 404 Not Found

    • SOAP Fault Code Prefix: Client

    • Code: NoSuchVersion

    • Description: Indicates that the version ID specified in the request does not match an existing version.

    • HTTP Status Code: 404 Not Found

    • SOAP Fault Code Prefix: Client

    • Code: NotImplemented

    • Description: A header you provided implies functionality that is not implemented.

    • HTTP Status Code: 501 Not Implemented

    • SOAP Fault Code Prefix: Server

    • Code: NotSignedUp

    • Description: Your account is not signed up for the Amazon S3 service. You must sign up before you can use Amazon S3. You can sign up at the following URL: https://aws.amazon.com/s3

    • HTTP Status Code: 403 Forbidden

    • SOAP Fault Code Prefix: Client

    • Code: OperationAborted

    • Description: A conflicting conditional operation is currently in progress against this resource. Try again.

    • HTTP Status Code: 409 Conflict

    • SOAP Fault Code Prefix: Client

    • Code: PermanentRedirect

    • Description: The bucket you are attempting to access must be addressed using the specified endpoint. Send all future requests to this endpoint.

    • HTTP Status Code: 301 Moved Permanently

    • SOAP Fault Code Prefix: Client

    • Code: PreconditionFailed

    • Description: At least one of the preconditions you specified did not hold.

    • HTTP Status Code: 412 Precondition Failed

    • SOAP Fault Code Prefix: Client

    • Code: Redirect

    • Description: Temporary redirect.

    • HTTP Status Code: 307 Moved Temporarily

    • SOAP Fault Code Prefix: Client

    • Code: RestoreAlreadyInProgress

    • Description: Object restore is already in progress.

    • HTTP Status Code: 409 Conflict

    • SOAP Fault Code Prefix: Client

    • Code: RequestIsNotMultiPartContent

    • Description: Bucket POST must be of the enclosure-type multipart/form-data.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: RequestTimeout

    • Description: Your socket connection to the server was not read from or written to within the timeout period.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: RequestTimeTooSkewed

    • Description: The difference between the request time and the server''s time is too large.

    • HTTP Status Code: 403 Forbidden

    • SOAP Fault Code Prefix: Client

    • Code: RequestTorrentOfBucketError

    • Description: Requesting the torrent file of a bucket is not permitted.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: SignatureDoesNotMatch

    • Description: The request signature we calculated does not match the signature you provided. Check your AWS secret access key and signing method. For more information, see REST Authentication and SOAP Authentication for details.

    • HTTP Status Code: 403 Forbidden

    • SOAP Fault Code Prefix: Client

    • Code: ServiceUnavailable

    • Description: Reduce your request rate.

    • HTTP Status Code: 503 Service Unavailable

    • SOAP Fault Code Prefix: Server

    • Code: SlowDown

    • Description: Reduce your request rate.

    • HTTP Status Code: 503 Slow Down

    • SOAP Fault Code Prefix: Server

    • Code: TemporaryRedirect

    • Description: You are being redirected to the bucket while DNS updates.

    • HTTP Status Code: 307 Moved Temporarily

    • SOAP Fault Code Prefix: Client

    • Code: TokenRefreshRequired

    • Description: The provided token must be refreshed.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: TooManyBuckets

    • Description: You have attempted to create more buckets than allowed.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: UnexpectedContent

    • Description: This request does not support content.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: UnresolvableGrantByEmailAddress

    • Description: The email address you provided does not match any account on record.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

    • Code: UserKeyMustBeSpecified

    • Description: The bucket POST must contain the specified field name. If it is specified, check the order of the fields.

    • HTTP Status Code: 400 Bad Request

    • SOAP Fault Code Prefix: Client

' Message: $ref: '#/components/schemas/Message' description: The error message contains a generic description of the error condition in English. It is intended for a human audience. Simple programs display the message directly to the end user if they encounter an error condition they don't know how or don't care to handle. Sophisticated programs with more exhaustive error handling and proper internationalization are more likely to ignore the error message. description: Container for all error elements. ExistingObjectReplicationStatus: type: string enum: - Enabled - Disabled ExistingObjectReplication: type: object required: - Status properties: Status: $ref: '#/components/schemas/ExistingObjectReplicationStatus' description:

description: 'Optional configuration to replicate existing source bucket objects. For more information, see Replicating Existing Objects in the Amazon S3 Developer Guide. ' ExpirationStatus: type: string enum: - Enabled - Disabled ExpiredObjectDeleteMarker: type: boolean ExposeHeader: type: string Expression: type: string ExpressionType: type: string enum: - SQL FetchOwner: type: boolean FilterRuleName: type: string enum: - prefix - suffix FilterRuleValue: type: string FilterRule: type: object properties: Name: $ref: '#/components/schemas/FilterRuleName' description: 'The object key name prefix or suffix identifying one or more objects to which the filtering rule applies. The maximum length is 1,024 characters. Overlapping prefixes and suffixes are not supported. For more information, see Configuring Event Notifications in the Amazon Simple Storage Service Developer Guide.' Value: $ref: '#/components/schemas/FilterRuleValue' description: The value that the filter searches for in object key names. description: Specifies the Amazon S3 object key name to filter on and whether to filter on the suffix or prefix of the key name. FilterRuleList: type: array description: A list of containers for the key-value pair that defines the criteria for the filter rule. items: $ref: '#/components/schemas/FilterRule' xml: wrapped: false GetBucketAccelerateConfigurationRequest: type: object title: GetBucketAccelerateConfigurationRequest properties: {} GetBucketAclRequest: type: object title: GetBucketAclRequest properties: {} GetBucketAnalyticsConfigurationRequest: type: object title: GetBucketAnalyticsConfigurationRequest properties: {} GetBucketCorsRequest: type: object title: GetBucketCorsRequest properties: {} ServerSideEncryptionConfiguration: type: object required: - Rules properties: Rules: xml: name: Rule $ref: '#/components/schemas/ServerSideEncryptionRules' description: Container for information about a particular server-side encryption configuration rule. description: Specifies the default server-side-encryption configuration. GetBucketEncryptionRequest: type: object title: GetBucketEncryptionRequest properties: {} InventoryConfiguration: type: object required: - Destination - IsEnabled - Id - IncludedObjectVersions - Schedule properties: Destination: $ref: '#/components/schemas/InventoryDestination' description: Contains information about where to publish the inventory results. IsEnabled: $ref: '#/components/schemas/IsEnabled' description: 'Specifies whether the inventory is enabled or disabled. If set to True, an inventory list is generated. If set to False, no inventory list is generated.' Filter: $ref: '#/components/schemas/InventoryFilter' description: Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria. Id: $ref: '#/components/schemas/InventoryId' description: The ID used to identify the inventory configuration. IncludedObjectVersions: $ref: '#/components/schemas/InventoryIncludedObjectVersions' description: 'Object versions to include in the inventory list. If set to All, the list includes all the object versions, which adds the version-related fields VersionId, IsLatest, and DeleteMarker to the list. If set to Current, the list does not contain these version-related fields.' OptionalFields: $ref: '#/components/schemas/InventoryOptionalFields' description: Contains the optional fields that are included in the inventory results. Schedule: $ref: '#/components/schemas/InventorySchedule' description: Specifies the schedule for generating inventory results. description: 'Specifies the inventory configuration for an Amazon S3 bucket. For more information, see GET Bucket inventory in the Amazon Simple Storage Service API Reference. ' GetBucketInventoryConfigurationRequest: type: object title: GetBucketInventoryConfigurationRequest properties: {} GetBucketLifecycleConfigurationRequest: type: object title: GetBucketLifecycleConfigurationRequest properties: {} GetBucketLifecycleRequest: type: object title: GetBucketLifecycleRequest properties: {} GetBucketLocationRequest: type: object title: GetBucketLocationRequest properties: {} GetBucketLoggingRequest: type: object title: GetBucketLoggingRequest properties: {} MetricsConfiguration: type: object required: - Id properties: Id: $ref: '#/components/schemas/MetricsId' description: The ID used to identify the metrics configuration. Filter: $ref: '#/components/schemas/MetricsFilter' description: 'Specifies a metrics configuration filter. The metrics configuration will only include objects that meet the filter''s criteria. A filter must be a prefix, a tag, or a conjunction (MetricsAndOperator).' description: 'Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you''re updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don''t include the elements you want to keep, they are erased. For more information, see PUT Bucket metrics in the Amazon Simple Storage Service API Reference.' GetBucketMetricsConfigurationRequest: type: object title: GetBucketMetricsConfigurationRequest properties: {} GetBucketNotificationConfigurationRequest: type: object title: GetBucketNotificationConfigurationRequest properties: {} Policy: type: string GetBucketPolicyRequest: type: object title: GetBucketPolicyRequest properties: {} PolicyStatus: type: object properties: IsPublic: $ref: '#/components/schemas/IsPublic' description: The policy status for this bucket. TRUE indicates that this bucket is public. FALSE indicates that the bucket is not public. description: The container element for a bucket's policy status. GetBucketPolicyStatusRequest: type: object title: GetBucketPolicyStatusRequest properties: {} ReplicationConfiguration: type: object required: - Role - Rules properties: Role: $ref: '#/components/schemas/Role' description: 'The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that Amazon S3 assumes when replicating objects. For more information, see How to Set Up Replication in the Amazon Simple Storage Service Developer Guide.' Rules: xml: name: Rule $ref: '#/components/schemas/ReplicationRules' description: 'A container for one or more replication rules. A replication configuration must have at least one rule and can contain a maximum of 1,000 rules. ' description: 'A container for replication rules. You can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.' GetBucketReplicationRequest: type: object title: GetBucketReplicationRequest properties: {} GetBucketRequestPaymentRequest: type: object title: GetBucketRequestPaymentRequest properties: {} GetBucketTaggingRequest: type: object title: GetBucketTaggingRequest properties: {} MFADeleteStatus: type: string enum: - Enabled - Disabled GetBucketVersioningRequest: type: object title: GetBucketVersioningRequest properties: {} GetBucketWebsiteRequest: type: object title: GetBucketWebsiteRequest properties: {} GetObjectAclRequest: type: object title: GetObjectAclRequest properties: {} ObjectLockLegalHold: type: object properties: Status: $ref: '#/components/schemas/ObjectLockLegalHoldStatus' description: Indicates whether the specified object has a Legal Hold in place. description: A Legal Hold configuration for an object. GetObjectLegalHoldRequest: type: object title: GetObjectLegalHoldRequest properties: {} ObjectLockConfiguration: type: object properties: ObjectLockEnabled: $ref: '#/components/schemas/ObjectLockEnabled' description: Indicates whether this bucket has an Object Lock configuration enabled. Rule: $ref: '#/components/schemas/ObjectLockRule' description: The Object Lock rule in place for the specified object. description: The container element for Object Lock configuration parameters. GetObjectLockConfigurationRequest: type: object title: GetObjectLockConfigurationRequest properties: {} Restore: type: string MissingMeta: type: integer ReplicationStatus: type: string enum: - COMPLETE - PENDING - FAILED - REPLICA PartsCount: type: integer TagCount: type: integer IfMatch: type: string IfModifiedSince: type: string format: date-time IfNoneMatch: type: string IfUnmodifiedSince: type: string format: date-time Range: type: string ResponseCacheControl: type: string ResponseContentDisposition: type: string ResponseContentEncoding: type: string ResponseContentLanguage: type: string ResponseContentType: type: string ResponseExpires: type: string format: date-time GetObjectRequest: type: object title: GetObjectRequest properties: {} ObjectLockRetention: type: object properties: Mode: $ref: '#/components/schemas/ObjectLockRetentionMode' description: Indicates the Retention mode for the specified object. RetainUntilDate: $ref: '#/components/schemas/Date' description: The date on which this Object Lock Retention will expire. description: A Retention configuration for an object. GetObjectRetentionRequest: type: object title: GetObjectRetentionRequest properties: {} GetObjectTaggingRequest: type: object title: GetObjectTaggingRequest properties: {} GetObjectTorrentRequest: type: object title: GetObjectTorrentRequest properties: {} PublicAccessBlockConfiguration: type: object properties: BlockPublicAcls: $ref: '#/components/schemas/Setting' description: '

Specifies whether Amazon S3 should block public access control lists (ACLs) for this bucket and objects in this bucket. Setting this element to TRUE causes the following behavior:

  • PUT Bucket acl and PUT Object acl calls fail if the specified ACL is public.

  • PUT Object calls fail if the request includes a public ACL.

  • PUT Bucket calls fail if the request includes a public ACL.

Enabling this setting doesn''t affect existing policies or ACLs.

' IgnorePublicAcls: $ref: '#/components/schemas/Setting' description:

Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket. Setting this element to TRUE causes Amazon S3 to ignore all public ACLs on this bucket and objects in this bucket.

Enabling this setting doesn't affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set.

BlockPublicPolicy: $ref: '#/components/schemas/Setting' description:

Specifies whether Amazon S3 should block public bucket policies for this bucket. Setting this element to TRUE causes Amazon S3 to reject calls to PUT Bucket policy if the specified bucket policy allows public access.

Enabling this setting doesn't affect existing bucket policies.

RestrictPublicBuckets: $ref: '#/components/schemas/Setting' description: '

Specifies whether Amazon S3 should restrict public bucket policies for this bucket. Setting this element to TRUE restricts access to this bucket to only AWS services and authorized users within this account if the bucket has a public policy.

Enabling this setting doesn''t affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked.

' description: 'The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket. You can enable the configuration options in any combination. For more information about when Amazon S3 considers a bucket or object public, see The Meaning of "Public" in the Amazon Simple Storage Service Developer Guide. ' GetPublicAccessBlockRequest: type: object title: GetPublicAccessBlockRequest properties: {} Grantee: type: object required: - Type properties: DisplayName: $ref: '#/components/schemas/DisplayName' description: Screen name of the grantee. EmailAddress: $ref: '#/components/schemas/EmailAddress' description: '

Email address of the grantee.

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

  • US East (N. Virginia)

  • US West (N. California)

  • US West (Oregon)

  • Asia Pacific (Singapore)

  • Asia Pacific (Sydney)

  • Asia Pacific (Tokyo)

  • Europe (Ireland)

  • South America (São Paulo)

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

' ID: $ref: '#/components/schemas/ID' description: The canonical user ID of the grantee. Type: xml: name: 'xsi:type' $ref: '#/components/schemas/Type' description: Type of grantee URI: $ref: '#/components/schemas/URI' description: URI of the grantee group. description: Container for the person being granted permissions. xml: namespace: 'http://www.w3.org/2001/XMLSchema-instance' attribute: true Permission: type: string enum: - FULL_CONTROL - WRITE - WRITE_ACP - READ - READ_ACP Grant: type: object properties: Grantee: $ref: '#/components/schemas/Grantee' description: The person being granted permissions. Permission: $ref: '#/components/schemas/Permission' description: Specifies the permission given to the grantee. description: Container for grant information. ID: type: string Type: type: string enum: - CanonicalUser - AmazonCustomerByEmail - Group URI: type: string HeadBucketRequest: type: object title: HeadBucketRequest properties: {} HeadObjectRequest: type: object title: HeadObjectRequest properties: {} HostName: type: string HttpRedirectCode: type: string Suffix: type: string Initiated: type: string format: date-time Initiator: type: object properties: ID: $ref: '#/components/schemas/ID' description: 'If the principal is an AWS account, it provides the Canonical User ID. If the principal is an IAM User, it provides a user ARN value.' DisplayName: $ref: '#/components/schemas/DisplayName' description: Name of the Principal. description: 'Container element that identifies who initiated the multipart upload. ' InputSerialization: type: object properties: CSV: $ref: '#/components/schemas/CSVInput' description: Describes the serialization of a CSV-encoded object. CompressionType: $ref: '#/components/schemas/CompressionType' description: 'Specifies object''s compression format. Valid values: NONE, GZIP, BZIP2. Default Value: NONE.' JSON: $ref: '#/components/schemas/JSONInput' description: Specifies JSON as object's input serialization format. Parquet: $ref: '#/components/schemas/ParquetInput' description: Specifies Parquet as object's input serialization format. description: Describes the serialization format of the object. InventoryConfigurationList: type: array items: $ref: '#/components/schemas/InventoryConfiguration' xml: wrapped: false InventoryS3BucketDestination: type: object required: - Bucket - Format properties: AccountId: $ref: '#/components/schemas/AccountId' description: '

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

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

' Bucket: $ref: '#/components/schemas/BucketName' description: The Amazon Resource Name (ARN) of the bucket where inventory results will be published. Format: $ref: '#/components/schemas/InventoryFormat' description: Specifies the output format of the inventory results. Prefix: $ref: '#/components/schemas/Prefix' description: The prefix that is prepended to all inventory results. Encryption: $ref: '#/components/schemas/InventoryEncryption' description: Contains the type of server-side encryption used to encrypt the inventory results. description: 'Contains the bucket name, file format, bucket owner (optional), and prefix (optional) where inventory results are published.' SSES3: type: object properties: {} description: Specifies the use of SSE-S3 to encrypt delivered inventory reports. SSEKMS: type: object required: - KeyId properties: KeyId: $ref: '#/components/schemas/SSEKMSKeyId' description: Specifies the ID of the AWS Key Management Service (AWS KMS) symmetric customer managed customer master key (CMK) to use for encrypting inventory reports. description: Specifies the use of SSE-KMS to encrypt delivered inventory reports. InventoryEncryption: type: object properties: SSES3: xml: name: SSE-S3 $ref: '#/components/schemas/SSES3' description: Specifies the use of SSE-S3 to encrypt delivered inventory reports. SSEKMS: xml: name: SSE-KMS $ref: '#/components/schemas/SSEKMS' description: Specifies the use of SSE-KMS to encrypt delivered inventory reports. description: Contains the type of server-side encryption used to encrypt the inventory results. InventoryFormat: type: string enum: - CSV - ORC - Parquet InventoryFrequency: type: string enum: - Daily - Weekly InventoryOptionalField: type: string enum: - Size - LastModifiedDate - StorageClass - ETag - IsMultipartUploaded - ReplicationStatus - EncryptionStatus - ObjectLockRetainUntilDate - ObjectLockMode - ObjectLockLegalHoldStatus - IntelligentTieringAccessTier IsPublic: type: boolean IsTruncated: type: boolean JSONType: type: string enum: - DOCUMENT - LINES KeyCount: type: integer KeyMarker: type: string LambdaFunctionArn: type: string NotificationConfigurationFilter: type: object properties: Key: xml: name: S3Key $ref: '#/components/schemas/S3KeyFilter' description: 'Specifies object key name filtering rules. For information about key name filtering, see Configuring Event Notifications in the Amazon Simple Storage Service Developer Guide.' LambdaFunctionConfiguration: type: object required: - LambdaFunctionArn - Events properties: Id: $ref: '#/components/schemas/NotificationId' LambdaFunctionArn: xml: name: CloudFunction $ref: '#/components/schemas/LambdaFunctionArn' description: The Amazon Resource Name (ARN) of the AWS Lambda function that Amazon S3 invokes when the specified event type occurs. Events: xml: name: Event $ref: '#/components/schemas/EventList' description: 'The Amazon S3 bucket event for which to invoke the AWS Lambda function. For more information, see Supported Event Types in the Amazon Simple Storage Service Developer Guide.' Filter: $ref: '#/components/schemas/NotificationConfigurationFilter' description: A container for specifying the configuration for AWS Lambda notifications. LifecycleConfiguration: type: object required: - Rules properties: Rules: xml: name: Rule $ref: '#/components/schemas/Rules' description: 'Specifies lifecycle configuration rules for an Amazon S3 bucket. ' description: Container for lifecycle rules. You can add as many as 1000 rules. LifecycleExpiration: type: object properties: Date: $ref: '#/components/schemas/Date' description: Indicates at what date the object is to be moved or deleted. Should be in GMT ISO 8601 Format. Days: $ref: '#/components/schemas/Days' description: 'Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.' ExpiredObjectDeleteMarker: $ref: '#/components/schemas/ExpiredObjectDeleteMarker' description: 'Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no action. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.' description: Container for the expiration for the lifecycle of the object. LifecycleRuleFilter: type: object properties: Prefix: $ref: '#/components/schemas/Prefix' description: Prefix identifying one or more objects to which the rule applies. Tag: $ref: '#/components/schemas/Tag' description: This tag must exist in the object's tag set in order for the rule to apply. And: $ref: '#/components/schemas/LifecycleRuleAndOperator' description: 'The Filter is used to identify objects that a Lifecycle Rule applies to. A Filter must have exactly one of Prefix, Tag, or And specified.' TransitionList: type: array items: $ref: '#/components/schemas/Transition' xml: wrapped: false NoncurrentVersionTransitionList: type: array items: $ref: '#/components/schemas/NoncurrentVersionTransition' xml: wrapped: false NoncurrentVersionExpiration: type: object properties: NoncurrentDays: $ref: '#/components/schemas/Days' description: 'Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. For information about the noncurrent days calculations, see How Amazon S3 Calculates When an Object Became Noncurrent in the Amazon Simple Storage Service Developer Guide.' description: 'Specifies when noncurrent object versions expire. Upon expiration, Amazon S3 permanently deletes the noncurrent object versions. You set this lifecycle configuration action on a bucket that has versioning enabled (or suspended) to request that Amazon S3 delete noncurrent object versions at a specific period in the object''s lifetime.' LifecycleRule: type: object required: - Status properties: Expiration: $ref: '#/components/schemas/LifecycleExpiration' description: 'Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker.' ID: $ref: '#/components/schemas/ID' description: Unique identifier for the rule. The value cannot be longer than 255 characters. Prefix: deprecated: true $ref: '#/components/schemas/Prefix' description: Prefix identifying one or more objects to which the rule applies. This is No longer used; use Filter instead. Filter: $ref: '#/components/schemas/LifecycleRuleFilter' Status: $ref: '#/components/schemas/ExpirationStatus' description: 'If ''Enabled'', the rule is currently being applied. If ''Disabled'', the rule is not currently being applied.' Transitions: xml: name: Transition $ref: '#/components/schemas/TransitionList' description: Specifies when an Amazon S3 object transitions to a specified storage class. NoncurrentVersionTransitions: xml: name: NoncurrentVersionTransition $ref: '#/components/schemas/NoncurrentVersionTransitionList' description: ' Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object''s lifetime. ' NoncurrentVersionExpiration: $ref: '#/components/schemas/NoncurrentVersionExpiration' AbortIncompleteMultipartUpload: $ref: '#/components/schemas/AbortIncompleteMultipartUpload' description: A lifecycle rule for individual objects in an Amazon S3 bucket. LifecycleRuleAndOperator: type: object properties: Prefix: $ref: '#/components/schemas/Prefix' description: Prefix identifying one or more objects to which the rule applies. Tags: xml: name: Tag $ref: '#/components/schemas/TagSet' description: All of these tags must exist in the object's tag set in order for the rule to apply. description: This is used in a Lifecycle Rule Filter to apply a logical AND to two or more predicates. The Lifecycle Rule will apply to any object matching all of the predicates configured inside the And operator. xml: wrapped: false Token: type: string NextToken: type: string ListBucketAnalyticsConfigurationsRequest: type: object title: ListBucketAnalyticsConfigurationsRequest properties: {} ListBucketInventoryConfigurationsRequest: type: object title: ListBucketInventoryConfigurationsRequest properties: {} MetricsConfigurationList: type: array items: $ref: '#/components/schemas/MetricsConfiguration' xml: wrapped: false ListBucketMetricsConfigurationsRequest: type: object title: ListBucketMetricsConfigurationsRequest properties: {} UploadIdMarker: type: string NextKeyMarker: type: string NextUploadIdMarker: type: string MaxUploads: type: integer MultipartUploadList: type: array items: $ref: '#/components/schemas/MultipartUpload' xml: wrapped: false ListMultipartUploadsRequest: type: object title: ListMultipartUploadsRequest properties: {} VersionIdMarker: type: string NextVersionIdMarker: type: string ObjectVersionList: type: array items: $ref: '#/components/schemas/ObjectVersion' xml: wrapped: false MaxKeys: type: integer ListObjectVersionsRequest: type: object title: ListObjectVersionsRequest properties: {} Marker: type: string NextMarker: type: string ObjectList: type: array items: $ref: '#/components/schemas/Object' xml: wrapped: false ListObjectsRequest: type: object title: ListObjectsRequest properties: {} StartAfter: type: string ListObjectsV2Request: type: object title: ListObjectsV2Request properties: {} PartNumberMarker: type: integer NextPartNumberMarker: type: integer MaxParts: type: integer Parts: type: array items: $ref: '#/components/schemas/Part' xml: wrapped: false ListPartsRequest: type: object title: ListPartsRequest properties: {} LocationPrefix: type: string TargetBucket: type: string TargetGrants: type: array items: xml: name: Grant $ref: '#/components/schemas/TargetGrant' TargetPrefix: type: string MetadataKey: type: string MetadataEntry: type: object properties: Name: $ref: '#/components/schemas/MetadataKey' description: Name of the Object. Value: $ref: '#/components/schemas/MetadataValue' description: Value of the Object. description: A metadata key-value pair to store with an object. MetricsStatus: type: string enum: - Enabled - Disabled ReplicationTimeValue: type: object properties: Minutes: $ref: '#/components/schemas/Minutes' description: '

Contains an integer specifying time in minutes.

Valid values: 15 minutes.

' description: ' A container specifying the time value for S3 Replication Time Control (S3 RTC) and replication metrics EventThreshold. ' MetricsAndOperator: type: object properties: Prefix: $ref: '#/components/schemas/Prefix' description: The prefix used when evaluating an AND predicate. Tags: xml: name: Tag $ref: '#/components/schemas/TagSet' description: The list of tags used when evaluating an AND predicate. description: 'A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter. The operator must have at least two predicates, and an object must match all of the predicates in order for the filter to apply.' xml: wrapped: false Minutes: type: integer MultipartUpload: type: object properties: UploadId: $ref: '#/components/schemas/MultipartUploadId' description: Upload ID that identifies the multipart upload. Key: $ref: '#/components/schemas/ObjectKey' description: Key of the object for which the multipart upload was initiated. Initiated: $ref: '#/components/schemas/Initiated' description: Date and time at which the multipart upload was initiated. StorageClass: $ref: '#/components/schemas/StorageClass' description: The class of storage used to store the object. Owner: $ref: '#/components/schemas/Owner' description: 'Specifies the owner of the object that is part of the multipart upload. ' Initiator: $ref: '#/components/schemas/Initiator' description: Identifies who initiated the multipart upload. description: Container for the MultipartUpload for the Amazon S3 object. TransitionStorageClass: type: string enum: - GLACIER - STANDARD_IA - ONEZONE_IA - INTELLIGENT_TIERING - DEEP_ARCHIVE NoncurrentVersionTransition: type: object properties: NoncurrentDays: $ref: '#/components/schemas/Days' description: 'Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. For information about the noncurrent days calculations, see How Amazon S3 Calculates How Long an Object Has Been Noncurrent in the Amazon Simple Storage Service Developer Guide.' StorageClass: $ref: '#/components/schemas/TransitionStorageClass' description: The class of storage used to store the object. description: 'Container for the transition rule that describes when noncurrent objects transition to the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, or DEEP_ARCHIVE storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, or DEEP_ARCHIVE storage class at a specific period in the object''s lifetime.' S3KeyFilter: type: object properties: FilterRules: xml: name: FilterRule $ref: '#/components/schemas/FilterRuleList' description: A container for object key name prefix and suffix filtering rules. Size: type: integer ObjectStorageClass: type: string enum: - STANDARD - REDUCED_REDUNDANCY - GLACIER - STANDARD_IA - ONEZONE_IA - INTELLIGENT_TIERING - DEEP_ARCHIVE Object: type: object properties: Key: $ref: '#/components/schemas/ObjectKey' description: The name that you assign to an object. You use the object key to retrieve the object. LastModified: $ref: '#/components/schemas/LastModified' description: The date the Object was Last Modified ETag: $ref: '#/components/schemas/ETag' description: '

The entity tag is a hash of the object. The ETag reflects changes only to the contents of an object, not its metadata. The ETag may or may not be an MD5 digest of the object data. Whether or not it is depends on how the object was created and how it is encrypted as described below:

  • Objects created by the PUT Object, POST Object, or Copy operation, or through the AWS Management Console, and are encrypted by SSE-S3 or plaintext, have ETags that are an MD5 digest of their object data.

  • Objects created by the PUT Object, POST Object, or Copy operation, or through the AWS Management Console, and are encrypted by SSE-C or SSE-KMS, have ETags that are not an MD5 digest of their object data.

  • If an object is created by either the Multipart Upload or Part Copy operation, the ETag is not an MD5 digest, regardless of the method of encryption.

' Size: $ref: '#/components/schemas/Size' description: Size in bytes of the object StorageClass: $ref: '#/components/schemas/ObjectStorageClass' description: The class of storage used to store the object. Owner: $ref: '#/components/schemas/Owner' description: The owner of the object description: An object consists of data and its descriptive metadata. ObjectIdentifier: type: object required: - Key properties: Key: $ref: '#/components/schemas/ObjectKey' description: Key name of the object to delete. VersionId: $ref: '#/components/schemas/ObjectVersionId' description: VersionId for the specific version of the object to delete. description: Object Identifier is unique value to identify objects. ObjectLockToken: type: string ObjectVersionStorageClass: type: string enum: - STANDARD ObjectVersion: type: object properties: ETag: $ref: '#/components/schemas/ETag' description: The entity tag is an MD5 hash of that version of the object. Size: $ref: '#/components/schemas/Size' description: Size in bytes of the object. StorageClass: $ref: '#/components/schemas/ObjectVersionStorageClass' description: The class of storage used to store the object. Key: $ref: '#/components/schemas/ObjectKey' description: The object key. VersionId: $ref: '#/components/schemas/ObjectVersionId' description: Version ID of an object. IsLatest: $ref: '#/components/schemas/IsLatest' description: Specifies whether the object is (true) or is not (false) the latest version of an object. LastModified: $ref: '#/components/schemas/LastModified' description: Date and time the object was last modified. Owner: $ref: '#/components/schemas/Owner' description: Specifies the owner of the object. description: The version of an object. S3Location: type: object required: - BucketName - Prefix properties: BucketName: $ref: '#/components/schemas/BucketName' description: The name of the bucket where the restore results will be placed. Prefix: $ref: '#/components/schemas/LocationPrefix' description: The prefix that is prepended to the restore results for this request. Encryption: $ref: '#/components/schemas/Encryption' CannedACL: $ref: '#/components/schemas/ObjectCannedACL' description: The canned ACL to apply to the restore results. AccessControlList: $ref: '#/components/schemas/Grants' description: A list of grants that control access to the staged results. Tagging: $ref: '#/components/schemas/Tagging' description: The tag-set that is applied to the restore results. UserMetadata: $ref: '#/components/schemas/UserMetadata' description: A list of metadata to store with the restore results in S3. StorageClass: $ref: '#/components/schemas/StorageClass' description: The class of storage used to store the restore results. description: Describes an Amazon S3 location that will receive the results of the restore request. OutputSerialization: type: object properties: CSV: $ref: '#/components/schemas/CSVOutput' description: Describes the serialization of CSV-encoded Select results. JSON: $ref: '#/components/schemas/JSONOutput' description: Specifies JSON as request's output serialization format. description: Describes how results of the Select job are serialized. Part: type: object properties: PartNumber: $ref: '#/components/schemas/PartNumber' description: 'Part number identifying the part. This is a positive integer between 1 and 10,000.' LastModified: $ref: '#/components/schemas/LastModified' description: Date and time at which the part was uploaded. ETag: $ref: '#/components/schemas/ETag' description: Entity tag returned when the part was uploaded. Size: $ref: '#/components/schemas/Size' description: Size in bytes of the uploaded part data. description: Container for elements related to a part. Priority: type: integer Progress: type: object properties: BytesScanned: $ref: '#/components/schemas/BytesScanned' description: The current number of object bytes scanned. BytesProcessed: $ref: '#/components/schemas/BytesProcessed' description: The current number of uncompressed object bytes processed. BytesReturned: $ref: '#/components/schemas/BytesReturned' description: The current number of bytes of records payload data returned. description: This data type contains information about progress of an operation. ProgressEvent: type: object properties: Details: $ref: '#/components/schemas/Progress' description: The Progress event details. description: This data type contains information about the progress event of an operation. Protocol: type: string enum: - http - https PutBucketAccelerateConfigurationRequest: type: object required: - AccelerateConfiguration title: PutBucketAccelerateConfigurationRequest properties: AccelerateConfiguration: $ref: '#/components/schemas/AccelerateConfiguration' description: Container for setting the transfer acceleration state. xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' PutBucketAclRequest: type: object title: PutBucketAclRequest properties: AccessControlPolicy: $ref: '#/components/schemas/AccessControlPolicy' description: Contains the elements that set the ACL permissions for an object per grantee. xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' PutBucketAnalyticsConfigurationRequest: type: object required: - AnalyticsConfiguration title: PutBucketAnalyticsConfigurationRequest properties: AnalyticsConfiguration: $ref: '#/components/schemas/AnalyticsConfiguration' description: The configuration and any analyses for the analytics filter. xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' PutBucketCorsRequest: type: object required: - CORSConfiguration title: PutBucketCorsRequest properties: CORSConfiguration: $ref: '#/components/schemas/CORSConfiguration' description: 'Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see Enabling Cross-Origin Resource Sharing in the Amazon Simple Storage Service Developer Guide.' xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' PutBucketEncryptionRequest: type: object required: - ServerSideEncryptionConfiguration title: PutBucketEncryptionRequest properties: ServerSideEncryptionConfiguration: $ref: '#/components/schemas/ServerSideEncryptionConfiguration' xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' PutBucketInventoryConfigurationRequest: type: object required: - InventoryConfiguration title: PutBucketInventoryConfigurationRequest properties: InventoryConfiguration: $ref: '#/components/schemas/InventoryConfiguration' description: Specifies the inventory configuration. xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' PutBucketLifecycleConfigurationRequest: type: object title: PutBucketLifecycleConfigurationRequest properties: LifecycleConfiguration: $ref: '#/components/schemas/BucketLifecycleConfiguration' description: 'Container for lifecycle rules. You can add as many as 1,000 rules.' xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' PutBucketLifecycleRequest: type: object title: PutBucketLifecycleRequest properties: LifecycleConfiguration: $ref: '#/components/schemas/LifecycleConfiguration' description:

xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' PutBucketLoggingRequest: type: object required: - BucketLoggingStatus title: PutBucketLoggingRequest properties: BucketLoggingStatus: $ref: '#/components/schemas/BucketLoggingStatus' description: Container for logging status information. xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' PutBucketMetricsConfigurationRequest: type: object required: - MetricsConfiguration title: PutBucketMetricsConfigurationRequest properties: MetricsConfiguration: $ref: '#/components/schemas/MetricsConfiguration' description: Specifies the metrics configuration. xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' PutBucketNotificationConfigurationRequest: type: object required: - NotificationConfiguration title: PutBucketNotificationConfigurationRequest properties: NotificationConfiguration: $ref: '#/components/schemas/NotificationConfiguration' xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' PutBucketNotificationRequest: type: object required: - NotificationConfiguration title: PutBucketNotificationRequest properties: NotificationConfiguration: $ref: '#/components/schemas/NotificationConfigurationDeprecated' description: The container for the configuration. xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' PutBucketPolicyRequest: type: object required: - Policy title: PutBucketPolicyRequest properties: Policy: $ref: '#/components/schemas/Policy' description: The bucket policy as a JSON document. PutBucketReplicationRequest: type: object required: - ReplicationConfiguration title: PutBucketReplicationRequest properties: ReplicationConfiguration: $ref: '#/components/schemas/ReplicationConfiguration' xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' RequestPaymentConfiguration: type: object required: - Payer properties: Payer: $ref: '#/components/schemas/Payer' description: Specifies who pays for the download and request fees. description: Container for Payer. PutBucketRequestPaymentRequest: type: object required: - RequestPaymentConfiguration title: PutBucketRequestPaymentRequest properties: RequestPaymentConfiguration: $ref: '#/components/schemas/RequestPaymentConfiguration' description: Container for Payer. xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' Tagging: type: object required: - TagSet properties: TagSet: $ref: '#/components/schemas/TagSet' description: A collection for a set of tags description: Container for TagSet elements. PutBucketTaggingRequest: type: object required: - Tagging title: PutBucketTaggingRequest properties: Tagging: $ref: '#/components/schemas/Tagging' description: Container for the TagSet and Tag elements. xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' VersioningConfiguration: type: object properties: MFADelete: xml: name: MfaDelete $ref: '#/components/schemas/MFADelete' description: 'Specifies whether MFA delete is enabled in the bucket versioning configuration. This element is only returned if the bucket has been configured with MFA delete. If the bucket has never been so configured, this element is not returned.' Status: $ref: '#/components/schemas/BucketVersioningStatus' description: The versioning state of the bucket. description: 'Describes the versioning state of an Amazon S3 bucket. For more information, see PUT Bucket versioning in the Amazon Simple Storage Service API Reference.' PutBucketVersioningRequest: type: object required: - VersioningConfiguration title: PutBucketVersioningRequest properties: VersioningConfiguration: $ref: '#/components/schemas/VersioningConfiguration' description: Container for setting the versioning state. xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' WebsiteConfiguration: type: object properties: ErrorDocument: $ref: '#/components/schemas/ErrorDocument' description: The name of the error document for the website. IndexDocument: $ref: '#/components/schemas/IndexDocument' description: The name of the index document for the website. RedirectAllRequestsTo: $ref: '#/components/schemas/RedirectAllRequestsTo' description: '

The redirect behavior for every request to this bucket''s website endpoint.

If you specify this property, you can''t specify any other property.

' RoutingRules: $ref: '#/components/schemas/RoutingRules' description: Rules that define when a redirect is applied and the redirect behavior. description: Specifies website configuration parameters for an Amazon S3 bucket. PutBucketWebsiteRequest: type: object required: - WebsiteConfiguration title: PutBucketWebsiteRequest properties: WebsiteConfiguration: $ref: '#/components/schemas/WebsiteConfiguration' description: Container for the request. xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' PutObjectAclRequest: type: object title: PutObjectAclRequest properties: AccessControlPolicy: $ref: '#/components/schemas/AccessControlPolicy' description: Contains the elements that set the ACL permissions for an object per grantee. xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' PutObjectLegalHoldRequest: type: object title: PutObjectLegalHoldRequest properties: LegalHold: $ref: '#/components/schemas/ObjectLockLegalHold' description: Container element for the Legal Hold configuration you want to apply to the specified object. xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' PutObjectLockConfigurationRequest: type: object title: PutObjectLockConfigurationRequest properties: ObjectLockConfiguration: $ref: '#/components/schemas/ObjectLockConfiguration' description: The Object Lock configuration that you want to apply to the specified bucket. xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' PutObjectRequest: type: object title: PutObjectRequest properties: Body: $ref: '#/components/schemas/Body' description: Object data. Metadata: xml: name: x-amz-meta- $ref: '#/components/schemas/Metadata' description: A map of metadata to store with the object in S3. PutObjectRetentionRequest: type: object title: PutObjectRetentionRequest properties: Retention: $ref: '#/components/schemas/ObjectLockRetention' description: The container element for the Object Retention configuration. xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' PutObjectTaggingRequest: type: object required: - Tagging title: PutObjectTaggingRequest properties: Tagging: $ref: '#/components/schemas/Tagging' description: Container for the TagSet and Tag elements xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' PutPublicAccessBlockRequest: type: object required: - PublicAccessBlockConfiguration title: PutPublicAccessBlockRequest properties: PublicAccessBlockConfiguration: $ref: '#/components/schemas/PublicAccessBlockConfiguration' description: 'The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket. You can enable the configuration options in any combination. For more information about when Amazon S3 considers a bucket or object public, see The Meaning of "Public" in the Amazon Simple Storage Service Developer Guide.' xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' QueueArn: type: string QueueConfiguration: type: object required: - QueueArn - Events properties: Id: $ref: '#/components/schemas/NotificationId' QueueArn: xml: name: Queue $ref: '#/components/schemas/QueueArn' description: The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon S3 publishes a message when it detects events of the specified type. Events: xml: name: Event $ref: '#/components/schemas/EventList' description: A collection of bucket events for which to send notifications Filter: $ref: '#/components/schemas/NotificationConfigurationFilter' description: Specifies the configuration for publishing messages to an Amazon Simple Queue Service (Amazon SQS) queue when Amazon S3 detects specified events. RecordsEvent: type: object properties: Payload: $ref: '#/components/schemas/Body' description: 'The byte array of partial, one or more result records.' description: The container for the records event. ReplaceKeyPrefixWith: type: string ReplaceKeyWith: type: string Redirect: type: object properties: HostName: $ref: '#/components/schemas/HostName' description: The host name to use in the redirect request. HttpRedirectCode: $ref: '#/components/schemas/HttpRedirectCode' description: The HTTP redirect code to use on the response. Not required if one of the siblings is present. Protocol: $ref: '#/components/schemas/Protocol' description: Protocol to use when redirecting requests. The default is the protocol that is used in the original request. ReplaceKeyPrefixWith: $ref: '#/components/schemas/ReplaceKeyPrefixWith' description: 'The object key prefix to use in the redirect request. For example, to redirect requests for all pages with prefix docs/ (objects in the docs/ folder) to documents/, you can set a condition block with KeyPrefixEquals set to docs/ and in the Redirect set ReplaceKeyPrefixWith to /documents. Not required if one of the siblings is present. Can be present only if ReplaceKeyWith is not provided.' ReplaceKeyWith: $ref: '#/components/schemas/ReplaceKeyWith' description: 'The specific object key to use in the redirect request. For example, redirect request to error.html. Not required if one of the siblings is present. Can be present only if ReplaceKeyPrefixWith is not provided.' description: 'Specifies how requests are redirected. In the event of an error, you can specify a different error code to return.' ReplicationRuleFilter: type: object properties: Prefix: $ref: '#/components/schemas/Prefix' description: An object key name prefix that identifies the subset of objects to which the rule applies. Tag: $ref: '#/components/schemas/Tag' description:

A container for specifying a tag key and value.

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

And: $ref: '#/components/schemas/ReplicationRuleAndOperator' description: '

A container for specifying rule filters. The filters determine the subset of objects to which the rule applies. This element is required only if you specify more than one filter. For example:

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

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

' description: 'A filter that identifies the subset of objects to which the replication rule applies. A Filter must specify exactly one Prefix, Tag, or an And child element.' ReplicationRuleStatus: type: string enum: - Enabled - Disabled SourceSelectionCriteria: type: object properties: SseKmsEncryptedObjects: $ref: '#/components/schemas/SseKmsEncryptedObjects' description: ' A container for filter information for the selection of Amazon S3 objects encrypted with AWS KMS. If you include SourceSelectionCriteria in the replication configuration, this element is required. ' description: 'A container that describes additional filters for identifying the source objects that you want to replicate. You can choose to enable or disable the replication of these objects. Currently, Amazon S3 supports only the filter that you can specify for objects created with server-side encryption using a customer master key (CMK) stored in AWS Key Management Service (SSE-KMS).' ReplicationRule: type: object required: - Status - Destination properties: ID: $ref: '#/components/schemas/ID' description: A unique identifier for the rule. The maximum value is 255 characters. Priority: $ref: '#/components/schemas/Priority' description: '

The priority associated with the rule. If you specify multiple rules in a replication configuration, Amazon S3 prioritizes the rules to prevent conflicts when filtering. If two or more rules identify the same object based on a specified filter, the rule with higher priority takes precedence. For example:

  • Same object quality prefix-based filter criteria if prefixes you specified in multiple rules overlap

  • Same object qualify tag-based filter criteria specified in multiple rules

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

' Prefix: deprecated: true $ref: '#/components/schemas/Prefix' description: 'An object key name prefix that identifies the object or objects to which the rule applies. The maximum prefix length is 1,024 characters. To include all objects in a bucket, specify an empty string. ' Filter: $ref: '#/components/schemas/ReplicationRuleFilter' Status: $ref: '#/components/schemas/ReplicationRuleStatus' description: Specifies whether the rule is enabled. SourceSelectionCriteria: $ref: '#/components/schemas/SourceSelectionCriteria' description: 'A container that describes additional filters for identifying the source objects that you want to replicate. You can choose to enable or disable the replication of these objects. Currently, Amazon S3 supports only the filter that you can specify for objects created with server-side encryption using a customer master key (CMK) stored in AWS Key Management Service (SSE-KMS).' ExistingObjectReplication: $ref: '#/components/schemas/ExistingObjectReplication' description:

Destination: $ref: '#/components/schemas/Destination' description: A container for information about the replication destination and its configurations including enabling the S3 Replication Time Control (S3 RTC). DeleteMarkerReplication: $ref: '#/components/schemas/DeleteMarkerReplication' description: Specifies which Amazon S3 objects to replicate and where to store the replicas. ReplicationRuleAndOperator: type: object properties: Prefix: $ref: '#/components/schemas/Prefix' description: An object key name prefix that identifies the subset of objects to which the rule applies. Tags: xml: name: Tag $ref: '#/components/schemas/TagSet' description: An array of tags containing key and value pairs. description: '

A container for specifying rule filters. The filters determine the subset of objects to which the rule applies. This element is required only if you specify more than one filter.

For example:

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

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

' xml: wrapped: false ReplicationTimeStatus: type: string enum: - Enabled - Disabled RequestProgress: type: object properties: Enabled: $ref: '#/components/schemas/EnableRequestProgress' description: 'Specifies whether periodic QueryProgress frames should be sent. Valid values: TRUE, FALSE. Default value: FALSE.' description: Container for specifying if periodic QueryProgress messages should be sent. RestoreOutputPath: type: string RestoreRequest: type: object properties: Days: $ref: '#/components/schemas/Days' description: Lifetime of the active copy in days. Do not use with restores that specify OutputLocation. GlacierJobParameters: $ref: '#/components/schemas/GlacierJobParameters' description: S3 Glacier related parameters pertaining to this job. Do not use with restores that specify OutputLocation. Type: $ref: '#/components/schemas/RestoreRequestType' description: Type of restore request. Tier: $ref: '#/components/schemas/Tier' description: S3 Glacier retrieval tier at which the restore will be processed. Description: $ref: '#/components/schemas/Description' description: The optional description for the job. SelectParameters: $ref: '#/components/schemas/SelectParameters' description: Describes the parameters for Select job types. OutputLocation: $ref: '#/components/schemas/OutputLocation' description: Describes the location where the restore job's output is stored. description: Container for restore job parameters. RestoreObjectRequest: type: object title: RestoreObjectRequest properties: RestoreRequest: $ref: '#/components/schemas/RestoreRequest' xml: namespace: 'http://s3.amazonaws.com/doc/2006-03-01/' RoutingRule: type: object required: - Redirect properties: Condition: $ref: '#/components/schemas/Condition' description: 'A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the /docs folder, redirect to the /documents folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.' Redirect: $ref: '#/components/schemas/Redirect' description: 'Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return.' description: 'Specifies the redirect behavior and when a redirect is applied. For more information about routing rules, see Configuring advanced conditional redirects in the Amazon Simple Storage Service Developer Guide.' Transition: type: object properties: Date: $ref: '#/components/schemas/Date' description: Indicates when objects are transitioned to the specified storage class. The date value must be in ISO 8601 format. The time is always midnight UTC. Days: $ref: '#/components/schemas/Days' description: Indicates the number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer. StorageClass: $ref: '#/components/schemas/TransitionStorageClass' description: The storage class to which you want the object to transition. description: 'Specifies when an object transitions to a specified storage class. For more information about Amazon S3 lifecycle configuration rules, see Transitioning Objects Using Amazon S3 Lifecycle in the Amazon Simple Storage Service Developer Guide.' Rule: type: object required: - Prefix - Status properties: Expiration: $ref: '#/components/schemas/LifecycleExpiration' description: Specifies the expiration for the lifecycle of the object. ID: $ref: '#/components/schemas/ID' description: Unique identifier for the rule. The value can't be longer than 255 characters. Prefix: $ref: '#/components/schemas/Prefix' description: Object key prefix that identifies one or more objects to which this rule applies. Status: $ref: '#/components/schemas/ExpirationStatus' description: 'If Enabled, the rule is currently being applied. If Disabled, the rule is not currently being applied.' Transition: $ref: '#/components/schemas/Transition' description: 'Specifies when an object transitions to a specified storage class. For more information about Amazon S3 lifecycle configuration rules, see Transitioning Objects Using Amazon S3 Lifecycle in the Amazon Simple Storage Service Developer Guide.' NoncurrentVersionTransition: $ref: '#/components/schemas/NoncurrentVersionTransition' NoncurrentVersionExpiration: $ref: '#/components/schemas/NoncurrentVersionExpiration' AbortIncompleteMultipartUpload: $ref: '#/components/schemas/AbortIncompleteMultipartUpload' description: 'Specifies lifecycle rules for an Amazon S3 bucket. For more information, see Put Bucket Lifecycle Configuration in the Amazon Simple Storage Service API Reference. For examples, see Put Bucket Lifecycle Configuration Examples ' UserMetadata: type: array items: xml: name: MetadataEntry $ref: '#/components/schemas/MetadataEntry' ScanRange: type: object properties: Start: $ref: '#/components/schemas/Start' description: 'Specifies the start of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is 0. If only start is supplied, it means scan from that point to the end of the file.For example; <scanrange><start>50</start></scanrange> means scan from byte 50 until the end of the file.' End: $ref: '#/components/schemas/End' description: 'Specifies the end of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is one less than the size of the object being queried. If only the End parameter is supplied, it is interpreted to mean scan the last N bytes of the file. For example, <scanrange><end>50</end></scanrange> means scan the last 50 bytes.' description: 'Specifies the byte range of the object to get the records from. A record is processed when its first byte is contained by the range. This parameter is optional, but when specified, it must not be empty. See RFC 2616, Section 14.35.1 about how to specify the start and end of the range.' StatsEvent: type: object properties: Details: $ref: '#/components/schemas/Stats' description: The Stats event details. description: Container for the Stats Event. SelectObjectContentEventStream: type: object properties: Records: $ref: '#/components/schemas/RecordsEvent' description: The Records Event. Stats: $ref: '#/components/schemas/StatsEvent' description: The Stats Event. Progress: $ref: '#/components/schemas/ProgressEvent' description: The Progress Event. Cont: $ref: '#/components/schemas/ContinuationEvent' description: The Continuation Event. End: $ref: '#/components/schemas/EndEvent' description: The End Event. description: The container for selecting objects from a content event stream. SelectObjectContentRequest: type: object required: - Expression - ExpressionType - InputSerialization - OutputSerialization title: SelectObjectContentRequest properties: Expression: $ref: '#/components/schemas/Expression' description: The expression that is used to query the object. ExpressionType: $ref: '#/components/schemas/ExpressionType' description: 'The type of the provided expression (for example, SQL).' RequestProgress: $ref: '#/components/schemas/RequestProgress' description: Specifies if periodic request progress information should be enabled. InputSerialization: $ref: '#/components/schemas/InputSerialization' description: Describes the format of the data in the object that is being queried. OutputSerialization: $ref: '#/components/schemas/OutputSerialization' description: Describes the format of the data that you want Amazon S3 to return in response. ScanRange: $ref: '#/components/schemas/ScanRange' description: '

Specifies the byte range of the object to get the records from. A record is processed when its first byte is contained by the range. This parameter is optional, but when specified, it must not be empty. See RFC 2616, Section 14.35.1 about how to specify the start and end of the range.

ScanRangemay be used in the following ways:

  • <scanrange><start>50</start><end>100</end></scanrange> - process only the records starting between the bytes 50 and 100 (inclusive, counting from zero)

  • <scanrange><start>50</start></scanrange> - process only the records starting after the byte 50

  • <scanrange><end>50</end></scanrange> - process only the records within the last 50 bytes of the file.

' description: 'Request to filter the contents of an Amazon S3 object based on a simple Structured Query Language (SQL) statement. In the request, along with the SQL expression, you must specify a data serialization format (JSON or CSV) of the object. Amazon S3 uses this to parse object data into records. It returns only records that match the specified SQL expression. You must also specify the data serialization format for the response. For more information, see S3Select API Documentation.' ServerSideEncryptionByDefault: type: object required: - SSEAlgorithm properties: SSEAlgorithm: $ref: '#/components/schemas/ServerSideEncryption' description: Server-side encryption algorithm to use for the default encryption. KMSMasterKeyID: $ref: '#/components/schemas/SSEKMSKeyId' description: '

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

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

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

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

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

' description: 'Describes the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn''t specify any server-side encryption, this default encryption will be applied. For more information, see PUT Bucket encryption in the Amazon Simple Storage Service API Reference.' ServerSideEncryptionRule: type: object properties: ApplyServerSideEncryptionByDefault: $ref: '#/components/schemas/ServerSideEncryptionByDefault' description: 'Specifies the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn''t specify any server-side encryption, this default encryption will be applied.' description: Specifies the default server-side encryption configuration. SseKmsEncryptedObjects: type: object required: - Status properties: Status: $ref: '#/components/schemas/SseKmsEncryptedObjectsStatus' description: Specifies whether Amazon S3 replicates objects created with server-side encryption using a customer master key (CMK) stored in AWS Key Management Service. description: A container for filter information for the selection of S3 objects encrypted with AWS KMS. SseKmsEncryptedObjectsStatus: type: string enum: - Enabled - Disabled Stats: type: object properties: BytesScanned: $ref: '#/components/schemas/BytesScanned' description: The total number of object bytes scanned. BytesProcessed: $ref: '#/components/schemas/BytesProcessed' description: The total number of uncompressed object bytes processed. BytesReturned: $ref: '#/components/schemas/BytesReturned' description: The total number of bytes of records payload data returned. description: Container for the stats details. StorageClassAnalysisDataExport: type: object required: - OutputSchemaVersion - Destination properties: OutputSchemaVersion: $ref: '#/components/schemas/StorageClassAnalysisSchemaVersion' description: The version of the output schema to use when exporting data. Must be V_1. Destination: $ref: '#/components/schemas/AnalyticsExportDestination' description: The place to store the data for an analysis. description: Container for data related to the storage class analysis for an Amazon S3 bucket for export. StorageClassAnalysisSchemaVersion: type: string enum: - V_1 Value: type: string TargetGrant: type: object properties: Grantee: $ref: '#/components/schemas/Grantee' description: Container for the person being granted permissions. Permission: $ref: '#/components/schemas/BucketLogsPermission' description: Logging permissions assigned to the Grantee for the bucket. description: Container for granting information. TopicArn: type: string TopicConfiguration: type: object required: - TopicArn - Events properties: Id: $ref: '#/components/schemas/NotificationId' TopicArn: xml: name: Topic $ref: '#/components/schemas/TopicArn' description: The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message when it detects events of the specified type. Events: xml: name: Event $ref: '#/components/schemas/EventList' description: 'The Amazon S3 bucket event about which to send notifications. For more information, see Supported Event Types in the Amazon Simple Storage Service Developer Guide.' Filter: $ref: '#/components/schemas/NotificationConfigurationFilter' description: A container for specifying the configuration for publication of messages to an Amazon Simple Notification Service (Amazon SNS) topic when Amazon S3 detects specified events. UploadPartCopyRequest: type: object title: UploadPartCopyRequest properties: {} UploadPartRequest: type: object title: UploadPartRequest properties: Body: $ref: '#/components/schemas/Body' description: Object data. security: - hmac: []