Download as pdf or txt
Download as pdf or txt
You are on page 1of 658

Boto 3 Docs 1.9.

249
Docs (../../index.html) /  Available Services (index.html) /  S3
documentation (
../../index.html)

TABLE OF CONTENTS
S3
Quickstart
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249
documentation ( Table of Contents
../../index.html) S3
Client
TABLE OF CONTENTS Paginators
Waiters
Quickstart Service Resource
(../../guide/quickstart.html)
Bucket
A Sample Tutorial BucketAcl
(../../guide/sqs.html) BucketCors
Code Examples BucketLifecycle
(../../guide/examples.html) BucketLifecycleConfiguration
BucketLogging
User Guides
BucketNotification
(../../guide/index.html)
BucketPolicy
Available Services (index.html) BucketRequestPayment
BucketTagging
ACM (acm.html)
BucketVersioning
ACMPCA (acm-pca.html) BucketWebsite
AlexaForBusiness MultipartUpload
(alexaforbusiness.html) MultipartUploadPart
Amplify (amplify.html) Object
ObjectAcl
APIGateway
ObjectSummary
(apigateway.html)
ObjectVersion
ApiGatewayManagement Examples
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249
documentation (
Client
../../index.html) class S3. Client
A low-level client representing Amazon Simple Storage Service (S3):
TABLE OF CONTENTS

import boto3
Quickstart
(../../guide/quickstart.html)
client = boto3.client('s3')
A Sample Tutorial
(../../guide/sqs.html)
These are the available methods:
Code Examples
(../../guide/examples.html) abort_multipart_upload()
can_paginate()
User Guides
complete_multipart_upload()
(../../guide/index.html)
copy()
Available Services (index.html) copy_object()
create_bucket()
ACM (acm.html)
create_multipart_upload()
ACMPCA (acm-pca.html) delete_bucket()
delete_bucket_analytics_configuration()
AlexaForBusiness
(alexaforbusiness.html) delete_bucket_cors()
delete_bucket_encryption()
Amplify (amplify.html) delete_bucket_inventory_configuration()
APIGateway delete_bucket_lifecycle()
(apigateway.html) delete_bucket_metrics_configuration()
delete_bucket_policy()
ApiGatewayManagement
delete_bucket_replication()
Api
delete_bucket_tagging()
(apigatewaymanagement
api.html) delete_bucket_website()
delete_object()
Boto 3 Docs 1.9.249
delete_object_tagging()
documentation ( delete_objects()
../../index.html) delete_public_access_block()
download_file()
TABLE OF CONTENTS download_fileobj()
generate_presigned_post()
Quickstart generate_presigned_url()
(../../guide/quickstart.html) get_bucket_accelerate_configuration()
get_bucket_acl()
A Sample Tutorial
(../../guide/sqs.html) get_bucket_analytics_configuration()
get_bucket_cors()
Code Examples get_bucket_encryption()
(../../guide/examples.html)
get_bucket_inventory_configuration()
User Guides get_bucket_lifecycle()
(../../guide/index.html) get_bucket_lifecycle_configuration()
get_bucket_location()
Available Services (index.html) get_bucket_logging()
ACM (acm.html) get_bucket_metrics_configuration()
get_bucket_notification()
ACMPCA (acm-pca.html)
get_bucket_notification_configuration()
AlexaForBusiness get_bucket_policy()
(alexaforbusiness.html) get_bucket_policy_status()
Amplify (amplify.html) get_bucket_replication()
get_bucket_request_payment()
APIGateway
get_bucket_tagging()
(apigateway.html)
get_bucket_versioning()
ApiGatewayManagement get_bucket_website()
Api get_object()
(apigatewaymanagement get_object_acl()
api.html) get_object_legal_hold()
get_object_lock_configuration()
Boto 3 Docs 1.9.249
get_object_retention()
documentation ( get_object_tagging()
../../index.html) get_object_torrent()
get_paginator()
TABLE OF CONTENTS get_public_access_block()
get_waiter()
Quickstart head_bucket()
(../../guide/quickstart.html) head_object()
list_bucket_analytics_configurations()
A Sample Tutorial
(../../guide/sqs.html) list_bucket_inventory_configurations()
list_bucket_metrics_configurations()
Code Examples list_buckets()
(../../guide/examples.html)
list_multipart_uploads()
User Guides list_object_versions()
(../../guide/index.html) list_objects()
list_objects_v2()
Available Services (index.html) list_parts()
ACM (acm.html) put_bucket_accelerate_configuration()
put_bucket_acl()
ACMPCA (acm-pca.html)
put_bucket_analytics_configuration()
AlexaForBusiness put_bucket_cors()
(alexaforbusiness.html) put_bucket_encryption()
Amplify (amplify.html) put_bucket_inventory_configuration()
put_bucket_lifecycle()
APIGateway
put_bucket_lifecycle_configuration()
(apigateway.html)
put_bucket_logging()
ApiGatewayManagement put_bucket_metrics_configuration()
Api put_bucket_notification()
(apigatewaymanagement put_bucket_notification_configuration()
api.html) put_bucket_policy()
put_bucket_replication()
Boto 3 Docs 1.9.249
put_bucket_request_payment()
documentation ( put_bucket_tagging()
../../index.html) put_bucket_versioning()
put_bucket_website()
TABLE OF CONTENTS put_object()
put_object_acl()
Quickstart put_object_legal_hold()
(../../guide/quickstart.html) put_object_lock_configuration()
put_object_retention()
A Sample Tutorial
(../../guide/sqs.html) put_object_tagging()
put_public_access_block()
Code Examples restore_object()
(../../guide/examples.html)
select_object_content()
User Guides upload_file()
(../../guide/index.html) upload_fileobj()
upload_part()
Available Services (index.html) upload_part_copy()
ACM (acm.html)
abort_multipart_upload (**kwargs)
ACMPCA (acm-pca.html) Aborts a multipart upload.
AlexaForBusiness To verify that all parts have been removed, so you don't get charged for the
(alexaforbusiness.html) part storage, you should call the List Parts operation and ensure the parts list is
Amplify (amplify.html) empty.

APIGateway See also: AWS API Documentation


(apigateway.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
01/AbortMultipartUpload)
ApiGatewayManagement
Api Request Syntax
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.abort_multipart_upload(
documentation ( Bucket='string',
../../index.html) Key='string',
UploadId='string',
RequestPayer='requester'
TABLE OF CONTENTS
)

Quickstart
(../../guide/quickstart.html) Parameters
A Sample Tutorial Bucket (string) --
(../../guide/sqs.html) [REQUIRED]

Code Examples Name of the bucket to which the multipart upload was initiated.
(../../guide/examples.html) Key (string) --
[REQUIRED]
User Guides
(../../guide/index.html) Key of the object for which the multipart upload was initiated.

Available Services (index.html) UploadId (string) --


[REQUIRED]
ACM (acm.html)
Upload ID that identifies the multipart upload.
ACMPCA (acm-pca.html)
RequestPayer (string) -- Confirms that the requester knows that she or
AlexaForBusiness
he will be charged for the request. Bucket owners need not specify this
(alexaforbusiness.html)
parameter in their requests. Documentation on downloading objects
Amplify (amplify.html) from requester pays buckets can be found at
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
APIGateway
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(apigateway.html)
Return type
ApiGatewayManagement
Api dict
(apigatewaymanagement Returns
api.html)
Response Syntax
Boto 3 Docs 1.9.249
documentation (
{
../../index.html)
'RequestCharged': 'requester'
}
TABLE OF CONTENTS

Quickstart Response Structure


(../../guide/quickstart.html)
(dict) --
A Sample Tutorial
RequestCharged (string) --
(../../guide/sqs.html)
If present, indicates that the requester was successfully charged for the
Code Examples
request.
(../../guide/examples.html)

User Guides
(../../guide/index.html) can_paginate (operation_name)
Check if an operation can be paginated.
Available Services (index.html)
Parameters
ACM (acm.html)
operation_name (string) -- The operation name. This is the same name as
ACMPCA (acm-pca.html) the method name on the client. For example, if the method name is
create_foo , and you'd normally invoke the operation as
AlexaForBusiness
client.create_foo(**kwargs) , if the create_foo operation can be
(alexaforbusiness.html)
paginated, you can use the call client.get_paginator("create_foo") .
Amplify (amplify.html)
Returns
APIGateway
True if the operation can be paginated, False otherwise.
(apigateway.html)

ApiGatewayManagement
Api complete_multipart_upload (**kwargs)
(apigatewaymanagement Completes a multipart upload by assembling previously uploaded parts.
api.html)
See also: AWS API Documentation
Boto 3 Docs 1.9.249
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
documentation ( 01/CompleteMultipartUpload)
../../index.html)
Request Syntax

TABLE OF CONTENTS
response = client.complete_multipart_upload(
Quickstart Bucket='string',
(../../guide/quickstart.html) Key='string',
MultipartUpload={
A Sample Tutorial
'Parts': [
(../../guide/sqs.html)
{
Code Examples 'ETag': 'string',
(../../guide/examples.html) 'PartNumber': 123
},
User Guides
]
(../../guide/index.html)
},
Available Services (index.html) UploadId='string',
RequestPayer='requester'
ACM (acm.html)
)
ACMPCA (acm-pca.html)

AlexaForBusiness Parameters
(alexaforbusiness.html)
Bucket (string) -- [REQUIRED]
Amplify (amplify.html) Key (string) -- [REQUIRED]
MultipartUpload (dict) --
APIGateway
Parts (list) --
(apigateway.html)
(dict) --
ApiGatewayManagement ETag (string) --
Api Entity tag returned when the part was uploaded.
(apigatewaymanagement
PartNumber (integer) --
api.html)
Part number that identifies the part. This is a positive integer
Boto 3 Docs 1.9.249
between 1 and 10,000.
documentation (
UploadId (string) -- [REQUIRED]
../../index.html)
RequestPayer (string) -- Confirms that the requester knows that she or
he will be charged for the request. Bucket owners need not specify this
TABLE OF CONTENTS parameter in their requests. Documentation on downloading objects
from requester pays buckets can be found at
Quickstart http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(../../guide/quickstart.html) (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
A Sample Tutorial Return type
(../../guide/sqs.html) dict
Code Examples Returns
(../../guide/examples.html)
Response Syntax
User Guides
(../../guide/index.html)
{
Available Services (index.html) 'Location': 'string',
'Bucket': 'string',
ACM (acm.html)
'Key': 'string',
ACMPCA (acm-pca.html) 'Expiration': 'string',
AlexaForBusiness 'ETag': 'string',
(alexaforbusiness.html) 'ServerSideEncryption': 'AES256'|'aws:kms',
'VersionId': 'string',
Amplify (amplify.html)
'SSEKMSKeyId': 'string',
APIGateway 'RequestCharged': 'requester'
(apigateway.html) }
ApiGatewayManagement
Api Response Structure
(apigatewaymanagement
api.html) (dict) --
Location (string) --
Boto 3 Docs 1.9.249
documentation ( Bucket (string) --

../../index.html) Key (string) --


Expiration (string) --
TABLE OF CONTENTS
If the object expiration is configured, this will contain the expiration
date (expiry-date) and rule ID (rule-id). The value of rule-id is URL
Quickstart
encoded.
(../../guide/quickstart.html)
ETag (string) --
A Sample Tutorial
(../../guide/sqs.html) Entity tag of the object.

Code Examples ServerSideEncryption (string) --


(../../guide/examples.html)
The Server-side encryption algorithm used when storing this object in
User Guides S3 (e.g., AES256, aws:kms).
(../../guide/index.html) VersionId (string) --
Available Services (index.html) Version of the object.
ACM (acm.html) SSEKMSKeyId (string) --
ACMPCA (acm-pca.html) If present, specifies the ID of the AWS Key Management Service (KMS)
master encryption key that was used for the object.
AlexaForBusiness
(alexaforbusiness.html) RequestCharged (string) --
Amplify (amplify.html) If present, indicates that the requester was successfully charged for the
request.
APIGateway
(apigateway.html)

ApiGatewayManagement copy (CopySource, Bucket, Key, ExtraArgs=None, Callback=None,


Api
SourceClient=None, Config=None)
(apigatewaymanagement
Copy an object from one S3 location to another.
api.html)
This is a managed transfer which will perform a multipart copy in multiple
Boto 3 Docs 1.9.249
threads if necessary.
documentation (
Usage:
../../index.html)

TABLE OF CONTENTS import boto3


s3 = boto3.resource('s3')
Quickstart copy_source = {
(../../guide/quickstart.html) 'Bucket': 'mybucket',
'Key': 'mykey'
A Sample Tutorial
}
(../../guide/sqs.html)
s3.meta.client.copy(copy_source, 'otherbucket', 'otherkey')
Code Examples
(../../guide/examples.html)
Parameters
User Guides CopySource (dict) -- The name of the source bucket, key name of the
(../../guide/index.html) source object, and optional version ID of the source object. The dictionary
format is: {'Bucket': 'bucket', 'Key': 'key', 'VersionId': 'id'} .
Available Services (index.html)
Note that the VersionId key is optional and may be omitted.
ACM (acm.html) Bucket (str) -- The name of the bucket to copy to
ACMPCA (acm-pca.html) Key (str) -- The name of the key to copy to
ExtraArgs (dict) -- Extra arguments that may be passed to the client
AlexaForBusiness operation
(alexaforbusiness.html) Callback (function) -- A method which takes a number of bytes
Amplify (amplify.html) transferred to be periodically called during the copy.
SourceClient (botocore or boto3 Client) -- The client to be used for
APIGateway operation that may happen at the source object. For example, this client
(apigateway.html) is used for the head_object that determines the size of the copy. If no
ApiGatewayManagement client is provided, the current client is used as the client for the source
Api object.
(apigatewaymanagement Config (boto3.s3.transfer.TransferConfig
api.html) (../customizations/s3.html#boto3.s3.transfer.TransferConfig)) -- The
transfer configuration to be used when performing the copy.
Boto 3 Docs 1.9.249
documentation (
../../index.html) copy_object (**kwargs)
Creates a copy of an object that is already stored in Amazon S3.
TABLE OF CONTENTS
See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CopyObject)
Quickstart
(../../guide/quickstart.html) Request Syntax

A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.copy_object(
documentation ( ACL='private'|'public-read'|'public-read-write'|'authenticated-rea
../../index.html) Bucket='string',
CacheControl='string',
ContentDisposition='string',
TABLE OF CONTENTS
ContentEncoding='string',
ContentLanguage='string',
Quickstart
ContentType='string',
(../../guide/quickstart.html)
CopySource='string' or {'Bucket': 'string', 'Key': 'string', 'Vers
A Sample Tutorial CopySourceIfMatch='string',
(../../guide/sqs.html) CopySourceIfModifiedSince=datetime(2015, 1, 1),
Code Examples CopySourceIfNoneMatch='string',
(../../guide/examples.html) CopySourceIfUnmodifiedSince=datetime(2015, 1, 1),
Expires=datetime(2015, 1, 1),
User Guides
GrantFullControl='string',
(../../guide/index.html)
GrantRead='string',
Available Services (index.html) GrantReadACP='string',
GrantWriteACP='string',
ACM (acm.html)
Key='string',
ACMPCA (acm-pca.html) Metadata={
'string': 'string'
AlexaForBusiness
(alexaforbusiness.html) },
MetadataDirective='COPY'|'REPLACE',
Amplify (amplify.html) TaggingDirective='COPY'|'REPLACE',
APIGateway ServerSideEncryption='AES256'|'aws:kms',
(apigateway.html) StorageClass='STANDARD'|'REDUCED_REDUNDANCY'|'STANDARD_IA'|'ONEZON
WebsiteRedirectLocation='string',
ApiGatewayManagement
SSECustomerAlgorithm='string',
Api
SSECustomerKey='string',
(apigatewaymanagement
api.html) SSEKMSKeyId='string',
SSEKMSEncryptionContext='string',
Boto 3 Docs 1.9.249
CopySourceSSECustomerAlgorithm='string',
documentation ( CopySourceSSECustomerKey='string',
../../index.html) RequestPayer='requester',
Tagging='string',
TABLE OF CONTENTS ObjectLockMode='GOVERNANCE'|'COMPLIANCE',
ObjectLockRetainUntilDate=datetime(2015, 1, 1),
Quickstart ObjectLockLegalHoldStatus='ON'|'OFF'
(../../guide/quickstart.html) )

A Sample Tutorial
(../../guide/sqs.html)
Parameters
Code Examples
ACL (string) -- The canned ACL to apply to the object.
(../../guide/examples.html)
Bucket (string) -- [REQUIRED]
User Guides CacheControl (string) -- Specifies caching behavior along the
(../../guide/index.html) request/reply chain.
ContentDisposition (string) -- Specifies presentational information for
Available Services (index.html)
the object.
ACM (acm.html) ContentEncoding (string) -- Specifies what content encodings have been
applied to the object and thus what decoding mechanisms must be
ACMPCA (acm-pca.html)
applied to obtain the media-type referenced by the Content-Type header
AlexaForBusiness field.
(alexaforbusiness.html) ContentLanguage (string) -- The language the content is in.
ContentType (string) -- A standard MIME type describing the format of
Amplify (amplify.html)
the object data.
APIGateway CopySource (str or dict) -- [REQUIRED] The name of the source bucket,
(apigateway.html) key name of the source object, and optional version ID of the source
object. You can either provide this value as a string or a dictionary. The
ApiGatewayManagement
string form is {bucket}/{key} or {bucket}/{key}?versionId={versionId} if
Api
you want to copy a specific version. You can also provide this value as a
(apigatewaymanagement
dictionary. The dictionary format is recommended over the string format
api.html)
because it is more explicit. The dictionary format is: {'Bucket': 'bucket',
Boto 3 Docs 1.9.249
'Key': 'key', 'VersionId': 'id'}. Note that the VersionId key is optional and
documentation ( may be omitted.
../../index.html) CopySourceIfMatch (string) -- Copies the object if its entity tag (ETag)
matches the specified tag.
TABLE OF CONTENTS CopySourceIfModifiedSince (datetime) -- Copies the object if it has been
modified since the specified time.
Quickstart CopySourceIfNoneMatch (string) -- Copies the object if its entity tag
(../../guide/quickstart.html) (ETag) is different than the specified ETag.
CopySourceIfUnmodifiedSince (datetime) -- Copies the object if it hasn't
A Sample Tutorial been modified since the specified time.
(../../guide/sqs.html) Expires (datetime) -- The date and time at which the object is no longer
Code Examples cacheable.
(../../guide/examples.html) GrantFullControl (string) -- Gives the grantee READ, READ_ACP, and
WRITE_ACP permissions on the object.
User Guides GrantRead (string) -- Allows grantee to read the object data and its
(../../guide/index.html) metadata.
GrantReadACP (string) -- Allows grantee to read the object ACL.
Available Services (index.html)
GrantWriteACP (string) -- Allows grantee to write the ACL for the
ACM (acm.html) applicable object.
Key (string) -- [REQUIRED]
ACMPCA (acm-pca.html)
Metadata (dict) --
AlexaForBusiness A map of metadata to store with the object in S3.
(alexaforbusiness.html)
(string) --
Amplify (amplify.html) (string) --
APIGateway MetadataDirective (string) -- Specifies whether the metadata is copied
(apigateway.html) from the source object or replaced with metadata provided in the
request.
ApiGatewayManagement TaggingDirective (string) -- Specifies whether the object tag-set are
Api copied from the source object or replaced with tag-set provided in the
(apigatewaymanagement request.
api.html)
ServerSideEncryption (string) -- The Server-side encryption algorithm
Boto 3 Docs 1.9.249
used when storing this object in S3 (e.g., AES256, aws:kms).
documentation ( StorageClass (string) -- The type of storage to use for the object. Defaults
../../index.html) to 'STANDARD'.
WebsiteRedirectLocation (string) -- If the bucket is configured as a
TABLE OF CONTENTS 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
Quickstart in the object metadata.
(../../guide/quickstart.html) SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
encrypting the object (e.g., AES256).
A Sample Tutorial SSECustomerKey (string) -- Specifies the customer-provided encryption
(../../guide/sqs.html) key for Amazon S3 to use in encrypting data. This value is used to store
Code Examples the object and then it is discarded; Amazon does not store the encryption
(../../guide/examples.html) key. The key must be appropriate for use with the algorithm specified in
the x-amz-server-side-encryption-customer-algorithm header.
User Guides SSECustomerKeyMD5 (string) --
(../../guide/index.html) 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
Available Services (index.html)
ensure the encryption key was transmitted without error.
ACM (acm.html)

ACMPCA (acm-pca.html) Please note that this parameter is automatically populated if it is not
AlexaForBusiness provided. Including this parameter is not required
(alexaforbusiness.html)

Amplify (amplify.html) SSEKMSKeyId (string) -- Specifies the AWS KMS key ID to use for object
encryption. All GET and PUT requests for an object protected by AWS KMS
APIGateway
will fail if not made via SSL or using SigV4. Documentation on configuring
(apigateway.html)
any of the officially supported AWS SDKs and CLI can be found at
ApiGatewayManagement http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-
Api signature-version
(apigatewaymanagement (http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify
api.html) signature-version)
SSEKMSEncryptionContext (string) -- Specifies the AWS KMS Encryption
Boto 3 Docs 1.9.249
Context to use for object encryption. The value of this header is a base64-
documentation ( encoded UTF-8 string holding JSON with the encryption context key-value
../../index.html) pairs.
CopySourceSSECustomerAlgorithm (string) -- Specifies the algorithm to
TABLE OF CONTENTS use when decrypting the source object (e.g., AES256).
CopySourceSSECustomerKey (string) -- Specifies the customer-provided
Quickstart encryption key for Amazon S3 to use to decrypt the source object. The
(../../guide/quickstart.html) encryption key provided in this header must be one that was used when
the source object was created.
A Sample Tutorial CopySourceSSECustomerKeyMD5 (string) --
(../../guide/sqs.html) Specifies the 128-bit MD5 digest of the encryption key according to RFC
Code Examples 1321. Amazon S3 uses this header for a message integrity check to
(../../guide/examples.html) ensure the encryption key was transmitted without error.

User Guides
(../../guide/index.html) Please note that this parameter is automatically populated if it is not
provided. Including this parameter is not required
Available Services (index.html)

ACM (acm.html)
RequestPayer (string) -- Confirms that the requester knows that she or
ACMPCA (acm-pca.html) he will be charged for the request. Bucket owners need not specify this
parameter in their requests. Documentation on downloading objects
AlexaForBusiness
from requester pays buckets can be found at
(alexaforbusiness.html)
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Amplify (amplify.html) (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Tagging (string) -- The tag-set for the object destination object this value
APIGateway
must be used in conjunction with the TaggingDirective. The tag-set must
(apigateway.html)
be encoded as URL Query parameters
ApiGatewayManagement ObjectLockMode (string) -- The object lock mode that you want to apply
Api to the copied object.
(apigatewaymanagement ObjectLockRetainUntilDate (datetime) -- The date and time when you
api.html) want the copied object's object lock to expire.
ObjectLockLegalHoldStatus (string) -- Specifies whether you want to
Boto 3 Docs 1.9.249
apply a Legal Hold to the copied object.
documentation (
Return type
../../index.html)
dict

TABLE OF CONTENTS Returns

Response Syntax
Quickstart
(../../guide/quickstart.html)
{
A Sample Tutorial 'CopyObjectResult': {
(../../guide/sqs.html) 'ETag': 'string',
Code Examples 'LastModified': datetime(2015, 1, 1)
(../../guide/examples.html) },
'Expiration': 'string',
User Guides
'CopySourceVersionId': 'string',
(../../guide/index.html)
'VersionId': 'string',
Available Services (index.html) 'ServerSideEncryption': 'AES256'|'aws:kms',
'SSECustomerAlgorithm': 'string',
ACM (acm.html)
'SSECustomerKeyMD5': 'string',
ACMPCA (acm-pca.html) 'SSEKMSKeyId': 'string',

AlexaForBusiness 'SSEKMSEncryptionContext': 'string',


(alexaforbusiness.html) 'RequestCharged': 'requester'
}
Amplify (amplify.html)

APIGateway
Response Structure
(apigateway.html)
(dict) --
ApiGatewayManagement
Api CopyObjectResult (dict) --
(apigatewaymanagement
ETag (string) --
api.html)
LastModified (datetime) --
Boto 3 Docs 1.9.249
Expiration (string) --
documentation (
If the object expiration is configured, the response includes this
../../index.html)
header.

TABLE OF CONTENTS CopySourceVersionId (string) --

VersionId (string) --
Quickstart
Version ID of the newly created copy.
(../../guide/quickstart.html)
ServerSideEncryption (string) --
A Sample Tutorial
(../../guide/sqs.html) The Server-side encryption algorithm used when storing this object in
S3 (e.g., AES256, aws:kms).
Code Examples
(../../guide/examples.html) SSECustomerAlgorithm (string) --

User Guides If server-side encryption with a customer-provided encryption key was


(../../guide/index.html) requested, the response will include this header confirming the
encryption algorithm used.
Available Services (index.html)
SSECustomerKeyMD5 (string) --
ACM (acm.html)
If server-side encryption with a customer-provided encryption key was
ACMPCA (acm-pca.html) requested, the response will include this header to provide round trip
AlexaForBusiness message integrity verification of the customer-provided encryption key.
(alexaforbusiness.html) SSEKMSKeyId (string) --
Amplify (amplify.html) If present, specifies the ID of the AWS Key Management Service (KMS)
APIGateway master encryption key that was used for the object.
(apigateway.html) SSEKMSEncryptionContext (string) --
ApiGatewayManagement If present, specifies the AWS KMS Encryption Context to use for object
Api encryption. The value of this header is a base64-encoded UTF-8 string
(apigatewaymanagement holding JSON with the encryption context key-value pairs.
api.html)
RequestCharged (string) --
Boto 3 Docs 1.9.249
documentation ( If present, indicates that the requester was successfully charged for the
request.
../../index.html)

TABLE OF CONTENTS
create_bucket (**kwargs)
Creates a new bucket.
Quickstart
(../../guide/quickstart.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateBucket)
A Sample Tutorial
(../../guide/sqs.html) Request Syntax

Code Examples
(../../guide/examples.html) response = client.create_bucket(
ACL='private'|'public-read'|'public-read-write'|'authenticated-rea
User Guides Bucket='string',
(../../guide/index.html)
CreateBucketConfiguration={
Available Services (index.html) 'LocationConstraint': 'EU'|'eu-west-1'|'us-west-1'|'us-west-2'
},
ACM (acm.html)
GrantFullControl='string',
ACMPCA (acm-pca.html) GrantRead='string',
GrantReadACP='string',
AlexaForBusiness
GrantWrite='string',
(alexaforbusiness.html)
GrantWriteACP='string',
Amplify (amplify.html) ObjectLockEnabledForBucket=True|False
APIGateway )
(apigateway.html)

ApiGatewayManagement
Api Parameters
(apigatewaymanagement ACL (string) -- The canned ACL to apply to the bucket.
api.html) Bucket (string) -- [REQUIRED]
CreateBucketConfiguration (dict) --
Boto 3 Docs 1.9.249
LocationConstraint (string) --
documentation ( Specifies the region where the bucket will be created. If you don't
../../index.html) specify a region, the bucket is created in US East (N. Virginia) Region
(us-east-1).
TABLE OF CONTENTS GrantFullControl (string) -- Allows grantee the read, write, read ACP, and
write ACP permissions on the bucket.
Quickstart GrantRead (string) -- Allows grantee to list the objects in the bucket.
(../../guide/quickstart.html) GrantReadACP (string) -- Allows grantee to read the bucket ACL.
A Sample Tutorial GrantWrite (string) -- Allows grantee to create, overwrite, and delete any
(../../guide/sqs.html) object in the bucket.
GrantWriteACP (string) -- Allows grantee to write the ACL for the
Code Examples applicable bucket.
(../../guide/examples.html) ObjectLockEnabledForBucket (boolean) -- Specifies whether you want
Amazon S3 object lock to be enabled for the new bucket.
User Guides
(../../guide/index.html) Return type
dict
Available Services (index.html)
Returns
ACM (acm.html)
Response Syntax
ACMPCA (acm-pca.html)

AlexaForBusiness
{
(alexaforbusiness.html)
'Location': 'string'
Amplify (amplify.html) }
APIGateway
(apigateway.html)
Response Structure
ApiGatewayManagement
(dict) --
Api
Location (string) --
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 create_multipart_upload (**kwargs)

documentation ( Initiates a multipart upload and returns an upload ID.

../../index.html)
Note: After you initiate multipart upload and upload one or more parts,
TABLE OF CONTENTS you must either complete or abort multipart upload in order to stop
getting charged for storage of the uploaded parts. Only after you either
Quickstart complete or abort multipart upload, Amazon S3 frees up the parts storage
(../../guide/quickstart.html) and stops charging you for the parts storage.

A Sample Tutorial
(../../guide/sqs.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
Code Examples
01/CreateMultipartUpload)
(../../guide/examples.html)
Request Syntax
User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.create_multipart_upload(
documentation ( ACL='private'|'public-read'|'public-read-write'|'authenticated-rea
../../index.html) Bucket='string',
CacheControl='string',
ContentDisposition='string',
TABLE OF CONTENTS
ContentEncoding='string',
ContentLanguage='string',
Quickstart
ContentType='string',
(../../guide/quickstart.html)
Expires=datetime(2015, 1, 1),
A Sample Tutorial GrantFullControl='string',
(../../guide/sqs.html) GrantRead='string',
Code Examples GrantReadACP='string',
(../../guide/examples.html) GrantWriteACP='string',
Key='string',
User Guides
Metadata={
(../../guide/index.html)
'string': 'string'
Available Services (index.html) },
ServerSideEncryption='AES256'|'aws:kms',
ACM (acm.html)
StorageClass='STANDARD'|'REDUCED_REDUNDANCY'|'STANDARD_IA'|'ONEZON
ACMPCA (acm-pca.html) WebsiteRedirectLocation='string',
SSECustomerAlgorithm='string',
AlexaForBusiness
(alexaforbusiness.html) SSECustomerKey='string',
SSEKMSKeyId='string',
Amplify (amplify.html) SSEKMSEncryptionContext='string',
APIGateway RequestPayer='requester',
(apigateway.html) Tagging='string',
ObjectLockMode='GOVERNANCE'|'COMPLIANCE',
ApiGatewayManagement
ObjectLockRetainUntilDate=datetime(2015, 1, 1),
Api
ObjectLockLegalHoldStatus='ON'|'OFF'
(apigatewaymanagement
api.html) )
Boto 3 Docs 1.9.249
documentation ( Parameters
../../index.html) ACL (string) -- The canned ACL to apply to the object.
Bucket (string) -- [REQUIRED]
TABLE OF CONTENTS
CacheControl (string) -- Specifies caching behavior along the
request/reply chain.
ContentDisposition (string) -- Specifies presentational information for
Quickstart
the object.
(../../guide/quickstart.html)
ContentEncoding (string) -- Specifies what content encodings have been
A Sample Tutorial applied to the object and thus what decoding mechanisms must be
(../../guide/sqs.html) applied to obtain the media-type referenced by the Content-Type header
field.
Code Examples
ContentLanguage (string) -- The language the content is in.
(../../guide/examples.html)
ContentType (string) -- A standard MIME type describing the format of
User Guides the object data.
(../../guide/index.html) Expires (datetime) -- The date and time at which the object is no longer
cacheable.
Available Services (index.html)
GrantFullControl (string) -- Gives the grantee READ, READ_ACP, and
ACM (acm.html) WRITE_ACP permissions on the object.
GrantRead (string) -- Allows grantee to read the object data and its
ACMPCA (acm-pca.html)
metadata.
AlexaForBusiness GrantReadACP (string) -- Allows grantee to read the object ACL.
(alexaforbusiness.html) GrantWriteACP (string) -- Allows grantee to write the ACL for the
applicable object.
Amplify (amplify.html)
Key (string) -- [REQUIRED]
APIGateway Metadata (dict) --
(apigateway.html) A map of metadata to store with the object in S3.
ApiGatewayManagement (string) --
Api (string) --
(apigatewaymanagement ServerSideEncryption (string) -- The Server-side encryption algorithm
api.html) used when storing this object in S3 (e.g., AES256, aws:kms).
StorageClass (string) -- The type of storage to use for the object. Defaults
Boto 3 Docs 1.9.249
to 'STANDARD'.
documentation ( WebsiteRedirectLocation (string) -- If the bucket is configured as a
../../index.html) 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
TABLE OF CONTENTS in the object metadata.
SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
Quickstart encrypting the object (e.g., AES256).
(../../guide/quickstart.html) SSECustomerKey (string) -- Specifies the customer-provided encryption
key for Amazon S3 to use in encrypting data. This value is used to store
A Sample Tutorial the object and then it is discarded; Amazon does not store the encryption
(../../guide/sqs.html) key. The key must be appropriate for use with the algorithm specified in
Code Examples the x-amz-server-side-encryption-customer-algorithm header.
(../../guide/examples.html) SSECustomerKeyMD5 (string) --
Specifies the 128-bit MD5 digest of the encryption key according to RFC
User Guides 1321. Amazon S3 uses this header for a message integrity check to
(../../guide/index.html) ensure the encryption key was transmitted without error.

Available Services (index.html)

ACM (acm.html) Please note that this parameter is automatically populated if it is not
provided. Including this parameter is not required
ACMPCA (acm-pca.html)

AlexaForBusiness
SSEKMSKeyId (string) -- Specifies the AWS KMS key ID to use for object
(alexaforbusiness.html)
encryption. All GET and PUT requests for an object protected by AWS KMS
Amplify (amplify.html) will fail if not made via SSL or using SigV4. Documentation on configuring
any of the officially supported AWS SDKs and CLI can be found at
APIGateway
http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-
(apigateway.html)
signature-version
ApiGatewayManagement (http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify
Api signature-version)
(apigatewaymanagement SSEKMSEncryptionContext (string) -- Specifies the AWS KMS Encryption
api.html) 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
Boto 3 Docs 1.9.249
pairs.
documentation ( RequestPayer (string) -- Confirms that the requester knows that she or
../../index.html) he will be charged for the request. Bucket owners need not specify this
parameter in their requests. Documentation on downloading objects
TABLE OF CONTENTS from requester pays buckets can be found at
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Quickstart (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(../../guide/quickstart.html) Tagging (string) -- The tag-set for the object. The tag-set must be encoded
as URL Query parameters
A Sample Tutorial ObjectLockMode (string) -- Specifies the object lock mode that you want
(../../guide/sqs.html) to apply to the uploaded object.
Code Examples ObjectLockRetainUntilDate (datetime) -- Specifies the date and time
(../../guide/examples.html) when you want the object lock to expire.
ObjectLockLegalHoldStatus (string) -- Specifies whether you want to
User Guides apply a Legal Hold to the uploaded object.
(../../guide/index.html)
Return type
Available Services (index.html) dict
ACM (acm.html) Returns
ACMPCA (acm-pca.html) Response Syntax
AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'AbortDate': datetime(2015, 1, 1),
../../index.html) 'AbortRuleId': 'string',
'Bucket': 'string',
'Key': 'string',
TABLE OF CONTENTS
'UploadId': 'string',
'ServerSideEncryption': 'AES256'|'aws:kms',
Quickstart
'SSECustomerAlgorithm': 'string',
(../../guide/quickstart.html)
'SSECustomerKeyMD5': 'string',
A Sample Tutorial 'SSEKMSKeyId': 'string',
(../../guide/sqs.html) 'SSEKMSEncryptionContext': 'string',
Code Examples 'RequestCharged': 'requester'
(../../guide/examples.html) }

User Guides
(../../guide/index.html) Response Structure

Available Services (index.html) (dict) --

ACM (acm.html) AbortDate (datetime) --

ACMPCA (acm-pca.html) Date when multipart upload will become eligible for abort operation by
lifecycle.
AlexaForBusiness
(alexaforbusiness.html) AbortRuleId (string) --

Amplify (amplify.html) Id of the lifecycle rule that makes a multipart upload eligible for abort
operation.
APIGateway
(apigateway.html) Bucket (string) --

ApiGatewayManagement Name of the bucket to which the multipart upload was initiated.
Api Key (string) --
(apigatewaymanagement
api.html)
Object key for which the multipart upload was initiated.
UploadId (string) --
Boto 3 Docs 1.9.249
documentation ( ID for the initiated multipart upload.

../../index.html) ServerSideEncryption (string) --

The Server-side encryption algorithm used when storing this object in


TABLE OF CONTENTS S3 (e.g., AES256, aws:kms).

SSECustomerAlgorithm (string) --
Quickstart
(../../guide/quickstart.html) If server-side encryption with a customer-provided encryption key was
requested, the response will include this header confirming the
A Sample Tutorial
encryption algorithm used.
(../../guide/sqs.html)
SSECustomerKeyMD5 (string) --
Code Examples
(../../guide/examples.html) If server-side encryption with a customer-provided encryption key was
requested, the response will include this header to provide round trip
User Guides message integrity verification of the customer-provided encryption key.
(../../guide/index.html)
SSEKMSKeyId (string) --
Available Services (index.html)
If present, specifies the ID of the AWS Key Management Service (KMS)
ACM (acm.html) master encryption key that was used for the object.
ACMPCA (acm-pca.html) SSEKMSEncryptionContext (string) --
AlexaForBusiness If present, specifies the AWS KMS Encryption Context to use for object
(alexaforbusiness.html) encryption. The value of this header is a base64-encoded UTF-8 string
Amplify (amplify.html) holding JSON with the encryption context key-value pairs.

APIGateway RequestCharged (string) --


(apigateway.html) If present, indicates that the requester was successfully charged for the
ApiGatewayManagement request.
Api
(apigatewaymanagement
api.html) delete_bucket (**kwargs)
Deletes the bucket. All objects (including all object versions and Delete Markers)
Boto 3 Docs 1.9.249
in the bucket must be deleted before the bucket itself can be deleted.
documentation (
See also: AWS API Documentation
../../index.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucket)

TABLE OF CONTENTS Request Syntax

Quickstart response = client.delete_bucket(


(../../guide/quickstart.html) Bucket='string'
A Sample Tutorial )
(../../guide/sqs.html)

Code Examples Parameters


(../../guide/examples.html) Bucket (string) -- [REQUIRED]

User Guides Returns


(../../guide/index.html) None

Available Services (index.html)

ACM (acm.html) delete_bucket_analytics_configuration (**kwargs)

ACMPCA (acm-pca.html) Deletes an analytics configuration for the bucket (specified by the analytics
configuration ID).
AlexaForBusiness
(alexaforbusiness.html) To use this operation, you must have permissions to perform the
s3:PutAnalyticsConfiguration action. The bucket owner has this permission by
Amplify (amplify.html) default. The bucket owner can grant this permission to others.
APIGateway See also: AWS API Documentation
(apigateway.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
ApiGatewayManagement 01/DeleteBucketAnalyticsConfiguration)
Api Request Syntax
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.delete_bucket_analytics_configuration(
documentation ( Bucket='string',
../../index.html) Id='string'
)

TABLE OF CONTENTS
Parameters
Quickstart Bucket (string) --
(../../guide/quickstart.html) [REQUIRED]
A Sample Tutorial The name of the bucket from which an analytics configuration is deleted.
(../../guide/sqs.html)
Id (string) --
Code Examples [REQUIRED]
(../../guide/examples.html)
The ID that identifies the analytics configuration.
User Guides
Returns
(../../guide/index.html)
None
Available Services (index.html)

ACM (acm.html)
delete_bucket_cors (**kwargs)
ACMPCA (acm-pca.html) Deletes the CORS configuration information set for the bucket.
AlexaForBusiness See also: AWS API Documentation
(alexaforbusiness.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketCors)
Amplify (amplify.html) Request Syntax
APIGateway
(apigateway.html) response = client.delete_bucket_cors(
ApiGatewayManagement Bucket='string'
Api )
(apigatewaymanagement
api.html)
Parameters
Boto 3 Docs 1.9.249
Bucket (string) -- [REQUIRED]
documentation (
Returns
../../index.html)
None

TABLE OF CONTENTS

delete_bucket_encryption (**kwargs)
Quickstart
Deletes the server-side encryption configuration from the bucket.
(../../guide/quickstart.html)
See also: AWS API Documentation
A Sample Tutorial
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
(../../guide/sqs.html)
01/DeleteBucketEncryption)
Code Examples
Request Syntax
(../../guide/examples.html)

User Guides
response = client.delete_bucket_encryption(
(../../guide/index.html)
Bucket='string'
Available Services (index.html) )

ACM (acm.html)

ACMPCA (acm-pca.html) Parameters


Bucket (string) --
AlexaForBusiness
[REQUIRED]
(alexaforbusiness.html)
The name of the bucket containing the server-side encryption configuration
Amplify (amplify.html)
to delete.
APIGateway
Returns
(apigateway.html)
None
ApiGatewayManagement
Api
(apigatewaymanagement delete_bucket_inventory_configuration (**kwargs)
api.html)
Deletes an inventory configuration (identified by the inventory ID) from the
Boto 3 Docs 1.9.249
bucket.
documentation (
See also: AWS API Documentation
../../index.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
01/DeleteBucketInventoryConfiguration)
TABLE OF CONTENTS
Request Syntax
Quickstart
(../../guide/quickstart.html) response = client.delete_bucket_inventory_configuration(
A Sample Tutorial Bucket='string',
(../../guide/sqs.html) Id='string'
)
Code Examples
(../../guide/examples.html)
Parameters
User Guides
Bucket (string) --
(../../guide/index.html)
[REQUIRED]
Available Services (index.html) The name of the bucket containing the inventory configuration to delete.
ACM (acm.html) Id (string) --
ACMPCA (acm-pca.html) [REQUIRED]

AlexaForBusiness The ID used to identify the inventory configuration.


(alexaforbusiness.html) Returns
Amplify (amplify.html) None

APIGateway
(apigateway.html)
delete_bucket_lifecycle (**kwargs)
ApiGatewayManagement Deletes the lifecycle configuration from the bucket.
Api
(apigatewaymanagement
api.html)
See also: AWS API Documentation
Boto 3 Docs 1.9.249
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
documentation ( 01/DeleteBucketLifecycle)
../../index.html)
Request Syntax

TABLE OF CONTENTS
response = client.delete_bucket_lifecycle(

Quickstart Bucket='string'
(../../guide/quickstart.html) )

A Sample Tutorial
(../../guide/sqs.html) Parameters
Bucket (string) -- [REQUIRED]
Code Examples
(../../guide/examples.html) Returns
None
User Guides
(../../guide/index.html)

Available Services (index.html) delete_bucket_metrics_configuration (**kwargs)

ACM (acm.html) Deletes a metrics configuration (specified by the metrics configuration ID) from
the bucket.
ACMPCA (acm-pca.html)
See also: AWS API Documentation
AlexaForBusiness (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
(alexaforbusiness.html) 01/DeleteBucketMetricsConfiguration)
Amplify (amplify.html) Request Syntax
APIGateway
(apigateway.html) response = client.delete_bucket_metrics_configuration(
ApiGatewayManagement Bucket='string',
Api Id='string'
(apigatewaymanagement )
api.html)
Parameters
Boto 3 Docs 1.9.249
Bucket (string) --
documentation ( [REQUIRED]
../../index.html)
The name of the bucket containing the metrics configuration to delete.

TABLE OF CONTENTS Id (string) --


[REQUIRED]
Quickstart The ID used to identify the metrics configuration.
(../../guide/quickstart.html)
Returns
A Sample Tutorial None
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html) delete_bucket_policy (**kwargs)
Deletes the policy from the bucket.
User Guides
(../../guide/index.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketPolicy)
Available Services (index.html)
Request Syntax
ACM (acm.html)

ACMPCA (acm-pca.html) response = client.delete_bucket_policy(


AlexaForBusiness Bucket='string'
(alexaforbusiness.html) )

Amplify (amplify.html)

APIGateway Parameters
(apigateway.html) Bucket (string) -- [REQUIRED]

ApiGatewayManagement Returns
Api None
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 delete_bucket_replication (**kwargs)

documentation ( Deletes the replication configuration from the bucket. For information about
replication configuration, see Cross-Region Replication (CRR)
../../index.html)
(https://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html) in the Amazon S3
Developer Guide .
TABLE OF CONTENTS
See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
Quickstart
01/DeleteBucketReplication)
(../../guide/quickstart.html)
Request Syntax
A Sample Tutorial
(../../guide/sqs.html)
response = client.delete_bucket_replication(
Code Examples
Bucket='string'
(../../guide/examples.html)
)
User Guides
(../../guide/index.html)
Parameters
Available Services (index.html) Bucket (string) --
ACM (acm.html) [REQUIRED]

ACMPCA (acm-pca.html) The bucket name.

AlexaForBusiness
(alexaforbusiness.html) Note
Amplify (amplify.html) It can take a while to propagate the deletion of a replication
configuration to all Amazon S3 systems.
APIGateway
(apigateway.html)

ApiGatewayManagement Returns
Api None
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 delete_bucket_tagging (**kwargs)
Deletes the tags from the bucket.
documentation (
../../index.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
01/DeleteBucketTagging)
TABLE OF CONTENTS
Request Syntax
Quickstart
(../../guide/quickstart.html)
response = client.delete_bucket_tagging(
A Sample Tutorial Bucket='string'
(../../guide/sqs.html) )

Code Examples
(../../guide/examples.html) Parameters
User Guides Bucket (string) -- [REQUIRED]
(../../guide/index.html) Returns
Available Services (index.html) None

ACM (acm.html)

ACMPCA (acm-pca.html) delete_bucket_website (**kwargs)


This operation removes the website configuration from the bucket.
AlexaForBusiness
(alexaforbusiness.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
Amplify (amplify.html)
01/DeleteBucketWebsite)
APIGateway
Request Syntax
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.delete_bucket_website(
documentation ( Bucket='string'
../../index.html) )

TABLE OF CONTENTS Parameters


Bucket (string) -- [REQUIRED]
Quickstart
Returns
(../../guide/quickstart.html)
None
A Sample Tutorial
(../../guide/sqs.html)

Code Examples delete_object (**kwargs)


(../../guide/examples.html) 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
User Guides
version, Amazon S3 does not remove any objects.
(../../guide/index.html)
See also: AWS API Documentation
Available Services (index.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObject)
ACM (acm.html) Request Syntax
ACMPCA (acm-pca.html)

AlexaForBusiness response = client.delete_object(


(alexaforbusiness.html) Bucket='string',
Key='string',
Amplify (amplify.html)
MFA='string',
APIGateway VersionId='string',
(apigateway.html) RequestPayer='requester',
ApiGatewayManagement BypassGovernanceRetention=True|False
Api )
(apigatewaymanagement
api.html)
Parameters
Boto 3 Docs 1.9.249
Bucket (string) -- [REQUIRED]
documentation ( Key (string) -- [REQUIRED]
../../index.html) MFA (string) -- The concatenation of the authentication device's serial
number, a space, and the value that is displayed on your authentication
TABLE OF CONTENTS device.
VersionId (string) -- VersionId used to reference a specific version of the
Quickstart object.
(../../guide/quickstart.html) RequestPayer (string) -- Confirms that the requester knows that she or
he will be charged for the request. Bucket owners need not specify this
A Sample Tutorial
parameter in their requests. Documentation on downloading objects
(../../guide/sqs.html)
from requester pays buckets can be found at
Code Examples http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(../../guide/examples.html) (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
BypassGovernanceRetention (boolean) -- Indicates whether Amazon S3
User Guides object lock should bypass governance-mode restrictions to process this
(../../guide/index.html) operation.
Available Services (index.html) Return type
ACM (acm.html) dict

ACMPCA (acm-pca.html) Returns

AlexaForBusiness Response Syntax


(alexaforbusiness.html)

Amplify (amplify.html) {
'DeleteMarker': True|False,
APIGateway
'VersionId': 'string',
(apigateway.html)
'RequestCharged': 'requester'
ApiGatewayManagement }
Api
(apigatewaymanagement
api.html) Response Structure
(dict) --
Boto 3 Docs 1.9.249
documentation ( DeleteMarker (boolean) --

../../index.html) Specifies whether the versioned object that was permanently deleted
was (true) or was not (false) a delete marker.
TABLE OF CONTENTS VersionId (string) --

Returns the version ID of the delete marker created as a result of the


Quickstart
DELETE operation.
(../../guide/quickstart.html)
RequestCharged (string) --
A Sample Tutorial
(../../guide/sqs.html) If present, indicates that the requester was successfully charged for the
request.
Code Examples
(../../guide/examples.html)

User Guides delete_object_tagging (**kwargs)


(../../guide/index.html) Removes the tag-set from an existing object.

Available Services (index.html) See also: AWS API Documentation


(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
ACM (acm.html)
01/DeleteObjectTagging)
ACMPCA (acm-pca.html)
Request Syntax
AlexaForBusiness
(alexaforbusiness.html)
response = client.delete_object_tagging(
Amplify (amplify.html) Bucket='string',
APIGateway Key='string',
(apigateway.html) VersionId='string'
)
ApiGatewayManagement
Api
(apigatewaymanagement Parameters
api.html) Bucket (string) -- [REQUIRED]
Key (string) -- [REQUIRED]
Boto 3 Docs 1.9.249
VersionId (string) -- The versionId of the object that the tag-set will be
documentation ( removed from.
../../index.html)
Return type
dict
TABLE OF CONTENTS
Returns
Quickstart Response Syntax
(../../guide/quickstart.html)

A Sample Tutorial {
(../../guide/sqs.html) 'VersionId': 'string'
Code Examples }
(../../guide/examples.html)

User Guides Response Structure


(../../guide/index.html) (dict) --
Available Services (index.html) VersionId (string) --
ACM (acm.html) The versionId of the object the tag-set was removed from.
ACMPCA (acm-pca.html)

AlexaForBusiness delete_objects (**kwargs)


(alexaforbusiness.html)
This operation enables you to delete multiple objects from a bucket using a
Amplify (amplify.html) single HTTP request. You may specify up to 1000 keys.
APIGateway See also: AWS API Documentation
(apigateway.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjects)
ApiGatewayManagement Request Syntax
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.delete_objects(
documentation ( Bucket='string',
../../index.html) Delete={
'Objects': [
{
TABLE OF CONTENTS
'Key': 'string',
'VersionId': 'string'
Quickstart
},
(../../guide/quickstart.html)
],
A Sample Tutorial 'Quiet': True|False
(../../guide/sqs.html) },
Code Examples MFA='string',
(../../guide/examples.html) RequestPayer='requester',
BypassGovernanceRetention=True|False
User Guides
)
(../../guide/index.html)

Available Services (index.html)


Parameters
ACM (acm.html) Bucket (string) -- [REQUIRED]
Delete (dict) --
ACMPCA (acm-pca.html)
[REQUIRED]
AlexaForBusiness
Objects (list) -- [REQUIRED]
(alexaforbusiness.html)
(dict) --
Amplify (amplify.html) Key (string) -- [REQUIRED]
APIGateway Key name of the object to delete.
(apigateway.html) VersionId (string) --
ApiGatewayManagement VersionId for the specific version of the object to delete.
Api Quiet (boolean) --
(apigatewaymanagement Element to enable quiet mode for the request. When you add this
api.html) element, you must set its value to true.
MFA (string) -- The concatenation of the authentication device's serial
Boto 3 Docs 1.9.249
number, a space, and the value that is displayed on your authentication
documentation ( device.
../../index.html) RequestPayer (string) -- Confirms that the requester knows that she or
he will be charged for the request. Bucket owners need not specify this
TABLE OF CONTENTS parameter in their requests. Documentation on downloading objects
from requester pays buckets can be found at
Quickstart http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(../../guide/quickstart.html) (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
BypassGovernanceRetention (boolean) -- Specifies whether you want to
A Sample Tutorial delete this object even if it has a Governance-type object lock in place.
(../../guide/sqs.html) You must have sufficient permissions to perform this operation.
Code Examples Return type
(../../guide/examples.html)
dict
User Guides Returns
(../../guide/index.html)
Response Syntax
Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'Deleted': [
../../index.html) {
'Key': 'string',
'VersionId': 'string',
TABLE OF CONTENTS
'DeleteMarker': True|False,
'DeleteMarkerVersionId': 'string'
Quickstart
},
(../../guide/quickstart.html)
],
A Sample Tutorial 'RequestCharged': 'requester',
(../../guide/sqs.html) 'Errors': [
Code Examples {
(../../guide/examples.html) 'Key': 'string',
'VersionId': 'string',
User Guides
'Code': 'string',
(../../guide/index.html)
'Message': 'string'
Available Services (index.html) },
]
ACM (acm.html)
}
ACMPCA (acm-pca.html)

AlexaForBusiness Response Structure


(alexaforbusiness.html)
(dict) --
Amplify (amplify.html)
Deleted (list) --
APIGateway
(dict) --
(apigateway.html)
Key (string) --
ApiGatewayManagement VersionId (string) --
Api DeleteMarker (boolean) --
(apigatewaymanagement DeleteMarkerVersionId (string) --
api.html) RequestCharged (string) --
If present, indicates that the requester was successfully charged for the
Boto 3 Docs 1.9.249
request.
documentation (
Errors (list) --
../../index.html)
(dict) --
TABLE OF CONTENTS Key (string) --
VersionId (string) --
Code (string) --
Quickstart
Message (string) --
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html) delete_public_access_block (**kwargs)
Code Examples Removes the PublicAccessBlock configuration from an Amazon S3 bucket.
(../../guide/examples.html)
See also: AWS API Documentation
User Guides (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
(../../guide/index.html) 01/DeletePublicAccessBlock)

Request Syntax
Available Services (index.html)

ACM (acm.html)
response = client.delete_public_access_block(
ACMPCA (acm-pca.html) Bucket='string'
AlexaForBusiness )
(alexaforbusiness.html)

Amplify (amplify.html) Parameters


APIGateway Bucket (string) --
(apigateway.html) [REQUIRED]

ApiGatewayManagement The Amazon S3 bucket whose PublicAccessBlock configuration you want


Api to delete.
(apigatewaymanagement Returns
api.html) None
Boto 3 Docs 1.9.249
documentation ( download_file (Bucket, Key, Filename, ExtraArgs=None, Callback=None,
../../index.html) Config=None)
Download an S3 object to a file.
TABLE OF CONTENTS
Usage:
Quickstart
(../../guide/quickstart.html) import boto3
s3 = boto3.resource('s3')
A Sample Tutorial
(../../guide/sqs.html) s3.meta.client.download_file('mybucket', 'hello.txt', '/tmp/hello.txt'

Code Examples
(../../guide/examples.html)
Similar behavior as S3Transfer's download_file() method, except that
User Guides parameters are capitalized. Detailed examples can be found at S3Transfer's
(../../guide/index.html) Usage.

Available Services (index.html) Parameters


Bucket (str) -- The name of the bucket to download from.
ACM (acm.html)
Key (str) -- The name of the key to download from.
ACMPCA (acm-pca.html) Filename (str) -- The path to the file to download to.
ExtraArgs (dict) -- Extra arguments that may be passed to the client
AlexaForBusiness
operation.
(alexaforbusiness.html)
Callback (function) -- A method which takes a number of bytes
Amplify (amplify.html) transferred to be periodically called during the download.
APIGateway Config (boto3.s3.transfer.TransferConfig
(apigateway.html) (../customizations/s3.html#boto3.s3.transfer.TransferConfig)) -- The
transfer configuration to be used when performing the transfer.
ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 download_fileobj (Bucket, Key, Fileobj, ExtraArgs=None, Callback=None,

documentation ( Config=None)
Download an object from S3 to a file-like object.
../../index.html)
The file-like object must be in binary mode.
TABLE OF CONTENTS This is a managed transfer which will perform a multipart download in multiple
threads if necessary.
Quickstart
Usage:
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html) import boto3
s3 = boto3.client('s3')
Code Examples
(../../guide/examples.html)
with open('filename', 'wb') as data:
User Guides s3.download_fileobj('mybucket', 'mykey', data)
(../../guide/index.html)

Available Services (index.html) Parameters


Fileobj (a file-like object) -- A file-like object to download into. At a
ACM (acm.html)
minimum, it must implement the write method and must accept bytes.
ACMPCA (acm-pca.html) Bucket (str) -- The name of the bucket to download from.
Key (str) -- The name of the key to download from.
AlexaForBusiness
ExtraArgs (dict) -- Extra arguments that may be passed to the client
(alexaforbusiness.html)
operation.
Amplify (amplify.html) Callback (function) -- A method which takes a number of bytes
transferred to be periodically called during the download.
APIGateway
Config (boto3.s3.transfer.TransferConfig
(apigateway.html)
(../customizations/s3.html#boto3.s3.transfer.TransferConfig)) -- The
ApiGatewayManagement transfer configuration to be used when performing the download.
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 generate_presigned_post (Bucket, Key, Fields=None, Conditions=None,

documentation ( ExpiresIn=3600)

../../index.html) Builds the url and the form fields used for a presigned s3 post

Parameters
TABLE OF CONTENTS Bucket (string) -- The name of the bucket to presign the post to. Note that
bucket related conditions should not be included in the conditions
Quickstart parameter.
(../../guide/quickstart.html) Key (string) -- Key name, optionally add ${filename} to the end to attach
the submitted filename. Note that key related conditions and fields are
A Sample Tutorial
filled out for you and should not be included in the Fields or Conditions
(../../guide/sqs.html)
parameter.
Code Examples Fields (dict) --
(../../guide/examples.html) A dictionary of prefilled form fields to build on top of. Elements that may
be included are acl, Cache-Control, Content-Type, Content-Disposition,
User Guides
Content-Encoding, Expires, success_action_redirect, redirect,
(../../guide/index.html)
success_action_status, and x-amz-meta-.
Available Services (index.html) Note that if a particular element is included in the fields dictionary it will
ACM (acm.html) not be automatically added to the conditions list. You must specify a
condition for the element as well.
ACMPCA (acm-pca.html)
Conditions (list) --
AlexaForBusiness A list of conditions to include in the policy. Each element can be either a
(alexaforbusiness.html) list or a structure. For example:
Amplify (amplify.html) [
APIGateway {"acl": "public-read"}, ["content-length-range", 2, 5], ["starts-with",
(apigateway.html) "$success_action_redirect", ""]
ApiGatewayManagement
]
Api
(apigatewaymanagement
api.html)
Conditions that are included may pertain to acl, content-length-range,
Boto 3 Docs 1.9.249
Cache-Control, Content-Type, Content-Disposition, Content-Encoding,
documentation ( Expires, success_action_redirect, redirect, success_action_status, and/or
../../index.html) x-amz-meta-.

Note that if you include a condition, you must specify the a valid value in
TABLE OF CONTENTS the fields dictionary as well. A value will not be added automatically to the
fields dictionary based on the conditions.
Quickstart
ExpiresIn (int) -- The number of seconds the presigned post is valid for.
(../../guide/quickstart.html)
Return type
A Sample Tutorial
(../../guide/sqs.html) dict

Code Examples Returns


(../../guide/examples.html) A dictionary with two elements: url and fields . Url is the url to post to.
Fields is a dictionary filled with the form fields and respective values to use
User Guides
when submitting the post. For example:
(../../guide/index.html)
{'url': 'https://mybucket.s3.amazonaws.com
Available Services (index.html)
(https://mybucket.s3.amazonaws.com)
ACM (acm.html) 'fields': {'acl': 'public-read',
ACMPCA (acm-pca.html) 'key': 'mykey', 'signature': 'mysignature', 'policy': 'mybase64
encoded policy'}
AlexaForBusiness
(alexaforbusiness.html) }
Amplify (amplify.html)

APIGateway
generate_presigned_url (ClientMethod, Params=None, ExpiresIn=3600,
(apigateway.html)
HttpMethod=None)
ApiGatewayManagement Generate a presigned url given a client, its method, and arguments
Api
(apigatewaymanagement Parameters
api.html) ClientMethod (string) -- The client method to presign for
Params (dict) -- The parameters normally passed to ClientMethod .
Boto 3 Docs 1.9.249
ExpiresIn (int) -- The number of seconds the presigned url is valid for. By
documentation ( default it expires in an hour (3600 seconds)
../../index.html) HttpMethod (string) -- The http method to use on the generated url. By
default, the http method is whatever is used in the method's model.
TABLE OF CONTENTS
Returns
The presigned url
Quickstart
(../../guide/quickstart.html)

A Sample Tutorial get_bucket_accelerate_configuration (**kwargs)


(../../guide/sqs.html) Returns the accelerate configuration of a bucket.
Code Examples See also: AWS API Documentation
(../../guide/examples.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
01/GetBucketAccelerateConfiguration)
User Guides
(../../guide/index.html) Request Syntax

Available Services (index.html)


response = client.get_bucket_accelerate_configuration(
ACM (acm.html)
Bucket='string'
ACMPCA (acm-pca.html) )

AlexaForBusiness
(alexaforbusiness.html) Parameters
Amplify (amplify.html) Bucket (string) --
[REQUIRED]
APIGateway
(apigateway.html) Name of the bucket for which the accelerate configuration is retrieved.

ApiGatewayManagement Return type


Api dict
(apigatewaymanagement
Returns
api.html)
Response Syntax
Boto 3 Docs 1.9.249
documentation (
{
../../index.html)
'Status': 'Enabled'|'Suspended'
}
TABLE OF CONTENTS

Quickstart Response Structure


(../../guide/quickstart.html)
(dict) --
A Sample Tutorial Status (string) --
(../../guide/sqs.html) The accelerate configuration of the bucket.

Code Examples
(../../guide/examples.html)
get_bucket_acl (**kwargs)
User Guides Gets the access control policy for the bucket.
(../../guide/index.html)
See also: AWS API Documentation
Available Services (index.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAcl)

ACM (acm.html) Request Syntax

ACMPCA (acm-pca.html)
response = client.get_bucket_acl(
AlexaForBusiness
Bucket='string'
(alexaforbusiness.html)
)
Amplify (amplify.html)

APIGateway Parameters
(apigateway.html)
Bucket (string) -- [REQUIRED]
ApiGatewayManagement
Return type
Api
dict
(apigatewaymanagement
api.html) Returns
Response Syntax
Boto 3 Docs 1.9.249
documentation (
{
../../index.html)
'Owner': {
'DisplayName': 'string',
TABLE OF CONTENTS
'ID': 'string'
},
Quickstart
'Grants': [
(../../guide/quickstart.html)
{
A Sample Tutorial 'Grantee': {
(../../guide/sqs.html) 'DisplayName': 'string',

Code Examples 'EmailAddress': 'string',


(../../guide/examples.html) 'ID': 'string',
'Type': 'CanonicalUser'|'AmazonCustomerByEmail'|'G
User Guides 'URI': 'string'
(../../guide/index.html) },
'Permission': 'FULL_CONTROL'|'WRITE'|'WRITE_ACP'|'READ
Available Services (index.html)
},
ACM (acm.html) ]
ACMPCA (acm-pca.html) }

AlexaForBusiness
(alexaforbusiness.html)
Response Structure
Amplify (amplify.html)
(dict) --
APIGateway
Owner (dict) --
(apigateway.html)
DisplayName (string) --
ApiGatewayManagement ID (string) --
Api Grants (list) --
(apigatewaymanagement A list of grants.
api.html)
(dict) --
Grantee (dict) --
Boto 3 Docs 1.9.249
DisplayName (string) --
documentation ( Screen name of the grantee.
../../index.html)
EmailAddress (string) --
Email address of the grantee.
TABLE OF CONTENTS
ID (string) --
The canonical user ID of the grantee.
Quickstart
(../../guide/quickstart.html) Type (string) --
Type of grantee
A Sample Tutorial
(../../guide/sqs.html) URI (string) --
URI of the grantee group.
Code Examples
(../../guide/examples.html) Permission (string) --
Specifies the permission given to the grantee.
User Guides
(../../guide/index.html)

Available Services (index.html) get_bucket_analytics_configuration (**kwargs)


Gets an analytics configuration for the bucket (specified by the analytics
ACM (acm.html)
configuration ID).
ACMPCA (acm-pca.html)
See also: AWS API Documentation
AlexaForBusiness (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
(alexaforbusiness.html) 01/GetBucketAnalyticsConfiguration)
Amplify (amplify.html) Request Syntax
APIGateway
(apigateway.html) response = client.get_bucket_analytics_configuration(
ApiGatewayManagement Bucket='string',
Api Id='string'
(apigatewaymanagement )
api.html)
Parameters
Boto 3 Docs 1.9.249
Bucket (string) --
documentation ( [REQUIRED]
../../index.html)
The name of the bucket from which an analytics configuration is
retrieved.
TABLE OF CONTENTS
Id (string) --
Quickstart [REQUIRED]
(../../guide/quickstart.html) The ID that identifies the analytics configuration.
A Sample Tutorial Return type
(../../guide/sqs.html) dict
Code Examples Returns
(../../guide/examples.html)
Response Syntax
User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'AnalyticsConfiguration': {
../../index.html) 'Id': 'string',
'Filter': {
'Prefix': 'string',
TABLE OF CONTENTS
'Tag': {
'Key': 'string',
Quickstart
'Value': 'string'
(../../guide/quickstart.html)
},
A Sample Tutorial 'And': {
(../../guide/sqs.html) 'Prefix': 'string',
Code Examples 'Tags': [
(../../guide/examples.html) {
'Key': 'string',
User Guides
'Value': 'string'
(../../guide/index.html)
},
Available Services (index.html) ]
}
ACM (acm.html)
},
ACMPCA (acm-pca.html) 'StorageClassAnalysis': {
'DataExport': {
AlexaForBusiness
(alexaforbusiness.html) 'OutputSchemaVersion': 'V_1',
'Destination': {
Amplify (amplify.html) 'S3BucketDestination': {
APIGateway 'Format': 'CSV',
(apigateway.html) 'BucketAccountId': 'string',
'Bucket': 'string',
ApiGatewayManagement
'Prefix': 'string'
Api
}
(apigatewaymanagement
api.html) }
}
Boto 3 Docs 1.9.249
}
documentation ( }
../../index.html) }

TABLE OF CONTENTS
Response Structure

Quickstart (dict) --
(../../guide/quickstart.html) AnalyticsConfiguration (dict) --
A Sample Tutorial The configuration and any analyses for the analytics filter.
(../../guide/sqs.html)
Id (string) --
Code Examples
(../../guide/examples.html) The ID that identifies the analytics configuration.
Filter (dict) --
User Guides
(../../guide/index.html) The filter used to describe a set of objects for analyses. A filter must
have exactly one prefix, one tag, or one conjunction
Available Services (index.html)
(AnalyticsAndOperator). If no filter is provided, all objects will be
ACM (acm.html) considered in any analysis.

ACMPCA (acm-pca.html) Prefix (string) --

AlexaForBusiness The prefix to use when evaluating an analytics filter.


(alexaforbusiness.html)
Tag (dict) --
Amplify (amplify.html)
The tag to use when evaluating an analytics filter.
APIGateway
Key (string) --
(apigateway.html)
Name of the tag.
ApiGatewayManagement
Api Value (string) --
(apigatewaymanagement Value of the tag.
api.html)
And (dict) --
Boto 3 Docs 1.9.249
documentation ( A conjunction (logical AND) of predicates, which is used in
evaluating an analytics filter. The operator must have at least two
../../index.html)
predicates.

TABLE OF CONTENTS Prefix (string) --

The prefix to use when evaluating an AND predicate: The prefix


Quickstart that an object must have to be included in the metrics results.
(../../guide/quickstart.html)
Tags (list) --
A Sample Tutorial
The list of tags to use when evaluating an AND predicate.
(../../guide/sqs.html)
(dict) --
Code Examples
(../../guide/examples.html) Key (string) --

User Guides Name of the tag.


(../../guide/index.html) Value (string) --
Available Services (index.html) Value of the tag.
ACM (acm.html) StorageClassAnalysis (dict) --
ACMPCA (acm-pca.html) Contains data related to access patterns to be collected and made
available to analyze the tradeoffs between different storage classes.
AlexaForBusiness
(alexaforbusiness.html) DataExport (dict) --
Amplify (amplify.html) Specifies how data related to the storage class analysis for an
Amazon S3 bucket should be exported.
APIGateway
(apigateway.html) OutputSchemaVersion (string) --
ApiGatewayManagement The version of the output schema to use when exporting data.
Api Must be V_1 .
(apigatewaymanagement
Destination (dict) --
api.html)
The place to store the data for an analysis.
Boto 3 Docs 1.9.249
documentation ( S3BucketDestination (dict) --

../../index.html) A destination signifying output to an S3 bucket.


Format (string) --
TABLE OF CONTENTS
Specifies the file format used when exporting data to
Amazon S3.
Quickstart
(../../guide/quickstart.html) BucketAccountId (string) --

A Sample Tutorial The account ID that owns the destination bucket. If no


(../../guide/sqs.html) account ID is provided, the owner will not be validated prior
to exporting data.
Code Examples
(../../guide/examples.html) Bucket (string) --

User Guides The Amazon Resource Name (ARN) of the bucket to which
(../../guide/index.html) data is exported.

Prefix (string) --
Available Services (index.html)
The prefix to use when exporting data. The prefix is
ACM (acm.html)
prepended to all results.
ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html) get_bucket_cors (**kwargs)
Returns the CORS configuration for the bucket.
Amplify (amplify.html)
See also: AWS API Documentation
APIGateway
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketCors)
(apigateway.html)
Request Syntax
ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.get_bucket_cors(
documentation ( Bucket='string'
../../index.html) )

TABLE OF CONTENTS Parameters


Bucket (string) -- [REQUIRED]
Quickstart
Return type
(../../guide/quickstart.html)
dict
A Sample Tutorial
(../../guide/sqs.html) Returns
Response Syntax
Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'CORSRules': [
../../index.html) {
'AllowedHeaders': [
'string',
TABLE OF CONTENTS
],
'AllowedMethods': [
Quickstart
'string',
(../../guide/quickstart.html)
],
A Sample Tutorial 'AllowedOrigins': [
(../../guide/sqs.html) 'string',
Code Examples ],
(../../guide/examples.html) 'ExposeHeaders': [
'string',
User Guides
],
(../../guide/index.html)
'MaxAgeSeconds': 123
Available Services (index.html) },
]
ACM (acm.html)
}
ACMPCA (acm-pca.html)

AlexaForBusiness Response Structure


(alexaforbusiness.html)
(dict) --
Amplify (amplify.html) CORSRules (list) --
APIGateway (dict) --
(apigateway.html) Specifies a cross-origin access rule for an Amazon S3 bucket.

ApiGatewayManagement AllowedHeaders (list) --


Api Headers that are specified in the Access-Control-Request-Headers
(apigatewaymanagement header. These headers are allowed in a preflight OPTIONS request.
api.html) In response to any preflight OPTIONS request, Amazon S3 returns
any requested headers that are allowed.
Boto 3 Docs 1.9.249
documentation ( (string) --
AllowedMethods (list) --
../../index.html)
An HTTP method that you allow the origin to execute. Valid values
are GET , PUT , HEAD , POST , and DELETE .
TABLE OF CONTENTS
(string) --
Quickstart
AllowedOrigins (list) --
(../../guide/quickstart.html)
One or more origins you want customers to be able to access the
bucket from.
A Sample Tutorial
(../../guide/sqs.html)
(string) --
ExposeHeaders (list) --
Code Examples One or more headers in the response that you want customers to
(../../guide/examples.html) be able to access from their applications (for example, from a
JavaScript XMLHttpRequest object).
User Guides
(../../guide/index.html) (string) --
MaxAgeSeconds (integer) --
Available Services (index.html)
The time in seconds that your browser is to cache the preflight
ACM (acm.html) response for the specified resource.

ACMPCA (acm-pca.html)

AlexaForBusiness get_bucket_encryption (**kwargs)


(alexaforbusiness.html) Returns the server-side encryption configuration of a bucket.
Amplify (amplify.html) See also: AWS API Documentation
APIGateway (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
(apigateway.html) 01/GetBucketEncryption)

ApiGatewayManagement Request Syntax


Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.get_bucket_encryption(
documentation ( Bucket='string'
../../index.html) )

TABLE OF CONTENTS Parameters


Bucket (string) --
Quickstart [REQUIRED]
(../../guide/quickstart.html)
The name of the bucket from which the server-side encryption
A Sample Tutorial configuration is retrieved.
(../../guide/sqs.html)
Return type
Code Examples dict
(../../guide/examples.html)
Returns
User Guides Response Syntax
(../../guide/index.html)

Available Services (index.html) {

ACM (acm.html) 'ServerSideEncryptionConfiguration': {


'Rules': [
ACMPCA (acm-pca.html) {
AlexaForBusiness 'ApplyServerSideEncryptionByDefault': {
(alexaforbusiness.html) 'SSEAlgorithm': 'AES256'|'aws:kms',
'KMSMasterKeyID': 'string'
Amplify (amplify.html)
}
APIGateway },
(apigateway.html) ]
ApiGatewayManagement }
Api }
(apigatewaymanagement
api.html)
Response Structure
Boto 3 Docs 1.9.249
documentation ( (dict) --
ServerSideEncryptionConfiguration (dict) --
../../index.html)
Rules (list) --
Container for information about a particular server-side encryption
TABLE OF CONTENTS configuration rule.

(dict) --
Quickstart
Specifies the default server-side encryption configuration.
(../../guide/quickstart.html)
ApplyServerSideEncryptionByDefault (dict) --
A Sample Tutorial
Specifies the default server-side encryption to apply to new
(../../guide/sqs.html)
objects in the bucket. If a PUT Object request doesn't specify any
Code Examples server-side encryption, this default encryption will be applied.
(../../guide/examples.html)
SSEAlgorithm (string) --
User Guides Server-side encryption algorithm to use for the default
(../../guide/index.html) encryption.

Available Services (index.html) KMSMasterKeyID (string) --


KMS master key ID to use for the default encryption. This
ACM (acm.html) parameter is allowed if and only if SSEAlgorithm is set to
ACMPCA (acm-pca.html) aws:kms .

AlexaForBusiness
(alexaforbusiness.html)
get_bucket_inventory_configuration (**kwargs)
Amplify (amplify.html) Returns an inventory configuration (identified by the inventory ID) from the
APIGateway bucket.
(apigateway.html) See also: AWS API Documentation
ApiGatewayManagement (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
Api 01/GetBucketInventoryConfiguration)
(apigatewaymanagement Request Syntax
api.html)
Boto 3 Docs 1.9.249 response = client.get_bucket_inventory_configuration(
documentation ( Bucket='string',
../../index.html) Id='string'
)

TABLE OF CONTENTS
Parameters
Quickstart Bucket (string) --
(../../guide/quickstart.html) [REQUIRED]
A Sample Tutorial The name of the bucket containing the inventory configuration to
(../../guide/sqs.html) retrieve.
Code Examples Id (string) --
(../../guide/examples.html) [REQUIRED]

User Guides The ID used to identify the inventory configuration.


(../../guide/index.html)
Return type
Available Services (index.html) dict

ACM (acm.html) Returns

ACMPCA (acm-pca.html) Response Syntax

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'InventoryConfiguration': {
../../index.html) 'Destination': {
'S3BucketDestination': {
'AccountId': 'string',
TABLE OF CONTENTS
'Bucket': 'string',
'Format': 'CSV'|'ORC'|'Parquet',
Quickstart
'Prefix': 'string',
(../../guide/quickstart.html)
'Encryption': {
A Sample Tutorial 'SSES3': {},
(../../guide/sqs.html) 'SSEKMS': {
Code Examples 'KeyId': 'string'
(../../guide/examples.html) }
}
User Guides
}
(../../guide/index.html)
},
Available Services (index.html) 'IsEnabled': True|False,
'Filter': {
ACM (acm.html)
'Prefix': 'string'
ACMPCA (acm-pca.html) },
'Id': 'string',
AlexaForBusiness
(alexaforbusiness.html) 'IncludedObjectVersions': 'All'|'Current',
'OptionalFields': [
Amplify (amplify.html) 'Size'|'LastModifiedDate'|'StorageClass'|'ETag'|'IsMul
APIGateway ],
(apigateway.html) 'Schedule': {
'Frequency': 'Daily'|'Weekly'
ApiGatewayManagement
}
Api
}
(apigatewaymanagement
api.html) }
Boto 3 Docs 1.9.249
documentation ( Response Structure
../../index.html) (dict) --

InventoryConfiguration (dict) --
TABLE OF CONTENTS
Specifies the inventory configuration.
Quickstart Destination (dict) --
(../../guide/quickstart.html)
Contains information about where to publish the inventory results.
A Sample Tutorial
(../../guide/sqs.html) S3BucketDestination (dict) --

Code Examples Contains the bucket name, file format, bucket owner (optional),
(../../guide/examples.html) and prefix (optional) where inventory results are published.

AccountId (string) --
User Guides
(../../guide/index.html) The ID of the account that owns the destination bucket.

Available Services (index.html) Bucket (string) --

ACM (acm.html) The Amazon resource name (ARN) of the bucket where inventory
results will be published.
ACMPCA (acm-pca.html)
Format (string) --
AlexaForBusiness
(alexaforbusiness.html) Specifies the output format of the inventory results.

Amplify (amplify.html) Prefix (string) --

APIGateway The prefix that is prepended to all inventory results.


(apigateway.html) Encryption (dict) --
ApiGatewayManagement Contains the type of server-side encryption used to encrypt the
Api inventory results.
(apigatewaymanagement
api.html) SSES3 (dict) --
Specifies the use of SSE-S3 to encrypt delivered Inventory
Boto 3 Docs 1.9.249
reports.
documentation (
SSEKMS (dict) --
../../index.html)
Specifies the use of SSE-KMS to encrypt delivered Inventory
TABLE OF CONTENTS reports.

KeyId (string) --
Quickstart
Specifies the ID of the AWS Key Management Service (KMS)
(../../guide/quickstart.html)
master encryption key to use for encrypting Inventory
A Sample Tutorial reports.
(../../guide/sqs.html)
IsEnabled (boolean) --
Code Examples
Specifies whether the inventory is enabled or disabled. If set to True ,
(../../guide/examples.html)
an inventory list is generated. If set to False , no inventory list is
User Guides generated.
(../../guide/index.html)
Filter (dict) --
Available Services (index.html) Specifies an inventory filter. The inventory only includes objects that
ACM (acm.html) meet the filter's criteria.

ACMPCA (acm-pca.html) Prefix (string) --

AlexaForBusiness The prefix that an object must have to be included in the inventory
(alexaforbusiness.html) results.

Amplify (amplify.html) Id (string) --

APIGateway The ID used to identify the inventory configuration.


(apigateway.html) IncludedObjectVersions (string) --
ApiGatewayManagement Object versions to include in the inventory list. If set to All , the list
Api includes all the object versions, which adds the version-related fields
(apigatewaymanagement VersionId , IsLatest , and DeleteMarker to the list. If set to Current
api.html) , the list does not contain these version-related fields.
OptionalFields (list) --
Boto 3 Docs 1.9.249
documentation ( Contains the optional fields that are included in the inventory results.

../../index.html) (string) --
Schedule (dict) --
TABLE OF CONTENTS Specifies the schedule for generating inventory results.

Frequency (string) --
Quickstart
(../../guide/quickstart.html) Specifies how frequently inventory results are produced.

A Sample Tutorial
(../../guide/sqs.html)
get_bucket_lifecycle (**kwargs)
Code Examples No longer used, see the GetBucketLifecycleConfiguration operation.
(../../guide/examples.html)

User Guides
Danger
(../../guide/index.html)
This operation is deprecated and may not function as expected. This
Available Services (index.html) operation should not be used going forward and is only kept for the
purpose of backwards compatiblity.
ACM (acm.html)

ACMPCA (acm-pca.html)
See also: AWS API Documentation
AlexaForBusiness
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycle)
(alexaforbusiness.html)
Request Syntax
Amplify (amplify.html)

APIGateway
response = client.get_bucket_lifecycle(
(apigateway.html)
Bucket='string'
ApiGatewayManagement )
Api
(apigatewaymanagement
api.html) Parameters
Bucket (string) -- [REQUIRED]
Boto 3 Docs 1.9.249
documentation ( Return type
dict
../../index.html)
Returns
TABLE OF CONTENTS Response Syntax

Quickstart
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'Rules': [
../../index.html) {
'Expiration': {
'Date': datetime(2015, 1, 1),
TABLE OF CONTENTS
'Days': 123,
'ExpiredObjectDeleteMarker': True|False
Quickstart
},
(../../guide/quickstart.html)
'ID': 'string',
A Sample Tutorial 'Prefix': 'string',
(../../guide/sqs.html) 'Status': 'Enabled'|'Disabled',
Code Examples 'Transition': {
(../../guide/examples.html) 'Date': datetime(2015, 1, 1),
'Days': 123,
User Guides
'StorageClass': 'GLACIER'|'STANDARD_IA'|'ONEZONE_I
(../../guide/index.html)
},
Available Services (index.html) 'NoncurrentVersionTransition': {
'NoncurrentDays': 123,
ACM (acm.html)
'StorageClass': 'GLACIER'|'STANDARD_IA'|'ONEZONE_I
ACMPCA (acm-pca.html) },
'NoncurrentVersionExpiration': {
AlexaForBusiness
(alexaforbusiness.html) 'NoncurrentDays': 123
},
Amplify (amplify.html) 'AbortIncompleteMultipartUpload': {
APIGateway 'DaysAfterInitiation': 123
(apigateway.html) }
},
ApiGatewayManagement
]
Api
}
(apigatewaymanagement
api.html)
Response Structure
Boto 3 Docs 1.9.249
documentation ( (dict) --
Rules (list) --
../../index.html)
(dict) --
Specifies lifecycle rules for an Amazon S3 bucket. For more
TABLE OF CONTENTS information, see PUT Bucket lifecycle
(https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlifecycl
Quickstart in the Amazon Simple Storage Service API Reference .
(../../guide/quickstart.html)
Expiration (dict) --
A Sample Tutorial Date (datetime) --
(../../guide/sqs.html) Indicates at what date the object is to be moved or deleted.
Code Examples Should be in GMT ISO 8601 Format.
(../../guide/examples.html) Days (integer) --
Indicates the lifetime, in days, of the objects that are subject to
User Guides
the rule. The value must be a non-zero positive integer.
(../../guide/index.html)
ExpiredObjectDeleteMarker (boolean) --
Available Services (index.html) Indicates whether Amazon S3 will remove a delete marker with
ACM (acm.html) 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
ACMPCA (acm-pca.html)
specified with Days or Date in a Lifecycle Expiration Policy.
AlexaForBusiness
ID (string) --
(alexaforbusiness.html)
Unique identifier for the rule. The value can't be longer than 255
Amplify (amplify.html) characters.

APIGateway Prefix (string) --


(apigateway.html) Object key prefix that identifies one or more objects to which this
rule applies.
ApiGatewayManagement
Api Status (string) --
(apigatewaymanagement If Enabled , the rule is currently being applied. If Disabled , the rule
api.html) is not currently being applied.
Transition (dict) --
Boto 3 Docs 1.9.249
Date (datetime) --
documentation ( Indicates when objects are transitioned to the specified storage
../../index.html) class. The date value must be in ISO 8601 format. The time is
always midnight UTC.
TABLE OF CONTENTS Days (integer) --
Indicates the number of days after creation when objects are
Quickstart transitioned to the specified storage class. The value must be a
(../../guide/quickstart.html) positive integer.
A Sample Tutorial StorageClass (string) --
(../../guide/sqs.html) The storage class to which you want the object to transition.
Code Examples NoncurrentVersionTransition (dict) --
(../../guide/examples.html) NoncurrentDays (integer) --
Specifies the number of days an object is noncurrent before
User Guides
Amazon S3 can perform the associated action. For information
(../../guide/index.html)
about the noncurrent days calculations, see How Amazon S3
Available Services (index.html) Calculates When an Object Became Noncurrent
(https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-
ACM (acm.html)
control.html) in the Amazon Simple Storage Service Developer
ACMPCA (acm-pca.html) Guide .

AlexaForBusiness StorageClass (string) --


(alexaforbusiness.html) The class of storage used to store the object.

Amplify (amplify.html) NoncurrentVersionExpiration (dict) --


NoncurrentDays (integer) --
APIGateway
Specifies the number of days an object is noncurrent before
(apigateway.html)
Amazon S3 can perform the associated action. For information
ApiGatewayManagement about the noncurrent days calculations, see How Amazon S3
Api Calculates When an Object Became Noncurrent
(apigatewaymanagement
api.html)
(https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-
Boto 3 Docs 1.9.249
lifecycle-rules.html#non-current-days-calculations) in the
documentation ( Amazon Simple Storage Service Developer Guide.
../../index.html)
AbortIncompleteMultipartUpload (dict) --
DaysAfterInitiation (integer) --
TABLE OF CONTENTS Specifies the number of days after which Amazon S3 aborts an
incomplete multipart upload.
Quickstart
(../../guide/quickstart.html)

A Sample Tutorial get_bucket_lifecycle_configuration (**kwargs)


(../../guide/sqs.html) Returns the lifecycle configuration information set on the bucket.

Code Examples See also: AWS API Documentation


(../../guide/examples.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
01/GetBucketLifecycleConfiguration)
User Guides
(../../guide/index.html) Request Syntax

Available Services (index.html)


response = client.get_bucket_lifecycle_configuration(
ACM (acm.html) Bucket='string'
ACMPCA (acm-pca.html) )

AlexaForBusiness
(alexaforbusiness.html) Parameters
Bucket (string) -- [REQUIRED]
Amplify (amplify.html)
Return type
APIGateway
(apigateway.html) dict

ApiGatewayManagement Returns
Api Response Syntax
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'Rules': [
../../index.html) {
'Expiration': {
'Date': datetime(2015, 1, 1),
TABLE OF CONTENTS
'Days': 123,
'ExpiredObjectDeleteMarker': True|False
Quickstart
},
(../../guide/quickstart.html)
'ID': 'string',
A Sample Tutorial 'Prefix': 'string',
(../../guide/sqs.html) 'Filter': {
Code Examples 'Prefix': 'string',
(../../guide/examples.html) 'Tag': {
'Key': 'string',
User Guides
'Value': 'string'
(../../guide/index.html)
},
Available Services (index.html) 'And': {
'Prefix': 'string',
ACM (acm.html)
'Tags': [
ACMPCA (acm-pca.html) {
'Key': 'string',
AlexaForBusiness
(alexaforbusiness.html) 'Value': 'string'
},
Amplify (amplify.html) ]
APIGateway }
(apigateway.html) },
'Status': 'Enabled'|'Disabled',
ApiGatewayManagement
'Transitions': [
Api
{
(apigatewaymanagement
api.html) 'Date': datetime(2015, 1, 1),
'Days': 123,
Boto 3 Docs 1.9.249
'StorageClass': 'GLACIER'|'STANDARD_IA'|'ONEZO
documentation ( },
../../index.html) ],
'NoncurrentVersionTransitions': [
TABLE OF CONTENTS {
'NoncurrentDays': 123,
Quickstart 'StorageClass': 'GLACIER'|'STANDARD_IA'|'ONEZO
(../../guide/quickstart.html) },
],
A Sample Tutorial
'NoncurrentVersionExpiration': {
(../../guide/sqs.html)
'NoncurrentDays': 123
Code Examples },
(../../guide/examples.html) 'AbortIncompleteMultipartUpload': {
User Guides 'DaysAfterInitiation': 123
(../../guide/index.html) }
},
Available Services (index.html) ]
ACM (acm.html) }

ACMPCA (acm-pca.html)

AlexaForBusiness Response Structure


(alexaforbusiness.html)
(dict) --
Amplify (amplify.html) Rules (list) --
APIGateway (dict) --
(apigateway.html) Expiration (dict) --
Date (datetime) --
ApiGatewayManagement
Indicates at what date the object is to be moved or deleted.
Api
Should be in GMT ISO 8601 Format.
(apigatewaymanagement
api.html) Days (integer) --
Indicates the lifetime, in days, of the objects that are subject to
Boto 3 Docs 1.9.249
the rule. The value must be a non-zero positive integer.
documentation (
ExpiredObjectDeleteMarker (boolean) --
../../index.html)
Indicates whether Amazon S3 will remove a delete marker with
no noncurrent versions. If set to true, the delete marker will be
TABLE OF CONTENTS expired; if set to false the policy takes no action. This cannot be
specified with Days or Date in a Lifecycle Expiration Policy.
Quickstart
ID (string) --
(../../guide/quickstart.html)
Unique identifier for the rule. The value cannot be longer than 255
A Sample Tutorial characters.
(../../guide/sqs.html)
Prefix (string) --
Code Examples Prefix identifying one or more objects to which the rule applies.
(../../guide/examples.html) This is No longer used; use Filter instead.

User Guides Filter (dict) --


(../../guide/index.html) Prefix (string) --
Prefix identifying one or more objects to which the rule applies.
Available Services (index.html)
Tag (dict) --
ACM (acm.html) This tag must exist in the object's tag set in order for the rule to
ACMPCA (acm-pca.html) apply.

AlexaForBusiness Key (string) --


(alexaforbusiness.html) Name of the tag.

Amplify (amplify.html) Value (string) --


Value of the tag.
APIGateway
(apigateway.html) And (dict) --
Prefix (string) --
ApiGatewayManagement
Tags (list) --
Api
All of these tags must exist in the object's tag set in order for
(apigatewaymanagement
the rule to apply.
api.html)
(dict) --
Boto 3 Docs 1.9.249
Key (string) --
documentation ( Name of the tag.
../../index.html)
Value (string) --
Value of the tag.
TABLE OF CONTENTS
Status (string) --
If 'Enabled', the rule is currently being applied. If 'Disabled', the rule
Quickstart
is not currently being applied.
(../../guide/quickstart.html)
Transitions (list) --
A Sample Tutorial
(dict) --
(../../guide/sqs.html)
Specifies when an object transitions to a specified storage class.
Code Examples
Date (datetime) --
(../../guide/examples.html)
Indicates when objects are transitioned to the specified
User Guides storage class. The date value must be in ISO 8601 format. The
(../../guide/index.html) time is always midnight UTC.

Available Services (index.html) Days (integer) --


Indicates the number of days after creation when objects are
ACM (acm.html) transitioned to the specified storage class. The value must be a
ACMPCA (acm-pca.html) positive integer.

AlexaForBusiness StorageClass (string) --


(alexaforbusiness.html) The storage class to which you want the object to transition.

Amplify (amplify.html) NoncurrentVersionTransitions (list) --


(dict) --
APIGateway
Container for the transition rule that describes when noncurrent
(apigateway.html)
objects transition to the STANDARD_IA , ONEZONE_IA ,
ApiGatewayManagement INTELLIGENT_TIERING , GLACIER , or DEEP_ARCHIVE storage class.
Api If your bucket is versioning-enabled (or versioning is suspended),
(apigatewaymanagement you can set this action to request that Amazon S3 transition
api.html)
noncurrent object versions to the STANDARD_IA , ONEZONE_IA ,
Boto 3 Docs 1.9.249
INTELLIGENT_TIERING , GLACIER , or DEEP_ARCHIVE storage class
documentation ( at a specific period in the object's lifetime.
../../index.html)
NoncurrentDays (integer) --
Specifies the number of days an object is noncurrent before
TABLE OF CONTENTS
Amazon S3 can perform the associated action. For information
about the noncurrent days calculations, see How Amazon S3
Quickstart Calculates When an Object Became Noncurrent
(../../guide/quickstart.html) (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-
A Sample Tutorial access-control.html) in the Amazon Simple Storage Service
(../../guide/sqs.html) Developer Guide .

Code Examples StorageClass (string) --


(../../guide/examples.html) The class of storage used to store the object.

NoncurrentVersionExpiration (dict) --
User Guides
NoncurrentDays (integer) --
(../../guide/index.html)
Specifies the number of days an object is noncurrent before
Available Services (index.html) Amazon S3 can perform the associated action. For information
about the noncurrent days calculations, see How Amazon S3
ACM (acm.html)
Calculates When an Object Became Noncurrent
ACMPCA (acm-pca.html) (https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-
lifecycle-rules.html#non-current-days-calculations) in the
AlexaForBusiness
Amazon Simple Storage Service Developer Guide.
(alexaforbusiness.html)
AbortIncompleteMultipartUpload (dict) --
Amplify (amplify.html)
DaysAfterInitiation (integer) --
APIGateway Specifies the number of days after which Amazon S3 aborts an
(apigateway.html) incomplete multipart upload.
ApiGatewayManagement
Api
(apigatewaymanagement get_bucket_location (**kwargs)
api.html) Returns the region the bucket resides in.
See also: AWS API Documentation
Boto 3 Docs 1.9.249
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLocation)
documentation (
Request Syntax
../../index.html)

TABLE OF CONTENTS response = client.get_bucket_location(


Bucket='string'
Quickstart )
(../../guide/quickstart.html)

A Sample Tutorial Parameters


(../../guide/sqs.html) Bucket (string) -- [REQUIRED]
Code Examples Return type
(../../guide/examples.html) dict
User Guides Returns
(../../guide/index.html) Response Syntax

Available Services (index.html)


{
ACM (acm.html)
'LocationConstraint': 'EU'|'eu-west-1'|'us-west-1'|'us-west-2'
ACMPCA (acm-pca.html) }
AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html) Response Structure

APIGateway (dict) --
(apigateway.html) LocationConstraint (string) --

ApiGatewayManagement
Api get_bucket_logging (**kwargs)
(apigatewaymanagement
api.html)
Returns the logging status of a bucket and the permissions users have to view
Boto 3 Docs 1.9.249
and modify that status. To use GET, you must be the bucket owner.
documentation (
See also: AWS API Documentation
../../index.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLogging)

TABLE OF CONTENTS Request Syntax

Quickstart response = client.get_bucket_logging(


(../../guide/quickstart.html) Bucket='string'
A Sample Tutorial )
(../../guide/sqs.html)

Code Examples Parameters


(../../guide/examples.html) Bucket (string) -- [REQUIRED]

User Guides Return type


(../../guide/index.html) dict

Available Services (index.html) Returns


Response Syntax
ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'LoggingEnabled': {
../../index.html) 'TargetBucket': 'string',
'TargetGrants': [
{
TABLE OF CONTENTS
'Grantee': {
'DisplayName': 'string',
Quickstart
'EmailAddress': 'string',
(../../guide/quickstart.html)
'ID': 'string',
A Sample Tutorial 'Type': 'CanonicalUser'|'AmazonCustomerByEmail
(../../guide/sqs.html) 'URI': 'string'
Code Examples },
(../../guide/examples.html) 'Permission': 'FULL_CONTROL'|'READ'|'WRITE'
},
User Guides
],
(../../guide/index.html)
'TargetPrefix': 'string'
Available Services (index.html) }
}
ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness Response Structure


(alexaforbusiness.html)
(dict) --
Amplify (amplify.html) LoggingEnabled (dict) --
TargetBucket (string) --
APIGateway
Specifies the bucket where you want Amazon S3 to store server
(apigateway.html)
access logs. You can have your logs delivered to any bucket that you
ApiGatewayManagement own, including the same bucket that is being logged. You can also
Api configure multiple buckets to deliver their logs to the same target
(apigatewaymanagement
api.html)
bucket. In this case you should choose a different TargetPrefix for
Boto 3 Docs 1.9.249
each source bucket so that the delivered log files can be
documentation ( distinguished by key.
../../index.html)
TargetGrants (list) --
(dict) --
TABLE OF CONTENTS Grantee (dict) --
DisplayName (string) --
Quickstart Screen name of the grantee.
(../../guide/quickstart.html)
EmailAddress (string) --
A Sample Tutorial Email address of the grantee.
(../../guide/sqs.html)
ID (string) --
Code Examples The canonical user ID of the grantee.
(../../guide/examples.html)
Type (string) --
User Guides Type of grantee
(../../guide/index.html)
URI (string) --
Available Services (index.html) URI of the grantee group.

ACM (acm.html) Permission (string) --


Logging permissions assigned to the Grantee for the bucket.
ACMPCA (acm-pca.html)
TargetPrefix (string) --
AlexaForBusiness A prefix for all log object keys. If you store log files from multiple
(alexaforbusiness.html) Amazon S3 buckets in a single bucket, you can use a prefix to
Amplify (amplify.html) distinguish which log files came from which bucket.

APIGateway
(apigateway.html)
get_bucket_metrics_configuration (**kwargs)
ApiGatewayManagement Gets a metrics configuration (specified by the metrics configuration ID) from the
Api bucket.
(apigatewaymanagement
api.html)
See also: AWS API Documentation
Boto 3 Docs 1.9.249
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
documentation ( 01/GetBucketMetricsConfiguration)
../../index.html)
Request Syntax

TABLE OF CONTENTS
response = client.get_bucket_metrics_configuration(

Quickstart Bucket='string',
(../../guide/quickstart.html) Id='string'
)
A Sample Tutorial
(../../guide/sqs.html)
Parameters
Code Examples
Bucket (string) --
(../../guide/examples.html)
[REQUIRED]
User Guides
The name of the bucket containing the metrics configuration to retrieve.
(../../guide/index.html)
Id (string) --
Available Services (index.html) [REQUIRED]
ACM (acm.html) The ID used to identify the metrics configuration.
ACMPCA (acm-pca.html) Return type
AlexaForBusiness dict
(alexaforbusiness.html)
Returns
Amplify (amplify.html)
Response Syntax
APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'MetricsConfiguration': {
../../index.html) 'Id': 'string',
'Filter': {
'Prefix': 'string',
TABLE OF CONTENTS
'Tag': {
'Key': 'string',
Quickstart
'Value': 'string'
(../../guide/quickstart.html)
},
A Sample Tutorial 'And': {
(../../guide/sqs.html) 'Prefix': 'string',
Code Examples 'Tags': [
(../../guide/examples.html) {
'Key': 'string',
User Guides
'Value': 'string'
(../../guide/index.html)
},
Available Services (index.html) ]
}
ACM (acm.html)
}
ACMPCA (acm-pca.html) }
}
AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html) Response Structure

APIGateway (dict) --
(apigateway.html) MetricsConfiguration (dict) --
ApiGatewayManagement Specifies the metrics configuration.
Api
(apigatewaymanagement Id (string) --
api.html) The ID used to identify the metrics configuration.
Filter (dict) --
Boto 3 Docs 1.9.249
documentation ( Specifies a metrics configuration filter. The metrics configuration will
only include objects that meet the filter's criteria. A filter must be a
../../index.html)
prefix, a tag, or a conjunction (MetricsAndOperator).

TABLE OF CONTENTS Prefix (string) --

The prefix used when evaluating a metrics filter.


Quickstart
Tag (dict) --
(../../guide/quickstart.html)
The tag used when evaluating a metrics filter.
A Sample Tutorial
(../../guide/sqs.html) Key (string) --

Code Examples Name of the tag.


(../../guide/examples.html)
Value (string) --
User Guides Value of the tag.
(../../guide/index.html)
And (dict) --
Available Services (index.html)
A conjunction (logical AND) of predicates, which is used in
ACM (acm.html) evaluating a metrics filter. The operator must have at least two
predicates, and an object must match all of the predicates in order
ACMPCA (acm-pca.html)
for the filter to apply.
AlexaForBusiness
Prefix (string) --
(alexaforbusiness.html)
The prefix used when evaluating an AND predicate.
Amplify (amplify.html)
Tags (list) --
APIGateway
(apigateway.html) The list of tags used when evaluating an AND predicate.
ApiGatewayManagement (dict) --
Api
Key (string) --
(apigatewaymanagement
api.html) Name of the tag.
Value (string) --
Boto 3 Docs 1.9.249
documentation ( Value of the tag.

../../index.html)
get_bucket_notification (**kwargs)
TABLE OF CONTENTS
No longer used, see the GetBucketNotificationConfiguration operation.

Quickstart
(../../guide/quickstart.html) Danger
A Sample Tutorial This operation is deprecated and may not function as expected. This
(../../guide/sqs.html) operation should not be used going forward and is only kept for the
purpose of backwards compatiblity.
Code Examples
(../../guide/examples.html)

User Guides
See also: AWS API Documentation
(../../guide/index.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
01/GetBucketNotification)
Available Services (index.html)
Request Syntax
ACM (acm.html)

ACMPCA (acm-pca.html) response = client.get_bucket_notification(


Bucket='string'
AlexaForBusiness
(alexaforbusiness.html) )

Amplify (amplify.html)
Parameters
APIGateway
Bucket (string) --
(apigateway.html)
[REQUIRED]
ApiGatewayManagement
Name of the bucket to get the notification configuration for.
Api
(apigatewaymanagement Return type
api.html) dict
Returns
Boto 3 Docs 1.9.249
Response Syntax
documentation (
../../index.html)

TABLE OF CONTENTS

Quickstart
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'TopicConfiguration': {
../../index.html) 'Id': 'string',
'Events': [
's3:ReducedRedundancyLostObject'|'s3:ObjectCreated:*'|
TABLE OF CONTENTS
],
'Event': 's3:ReducedRedundancyLostObject'|'s3:ObjectCreate
Quickstart
'Topic': 'string'
(../../guide/quickstart.html)
},
A Sample Tutorial 'QueueConfiguration': {
(../../guide/sqs.html) 'Id': 'string',
Code Examples 'Event': 's3:ReducedRedundancyLostObject'|'s3:ObjectCreate
(../../guide/examples.html) 'Events': [
's3:ReducedRedundancyLostObject'|'s3:ObjectCreated:*'|
User Guides
],
(../../guide/index.html)
'Queue': 'string'
Available Services (index.html) },
'CloudFunctionConfiguration': {
ACM (acm.html)
'Id': 'string',
ACMPCA (acm-pca.html) 'Event': 's3:ReducedRedundancyLostObject'|'s3:ObjectCreate
'Events': [
AlexaForBusiness
(alexaforbusiness.html) 's3:ReducedRedundancyLostObject'|'s3:ObjectCreated:*'|
],
Amplify (amplify.html) 'CloudFunction': 'string',
APIGateway 'InvocationRole': 'string'
(apigateway.html) }
}
ApiGatewayManagement
Api
(apigatewaymanagement
api.html) Response Structure
(dict) --
Boto 3 Docs 1.9.249
TopicConfiguration (dict) --
documentation ( Id (string) --
../../index.html) An optional unique identifier for configurations in a notification
configuration. If you don't provide one, Amazon S3 will assign an ID.
TABLE OF CONTENTS Events (list) --
(string) --
Quickstart The bucket event for which to send notifications.
(../../guide/quickstart.html)
Event (string) --
A Sample Tutorial Bucket event for which to send notifications.
(../../guide/sqs.html)
Topic (string) --
Code Examples Amazon SNS topic to which Amazon S3 will publish a message to
(../../guide/examples.html) report the specified events for the bucket.

User Guides QueueConfiguration (dict) --


(../../guide/index.html) Id (string) --
An optional unique identifier for configurations in a notification
Available Services (index.html) configuration. If you don't provide one, Amazon S3 will assign an ID.
ACM (acm.html) Event (string) --
ACMPCA (acm-pca.html) The bucket event for which to send notifications.

AlexaForBusiness Events (list) --


(alexaforbusiness.html) (string) --
The bucket event for which to send notifications.
Amplify (amplify.html)
Queue (string) --
APIGateway
CloudFunctionConfiguration (dict) --
(apigateway.html)
Id (string) --
ApiGatewayManagement An optional unique identifier for configurations in a notification
Api configuration. If you don't provide one, Amazon S3 will assign an ID.
(apigatewaymanagement
Event (string) --
api.html)
The bucket event for which to send notifications.
Boto 3 Docs 1.9.249
documentation ( Events (list) --
(string) --
../../index.html)
The bucket event for which to send notifications.

TABLE OF CONTENTS CloudFunction (string) --


InvocationRole (string) --
Quickstart
(../../guide/quickstart.html)
get_bucket_notification_configuration (**kwargs)
A Sample Tutorial
Returns the notification configuration of a bucket.
(../../guide/sqs.html)
See also: AWS API Documentation
Code Examples
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
(../../guide/examples.html)
01/GetBucketNotificationConfiguration)
User Guides Request Syntax
(../../guide/index.html)

Available Services (index.html) response = client.get_bucket_notification_configuration(


Bucket='string'
ACM (acm.html)
)
ACMPCA (acm-pca.html)

AlexaForBusiness
Parameters
(alexaforbusiness.html)
Bucket (string) --
Amplify (amplify.html) [REQUIRED]
APIGateway Name of the bucket to get the notification configuration for.
(apigateway.html)
Return type
ApiGatewayManagement dict
Api
(apigatewaymanagement Returns
api.html) Response Syntax
Boto 3 Docs 1.9.249 {
documentation ( 'TopicConfigurations': [
../../index.html) {
'Id': 'string',
'TopicArn': 'string',
TABLE OF CONTENTS
'Events': [
's3:ReducedRedundancyLostObject'|'s3:ObjectCreated
Quickstart
],
(../../guide/quickstart.html)
'Filter': {
A Sample Tutorial 'Key': {
(../../guide/sqs.html) 'FilterRules': [
Code Examples {
(../../guide/examples.html) 'Name': 'prefix'|'suffix',
'Value': 'string'
User Guides
},
(../../guide/index.html)
]
Available Services (index.html) }
}
ACM (acm.html)
},
ACMPCA (acm-pca.html) ],
'QueueConfigurations': [
AlexaForBusiness
(alexaforbusiness.html) {
'Id': 'string',
Amplify (amplify.html) 'QueueArn': 'string',
APIGateway 'Events': [
(apigateway.html) 's3:ReducedRedundancyLostObject'|'s3:ObjectCreated
],
ApiGatewayManagement
'Filter': {
Api
'Key': {
(apigatewaymanagement
api.html) 'FilterRules': [
{
Boto 3 Docs 1.9.249
'Name': 'prefix'|'suffix',
documentation ( 'Value': 'string'
../../index.html) },
]
TABLE OF CONTENTS }
}
Quickstart },
(../../guide/quickstart.html) ],
'LambdaFunctionConfigurations': [
A Sample Tutorial
{
(../../guide/sqs.html)
'Id': 'string',
Code Examples 'LambdaFunctionArn': 'string',
(../../guide/examples.html) 'Events': [
User Guides 's3:ReducedRedundancyLostObject'|'s3:ObjectCreated
(../../guide/index.html) ],
'Filter': {
Available Services (index.html) 'Key': {
ACM (acm.html) 'FilterRules': [
{
ACMPCA (acm-pca.html)
'Name': 'prefix'|'suffix',
AlexaForBusiness 'Value': 'string'
(alexaforbusiness.html) },

Amplify (amplify.html) ]
}
APIGateway }
(apigateway.html)
},
ApiGatewayManagement ]
Api }
(apigatewaymanagement
api.html)
Response Structure
Boto 3 Docs 1.9.249
documentation ( (dict) --
A container for specifying the notification configuration of the bucket. If
../../index.html)
this element is empty, notifications are turned off for the bucket.

TABLE OF CONTENTS TopicConfigurations (list) --


The topic to which notifications are sent and the events for which
notifications are generated.
Quickstart
(../../guide/quickstart.html) (dict) --
A container for specifying the configuration for publication of
A Sample Tutorial
messages to an Amazon Simple Notification Service (Amazon SNS)
(../../guide/sqs.html)
topic when Amazon S3 detects specified events.
Code Examples
Id (string) --
(../../guide/examples.html)
An optional unique identifier for configurations in a notification
User Guides configuration. If you don't provide one, Amazon S3 will assign an
(../../guide/index.html) ID.

Available Services (index.html) TopicArn (string) --


The Amazon Resource Name (ARN) of the Amazon SNS topic to
ACM (acm.html) which Amazon S3 publishes a message when it detects events of
ACMPCA (acm-pca.html) the specified type.

AlexaForBusiness Events (list) --


(alexaforbusiness.html) The Amazon S3 bucket event about which to send notifications. For
more information, see Supported Event Types
Amplify (amplify.html)
(https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.h
APIGateway in the Amazon Simple Storage Service Developer Guide .
(apigateway.html)
(string) --
ApiGatewayManagement The bucket event for which to send notifications.
Api
Filter (dict) --
(apigatewaymanagement
Key (dict) --
api.html)
FilterRules (list) --
Boto 3 Docs 1.9.249
(dict) --
documentation ( Specifies the Amazon S3 object key name to filter on and
../../index.html) whether to filter on the suffix or prefix of the key name.

Name (string) --
TABLE OF CONTENTS The object key name prefix or suffix identifying one or
more objects to which the filtering rule applies. The
Quickstart maximum length is 1,024 characters. Overlapping prefixes
(../../guide/quickstart.html) and suffixes are not supported. For more information, see
A Sample Tutorial Configuring Event Notifications
(../../guide/sqs.html) (https://docs.aws.amazon.com/AmazonS3/latest/dev/Notification
in the Amazon Simple Storage Service Developer Guide .
Code Examples
(../../guide/examples.html) Value (string) --
The value that the filter searches for in object key names.
User Guides
QueueConfigurations (list) --
(../../guide/index.html)
The Amazon Simple Queue Service queues to publish messages to and
Available Services (index.html) the events for which to publish messages.

ACM (acm.html) (dict) --


Specifies the configuration for publishing messages to an Amazon
ACMPCA (acm-pca.html)
Simple Queue Service (Amazon SQS) queue when Amazon S3 detects
AlexaForBusiness specified events.
(alexaforbusiness.html)
Id (string) --
Amplify (amplify.html) An optional unique identifier for configurations in a notification
configuration. If you don't provide one, Amazon S3 will assign an
APIGateway
ID.
(apigateway.html)
QueueArn (string) --
ApiGatewayManagement
The Amazon Resource Name (ARN) of the Amazon SQS queue to
Api
which Amazon S3 publishes a message when it detects events of
(apigatewaymanagement
the specified type.
api.html)
Events (list) --
Boto 3 Docs 1.9.249
(string) --
documentation ( The bucket event for which to send notifications.
../../index.html)
Filter (dict) --
Key (dict) --
TABLE OF CONTENTS FilterRules (list) --
(dict) --
Quickstart Specifies the Amazon S3 object key name to filter on and
(../../guide/quickstart.html) whether to filter on the suffix or prefix of the key name.
A Sample Tutorial Name (string) --
(../../guide/sqs.html) The object key name prefix or suffix identifying one or
Code Examples more objects to which the filtering rule applies. The
(../../guide/examples.html) maximum length is 1,024 characters. Overlapping prefixes
and suffixes are not supported. For more information, see
User Guides Configuring Event Notifications
(../../guide/index.html) (https://docs.aws.amazon.com/AmazonS3/latest/dev/Notification
in the Amazon Simple Storage Service Developer Guide .
Available Services (index.html)
Value (string) --
ACM (acm.html)
The value that the filter searches for in object key names.
ACMPCA (acm-pca.html)
LambdaFunctionConfigurations (list) --
AlexaForBusiness Describes the AWS Lambda functions to invoke and the events for
(alexaforbusiness.html) which to invoke them.

Amplify (amplify.html) (dict) --


A container for specifying the configuration for AWS Lambda
APIGateway
notifications.
(apigateway.html)
Id (string) --
ApiGatewayManagement
An optional unique identifier for configurations in a notification
Api
configuration. If you don't provide one, Amazon S3 will assign an
(apigatewaymanagement
ID.
api.html)
LambdaFunctionArn (string) --
Boto 3 Docs 1.9.249
The Amazon Resource Name (ARN) of the AWS Lambda function
documentation ( that Amazon S3 invokes when the specified event type occurs.
../../index.html)
Events (list) --
The Amazon S3 bucket event for which to invoke the AWS Lambda
TABLE OF CONTENTS function. For more information, see Supported Event Types
(https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.h
Quickstart in the Amazon Simple Storage Service Developer Guide .
(../../guide/quickstart.html)
(string) --
A Sample Tutorial The bucket event for which to send notifications.
(../../guide/sqs.html)
Filter (dict) --
Code Examples Key (dict) --
(../../guide/examples.html) FilterRules (list) --
(dict) --
User Guides
Specifies the Amazon S3 object key name to filter on and
(../../guide/index.html)
whether to filter on the suffix or prefix of the key name.
Available Services (index.html) Name (string) --
ACM (acm.html) The object key name prefix or suffix identifying one or
more objects to which the filtering rule applies. The
ACMPCA (acm-pca.html)
maximum length is 1,024 characters. Overlapping prefixes
AlexaForBusiness and suffixes are not supported. For more information, see
(alexaforbusiness.html) Configuring Event Notifications
(https://docs.aws.amazon.com/AmazonS3/latest/dev/Notification
Amplify (amplify.html)
in the Amazon Simple Storage Service Developer Guide .
APIGateway
Value (string) --
(apigateway.html)
The value that the filter searches for in object key names.
ApiGatewayManagement
Api
(apigatewaymanagement get_bucket_policy (**kwargs)
api.html) Returns the policy of a specified bucket.
See also: AWS API Documentation
Boto 3 Docs 1.9.249
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketPolicy)
documentation (
Request Syntax
../../index.html)

TABLE OF CONTENTS response = client.get_bucket_policy(


Bucket='string'
Quickstart )
(../../guide/quickstart.html)

A Sample Tutorial Parameters


(../../guide/sqs.html) Bucket (string) -- [REQUIRED]
Code Examples Return type
(../../guide/examples.html) dict

User Guides Returns


(../../guide/index.html) Response Syntax

Available Services (index.html)


{
ACM (acm.html)
'Policy': 'string'
ACMPCA (acm-pca.html) }
AlexaForBusiness
(alexaforbusiness.html)
Response Structure
Amplify (amplify.html)
(dict) --
APIGateway Policy (string) --
(apigateway.html) The bucket policy as a JSON document.

ApiGatewayManagement
Api
get_bucket_policy_status (**kwargs)
(apigatewaymanagement
api.html)
Retrieves the policy status for an Amazon S3 bucket, indicating whether the
Boto 3 Docs 1.9.249
bucket is public.
documentation (
See also: AWS API Documentation
../../index.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
01/GetBucketPolicyStatus)
TABLE OF CONTENTS
Request Syntax
Quickstart
(../../guide/quickstart.html) response = client.get_bucket_policy_status(

A Sample Tutorial Bucket='string'


(../../guide/sqs.html) )

Code Examples
(../../guide/examples.html) Parameters
Bucket (string) --
User Guides
[REQUIRED]
(../../guide/index.html)
The name of the Amazon S3 bucket whose policy status you want to
Available Services (index.html) retrieve.
ACM (acm.html) Return type
ACMPCA (acm-pca.html) dict

AlexaForBusiness Returns
(alexaforbusiness.html) Response Syntax
Amplify (amplify.html)
{
APIGateway
(apigateway.html) 'PolicyStatus': {
'IsPublic': True|False
ApiGatewayManagement }
Api
}
(apigatewaymanagement
api.html)
Response Structure
Boto 3 Docs 1.9.249
documentation ( (dict) --
PolicyStatus (dict) --
../../index.html)
The policy status for the specified bucket.

TABLE OF CONTENTS IsPublic (boolean) --


The policy status for this bucket. TRUE indicates that this bucket is
public. FALSE indicates that the bucket is not public.
Quickstart
(../../guide/quickstart.html)

A Sample Tutorial get_bucket_replication (**kwargs)


(../../guide/sqs.html)
Returns the replication configuration of a bucket.
Code Examples
(../../guide/examples.html)
Note
User Guides It can take a while to propagate the put or delete a replication
(../../guide/index.html) configuration to all Amazon S3 systems. Therefore, a get request soon
Available Services (index.html) after put or delete can return a wrong result.

ACM (acm.html)
See also: AWS API Documentation
ACMPCA (acm-pca.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
AlexaForBusiness 01/GetBucketReplication)
(alexaforbusiness.html)
Request Syntax
Amplify (amplify.html)

APIGateway response = client.get_bucket_replication(


(apigateway.html) Bucket='string'
ApiGatewayManagement )
Api
(apigatewaymanagement
Parameters
api.html)
Bucket (string) -- [REQUIRED]
Boto 3 Docs 1.9.249
documentation ( Return type

../../index.html) dict

Returns
TABLE OF CONTENTS Response Syntax

Quickstart
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'ReplicationConfiguration': {
../../index.html) 'Role': 'string',
'Rules': [
{
TABLE OF CONTENTS
'ID': 'string',
'Priority': 123,
Quickstart
'Prefix': 'string',
(../../guide/quickstart.html)
'Filter': {
A Sample Tutorial 'Prefix': 'string',
(../../guide/sqs.html) 'Tag': {
Code Examples 'Key': 'string',
(../../guide/examples.html) 'Value': 'string'
},
User Guides
'And': {
(../../guide/index.html)
'Prefix': 'string',
Available Services (index.html) 'Tags': [
{
ACM (acm.html)
'Key': 'string',
ACMPCA (acm-pca.html) 'Value': 'string'
},
AlexaForBusiness
(alexaforbusiness.html) ]
}
Amplify (amplify.html) },
APIGateway 'Status': 'Enabled'|'Disabled',
(apigateway.html) 'SourceSelectionCriteria': {
'SseKmsEncryptedObjects': {
ApiGatewayManagement
'Status': 'Enabled'|'Disabled'
Api
}
(apigatewaymanagement
api.html) },
'Destination': {
Boto 3 Docs 1.9.249
'Bucket': 'string',
documentation ( 'Account': 'string',
../../index.html) 'StorageClass': 'STANDARD'|'REDUCED_REDUNDANCY
'AccessControlTranslation': {
TABLE OF CONTENTS 'Owner': 'Destination'
},
Quickstart 'EncryptionConfiguration': {
(../../guide/quickstart.html) 'ReplicaKmsKeyID': 'string'
}
A Sample Tutorial
},
(../../guide/sqs.html)
'DeleteMarkerReplication': {
Code Examples 'Status': 'Enabled'|'Disabled'
(../../guide/examples.html) }
User Guides },
(../../guide/index.html) ]
}
Available Services (index.html) }
ACM (acm.html)

ACMPCA (acm-pca.html)
Response Structure
AlexaForBusiness
(alexaforbusiness.html) (dict) --
ReplicationConfiguration (dict) --
Amplify (amplify.html) Role (string) --
APIGateway The Amazon Resource Name (ARN) of the AWS Identity and Access
(apigateway.html) Management (IAM) role that Amazon S3 assumes when replicating
objects. For more information, see How to Set Up Cross-Region
ApiGatewayManagement
Replication (https://docs.aws.amazon.com/AmazonS3/latest/dev/crr-
Api
how-setup.html) in the Amazon Simple Storage Service Developer Guide
(apigatewaymanagement
.
api.html)
Rules (list) --
Boto 3 Docs 1.9.249
A container for one or more replication rules. A replication
documentation ( configuration must have at least one rule and can contain a
../../index.html) maximum of 1,000 rules.

(dict) --
TABLE OF CONTENTS Specifies which Amazon S3 objects to replicate and where to store
the replicas.
Quickstart
ID (string) --
(../../guide/quickstart.html)
A unique identifier for the rule. The maximum value is 255
A Sample Tutorial characters.
(../../guide/sqs.html)
Priority (integer) --
Code Examples The priority associated with the rule. If you specify multiple rules
(../../guide/examples.html) in a replication configuration, Amazon S3 prioritizes the rules to
prevent conflicts when filtering. If two or more rules identify the
User Guides
same object based on a specified filter, the rule with higher
(../../guide/index.html)
priority takes precedence. For example:
Available Services (index.html) Same object quality prefix based filter criteria If prefixes you
ACM (acm.html) specified in multiple rules overlap
Same object qualify tag based filter criteria specified in
ACMPCA (acm-pca.html)
multiple rules
AlexaForBusiness For more information, see Cross-Region Replication (CRR)
(alexaforbusiness.html) (https://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html) in
the Amazon S3 Developer Guide .
Amplify (amplify.html)
Prefix (string) --
APIGateway
An object keyname prefix that identifies the object or objects to
(apigateway.html)
which the rule applies. The maximum prefix length is 1,024
ApiGatewayManagement characters. To include all objects in a bucket, specify an empty
Api string.
(apigatewaymanagement
Filter (dict) --
api.html)
Prefix (string) --
Boto 3 Docs 1.9.249
An object keyname prefix that identifies the subset of objects
documentation ( to which the rule applies.
../../index.html)
Tag (dict) --
A container for specifying a tag key and value.
TABLE OF CONTENTS
The rule applies only to objects that have the tag in their tag
set.
Quickstart
(../../guide/quickstart.html) Key (string) --
Name of the tag.
A Sample Tutorial
(../../guide/sqs.html) Value (string) --
Value of the tag.
Code Examples
(../../guide/examples.html) And (dict) --
A container for specifying rule filters. The filters determine the
User Guides
subset of objects to which the rule applies. This element is
(../../guide/index.html)
required only if you specify more than one filter. For example:
Available Services (index.html) If you specify both a Prefix and a Tag filter, wrap these
ACM (acm.html) filters in an And tag.
If you specify a filter based on multiple tags, wrap the Tag
ACMPCA (acm-pca.html)
elements in an And tag.
AlexaForBusiness Prefix (string) --
(alexaforbusiness.html) Tags (list) --
(dict) --
Amplify (amplify.html)
Key (string) --
APIGateway Name of the tag.
(apigateway.html)
Value (string) --
ApiGatewayManagement Value of the tag.
Api
Status (string) --
(apigatewaymanagement
Specifies whether the rule is enabled.
api.html)
SourceSelectionCriteria (dict) --
Boto 3 Docs 1.9.249
A container that describes additional filters for identifying the
documentation ( source objects that you want to replicate. You can choose to
../../index.html) enable or disable the replication of these objects. Currently,
Amazon S3 supports only the filter that you can specify for
TABLE OF CONTENTS objects created with server-side encryption using an AWS KMS-
Managed Key (SSE-KMS).
Quickstart SseKmsEncryptedObjects (dict) --
(../../guide/quickstart.html) A container for filter information for the selection of Amazon
A Sample Tutorial S3 objects encrypted with AWS KMS. If you include
(../../guide/sqs.html) SourceSelectionCriteria in the replication configuration, this
element is required.
Code Examples
(../../guide/examples.html) Status (string) --
Specifies whether Amazon S3 replicates objects created with
User Guides server-side encryption using an AWS KMS-managed key.
(../../guide/index.html)
Destination (dict) --
Available Services (index.html) A container for information about the replication destination.

ACM (acm.html) Bucket (string) --


The Amazon Resource Name (ARN) of the bucket where you
ACMPCA (acm-pca.html)
want Amazon S3 to store replicas of the object identified by
AlexaForBusiness the rule.
(alexaforbusiness.html)
A replication configuration can replicate objects to only one
Amplify (amplify.html) destination bucket. If there are multiple rules in your
replication configuration, all rules must specify the same
APIGateway
destination bucket.
(apigateway.html)
Account (string) --
ApiGatewayManagement
Destination bucket owner account ID. In a cross-account
Api
scenario, if you direct Amazon S3 to change replica ownership
(apigatewaymanagement
to the AWS account that owns the destination bucket by
api.html)
specifying the AccessControlTranslation property, this is the
Boto 3 Docs 1.9.249
account ID of the destination bucket owner. For more
documentation ( information, see Cross-Region Replication Additional
../../index.html) Configuration: Change Replica Owner
(https://docs.aws.amazon.com/AmazonS3/latest/dev/crr-
TABLE OF CONTENTS change-owner.html) in the Amazon Simple Storage Service
Developer Guide .
Quickstart StorageClass (string) --
(../../guide/quickstart.html) The storage class to use when replicating objects, such as
A Sample Tutorial standard or reduced redundancy. By default, Amazon S3 uses
(../../guide/sqs.html) the storage class of the source object to create the object
replica.
Code Examples
(../../guide/examples.html) For valid values, see the StorageClass element of the PUT
Bucket replication
User Guides (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTr
(../../guide/index.html) action in the Amazon Simple Storage Service API Reference .

Available Services (index.html) AccessControlTranslation (dict) --


Specify this only in a cross-account scenario (where source and
ACM (acm.html)
destination bucket owners are not the same), and you want to
ACMPCA (acm-pca.html) change replica ownership to the AWS account that owns the
destination bucket. If this is not specified in the replication
AlexaForBusiness
configuration, the replicas are owned by same AWS account
(alexaforbusiness.html)
that owns the source object.
Amplify (amplify.html)
Owner (string) --
APIGateway Specifies the replica ownership. For default and valid values,
(apigateway.html) see PUT bucket replication
ApiGatewayManagement (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPU
Api in the Amazon Simple Storage Service API Reference .
(apigatewaymanagement EncryptionConfiguration (dict) --
api.html)
A container that provides information about encryption. If
Boto 3 Docs 1.9.249
SourceSelectionCriteria is specified, you must specify this
documentation ( element.
../../index.html)
ReplicaKmsKeyID (string) --
Specifies the AWS KMS Key ID (Key ARN or Alias ARN) for the
TABLE OF CONTENTS destination bucket. Amazon S3 uses this key to encrypt
replica objects.
Quickstart
DeleteMarkerReplication (dict) --
(../../guide/quickstart.html)
Status (string) --
A Sample Tutorial The status of the delete marker replication.
(../../guide/sqs.html)

Code Examples
Note
(../../guide/examples.html)
In the current implementation, Amazon S3 doesn't
User Guides replicate the delete markers. The status must be
(../../guide/index.html) Disabled .

Available Services (index.html)

ACM (acm.html)
get_bucket_request_payment (**kwargs)
ACMPCA (acm-pca.html)
Returns the request payment configuration of a bucket.
AlexaForBusiness
(alexaforbusiness.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
Amplify (amplify.html) 01/GetBucketRequestPayment)
APIGateway Request Syntax
(apigateway.html)

ApiGatewayManagement response = client.get_bucket_request_payment(


Api
Bucket='string'
(apigatewaymanagement
)
api.html)
Parameters
Boto 3 Docs 1.9.249
Bucket (string) -- [REQUIRED]
documentation (
Return type
../../index.html)
dict

TABLE OF CONTENTS Returns


Response Syntax
Quickstart
(../../guide/quickstart.html)
{
A Sample Tutorial 'Payer': 'Requester'|'BucketOwner'
(../../guide/sqs.html) }
Code Examples
(../../guide/examples.html) Response Structure
User Guides (dict) --
(../../guide/index.html) Payer (string) --
Specifies who pays for the download and request fees.
Available Services (index.html)

ACM (acm.html)
get_bucket_tagging (**kwargs)
ACMPCA (acm-pca.html)
Returns the tag set associated with the bucket.
AlexaForBusiness
(alexaforbusiness.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketTagging)
Amplify (amplify.html)
Request Syntax
APIGateway
(apigateway.html)
response = client.get_bucket_tagging(
ApiGatewayManagement
Bucket='string'
Api
)
(apigatewaymanagement
api.html)
Parameters
Boto 3 Docs 1.9.249
Bucket (string) -- [REQUIRED]
documentation (
../../index.html) Return type
dict
TABLE OF CONTENTS Returns
Response Syntax
Quickstart
(../../guide/quickstart.html)
{
A Sample Tutorial 'TagSet': [
(../../guide/sqs.html) {
Code Examples 'Key': 'string',
(../../guide/examples.html) 'Value': 'string'
},
User Guides ]
(../../guide/index.html) }
Available Services (index.html)

ACM (acm.html) Response Structure

ACMPCA (acm-pca.html) (dict) --


TagSet (list) --
AlexaForBusiness
(dict) --
(alexaforbusiness.html)
Key (string) --
Amplify (amplify.html) Name of the tag.

APIGateway Value (string) --


(apigateway.html) Value of the tag.

ApiGatewayManagement
Api
get_bucket_versioning (**kwargs)
(apigatewaymanagement
api.html) Returns the versioning state of a bucket.
See also: AWS API Documentation
Boto 3 Docs 1.9.249
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
documentation ( 01/GetBucketVersioning)
../../index.html)
Request Syntax

TABLE OF CONTENTS
response = client.get_bucket_versioning(
Quickstart Bucket='string'
(../../guide/quickstart.html) )

A Sample Tutorial
(../../guide/sqs.html) Parameters
Bucket (string) -- [REQUIRED]
Code Examples
(../../guide/examples.html) Return type
dict
User Guides
(../../guide/index.html) Returns
Response Syntax
Available Services (index.html)

ACM (acm.html)
{
ACMPCA (acm-pca.html) 'Status': 'Enabled'|'Suspended',
AlexaForBusiness 'MFADelete': 'Enabled'|'Disabled'
(alexaforbusiness.html) }

Amplify (amplify.html)
Response Structure
APIGateway
(apigateway.html) (dict) --
Status (string) --
ApiGatewayManagement
The versioning state of the bucket.
Api
(apigatewaymanagement MFADelete (string) --
api.html)
Specifies whether MFA delete is enabled in the bucket versioning
Boto 3 Docs 1.9.249
configuration. This element is only returned if the bucket has been
documentation ( configured with MFA delete. If the bucket has never been so
../../index.html) configured, this element is not returned.

TABLE OF CONTENTS
get_bucket_website (**kwargs)
Quickstart Returns the website configuration for a bucket.
(../../guide/quickstart.html)
See also: AWS API Documentation
A Sample Tutorial (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketWebsite)
(../../guide/sqs.html)
Request Syntax
Code Examples
(../../guide/examples.html)
response = client.get_bucket_website(
User Guides Bucket='string'
(../../guide/index.html) )

Available Services (index.html)


Parameters
ACM (acm.html)
Bucket (string) -- [REQUIRED]
ACMPCA (acm-pca.html)
Return type
AlexaForBusiness dict
(alexaforbusiness.html)
Returns
Amplify (amplify.html)
Response Syntax
APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'RedirectAllRequestsTo': {
../../index.html) 'HostName': 'string',
'Protocol': 'http'|'https'
},
TABLE OF CONTENTS
'IndexDocument': {
'Suffix': 'string'
Quickstart
},
(../../guide/quickstart.html)
'ErrorDocument': {
A Sample Tutorial 'Key': 'string'
(../../guide/sqs.html) },
Code Examples 'RoutingRules': [
(../../guide/examples.html) {
'Condition': {
User Guides
'HttpErrorCodeReturnedEquals': 'string',
(../../guide/index.html)
'KeyPrefixEquals': 'string'
Available Services (index.html) },
'Redirect': {
ACM (acm.html)
'HostName': 'string',
ACMPCA (acm-pca.html) 'HttpRedirectCode': 'string',
'Protocol': 'http'|'https',
AlexaForBusiness
(alexaforbusiness.html) 'ReplaceKeyPrefixWith': 'string',
'ReplaceKeyWith': 'string'
Amplify (amplify.html) }
APIGateway },
(apigateway.html) ]
}
ApiGatewayManagement
Api
(apigatewaymanagement Response Structure
api.html)
(dict) --
Boto 3 Docs 1.9.249
RedirectAllRequestsTo (dict) --
documentation ( HostName (string) --
../../index.html) Name of the host where requests are redirected.

Protocol (string) --
TABLE OF CONTENTS Protocol to use when redirecting requests. The default is the protocol
that is used in the original request.
Quickstart
IndexDocument (dict) --
(../../guide/quickstart.html)
Suffix (string) --
A Sample Tutorial A suffix that is appended to a request that is for a directory on the
(../../guide/sqs.html) website endpoint (e.g. if the suffix is index.html and you make a
Code Examples request to samplebucket/images/ the data that is returned will be for
(../../guide/examples.html) the object with the key name images/index.html) The suffix must not
be empty and must not include a slash character.
User Guides
ErrorDocument (dict) --
(../../guide/index.html)
Key (string) --
Available Services (index.html) The object key name to use when a 4XX class error occurs.

ACM (acm.html) RoutingRules (list) --


(dict) --
ACMPCA (acm-pca.html)
Specifies the redirect behavior and when a redirect is applied.
AlexaForBusiness
Condition (dict) --
(alexaforbusiness.html)
A container for describing a condition that must be met for the
Amplify (amplify.html) specified redirect to apply. For example, 1. If request is for pages in
the /docs folder, redirect to the /documents folder. 2. If request
APIGateway
results in HTTP error 4xx, redirect request to another host where
(apigateway.html)
you might process the error.
ApiGatewayManagement
HttpErrorCodeReturnedEquals (string) --
Api
(apigatewaymanagement
api.html)
The HTTP error code when the redirect is applied. In the event of
Boto 3 Docs 1.9.249
an error, if the error code equals this value, then the specified
documentation ( redirect is applied. Required when parent element Condition is
../../index.html) specified and sibling KeyPrefixEquals is not specified. If both are
specified, then both must be true for the redirect to be applied.
TABLE OF CONTENTS
KeyPrefixEquals (string) --
The object key name prefix when the redirect is applied. For
Quickstart example, to redirect requests for ExamplePage.html , the key
(../../guide/quickstart.html) prefix will be ExamplePage.html . To redirect request for all
A Sample Tutorial pages with the prefix docs/ , the key prefix will be /docs , which
(../../guide/sqs.html) identifies all objects in the docs/ folder. Required when the
parent element Condition is specified and sibling
Code Examples
HttpErrorCodeReturnedEquals is not specified. If both conditions
(../../guide/examples.html)
are specified, both must be true for the redirect to be applied.
User Guides
Redirect (dict) --
(../../guide/index.html)
Container for redirect information. You can redirect requests to
Available Services (index.html) another host, to another page, or with another protocol. In the
event of an error, you can specify a different error code to return.
ACM (acm.html)
HostName (string) --
ACMPCA (acm-pca.html) The host name to use in the redirect request.
AlexaForBusiness HttpRedirectCode (string) --
(alexaforbusiness.html) The HTTP redirect code to use on the response. Not required if
Amplify (amplify.html) one of the siblings is present.

APIGateway Protocol (string) --


(apigateway.html) Protocol to use when redirecting requests. The default is the
protocol that is used in the original request.
ApiGatewayManagement
Api ReplaceKeyPrefixWith (string) --
(apigatewaymanagement
api.html)
The object key prefix to use in the redirect request. For example,
Boto 3 Docs 1.9.249
to redirect requests for all pages with prefix docs/ (objects in the
documentation ( docs/ folder) to documents/ , you can set a condition block with
../../index.html) KeyPrefixEquals set to docs/ and in the Redirect set
ReplaceKeyPrefixWith to /documents . Not required if one of the
TABLE OF CONTENTS siblings is present. Can be present only if ReplaceKeyWith is not
provided.
Quickstart
ReplaceKeyWith (string) --
(../../guide/quickstart.html)
The specific object key to use in the redirect request. For
A Sample Tutorial example, redirect request to error.html . Not required if one of
(../../guide/sqs.html) the siblings is present. Can be present only if
ReplaceKeyPrefixWith is not provided.
Code Examples
(../../guide/examples.html)

User Guides get_object (**kwargs)


(../../guide/index.html) Retrieves objects from Amazon S3.

Available Services (index.html) See also: AWS API Documentation


(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObject)
ACM (acm.html)
Request Syntax
ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.get_object(
documentation ( Bucket='string',
../../index.html) IfMatch='string',
IfModifiedSince=datetime(2015, 1, 1),
IfNoneMatch='string',
TABLE OF CONTENTS
IfUnmodifiedSince=datetime(2015, 1, 1),
Key='string',
Quickstart
Range='string',
(../../guide/quickstart.html)
ResponseCacheControl='string',
A Sample Tutorial ResponseContentDisposition='string',
(../../guide/sqs.html) ResponseContentEncoding='string',
Code Examples ResponseContentLanguage='string',
(../../guide/examples.html) ResponseContentType='string',
ResponseExpires=datetime(2015, 1, 1),
User Guides
VersionId='string',
(../../guide/index.html)
SSECustomerAlgorithm='string',
Available Services (index.html) SSECustomerKey='string',
RequestPayer='requester',
ACM (acm.html)
PartNumber=123
ACMPCA (acm-pca.html) )

AlexaForBusiness
(alexaforbusiness.html) Parameters
Amplify (amplify.html) Bucket (string) -- [REQUIRED]
IfMatch (string) -- Return the object only if its entity tag (ETag) is the same
APIGateway
as the one specified, otherwise return a 412 (precondition failed).
(apigateway.html)
IfModifiedSince (datetime) -- Return the object only if it has been
ApiGatewayManagement modified since the specified time, otherwise return a 304 (not modified).
Api IfNoneMatch (string) -- Return the object only if its entity tag (ETag) is
(apigatewaymanagement different from the one specified, otherwise return a 304 (not modified).
api.html)
IfUnmodifiedSince (datetime) -- Return the object only if it has not been
Boto 3 Docs 1.9.249
modified since the specified time, otherwise return a 412 (precondition
documentation ( failed).
../../index.html) Key (string) -- [REQUIRED]
Range (string) -- Downloads the specified range bytes of an object. For
TABLE OF CONTENTS more information about the HTTP Range header, go to
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
Quickstart (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35).
(../../guide/quickstart.html) ResponseCacheControl (string) -- Sets the Cache-Control header of the
response.
A Sample Tutorial ResponseContentDisposition (string) -- Sets the Content-Disposition
(../../guide/sqs.html) header of the response
Code Examples ResponseContentEncoding (string) -- Sets the Content-Encoding header
(../../guide/examples.html) of the response.
ResponseContentLanguage (string) -- Sets the Content-Language header
User Guides of the response.
(../../guide/index.html) ResponseContentType (string) -- Sets the Content-Type header of the
response.
Available Services (index.html)
ResponseExpires (datetime) -- Sets the Expires header of the response.
ACM (acm.html) VersionId (string) -- VersionId used to reference a specific version of the
object.
ACMPCA (acm-pca.html)
SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
AlexaForBusiness encrypting the object (e.g., AES256).
(alexaforbusiness.html) SSECustomerKey (string) -- Specifies the customer-provided encryption
Amplify (amplify.html) key for Amazon S3 to use in encrypting data. This value is used to store
the object and then it is discarded; Amazon does not store the encryption
APIGateway key. The key must be appropriate for use with the algorithm specified in
(apigateway.html) the x-amz-server-side-encryption-customer-algorithm header.
ApiGatewayManagement SSECustomerKeyMD5 (string) --
Api Specifies the 128-bit MD5 digest of the encryption key according to RFC
(apigatewaymanagement 1321. Amazon S3 uses this header for a message integrity check to
api.html) ensure the encryption key was transmitted without error.
Boto 3 Docs 1.9.249 Please note that this parameter is automatically populated if it is not
documentation ( provided. Including this parameter is not required
../../index.html)
RequestPayer (string) -- Confirms that the requester knows that she or
TABLE OF CONTENTS he will be charged for the request. Bucket owners need not specify this
parameter in their requests. Documentation on downloading objects
Quickstart from requester pays buckets can be found at
(../../guide/quickstart.html) http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
A Sample Tutorial
PartNumber (integer) -- Part number of the object being read. This is a
(../../guide/sqs.html)
positive integer between 1 and 10,000. Effectively performs a 'ranged'
Code Examples GET request for the part specified. Useful for downloading just a part of
(../../guide/examples.html) an object.

User Guides Return type


(../../guide/index.html) dict

Available Services (index.html) Returns

ACM (acm.html) Response Syntax

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'Body': StreamingBody(),
../../index.html) 'DeleteMarker': True|False,
'AcceptRanges': 'string',
'Expiration': 'string',
TABLE OF CONTENTS
'Restore': 'string',
'LastModified': datetime(2015, 1, 1),
Quickstart
'ContentLength': 123,
(../../guide/quickstart.html)
'ETag': 'string',
A Sample Tutorial 'MissingMeta': 123,
(../../guide/sqs.html) 'VersionId': 'string',
Code Examples 'CacheControl': 'string',
(../../guide/examples.html) 'ContentDisposition': 'string',
'ContentEncoding': 'string',
User Guides
'ContentLanguage': 'string',
(../../guide/index.html)
'ContentRange': 'string',
Available Services (index.html) 'ContentType': 'string',
'Expires': datetime(2015, 1, 1),
ACM (acm.html)
'WebsiteRedirectLocation': 'string',
ACMPCA (acm-pca.html) 'ServerSideEncryption': 'AES256'|'aws:kms',
'Metadata': {
AlexaForBusiness
(alexaforbusiness.html) 'string': 'string'
},
Amplify (amplify.html) 'SSECustomerAlgorithm': 'string',
APIGateway 'SSECustomerKeyMD5': 'string',
(apigateway.html) 'SSEKMSKeyId': 'string',
'StorageClass': 'STANDARD'|'REDUCED_REDUNDANCY'|'STANDARD_IA'|
ApiGatewayManagement
'RequestCharged': 'requester',
Api
'ReplicationStatus': 'COMPLETE'|'PENDING'|'FAILED'|'REPLICA',
(apigatewaymanagement
api.html) 'PartsCount': 123,
'TagCount': 123,
Boto 3 Docs 1.9.249
'ObjectLockMode': 'GOVERNANCE'|'COMPLIANCE',
documentation ( 'ObjectLockRetainUntilDate': datetime(2015, 1, 1),
../../index.html) 'ObjectLockLegalHoldStatus': 'ON'|'OFF'
}
TABLE OF CONTENTS

Quickstart Response Structure


(../../guide/quickstart.html)
(dict) --
A Sample Tutorial
(../../guide/sqs.html) Body ( StreamingBody ) --

Code Examples Object data.


(../../guide/examples.html) DeleteMarker (boolean) --

User Guides Specifies whether the object retrieved was (true) or was not (false) a
(../../guide/index.html) Delete Marker. If false, this response header does not appear in the
response.
Available Services (index.html)
AcceptRanges (string) --
ACM (acm.html)
Expiration (string) --
ACMPCA (acm-pca.html)
If the object expiration is configured (see PUT Bucket lifecycle), the
AlexaForBusiness
response includes this header. It includes the expiry-date and rule-id
(alexaforbusiness.html)
key value pairs providing object expiration information. The value of
Amplify (amplify.html) the rule-id is URL encoded.

APIGateway Restore (string) --


(apigateway.html)
Provides information about object restoration operation and expiration
ApiGatewayManagement time of the restored object copy.
Api
LastModified (datetime) --
(apigatewaymanagement
api.html) Last modified date of the object
ContentLength (integer) --
Boto 3 Docs 1.9.249
documentation ( Size of the body in bytes.

../../index.html) ETag (string) --

An ETag is an opaque identifier assigned by a web server to a specific


TABLE OF CONTENTS version of a resource found at a URL

MissingMeta (integer) --
Quickstart
(../../guide/quickstart.html) This is set to the number of metadata entries not returned in x-amz-
meta headers. This can happen if you create metadata using an API like
A Sample Tutorial
SOAP that supports more flexible metadata than the REST API. For
(../../guide/sqs.html)
example, using SOAP, you can create metadata whose values are not
Code Examples legal HTTP headers.
(../../guide/examples.html)
VersionId (string) --
User Guides Version of the object.
(../../guide/index.html)
CacheControl (string) --
Available Services (index.html)
Specifies caching behavior along the request/reply chain.
ACM (acm.html)
ContentDisposition (string) --
ACMPCA (acm-pca.html)
Specifies presentational information for the object.
AlexaForBusiness
ContentEncoding (string) --
(alexaforbusiness.html)
Specifies what content encodings have been applied to the object and
Amplify (amplify.html)
thus what decoding mechanisms must be applied to obtain the media-
APIGateway type referenced by the Content-Type header field.
(apigateway.html)
ContentLanguage (string) --
ApiGatewayManagement
The language the content is in.
Api
(apigatewaymanagement ContentRange (string) --
api.html)
The portion of the object returned in the response.
Boto 3 Docs 1.9.249
documentation ( ContentType (string) --

../../index.html) A standard MIME type describing the format of the object data.

Expires (datetime) --
TABLE OF CONTENTS
The date and time at which the object is no longer cacheable.

Quickstart WebsiteRedirectLocation (string) --


(../../guide/quickstart.html)
If the bucket is configured as a website, redirects requests for this
A Sample Tutorial object to another object in the same bucket or to an external URL.
(../../guide/sqs.html) Amazon S3 stores the value of this header in the object metadata.

Code Examples ServerSideEncryption (string) --


(../../guide/examples.html)
The Server-side encryption algorithm used when storing this object in
User Guides S3 (e.g., AES256, aws:kms).
(../../guide/index.html) Metadata (dict) --
Available Services (index.html) A map of metadata to store with the object in S3.
ACM (acm.html) (string) --
(string) --
ACMPCA (acm-pca.html)
SSECustomerAlgorithm (string) --
AlexaForBusiness
If server-side encryption with a customer-provided encryption key was
(alexaforbusiness.html)
requested, the response will include this header confirming the
Amplify (amplify.html) encryption algorithm used.
APIGateway SSECustomerKeyMD5 (string) --
(apigateway.html)
If server-side encryption with a customer-provided encryption key was
ApiGatewayManagement requested, the response will include this header to provide round trip
Api message integrity verification of the customer-provided encryption key.
(apigatewaymanagement
SSEKMSKeyId (string) --
api.html)
If present, specifies the ID of the AWS Key Management Service (KMS)
Boto 3 Docs 1.9.249
master encryption key that was used for the object.
documentation (
StorageClass (string) --
../../index.html)
RequestCharged (string) --
TABLE OF CONTENTS If present, indicates that the requester was successfully charged for the
request.
Quickstart
ReplicationStatus (string) --
(../../guide/quickstart.html)
PartsCount (integer) --
A Sample Tutorial
(../../guide/sqs.html) The count of parts this object has.

Code Examples TagCount (integer) --


(../../guide/examples.html)
The number of tags, if any, on the object.
User Guides ObjectLockMode (string) --
(../../guide/index.html)
The object lock mode currently in place for this object.
Available Services (index.html)
ObjectLockRetainUntilDate (datetime) --
ACM (acm.html)
The date and time when this object's object lock will expire.
ACMPCA (acm-pca.html)
ObjectLockLegalHoldStatus (string) --
AlexaForBusiness
Indicates whether this object has an active legal hold. This field is only
(alexaforbusiness.html)
returned if you have permission to view an object's legal hold status.
Amplify (amplify.html)

APIGateway
get_object_acl (**kwargs)
(apigateway.html)
Returns the access control list (ACL) of an object.
ApiGatewayManagement
Api See also: AWS API Documentation
(apigatewaymanagement (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectAcl)
api.html) Request Syntax
Boto 3 Docs 1.9.249 response = client.get_object_acl(
documentation ( Bucket='string',
../../index.html) Key='string',
VersionId='string',
RequestPayer='requester'
TABLE OF CONTENTS
)

Quickstart
(../../guide/quickstart.html) Parameters
A Sample Tutorial Bucket (string) -- [REQUIRED]
(../../guide/sqs.html) Key (string) -- [REQUIRED]
VersionId (string) -- VersionId used to reference a specific version of the
Code Examples
object.
(../../guide/examples.html)
RequestPayer (string) -- Confirms that the requester knows that she or
User Guides he will be charged for the request. Bucket owners need not specify this
(../../guide/index.html) parameter in their requests. Documentation on downloading objects
from requester pays buckets can be found at
Available Services (index.html) http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
ACM (acm.html)
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc

ACMPCA (acm-pca.html)
Return type
dict
AlexaForBusiness
(alexaforbusiness.html) Returns

Amplify (amplify.html) Response Syntax

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'Owner': {
../../index.html) 'DisplayName': 'string',
'ID': 'string'
},
TABLE OF CONTENTS
'Grants': [
{
Quickstart
'Grantee': {
(../../guide/quickstart.html)
'DisplayName': 'string',
A Sample Tutorial 'EmailAddress': 'string',
(../../guide/sqs.html) 'ID': 'string',
Code Examples 'Type': 'CanonicalUser'|'AmazonCustomerByEmail'|'G
(../../guide/examples.html) 'URI': 'string'
},
User Guides
'Permission': 'FULL_CONTROL'|'WRITE'|'WRITE_ACP'|'READ
(../../guide/index.html)
},
Available Services (index.html) ],
'RequestCharged': 'requester'
ACM (acm.html)
}
ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html) Response Structure

Amplify (amplify.html) (dict) --

APIGateway Owner (dict) --


(apigateway.html)
DisplayName (string) --
ApiGatewayManagement ID (string) --
Api Grants (list) --
(apigatewaymanagement
A list of grants.
api.html)
(dict) --
Boto 3 Docs 1.9.249
documentation ( Grantee (dict) --

../../index.html) DisplayName (string) --

Screen name of the grantee.


TABLE OF CONTENTS
EmailAddress (string) --

Quickstart Email address of the grantee.


(../../guide/quickstart.html)
ID (string) --
A Sample Tutorial
The canonical user ID of the grantee.
(../../guide/sqs.html)
Type (string) --
Code Examples
(../../guide/examples.html) Type of grantee

User Guides URI (string) --


(../../guide/index.html) URI of the grantee group.

Available Services (index.html) Permission (string) --

ACM (acm.html) Specifies the permission given to the grantee.

ACMPCA (acm-pca.html) RequestCharged (string) --

AlexaForBusiness If present, indicates that the requester was successfully charged for the
(alexaforbusiness.html) request.

Amplify (amplify.html)

APIGateway get_object_legal_hold (**kwargs)


(apigateway.html) Gets an object's current Legal Hold status.
ApiGatewayManagement See also: AWS API Documentation
Api (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
(apigatewaymanagement 01/GetObjectLegalHold)
api.html)
Request Syntax
Boto 3 Docs 1.9.249
documentation (
response = client.get_object_legal_hold(
../../index.html)
Bucket='string',
Key='string',
TABLE OF CONTENTS
VersionId='string',
RequestPayer='requester'
Quickstart
)
(../../guide/quickstart.html)

A Sample Tutorial
Parameters
(../../guide/sqs.html)
Bucket (string) --
Code Examples [REQUIRED]
(../../guide/examples.html)
The bucket containing the object whose Legal Hold status you want to
User Guides retrieve.
(../../guide/index.html)
Key (string) --
Available Services (index.html) [REQUIRED]

ACM (acm.html) The key name for the object whose Legal Hold status you want to
retrieve.
ACMPCA (acm-pca.html)
VersionId (string) -- The version ID of the object whose Legal Hold status
AlexaForBusiness
you want to retrieve.
(alexaforbusiness.html)
RequestPayer (string) -- Confirms that the requester knows that she or
Amplify (amplify.html) he will be charged for the request. Bucket owners need not specify this
parameter in their requests. Documentation on downloading objects
APIGateway
from requester pays buckets can be found at
(apigateway.html)
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
ApiGatewayManagement (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Api
Return type
(apigatewaymanagement
api.html) dict
Returns
Boto 3 Docs 1.9.249
documentation ( Response Syntax

../../index.html)
{
TABLE OF CONTENTS 'LegalHold': {
'Status': 'ON'|'OFF'
Quickstart }
(../../guide/quickstart.html) }

A Sample Tutorial
(../../guide/sqs.html) Response Structure

Code Examples (dict) --


(../../guide/examples.html)
LegalHold (dict) --
User Guides The current Legal Hold status for the specified object.
(../../guide/index.html)
Status (string) --
Available Services (index.html)
Indicates whether the specified object has a Legal Hold in place.
ACM (acm.html)

ACMPCA (acm-pca.html)
get_object_lock_configuration (**kwargs)
AlexaForBusiness
Gets the object lock configuration for a bucket. The rule specified in the object
(alexaforbusiness.html)
lock configuration will be applied by default to every new object placed in the
Amplify (amplify.html) specified bucket.

APIGateway See also: AWS API Documentation


(apigateway.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
01/GetObjectLockConfiguration)
ApiGatewayManagement
Api Request Syntax
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.get_object_lock_configuration(
documentation ( Bucket='string'
../../index.html) )

TABLE OF CONTENTS Parameters


Bucket (string) --
Quickstart [REQUIRED]
(../../guide/quickstart.html)
The bucket whose object lock configuration you want to retrieve.
A Sample Tutorial
Return type
(../../guide/sqs.html)
dict
Code Examples
(../../guide/examples.html) Returns
Response Syntax
User Guides
(../../guide/index.html)
{
Available Services (index.html) 'ObjectLockConfiguration': {
ACM (acm.html) 'ObjectLockEnabled': 'Enabled',
'Rule': {
ACMPCA (acm-pca.html)
'DefaultRetention': {
AlexaForBusiness 'Mode': 'GOVERNANCE'|'COMPLIANCE',
(alexaforbusiness.html) 'Days': 123,
'Years': 123
Amplify (amplify.html)
}
APIGateway }
(apigateway.html) }
ApiGatewayManagement }
Api
(apigatewaymanagement
Response Structure
api.html)
(dict) --
Boto 3 Docs 1.9.249
ObjectLockConfiguration (dict) --
documentation ( The specified bucket's object lock configuration.
../../index.html)
ObjectLockEnabled (string) --
Indicates whether this bucket has an object lock configuration
TABLE OF CONTENTS enabled.

Rule (dict) --
Quickstart
The object lock rule in place for the specified object.
(../../guide/quickstart.html)
DefaultRetention (dict) --
A Sample Tutorial
The default retention period that you want to apply to new objects
(../../guide/sqs.html)
placed in the specified bucket.
Code Examples
Mode (string) --
(../../guide/examples.html)
The default object lock retention mode you want to apply to new
User Guides objects placed in the specified bucket.
(../../guide/index.html)
Days (integer) --
Available Services (index.html) The number of days that you want to specify for the default
retention period.
ACM (acm.html)
Years (integer) --
ACMPCA (acm-pca.html) The number of years that you want to specify for the default
AlexaForBusiness retention period.
(alexaforbusiness.html)

Amplify (amplify.html)
get_object_retention (**kwargs)
APIGateway Retrieves an object's retention settings.
(apigateway.html)
See also: AWS API Documentation
ApiGatewayManagement (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
Api 01/GetObjectRetention)
(apigatewaymanagement
Request Syntax
api.html)
Boto 3 Docs 1.9.249 response = client.get_object_retention(
documentation ( Bucket='string',
../../index.html) Key='string',
VersionId='string',
RequestPayer='requester'
TABLE OF CONTENTS
)

Quickstart
(../../guide/quickstart.html) Parameters
A Sample Tutorial Bucket (string) --
(../../guide/sqs.html) [REQUIRED]

Code Examples The bucket containing the object whose retention settings you want to
(../../guide/examples.html) retrieve.

User Guides
Key (string) --
(../../guide/index.html)
[REQUIRED]

The key name for the object whose retention settings you want to
Available Services (index.html)
retrieve.
ACM (acm.html)
VersionId (string) -- The version ID for the object whose retention settings
ACMPCA (acm-pca.html) you want to retrieve.
RequestPayer (string) -- Confirms that the requester knows that she or
AlexaForBusiness
he will be charged for the request. Bucket owners need not specify this
(alexaforbusiness.html)
parameter in their requests. Documentation on downloading objects
Amplify (amplify.html) from requester pays buckets can be found at
APIGateway
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(apigateway.html)
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc

ApiGatewayManagement
Return type
Api dict
(apigatewaymanagement Returns
api.html)
Response Syntax
Boto 3 Docs 1.9.249
documentation (
{
../../index.html)
'Retention': {
'Mode': 'GOVERNANCE'|'COMPLIANCE',
TABLE OF CONTENTS
'RetainUntilDate': datetime(2015, 1, 1)
}
Quickstart
}
(../../guide/quickstart.html)

A Sample Tutorial
Response Structure
(../../guide/sqs.html)
(dict) --
Code Examples
(../../guide/examples.html) Retention (dict) --

User Guides The container element for an object's retention settings.


(../../guide/index.html) Mode (string) --
Available Services (index.html) Indicates the Retention mode for the specified object.
ACM (acm.html) RetainUntilDate (datetime) --
ACMPCA (acm-pca.html) The date on which this object lock retention expires.
AlexaForBusiness
(alexaforbusiness.html)
get_object_tagging (**kwargs)
Amplify (amplify.html)
Returns the tag-set of an object.
APIGateway
See also: AWS API Documentation
(apigateway.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTagging)
ApiGatewayManagement
Request Syntax
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.get_object_tagging(
documentation ( Bucket='string',
../../index.html) Key='string',
VersionId='string'
)
TABLE OF CONTENTS

Quickstart Parameters
(../../guide/quickstart.html) Bucket (string) -- [REQUIRED]
A Sample Tutorial Key (string) -- [REQUIRED]
(../../guide/sqs.html) VersionId (string) --

Code Examples Return type


(../../guide/examples.html) dict

User Guides Returns


(../../guide/index.html) Response Syntax

Available Services (index.html)


{
ACM (acm.html)
'VersionId': 'string',
ACMPCA (acm-pca.html) 'TagSet': [
AlexaForBusiness {
(alexaforbusiness.html) 'Key': 'string',
'Value': 'string'
Amplify (amplify.html)
},
APIGateway ]
(apigateway.html) }
ApiGatewayManagement
Api Response Structure
(apigatewaymanagement
api.html) (dict) --
VersionId (string) --
Boto 3 Docs 1.9.249
documentation ( TagSet (list) --

../../index.html) (dict) --

Key (string) --
TABLE OF CONTENTS
Name of the tag.

Quickstart Value (string) --


(../../guide/quickstart.html)
Value of the tag.
A Sample Tutorial
(../../guide/sqs.html)
get_object_torrent (**kwargs)
Code Examples
(../../guide/examples.html) Return torrent files from a bucket.

See also: AWS API Documentation


User Guides
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTorrent)
(../../guide/index.html)
Request Syntax
Available Services (index.html)

ACM (acm.html)
response = client.get_object_torrent(
ACMPCA (acm-pca.html) Bucket='string',
Key='string',
AlexaForBusiness
RequestPayer='requester'
(alexaforbusiness.html)
)
Amplify (amplify.html)

APIGateway
Parameters
(apigateway.html)
Bucket (string) -- [REQUIRED]
ApiGatewayManagement Key (string) -- [REQUIRED]
Api RequestPayer (string) -- Confirms that the requester knows that she or
(apigatewaymanagement he will be charged for the request. Bucket owners need not specify this
api.html) parameter in their requests. Documentation on downloading objects
from requester pays buckets can be found at
Boto 3 Docs 1.9.249
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
documentation ( (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
../../index.html)
Return type
dict
TABLE OF CONTENTS
Returns
Quickstart Response Syntax
(../../guide/quickstart.html)

A Sample Tutorial {
(../../guide/sqs.html) 'Body': StreamingBody(),
Code Examples 'RequestCharged': 'requester'
(../../guide/examples.html) }

User Guides
(../../guide/index.html) Response Structure

Available Services (index.html) (dict) --

ACM (acm.html) Body ( StreamingBody ) --

ACMPCA (acm-pca.html) RequestCharged (string) --

AlexaForBusiness If present, indicates that the requester was successfully charged for the
(alexaforbusiness.html) request.

Amplify (amplify.html)

APIGateway get_paginator (operation_name)


(apigateway.html) Create a paginator for an operation.
ApiGatewayManagement Parameters
Api operation_name (string) -- The operation name. This is the same name as
(apigatewaymanagement the method name on the client. For example, if the method name is
api.html) create_foo , and you'd normally invoke the operation as
client.create_foo(**kwargs) , if the create_foo operation can be
Boto 3 Docs 1.9.249
paginated, you can use the call client.get_paginator("create_foo") .
documentation (
Raises OperationNotPageableError
../../index.html)
Raised if the operation is not pageable. You can use the
client.can_paginate method to check if an operation is pageable.
TABLE OF CONTENTS
Return type
Quickstart L{botocore.paginate.Paginator}
(../../guide/quickstart.html)
Returns
A Sample Tutorial A paginator object.
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html) get_public_access_block (**kwargs)
Retrieves the PublicAccessBlock configuration for an Amazon S3 bucket.
User Guides
(../../guide/index.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
Available Services (index.html) 01/GetPublicAccessBlock)
ACM (acm.html) Request Syntax
ACMPCA (acm-pca.html)

AlexaForBusiness response = client.get_public_access_block(


(alexaforbusiness.html) Bucket='string'
)
Amplify (amplify.html)

APIGateway
Parameters
(apigateway.html)
Bucket (string) --
ApiGatewayManagement [REQUIRED]
Api
(apigatewaymanagement The name of the Amazon S3 bucket whose PublicAccessBlock
api.html) configuration you want to retrieve.
Return type
Boto 3 Docs 1.9.249
dict
documentation (
Returns
../../index.html)
Response Syntax

TABLE OF CONTENTS
{
Quickstart 'PublicAccessBlockConfiguration': {
(../../guide/quickstart.html) 'BlockPublicAcls': True|False,
'IgnorePublicAcls': True|False,
A Sample Tutorial
'BlockPublicPolicy': True|False,
(../../guide/sqs.html)
'RestrictPublicBuckets': True|False
Code Examples }
(../../guide/examples.html) }
User Guides
(../../guide/index.html) Response Structure
Available Services (index.html) (dict) --
ACM (acm.html) PublicAccessBlockConfiguration (dict) --
The PublicAccessBlock configuration currently in effect for this
ACMPCA (acm-pca.html) Amazon S3 bucket.
AlexaForBusiness BlockPublicAcls (boolean) --
(alexaforbusiness.html) Specifies whether Amazon S3 should block public access control lists
Amplify (amplify.html) (ACLs) for this bucket and objects in this bucket. Setting this element
to TRUE causes the following behavior:
APIGateway
(apigateway.html) PUT Bucket acl and PUT Object acl calls fail if the specified ACL is
public.
ApiGatewayManagement
PUT Object calls fail if the request includes a public ACL.
Api
Enabling this setting doesn't affect existing policies or ACLs.
(apigatewaymanagement
api.html) IgnorePublicAcls (boolean) --
Specifies whether Amazon S3 should ignore public ACLs for this
Boto 3 Docs 1.9.249
bucket and objects in this bucket. Setting this element to TRUE causes
documentation ( Amazon S3 to ignore all public ACLs on this bucket and objects in this
../../index.html) bucket.

Enabling this setting doesn't affect the persistence of any existing


TABLE OF CONTENTS ACLs and doesn't prevent new public ACLs from being set.

BlockPublicPolicy (boolean) --
Quickstart
Specifies whether Amazon S3 should block public bucket policies for
(../../guide/quickstart.html)
this bucket. Setting this element to TRUE causes Amazon S3 to reject
A Sample Tutorial calls to PUT Bucket policy if the specified bucket policy allows public
(../../guide/sqs.html) access.
Code Examples Enabling this setting doesn't affect existing bucket policies.
(../../guide/examples.html)
RestrictPublicBuckets (boolean) --
User Guides Specifies whether Amazon S3 should restrict public bucket policies
(../../guide/index.html) for this bucket. Setting this element to TRUE restricts access to this
bucket to only AWS services and authorized users within this account
Available Services (index.html)
if the bucket has a public policy.
ACM (acm.html)
Enabling this setting doesn't affect previously stored bucket policies,
ACMPCA (acm-pca.html) except that public and cross-account access within any public bucket
policy, including non-public delegation to specific accounts, is
AlexaForBusiness
blocked.
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway get_waiter (waiter_name)


(apigateway.html) Returns an object that can wait for some condition.

ApiGatewayManagement Parameters
Api waiter_name (str) -- The name of the waiter to get. See the waiters section
(apigatewaymanagement of the service docs for a list of available waiters.
api.html)
Returns
Boto 3 Docs 1.9.249
The specified waiter object.
documentation (
../../index.html) Return type
botocore.waiter.Waiter
TABLE OF CONTENTS

head_bucket (**kwargs)
Quickstart
(../../guide/quickstart.html)
This operation is useful to determine if a bucket exists and you have permission
to access it.
A Sample Tutorial
(../../guide/sqs.html)
See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadBucket)
Code Examples
(../../guide/examples.html)
Request Syntax

User Guides
response = client.head_bucket(
(../../guide/index.html)
Bucket='string'
Available Services (index.html) )

ACM (acm.html)

ACMPCA (acm-pca.html) Parameters


Bucket (string) -- [REQUIRED]
AlexaForBusiness
(alexaforbusiness.html) Returns
None
Amplify (amplify.html)

APIGateway
(apigateway.html) head_object (**kwargs)
ApiGatewayManagement The HEAD operation retrieves metadata from an object without returning the
Api object itself. This operation is useful if you're only interested in an object's
(apigatewaymanagement metadata. To use HEAD, you must have READ access to the object.
api.html)
See also: AWS API Documentation
Boto 3 Docs 1.9.249
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObject)
documentation (
Request Syntax
../../index.html)

TABLE OF CONTENTS response = client.head_object(


Bucket='string',
Quickstart IfMatch='string',
(../../guide/quickstart.html) IfModifiedSince=datetime(2015, 1, 1),
IfNoneMatch='string',
A Sample Tutorial
IfUnmodifiedSince=datetime(2015, 1, 1),
(../../guide/sqs.html)
Key='string',
Code Examples Range='string',
(../../guide/examples.html) VersionId='string',
SSECustomerAlgorithm='string',
User Guides
SSECustomerKey='string',
(../../guide/index.html)
RequestPayer='requester',
Available Services (index.html) PartNumber=123
)
ACM (acm.html)

ACMPCA (acm-pca.html)
Parameters
AlexaForBusiness
Bucket (string) -- [REQUIRED]
(alexaforbusiness.html)
IfMatch (string) -- Return the object only if its entity tag (ETag) is the same
Amplify (amplify.html) as the one specified, otherwise return a 412 (precondition failed).
IfModifiedSince (datetime) -- Return the object only if it has been
APIGateway
modified since the specified time, otherwise return a 304 (not modified).
(apigateway.html)
IfNoneMatch (string) -- Return the object only if its entity tag (ETag) is
ApiGatewayManagement different from the one specified, otherwise return a 304 (not modified).
Api IfUnmodifiedSince (datetime) -- Return the object only if it has not been
(apigatewaymanagement modified since the specified time, otherwise return a 412 (precondition
api.html) failed).
Key (string) -- [REQUIRED]
Boto 3 Docs 1.9.249
Range (string) -- Downloads the specified range bytes of an object. For
documentation ( more information about the HTTP Range header, go to
../../index.html) http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35).
TABLE OF CONTENTS VersionId (string) -- VersionId used to reference a specific version of the
object.
Quickstart SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
(../../guide/quickstart.html) encrypting the object (e.g., AES256).
SSECustomerKey (string) -- Specifies the customer-provided encryption
A Sample Tutorial key for Amazon S3 to use in encrypting data. This value is used to store
(../../guide/sqs.html) the object and then it is discarded; Amazon does not store the encryption
Code Examples key. The key must be appropriate for use with the algorithm specified in
(../../guide/examples.html) the x-amz-server-side-encryption-customer-algorithm header.
SSECustomerKeyMD5 (string) --
User Guides Specifies the 128-bit MD5 digest of the encryption key according to RFC
(../../guide/index.html) 1321. Amazon S3 uses this header for a message integrity check to
ensure the encryption key was transmitted without error.
Available Services (index.html)

ACM (acm.html)
Please note that this parameter is automatically populated if it is not
ACMPCA (acm-pca.html) provided. Including this parameter is not required
AlexaForBusiness
(alexaforbusiness.html)
RequestPayer (string) -- Confirms that the requester knows that she or
Amplify (amplify.html) he will be charged for the request. Bucket owners need not specify this
parameter in their requests. Documentation on downloading objects
APIGateway
from requester pays buckets can be found at
(apigateway.html)
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
ApiGatewayManagement (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Api PartNumber (integer) -- Part number of the object being read. This is a
(apigatewaymanagement positive integer between 1 and 10,000. Effectively performs a 'ranged'
api.html)
HEAD request for the part specified. Useful querying about the size of the
Boto 3 Docs 1.9.249
part and the number of parts in this object.
documentation (
Return type
../../index.html)
dict

TABLE OF CONTENTS Returns

Response Syntax
Quickstart
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'DeleteMarker': True|False,
../../index.html) 'AcceptRanges': 'string',
'Expiration': 'string',
'Restore': 'string',
TABLE OF CONTENTS
'LastModified': datetime(2015, 1, 1),
'ContentLength': 123,
Quickstart
'ETag': 'string',
(../../guide/quickstart.html)
'MissingMeta': 123,
A Sample Tutorial 'VersionId': 'string',
(../../guide/sqs.html) 'CacheControl': 'string',
Code Examples 'ContentDisposition': 'string',
(../../guide/examples.html) 'ContentEncoding': 'string',
'ContentLanguage': 'string',
User Guides
'ContentType': 'string',
(../../guide/index.html)
'Expires': datetime(2015, 1, 1),
Available Services (index.html) 'WebsiteRedirectLocation': 'string',
'ServerSideEncryption': 'AES256'|'aws:kms',
ACM (acm.html)
'Metadata': {
ACMPCA (acm-pca.html) 'string': 'string'
},
AlexaForBusiness
(alexaforbusiness.html) 'SSECustomerAlgorithm': 'string',
'SSECustomerKeyMD5': 'string',
Amplify (amplify.html) 'SSEKMSKeyId': 'string',
APIGateway 'StorageClass': 'STANDARD'|'REDUCED_REDUNDANCY'|'STANDARD_IA'|
(apigateway.html) 'RequestCharged': 'requester',
'ReplicationStatus': 'COMPLETE'|'PENDING'|'FAILED'|'REPLICA',
ApiGatewayManagement
'PartsCount': 123,
Api
'ObjectLockMode': 'GOVERNANCE'|'COMPLIANCE',
(apigatewaymanagement
api.html) 'ObjectLockRetainUntilDate': datetime(2015, 1, 1),
'ObjectLockLegalHoldStatus': 'ON'|'OFF'
Boto 3 Docs 1.9.249
}
documentation (
../../index.html)
Response Structure
TABLE OF CONTENTS
(dict) --
Quickstart DeleteMarker (boolean) --
(../../guide/quickstart.html)
Specifies whether the object retrieved was (true) or was not (false) a
A Sample Tutorial Delete Marker. If false, this response header does not appear in the
(../../guide/sqs.html) response.
Code Examples AcceptRanges (string) --
(../../guide/examples.html)
Expiration (string) --
User Guides If the object expiration is configured (see PUT Bucket lifecycle), the
(../../guide/index.html) response includes this header. It includes the expiry-date and rule-id
Available Services (index.html)
key value pairs providing object expiration information. The value of
the rule-id is URL encoded.
ACM (acm.html)
Restore (string) --
ACMPCA (acm-pca.html)
Provides information about object restoration operation and expiration
AlexaForBusiness time of the restored object copy.
(alexaforbusiness.html)
LastModified (datetime) --
Amplify (amplify.html)
Last modified date of the object
APIGateway
(apigateway.html)
ContentLength (integer) --

ApiGatewayManagement
Size of the body in bytes.
Api ETag (string) --
(apigatewaymanagement
api.html)
An ETag is an opaque identifier assigned by a web server to a specific
Boto 3 Docs 1.9.249
version of a resource found at a URL
documentation (
MissingMeta (integer) --
../../index.html)
This is set to the number of metadata entries not returned in x-amz-
TABLE OF CONTENTS meta headers. This can happen if you create metadata using an API like
SOAP that supports more flexible metadata than the REST API. For
example, using SOAP, you can create metadata whose values are not
Quickstart
legal HTTP headers.
(../../guide/quickstart.html)
VersionId (string) --
A Sample Tutorial
(../../guide/sqs.html) Version of the object.
Code Examples CacheControl (string) --
(../../guide/examples.html)
Specifies caching behavior along the request/reply chain.
User Guides ContentDisposition (string) --
(../../guide/index.html)
Specifies presentational information for the object.
Available Services (index.html)
ContentEncoding (string) --
ACM (acm.html)
Specifies what content encodings have been applied to the object and
ACMPCA (acm-pca.html) thus what decoding mechanisms must be applied to obtain the media-
AlexaForBusiness type referenced by the Content-Type header field.
(alexaforbusiness.html) ContentLanguage (string) --
Amplify (amplify.html) The language the content is in.
APIGateway ContentType (string) --
(apigateway.html)
A standard MIME type describing the format of the object data.
ApiGatewayManagement
Expires (datetime) --
Api
(apigatewaymanagement The date and time at which the object is no longer cacheable.
api.html)
WebsiteRedirectLocation (string) --
Boto 3 Docs 1.9.249
documentation ( 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.
../../index.html)
Amazon S3 stores the value of this header in the object metadata.

TABLE OF CONTENTS ServerSideEncryption (string) --

The Server-side encryption algorithm used when storing this object in


Quickstart S3 (e.g., AES256, aws:kms).
(../../guide/quickstart.html)
Metadata (dict) --
A Sample Tutorial
A map of metadata to store with the object in S3.
(../../guide/sqs.html)
(string) --
Code Examples
(string) --
(../../guide/examples.html)
SSECustomerAlgorithm (string) --
User Guides If server-side encryption with a customer-provided encryption key was
(../../guide/index.html) requested, the response will include this header confirming the
Available Services (index.html) encryption algorithm used.

ACM (acm.html) SSECustomerKeyMD5 (string) --

ACMPCA (acm-pca.html) If server-side encryption with a customer-provided encryption key was


requested, the response will include this header to provide round trip
AlexaForBusiness message integrity verification of the customer-provided encryption key.
(alexaforbusiness.html)
SSEKMSKeyId (string) --
Amplify (amplify.html)
If present, specifies the ID of the AWS Key Management Service (KMS)
APIGateway master encryption key that was used for the object.
(apigateway.html)
StorageClass (string) --
ApiGatewayManagement
Api RequestCharged (string) --
(apigatewaymanagement If present, indicates that the requester was successfully charged for the
api.html) request.
ReplicationStatus (string) --
Boto 3 Docs 1.9.249
documentation ( PartsCount (integer) --

../../index.html) The count of parts this object has.

ObjectLockMode (string) --
TABLE OF CONTENTS
The object lock mode currently in place for this object.

Quickstart ObjectLockRetainUntilDate (datetime) --


(../../guide/quickstart.html)
The date and time when this object's object lock expires.
A Sample Tutorial
ObjectLockLegalHoldStatus (string) --
(../../guide/sqs.html)
The Legal Hold status for the specified object.
Code Examples
(../../guide/examples.html)

User Guides list_bucket_analytics_configurations (**kwargs)


(../../guide/index.html) Lists the analytics configurations for the bucket.

Available Services (index.html) See also: AWS API Documentation


(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
ACM (acm.html)
01/ListBucketAnalyticsConfigurations)
ACMPCA (acm-pca.html)
Request Syntax
AlexaForBusiness
(alexaforbusiness.html)
response = client.list_bucket_analytics_configurations(
Amplify (amplify.html) Bucket='string',
ContinuationToken='string'
APIGateway
)
(apigateway.html)

ApiGatewayManagement
Api Parameters
(apigatewaymanagement Bucket (string) --
api.html) [REQUIRED]
The name of the bucket from which analytics configurations are
Boto 3 Docs 1.9.249
retrieved.
documentation (
ContinuationToken (string) -- The ContinuationToken that represents a
../../index.html)
placeholder from where this request should begin.

TABLE OF CONTENTS Return type


dict
Quickstart Returns
(../../guide/quickstart.html)
Response Syntax
A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'IsTruncated': True|False,
../../index.html) 'ContinuationToken': 'string',
'NextContinuationToken': 'string',
'AnalyticsConfigurationList': [
TABLE OF CONTENTS
{
'Id': 'string',
Quickstart
'Filter': {
(../../guide/quickstart.html)
'Prefix': 'string',
A Sample Tutorial 'Tag': {
(../../guide/sqs.html) 'Key': 'string',
Code Examples 'Value': 'string'
(../../guide/examples.html) },
'And': {
User Guides
'Prefix': 'string',
(../../guide/index.html)
'Tags': [
Available Services (index.html) {
'Key': 'string',
ACM (acm.html)
'Value': 'string'
ACMPCA (acm-pca.html) },
]
AlexaForBusiness
(alexaforbusiness.html) }
},
Amplify (amplify.html) 'StorageClassAnalysis': {
APIGateway 'DataExport': {
(apigateway.html) 'OutputSchemaVersion': 'V_1',
'Destination': {
ApiGatewayManagement
'S3BucketDestination': {
Api
'Format': 'CSV',
(apigatewaymanagement
api.html) 'BucketAccountId': 'string',
'Bucket': 'string',
Boto 3 Docs 1.9.249
'Prefix': 'string'
documentation ( }
../../index.html) }
}
TABLE OF CONTENTS }
},
Quickstart ]
(../../guide/quickstart.html) }

A Sample Tutorial
(../../guide/sqs.html) Response Structure
Code Examples (dict) --
(../../guide/examples.html)
IsTruncated (boolean) --
User Guides
Indicates whether the returned list of analytics configurations is
(../../guide/index.html)
complete. A value of true indicates that the list is not complete and the
Available Services (index.html) NextContinuationToken will be provided for a subsequent request.

ACM (acm.html) ContinuationToken (string) --

ACMPCA (acm-pca.html) The ContinuationToken that represents where this request began.

AlexaForBusiness NextContinuationToken (string) --


(alexaforbusiness.html) NextContinuationToken is sent when isTruncated is true, which
Amplify (amplify.html) indicates that there are more analytics configurations to list. The next
request must include this NextContinuationToken. The token is
APIGateway
obfuscated and is not a usable value.
(apigateway.html)
AnalyticsConfigurationList (list) --
ApiGatewayManagement
Api The list of analytics configurations for a bucket.
(apigatewaymanagement (dict) --
api.html)
Specifies the configuration and any analyses for the analytics filter of
Boto 3 Docs 1.9.249
an Amazon S3 bucket.
documentation (
For more information, see GET Bucket analytics
../../index.html)
(https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETAnalyti
in the Amazon Simple Storage Service API Reference .
TABLE OF CONTENTS
Id (string) --
Quickstart The ID that identifies the analytics configuration.
(../../guide/quickstart.html)
Filter (dict) --
A Sample Tutorial
The filter used to describe a set of objects for analyses. A filter
(../../guide/sqs.html)
must have exactly one prefix, one tag, or one conjunction
Code Examples (AnalyticsAndOperator). If no filter is provided, all objects will be
(../../guide/examples.html) considered in any analysis.

User Guides Prefix (string) --


(../../guide/index.html) The prefix to use when evaluating an analytics filter.
Available Services (index.html) Tag (dict) --
ACM (acm.html) The tag to use when evaluating an analytics filter.
ACMPCA (acm-pca.html) Key (string) --
AlexaForBusiness Name of the tag.
(alexaforbusiness.html)
Value (string) --
Amplify (amplify.html)
Value of the tag.
APIGateway
And (dict) --
(apigateway.html)
A conjunction (logical AND) of predicates, which is used in
ApiGatewayManagement
evaluating an analytics filter. The operator must have at least
Api
two predicates.
(apigatewaymanagement
api.html) Prefix (string) --
The prefix to use when evaluating an AND predicate: The
Boto 3 Docs 1.9.249
prefix that an object must have to be included in the metrics
documentation ( results.
../../index.html)
Tags (list) --

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

(dict) --
Quickstart
Key (string) --
(../../guide/quickstart.html)
Name of the tag.
A Sample Tutorial
(../../guide/sqs.html) Value (string) --

Code Examples Value of the tag.


(../../guide/examples.html)
StorageClassAnalysis (dict) --
User Guides Contains data related to access patterns to be collected and made
(../../guide/index.html) available to analyze the tradeoffs between different storage
classes.
Available Services (index.html)
DataExport (dict) --
ACM (acm.html)
Specifies how data related to the storage class analysis for an
ACMPCA (acm-pca.html)
Amazon S3 bucket should be exported.
AlexaForBusiness
OutputSchemaVersion (string) --
(alexaforbusiness.html)
The version of the output schema to use when exporting data.
Amplify (amplify.html)
Must be V_1 .
APIGateway
Destination (dict) --
(apigateway.html)
The place to store the data for an analysis.
ApiGatewayManagement
Api S3BucketDestination (dict) --
(apigatewaymanagement
A destination signifying output to an S3 bucket.
api.html)
Format (string) --
Boto 3 Docs 1.9.249
documentation ( Specifies the file format used when exporting data to
Amazon S3.
../../index.html)
BucketAccountId (string) --
TABLE OF CONTENTS The account ID that owns the destination bucket. If no
account ID is provided, the owner will not be validated
Quickstart prior to exporting data.
(../../guide/quickstart.html)
Bucket (string) --
A Sample Tutorial
The Amazon Resource Name (ARN) of the bucket to which
(../../guide/sqs.html)
data is exported.
Code Examples
Prefix (string) --
(../../guide/examples.html)
The prefix to use when exporting data. The prefix is
User Guides prepended to all results.
(../../guide/index.html)

Available Services (index.html)


list_bucket_inventory_configurations (**kwargs)
ACM (acm.html)
Returns a list of inventory configurations for the bucket.
ACMPCA (acm-pca.html)
See also: AWS API Documentation
AlexaForBusiness (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
(alexaforbusiness.html) 01/ListBucketInventoryConfigurations)

Amplify (amplify.html) Request Syntax

APIGateway
(apigateway.html) response = client.list_bucket_inventory_configurations(
Bucket='string',
ApiGatewayManagement
Api ContinuationToken='string'
(apigatewaymanagement )
api.html)
Parameters
Boto 3 Docs 1.9.249
Bucket (string) --
documentation (
[REQUIRED]
../../index.html)
The name of the bucket containing the inventory configurations to
retrieve.
TABLE OF CONTENTS
ContinuationToken (string) -- The marker used to continue an inventory
Quickstart configuration listing that has been truncated. Use the
(../../guide/quickstart.html) NextContinuationToken from a previously truncated list response to
continue the listing. The continuation token is an opaque value that
A Sample Tutorial Amazon S3 understands.
(../../guide/sqs.html)
Return type
Code Examples
dict
(../../guide/examples.html)
Returns
User Guides
(../../guide/index.html) Response Syntax

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'ContinuationToken': 'string',
../../index.html) 'InventoryConfigurationList': [
{
'Destination': {
TABLE OF CONTENTS
'S3BucketDestination': {
'AccountId': 'string',
Quickstart
'Bucket': 'string',
(../../guide/quickstart.html)
'Format': 'CSV'|'ORC'|'Parquet',
A Sample Tutorial 'Prefix': 'string',
(../../guide/sqs.html) 'Encryption': {
Code Examples 'SSES3': {},
(../../guide/examples.html) 'SSEKMS': {
'KeyId': 'string'
User Guides
}
(../../guide/index.html)
}
Available Services (index.html) }
},
ACM (acm.html)
'IsEnabled': True|False,
ACMPCA (acm-pca.html) 'Filter': {
'Prefix': 'string'
AlexaForBusiness
(alexaforbusiness.html) },
'Id': 'string',
Amplify (amplify.html) 'IncludedObjectVersions': 'All'|'Current',
APIGateway 'OptionalFields': [
(apigateway.html) 'Size'|'LastModifiedDate'|'StorageClass'|'ETag'|'I
],
ApiGatewayManagement
'Schedule': {
Api
'Frequency': 'Daily'|'Weekly'
(apigatewaymanagement
api.html) }
},
Boto 3 Docs 1.9.249
],
documentation ( 'IsTruncated': True|False,
../../index.html) 'NextContinuationToken': 'string'
}
TABLE OF CONTENTS

Quickstart Response Structure


(../../guide/quickstart.html)
(dict) --
A Sample Tutorial
(../../guide/sqs.html) ContinuationToken (string) --

Code Examples If sent in the request, the marker that is used as a starting point for this
(../../guide/examples.html) inventory configuration list response.

InventoryConfigurationList (list) --
User Guides
(../../guide/index.html) The list of inventory configurations for a bucket.

Available Services (index.html) (dict) --

ACM (acm.html) Specifies the inventory configuration for an Amazon S3 bucket. For
more information, see GET Bucket inventory
ACMPCA (acm-pca.html) (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInvento
AlexaForBusiness in the Amazon Simple Storage Service API Reference .
(alexaforbusiness.html) Destination (dict) --
Amplify (amplify.html) Contains information about where to publish the inventory results.
APIGateway S3BucketDestination (dict) --
(apigateway.html)
Contains the bucket name, file format, bucket owner (optional),
ApiGatewayManagement and prefix (optional) where inventory results are published.
Api
(apigatewaymanagement AccountId (string) --
api.html) The ID of the account that owns the destination bucket.
Bucket (string) --
Boto 3 Docs 1.9.249
documentation ( The Amazon resource name (ARN) of the bucket where
inventory results will be published.
../../index.html)
Format (string) --
TABLE OF CONTENTS Specifies the output format of the inventory results.

Prefix (string) --
Quickstart
(../../guide/quickstart.html) The prefix that is prepended to all inventory results.

A Sample Tutorial Encryption (dict) --


(../../guide/sqs.html)
Contains the type of server-side encryption used to encrypt
Code Examples the inventory results.
(../../guide/examples.html)
SSES3 (dict) --
User Guides Specifies the use of SSE-S3 to encrypt delivered Inventory
(../../guide/index.html) reports.
Available Services (index.html) SSEKMS (dict) --
ACM (acm.html) Specifies the use of SSE-KMS to encrypt delivered Inventory
reports.
ACMPCA (acm-pca.html)
KeyId (string) --
AlexaForBusiness
(alexaforbusiness.html) Specifies the ID of the AWS Key Management Service
(KMS) master encryption key to use for encrypting
Amplify (amplify.html)
Inventory reports.
APIGateway
IsEnabled (boolean) --
(apigateway.html)
Specifies whether the inventory is enabled or disabled. If set to
ApiGatewayManagement
True , an inventory list is generated. If set to False , no inventory
Api
(apigatewaymanagement
list is generated.
api.html) Filter (dict) --
Specifies an inventory filter. The inventory only includes objects
Boto 3 Docs 1.9.249
that meet the filter's criteria.
documentation (
Prefix (string) --
../../index.html)
The prefix that an object must have to be included in the
TABLE OF CONTENTS inventory results.

Id (string) --
Quickstart
The ID used to identify the inventory configuration.
(../../guide/quickstart.html)
IncludedObjectVersions (string) --
A Sample Tutorial
(../../guide/sqs.html) Object versions to include in the inventory list. If set to All , the list
includes all the object versions, which adds the version-related
Code Examples
fields VersionId , IsLatest , and DeleteMarker to the list. If set to
(../../guide/examples.html)
Current , the list does not contain these version-related fields.
User Guides
OptionalFields (list) --
(../../guide/index.html)
Contains the optional fields that are included in the inventory
Available Services (index.html) results.
ACM (acm.html) (string) --
ACMPCA (acm-pca.html) Schedule (dict) --

AlexaForBusiness Specifies the schedule for generating inventory results.


(alexaforbusiness.html) Frequency (string) --
Amplify (amplify.html) Specifies how frequently inventory results are produced.
APIGateway IsTruncated (boolean) --
(apigateway.html)
Indicates whether the returned list of inventory configurations is
ApiGatewayManagement truncated in this response. A value of true indicates that the list is
Api truncated.
(apigatewaymanagement
api.html) NextContinuationToken (string) --
The marker used to continue this inventory configuration listing. Use
Boto 3 Docs 1.9.249
the NextContinuationToken from this response to continue the listing
documentation ( in a subsequent request. The continuation token is an opaque value
../../index.html) that Amazon S3 understands.

TABLE OF CONTENTS
list_bucket_metrics_configurations (**kwargs)
Quickstart Lists the metrics configurations for the bucket.
(../../guide/quickstart.html)
See also: AWS API Documentation
A Sample Tutorial (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
(../../guide/sqs.html) 01/ListBucketMetricsConfigurations)

Code Examples Request Syntax


(../../guide/examples.html)

User Guides response = client.list_bucket_metrics_configurations(


(../../guide/index.html) Bucket='string',
ContinuationToken='string'
Available Services (index.html) )
ACM (acm.html)

ACMPCA (acm-pca.html) Parameters


AlexaForBusiness Bucket (string) --
(alexaforbusiness.html) [REQUIRED]

Amplify (amplify.html) The name of the bucket containing the metrics configurations to retrieve.

APIGateway ContinuationToken (string) -- The marker that is used to continue a


(apigateway.html) metrics configuration listing that has been truncated. Use the
NextContinuationToken from a previously truncated list response to
ApiGatewayManagement continue the listing. The continuation token is an opaque value that
Api Amazon S3 understands.
(apigatewaymanagement
api.html) Return type
dict
Boto 3 Docs 1.9.249
documentation ( Returns

../../index.html) Response Syntax

TABLE OF CONTENTS

Quickstart
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'IsTruncated': True|False,
../../index.html) 'ContinuationToken': 'string',
'NextContinuationToken': 'string',
'MetricsConfigurationList': [
TABLE OF CONTENTS
{
'Id': 'string',
Quickstart
'Filter': {
(../../guide/quickstart.html)
'Prefix': 'string',
A Sample Tutorial 'Tag': {
(../../guide/sqs.html) 'Key': 'string',
Code Examples 'Value': 'string'
(../../guide/examples.html) },
'And': {
User Guides
'Prefix': 'string',
(../../guide/index.html)
'Tags': [
Available Services (index.html) {
'Key': 'string',
ACM (acm.html)
'Value': 'string'
ACMPCA (acm-pca.html) },
]
AlexaForBusiness
(alexaforbusiness.html) }
}
Amplify (amplify.html) },
APIGateway ]
(apigateway.html) }

ApiGatewayManagement
Api Response Structure
(apigatewaymanagement
(dict) --
api.html)
IsTruncated (boolean) --
Boto 3 Docs 1.9.249
documentation ( Indicates whether the returned list of metrics configurations is
complete. A value of true indicates that the list is not complete and the
../../index.html)
NextContinuationToken will be provided for a subsequent request.

TABLE OF CONTENTS ContinuationToken (string) --

The marker that is used as a starting point for this metrics


Quickstart configuration list response. This value is present if it was sent in the
(../../guide/quickstart.html) request.
A Sample Tutorial NextContinuationToken (string) --
(../../guide/sqs.html)
The marker used to continue a metrics configuration listing that has
Code Examples been truncated. Use the NextContinuationToken from a previously
(../../guide/examples.html) truncated list response to continue the listing. The continuation token
is an opaque value that Amazon S3 understands.
User Guides
(../../guide/index.html) MetricsConfigurationList (list) --

Available Services (index.html) The list of metrics configurations for a bucket.

ACM (acm.html) (dict) --

ACMPCA (acm-pca.html) Specifies a metrics configuration for the CloudWatch request metrics
(specified by the metrics configuration ID) from an Amazon S3
AlexaForBusiness bucket. If you're updating an existing metrics configuration, note that
(alexaforbusiness.html) this is a full replacement of the existing metrics configuration. If you
Amplify (amplify.html) don't include the elements you want to keep, they are erased. For
more information, see PUT Bucket metrics
APIGateway (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTMetricC
(apigateway.html) in the Amazon Simple Storage Service API Reference .
ApiGatewayManagement Id (string) --
Api
(apigatewaymanagement The ID used to identify the metrics configuration.
api.html) Filter (dict) --
Specifies a metrics configuration filter. The metrics configuration
Boto 3 Docs 1.9.249
will only include objects that meet the filter's criteria. A filter must
documentation ( be a prefix, a tag, or a conjunction (MetricsAndOperator).
../../index.html)
Prefix (string) --

TABLE OF CONTENTS The prefix used when evaluating a metrics filter.

Tag (dict) --
Quickstart
The tag used when evaluating a metrics filter.
(../../guide/quickstart.html)
Key (string) --
A Sample Tutorial
(../../guide/sqs.html) Name of the tag.

Code Examples Value (string) --


(../../guide/examples.html)
Value of the tag.
User Guides And (dict) --
(../../guide/index.html)
A conjunction (logical AND) of predicates, which is used in
Available Services (index.html) evaluating a metrics filter. The operator must have at least two
predicates, and an object must match all of the predicates in
ACM (acm.html)
order for the filter to apply.
ACMPCA (acm-pca.html)
Prefix (string) --
AlexaForBusiness
The prefix used when evaluating an AND predicate.
(alexaforbusiness.html)
Tags (list) --
Amplify (amplify.html)
The list of tags used when evaluating an AND predicate.
APIGateway
(apigateway.html) (dict) --
ApiGatewayManagement Key (string) --
Api
Name of the tag.
(apigatewaymanagement
api.html) Value (string) --
Value of the tag.
Boto 3 Docs 1.9.249
documentation (
../../index.html) list_buckets ()
Returns a list of all buckets owned by the authenticated sender of the request.
TABLE OF CONTENTS
See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBuckets)
Quickstart
(../../guide/quickstart.html) Request Syntax

A Sample Tutorial
(../../guide/sqs.html) response = client.list_buckets()

Code Examples
(../../guide/examples.html) Return type
dict
User Guides
(../../guide/index.html) Returns
Response Syntax
Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'Buckets': [
../../index.html) {
'Name': 'string',
'CreationDate': datetime(2015, 1, 1)
TABLE OF CONTENTS
},
],
Quickstart
'Owner': {
(../../guide/quickstart.html)
'DisplayName': 'string',
A Sample Tutorial 'ID': 'string'
(../../guide/sqs.html) }
Code Examples }
(../../guide/examples.html)

User Guides Response Structure


(../../guide/index.html) (dict) --
Available Services (index.html) Buckets (list) --
(dict) --
ACM (acm.html) Name (string) --
ACMPCA (acm-pca.html) The name of the bucket.

AlexaForBusiness CreationDate (datetime) --


(alexaforbusiness.html) Date the bucket was created.

Amplify (amplify.html) Owner (dict) --


DisplayName (string) --
APIGateway ID (string) --
(apigateway.html)

ApiGatewayManagement
Api list_multipart_uploads (**kwargs)
(apigatewaymanagement This operation lists in-progress multipart uploads.
api.html)
See also: AWS API Documentation
Boto 3 Docs 1.9.249
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
documentation ( 01/ListMultipartUploads)
../../index.html)
Request Syntax

TABLE OF CONTENTS
response = client.list_multipart_uploads(
Quickstart Bucket='string',
(../../guide/quickstart.html) Delimiter='string',
EncodingType='url',
A Sample Tutorial
KeyMarker='string',
(../../guide/sqs.html)
MaxUploads=123,
Code Examples Prefix='string',
(../../guide/examples.html) UploadIdMarker='string'
)
User Guides
(../../guide/index.html)
Parameters
Available Services (index.html)
Bucket (string) -- [REQUIRED]
ACM (acm.html) Delimiter (string) -- Character you use to group keys.
ACMPCA (acm-pca.html) EncodingType (string) -- Requests Amazon S3 to encode the object keys
in the response and specifies the encoding method to use. An object key
AlexaForBusiness may contain any Unicode character; however, XML 1.0 parser cannot
(alexaforbusiness.html) parse some characters, such as characters with an ASCII value from 0 to
Amplify (amplify.html) 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.
APIGateway KeyMarker (string) -- Together with upload-id-marker, this parameter
(apigateway.html) specifies the multipart upload after which listing should begin.
ApiGatewayManagement MaxUploads (integer) -- Sets the maximum number of multipart uploads,
Api from 1 to 1,000, to return in the response body. 1,000 is the maximum
(apigatewaymanagement number of uploads that can be returned in a response.
api.html)
Prefix (string) -- Lists in-progress uploads only for those keys that begin
Boto 3 Docs 1.9.249
with the specified prefix.
documentation ( UploadIdMarker (string) -- Together with key-marker, specifies the
../../index.html) multipart upload after which listing should begin. If key-marker is not
specified, the upload-id-marker parameter is ignored.
TABLE OF CONTENTS Return type
dict
Quickstart
(../../guide/quickstart.html) Returns

A Sample Tutorial Response Syntax


(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'Bucket': 'string',
../../index.html) 'KeyMarker': 'string',
'UploadIdMarker': 'string',
'NextKeyMarker': 'string',
TABLE OF CONTENTS
'Prefix': 'string',
'Delimiter': 'string',
Quickstart
'NextUploadIdMarker': 'string',
(../../guide/quickstart.html)
'MaxUploads': 123,
A Sample Tutorial 'IsTruncated': True|False,
(../../guide/sqs.html) 'Uploads': [
Code Examples {
(../../guide/examples.html) 'UploadId': 'string',
'Key': 'string',
User Guides
'Initiated': datetime(2015, 1, 1),
(../../guide/index.html)
'StorageClass': 'STANDARD'|'REDUCED_REDUNDANCY'|'STAND
Available Services (index.html) 'Owner': {
'DisplayName': 'string',
ACM (acm.html)
'ID': 'string'
ACMPCA (acm-pca.html) },
'Initiator': {
AlexaForBusiness
(alexaforbusiness.html) 'ID': 'string',
'DisplayName': 'string'
Amplify (amplify.html) }
APIGateway },
(apigateway.html) ],
'CommonPrefixes': [
ApiGatewayManagement
{
Api
'Prefix': 'string'
(apigatewaymanagement
api.html) },
],
Boto 3 Docs 1.9.249
'EncodingType': 'url'
documentation ( }
../../index.html)

TABLE OF CONTENTS Response Structure

(dict) --
Quickstart
(../../guide/quickstart.html) Bucket (string) --
A Sample Tutorial Name of the bucket to which the multipart upload was initiated.
(../../guide/sqs.html)
KeyMarker (string) --
Code Examples
The key at or after which the listing began.
(../../guide/examples.html)
UploadIdMarker (string) --
User Guides
(../../guide/index.html) Upload ID after which listing began.

NextKeyMarker (string) --
Available Services (index.html)
When a list is truncated, this element specifies the value that should be
ACM (acm.html)
used for the key-marker request parameter in a subsequent request.
ACMPCA (acm-pca.html)
Prefix (string) --
AlexaForBusiness
When a prefix is provided in the request, this field contains the
(alexaforbusiness.html)
specified prefix. The result contains only keys starting with the
Amplify (amplify.html) specified prefix.
APIGateway Delimiter (string) --
(apigateway.html)
NextUploadIdMarker (string) --
ApiGatewayManagement
When a list is truncated, this element specifies the value that should be
Api
used for the upload-id-marker request parameter in a subsequent
(apigatewaymanagement
request.
api.html)
MaxUploads (integer) --
Boto 3 Docs 1.9.249
documentation ( Maximum number of multipart uploads that could have been included
in the response.
../../index.html)
IsTruncated (boolean) --
TABLE OF CONTENTS Indicates whether the returned list of multipart uploads is truncated. A
value of true indicates that the list was truncated. The list can be
Quickstart truncated if the number of multipart uploads exceeds the limit allowed
(../../guide/quickstart.html) or specified by max uploads.
A Sample Tutorial Uploads (list) --
(../../guide/sqs.html)
(dict) --
Code Examples
UploadId (string) --
(../../guide/examples.html)
Upload ID that identifies the multipart upload.
User Guides
(../../guide/index.html) Key (string) --

Key of the object for which the multipart upload was initiated.
Available Services (index.html)
Initiated (datetime) --
ACM (acm.html)
Date and time at which the multipart upload was initiated.
ACMPCA (acm-pca.html)
StorageClass (string) --
AlexaForBusiness
(alexaforbusiness.html) The class of storage used to store the object.
Amplify (amplify.html) Owner (dict) --
APIGateway DisplayName (string) --
(apigateway.html) ID (string) --
Initiator (dict) --
ApiGatewayManagement
Api Identifies who initiated the multipart upload.
(apigatewaymanagement
ID (string) --
api.html)
If the principal is an AWS account, it provides the Canonical User
Boto 3 Docs 1.9.249
ID. If the principal is an IAM User, it provides a user ARN value.
documentation (
DisplayName (string) --
../../index.html)
Name of the Principal.
TABLE OF CONTENTS CommonPrefixes (list) --

(dict) --
Quickstart
Prefix (string) --
(../../guide/quickstart.html)
EncodingType (string) --
A Sample Tutorial
Encoding type used by Amazon S3 to encode object keys in the
(../../guide/sqs.html)
response.
Code Examples
(../../guide/examples.html)
list_object_versions (**kwargs)
User Guides
(../../guide/index.html)
Returns metadata about all of the versions of objects in a bucket.
See also: AWS API Documentation
Available Services (index.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectVersions)
ACM (acm.html)
Request Syntax
ACMPCA (acm-pca.html)

AlexaForBusiness response = client.list_object_versions(


(alexaforbusiness.html) Bucket='string',
Amplify (amplify.html) Delimiter='string',
EncodingType='url',
APIGateway KeyMarker='string',
(apigateway.html)
MaxKeys=123,
ApiGatewayManagement Prefix='string',
Api VersionIdMarker='string'
(apigatewaymanagement )
api.html)
Parameters
Boto 3 Docs 1.9.249
Bucket (string) -- [REQUIRED]
documentation ( Delimiter (string) -- A delimiter is a character you use to group keys.
../../index.html) EncodingType (string) -- Requests Amazon S3 to encode the object keys
in the response and specifies the encoding method to use. An object key
TABLE OF CONTENTS may contain any Unicode character; however, XML 1.0 parser cannot
parse some characters, such as characters with an ASCII value from 0 to
Quickstart 10. For characters that are not supported in XML 1.0, you can add this
(../../guide/quickstart.html) parameter to request that Amazon S3 encode the keys in the response.
KeyMarker (string) -- Specifies the key to start with when listing objects in
A Sample Tutorial
a bucket.
(../../guide/sqs.html)
MaxKeys (integer) -- Sets the maximum number of keys returned in the
Code Examples response. The response might contain fewer keys but will never contain
(../../guide/examples.html) more.
Prefix (string) -- Limits the response to keys that begin with the specified
User Guides prefix.
(../../guide/index.html) VersionIdMarker (string) -- Specifies the object version you want to start
listing from.
Available Services (index.html)
Return type
ACM (acm.html)
dict
ACMPCA (acm-pca.html)
Returns
AlexaForBusiness
(alexaforbusiness.html) Response Syntax

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'IsTruncated': True|False,
../../index.html) 'KeyMarker': 'string',
'VersionIdMarker': 'string',
'NextKeyMarker': 'string',
TABLE OF CONTENTS
'NextVersionIdMarker': 'string',
'Versions': [
Quickstart
{
(../../guide/quickstart.html)
'ETag': 'string',
A Sample Tutorial 'Size': 123,
(../../guide/sqs.html) 'StorageClass': 'STANDARD',
Code Examples 'Key': 'string',
(../../guide/examples.html) 'VersionId': 'string',
'IsLatest': True|False,
User Guides
'LastModified': datetime(2015, 1, 1),
(../../guide/index.html)
'Owner': {
Available Services (index.html) 'DisplayName': 'string',
'ID': 'string'
ACM (acm.html)
}
ACMPCA (acm-pca.html) },
],
AlexaForBusiness
(alexaforbusiness.html) 'DeleteMarkers': [
{
Amplify (amplify.html) 'Owner': {
APIGateway 'DisplayName': 'string',
(apigateway.html) 'ID': 'string'
},
ApiGatewayManagement
'Key': 'string',
Api
'VersionId': 'string',
(apigatewaymanagement
api.html) 'IsLatest': True|False,
'LastModified': datetime(2015, 1, 1)
Boto 3 Docs 1.9.249
},
documentation ( ],
../../index.html) 'Name': 'string',
'Prefix': 'string',
TABLE OF CONTENTS 'Delimiter': 'string',
'MaxKeys': 123,
Quickstart 'CommonPrefixes': [
(../../guide/quickstart.html) {
'Prefix': 'string'
A Sample Tutorial
},
(../../guide/sqs.html)
],
Code Examples 'EncodingType': 'url'
(../../guide/examples.html) }
User Guides
(../../guide/index.html) Response Structure
Available Services (index.html) (dict) --
ACM (acm.html) IsTruncated (boolean) --
ACMPCA (acm-pca.html) A flag that indicates whether or not Amazon S3 returned all of the
AlexaForBusiness results that satisfied the search criteria. If your results were truncated,
(alexaforbusiness.html) you can make a follow-up paginated request using the NextKeyMarker
and NextVersionIdMarker response parameters as a starting place in
Amplify (amplify.html) another request to return the rest of the results.
APIGateway KeyMarker (string) --
(apigateway.html)
Marks the last Key returned in a truncated response.
ApiGatewayManagement
Api VersionIdMarker (string) --
(apigatewaymanagement NextKeyMarker (string) --
api.html)
Use this value for the key marker request parameter in a subsequent
Boto 3 Docs 1.9.249
request.
documentation (
NextVersionIdMarker (string) --
../../index.html)
Use this value for the next version id marker parameter in a
TABLE OF CONTENTS subsequent request.

Versions (list) --
Quickstart
(dict) --
(../../guide/quickstart.html)
ETag (string) --
A Sample Tutorial
(../../guide/sqs.html) Size (integer) --

Code Examples Size in bytes of the object.


(../../guide/examples.html)
StorageClass (string) --
User Guides The class of storage used to store the object.
(../../guide/index.html)
Key (string) --
Available Services (index.html)
The object key.
ACM (acm.html)
VersionId (string) --
ACMPCA (acm-pca.html)
Version ID of an object.
AlexaForBusiness
IsLatest (boolean) --
(alexaforbusiness.html)
Specifies whether the object is (true) or is not (false) the latest
Amplify (amplify.html)
version of an object.
APIGateway
LastModified (datetime) --
(apigateway.html)
Date and time the object was last modified.
ApiGatewayManagement
Api Owner (dict) --
(apigatewaymanagement
DisplayName (string) --
api.html)
ID (string) --
Boto 3 Docs 1.9.249
DeleteMarkers (list) --
documentation (
(dict) --
../../index.html)
Owner (dict) --
TABLE OF CONTENTS DisplayName (string) --
ID (string) --
Quickstart Key (string) --
(../../guide/quickstart.html)
The object key.
A Sample Tutorial
VersionId (string) --
(../../guide/sqs.html)
Version ID of an object.
Code Examples
(../../guide/examples.html) IsLatest (boolean) --

User Guides Specifies whether the object is (true) or is not (false) the latest
(../../guide/index.html) version of an object.

LastModified (datetime) --
Available Services (index.html)
Date and time the object was last modified.
ACM (acm.html)
Name (string) --
ACMPCA (acm-pca.html)
Prefix (string) --
AlexaForBusiness
(alexaforbusiness.html) Delimiter (string) --
Amplify (amplify.html) MaxKeys (integer) --
APIGateway CommonPrefixes (list) --
(apigateway.html)
(dict) --
ApiGatewayManagement Prefix (string) --
Api EncodingType (string) --
(apigatewaymanagement
api.html)
Encoding type used by Amazon S3 to encode object keys in the
Boto 3 Docs 1.9.249
response.
documentation (
../../index.html)
list_objects (**kwargs)
TABLE OF CONTENTS Returns some or all (up to 1000) of the objects in a bucket. You can use the
request parameters as selection criteria to return a subset of the objects in a
Quickstart bucket.
(../../guide/quickstart.html)
See also: AWS API Documentation
A Sample Tutorial (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjects)
(../../guide/sqs.html)
Request Syntax
Code Examples
(../../guide/examples.html)
response = client.list_objects(
User Guides Bucket='string',
(../../guide/index.html) Delimiter='string',
EncodingType='url',
Available Services (index.html) Marker='string',
ACM (acm.html) MaxKeys=123,
Prefix='string',
ACMPCA (acm-pca.html)
RequestPayer='requester'
AlexaForBusiness )
(alexaforbusiness.html)

Amplify (amplify.html) Parameters


APIGateway Bucket (string) -- [REQUIRED]
(apigateway.html) Delimiter (string) -- A delimiter is a character you use to group keys.
EncodingType (string) -- Requests Amazon S3 to encode the object keys
ApiGatewayManagement
in the response and specifies the encoding method to use. An object key
Api
may contain any Unicode character; however, XML 1.0 parser cannot
(apigatewaymanagement
parse some characters, such as characters with an ASCII value from 0 to
api.html)
10. For characters that are not supported in XML 1.0, you can add this
Boto 3 Docs 1.9.249
parameter to request that Amazon S3 encode the keys in the response.
documentation ( Marker (string) -- Specifies the key to start with when listing objects in a
../../index.html) bucket.
MaxKeys (integer) -- Sets the maximum number of keys returned in the
TABLE OF CONTENTS response. The response might contain fewer keys but will never contain
more.
Quickstart Prefix (string) -- Limits the response to keys that begin with the specified
(../../guide/quickstart.html) prefix.
RequestPayer (string) -- Confirms that the requester knows that she or
A Sample Tutorial he will be charged for the list objects request. Bucket owners need not
(../../guide/sqs.html) specify this parameter in their requests.
Code Examples Return type
(../../guide/examples.html)
dict
User Guides Returns
(../../guide/index.html)
Response Syntax
Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'IsTruncated': True|False,
../../index.html) 'Marker': 'string',
'NextMarker': 'string',
'Contents': [
TABLE OF CONTENTS
{
'Key': 'string',
Quickstart
'LastModified': datetime(2015, 1, 1),
(../../guide/quickstart.html)
'ETag': 'string',
A Sample Tutorial 'Size': 123,
(../../guide/sqs.html) 'StorageClass': 'STANDARD'|'REDUCED_REDUNDANCY'|'GLACI
Code Examples 'Owner': {
(../../guide/examples.html) 'DisplayName': 'string',
'ID': 'string'
User Guides
}
(../../guide/index.html)
},
Available Services (index.html) ],
'Name': 'string',
ACM (acm.html)
'Prefix': 'string',
ACMPCA (acm-pca.html) 'Delimiter': 'string',
'MaxKeys': 123,
AlexaForBusiness
(alexaforbusiness.html) 'CommonPrefixes': [
{
Amplify (amplify.html) 'Prefix': 'string'
APIGateway },
(apigateway.html) ],
'EncodingType': 'url'
ApiGatewayManagement
}
Api
(apigatewaymanagement
api.html)
Response Structure
Boto 3 Docs 1.9.249
documentation ( (dict) --

../../index.html) IsTruncated (boolean) --

A flag that indicates whether or not Amazon S3 returned all of the


TABLE OF CONTENTS results that satisfied the search criteria.
Marker (string) --
Quickstart
(../../guide/quickstart.html) NextMarker (string) --

A Sample Tutorial When response is truncated (the IsTruncated element value in the
(../../guide/sqs.html) 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
Code Examples
objects in alphabetical order Note: This element is returned only if you
(../../guide/examples.html)
have delimiter request parameter specified. If response does not
User Guides include the NextMaker and it is truncated, you can use the value of the
(../../guide/index.html) last Key in the response as the marker in the subsequent request to get
the next set of object keys.
Available Services (index.html)
Contents (list) --
ACM (acm.html)
(dict) --
ACMPCA (acm-pca.html)
Key (string) --
AlexaForBusiness
(alexaforbusiness.html) LastModified (datetime) --

Amplify (amplify.html) ETag (string) --

APIGateway Size (integer) --


(apigateway.html) StorageClass (string) --
ApiGatewayManagement The class of storage used to store the object.
Api
Owner (dict) --
(apigatewaymanagement
api.html) DisplayName (string) --
ID (string) --
Boto 3 Docs 1.9.249
Name (string) --
documentation (
Prefix (string) --
../../index.html)
Delimiter (string) --
TABLE OF CONTENTS MaxKeys (integer) --

CommonPrefixes (list) --
Quickstart
(../../guide/quickstart.html) (dict) --
Prefix (string) --
A Sample Tutorial
EncodingType (string) --
(../../guide/sqs.html)
Encoding type used by Amazon S3 to encode object keys in the
Code Examples
response.
(../../guide/examples.html)

User Guides
(../../guide/index.html) list_objects_v2 (**kwargs)
Returns some or all (up to 1000) of the objects in a bucket. You can use the
Available Services (index.html)
request parameters as selection criteria to return a subset of the objects in a
ACM (acm.html) bucket. Note: ListObjectsV2 is the revised List Objects API and we recommend
you use this revised API for new application development.
ACMPCA (acm-pca.html)
See also: AWS API Documentation
AlexaForBusiness
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectsV2)
(alexaforbusiness.html)
Request Syntax
Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.list_objects_v2(
documentation ( Bucket='string',
../../index.html) Delimiter='string',
EncodingType='url',
MaxKeys=123,
TABLE OF CONTENTS
Prefix='string',
ContinuationToken='string',
Quickstart
FetchOwner=True|False,
(../../guide/quickstart.html)
StartAfter='string',
A Sample Tutorial RequestPayer='requester'
(../../guide/sqs.html) )
Code Examples
(../../guide/examples.html)
Parameters
User Guides Bucket (string) --
(../../guide/index.html) [REQUIRED]

Available Services (index.html) Name of the bucket to list.

ACM (acm.html) Delimiter (string) -- A delimiter is a character you use to group keys.
EncodingType (string) -- Encoding type used by Amazon S3 to encode
ACMPCA (acm-pca.html) object keys in the response.
AlexaForBusiness MaxKeys (integer) -- Sets the maximum number of keys returned in the
(alexaforbusiness.html) response. The response might contain fewer keys but will never contain
more.
Amplify (amplify.html)
Prefix (string) -- Limits the response to keys that begin with the specified
APIGateway prefix.
(apigateway.html) ContinuationToken (string) -- ContinuationToken indicates Amazon S3
that the list is being continued on this bucket with a token.
ApiGatewayManagement
ContinuationToken is obfuscated and is not a real key
Api
FetchOwner (boolean) -- The owner field is not present in listV2 by
(apigatewaymanagement
default, if you want to return owner field with each key in the result then
api.html)
set the fetch owner field to true
Boto 3 Docs 1.9.249
StartAfter (string) -- StartAfter is where you want Amazon S3 to start
documentation ( listing from. Amazon S3 starts listing after this specified key. StartAfter
../../index.html) can be any key in the bucket
RequestPayer (string) -- Confirms that the requester knows that she or
TABLE OF CONTENTS he will be charged for the list objects request in V2 style. Bucket owners
need not specify this parameter in their requests.
Quickstart Return type
(../../guide/quickstart.html) dict
A Sample Tutorial Returns
(../../guide/sqs.html)
Response Syntax
Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'IsTruncated': True|False,
../../index.html) 'Contents': [
{
'Key': 'string',
TABLE OF CONTENTS
'LastModified': datetime(2015, 1, 1),
'ETag': 'string',
Quickstart
'Size': 123,
(../../guide/quickstart.html)
'StorageClass': 'STANDARD'|'REDUCED_REDUNDANCY'|'GLACI
A Sample Tutorial 'Owner': {
(../../guide/sqs.html) 'DisplayName': 'string',
Code Examples 'ID': 'string'
(../../guide/examples.html) }
},
User Guides
],
(../../guide/index.html)
'Name': 'string',
Available Services (index.html) 'Prefix': 'string',
'Delimiter': 'string',
ACM (acm.html)
'MaxKeys': 123,
ACMPCA (acm-pca.html) 'CommonPrefixes': [
{
AlexaForBusiness
(alexaforbusiness.html) 'Prefix': 'string'
},
Amplify (amplify.html) ],
APIGateway 'EncodingType': 'url',
(apigateway.html) 'KeyCount': 123,
'ContinuationToken': 'string',
ApiGatewayManagement
'NextContinuationToken': 'string',
Api
'StartAfter': 'string'
(apigatewaymanagement
api.html) }
Boto 3 Docs 1.9.249
documentation ( Response Structure
../../index.html) (dict) --

IsTruncated (boolean) --
TABLE OF CONTENTS
A flag that indicates whether or not Amazon S3 returned all of the
Quickstart results that satisfied the search criteria.
(../../guide/quickstart.html) Contents (list) --
A Sample Tutorial Metadata about each object returned.
(../../guide/sqs.html)
(dict) --
Code Examples
(../../guide/examples.html) Key (string) --

LastModified (datetime) --
User Guides
(../../guide/index.html) ETag (string) --

Available Services (index.html) Size (integer) --

ACM (acm.html) StorageClass (string) --

ACMPCA (acm-pca.html) The class of storage used to store the object.

AlexaForBusiness Owner (dict) --


(alexaforbusiness.html) DisplayName (string) --
Amplify (amplify.html) ID (string) --
Name (string) --
APIGateway
(apigateway.html) Name of the bucket to list.

ApiGatewayManagement Prefix (string) --


Api Limits the response to keys that begin with the specified prefix.
(apigatewaymanagement
api.html) Delimiter (string) --
A delimiter is a character you use to group keys.
Boto 3 Docs 1.9.249
documentation ( MaxKeys (integer) --

../../index.html) Sets the maximum number of keys returned in the response. The
response might contain fewer keys but will never contain more.
TABLE OF CONTENTS CommonPrefixes (list) --

CommonPrefixes contains all (if there are any) keys between Prefix and
Quickstart
the next occurrence of the string specified by delimiter
(../../guide/quickstart.html)
(dict) --
A Sample Tutorial
Prefix (string) --
(../../guide/sqs.html)
EncodingType (string) --
Code Examples
Encoding type used by Amazon S3 to encode object keys in the
(../../guide/examples.html)
response.
User Guides KeyCount (integer) --
(../../guide/index.html)
KeyCount is the number of keys returned with this request. KeyCount
Available Services (index.html) will always be less than equals to MaxKeys field. Say you ask for 50
ACM (acm.html) keys, your result will include less than equals 50 keys

ACMPCA (acm-pca.html) ContinuationToken (string) --

AlexaForBusiness ContinuationToken indicates Amazon S3 that the list is being continued


(alexaforbusiness.html) on this bucket with a token. ContinuationToken is obfuscated and is
not a real key
Amplify (amplify.html)
NextContinuationToken (string) --
APIGateway
(apigateway.html) NextContinuationToken is sent when isTruncated is true which means
there are more keys in the bucket that can be listed. The next list
ApiGatewayManagement requests to Amazon S3 can be continued with this
Api NextContinuationToken. NextContinuationToken is obfuscated and is
(apigatewaymanagement not a real key
api.html)
StartAfter (string) --
Boto 3 Docs 1.9.249
documentation ( 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
../../index.html)
bucket

TABLE OF CONTENTS

list_parts (**kwargs)
Quickstart
Lists the parts that have been uploaded for a specific multipart upload.
(../../guide/quickstart.html)
See also: AWS API Documentation
A Sample Tutorial
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListParts)
(../../guide/sqs.html)
Request Syntax
Code Examples
(../../guide/examples.html)
response = client.list_parts(
User Guides Bucket='string',
(../../guide/index.html) Key='string',
Available Services (index.html) MaxParts=123,
PartNumberMarker=123,
ACM (acm.html)
UploadId='string',
ACMPCA (acm-pca.html) RequestPayer='requester'
)
AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html) Parameters


Bucket (string) -- [REQUIRED]
APIGateway
Key (string) -- [REQUIRED]
(apigateway.html)
MaxParts (integer) -- Sets the maximum number of parts to return.
ApiGatewayManagement PartNumberMarker (integer) -- Specifies the part after which listing
Api should begin. Only parts with higher part numbers will be listed.
(apigatewaymanagement UploadId (string) --
api.html) [REQUIRED]
Upload ID identifying the multipart upload whose parts are being listed.
Boto 3 Docs 1.9.249
documentation ( RequestPayer (string) -- Confirms that the requester knows that she or
he will be charged for the request. Bucket owners need not specify this
../../index.html)
parameter in their requests. Documentation on downloading objects
from requester pays buckets can be found at
TABLE OF CONTENTS http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Quickstart
Return type
(../../guide/quickstart.html)
dict
A Sample Tutorial
(../../guide/sqs.html) Returns

Code Examples Response Syntax


(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'AbortDate': datetime(2015, 1, 1),
../../index.html) 'AbortRuleId': 'string',
'Bucket': 'string',
'Key': 'string',
TABLE OF CONTENTS
'UploadId': 'string',
'PartNumberMarker': 123,
Quickstart
'NextPartNumberMarker': 123,
(../../guide/quickstart.html)
'MaxParts': 123,
A Sample Tutorial 'IsTruncated': True|False,
(../../guide/sqs.html) 'Parts': [
Code Examples {
(../../guide/examples.html) 'PartNumber': 123,
'LastModified': datetime(2015, 1, 1),
User Guides
'ETag': 'string',
(../../guide/index.html)
'Size': 123
Available Services (index.html) },
],
ACM (acm.html)
'Initiator': {
ACMPCA (acm-pca.html) 'ID': 'string',
'DisplayName': 'string'
AlexaForBusiness
(alexaforbusiness.html) },
'Owner': {
Amplify (amplify.html) 'DisplayName': 'string',
APIGateway 'ID': 'string'
(apigateway.html) },
'StorageClass': 'STANDARD'|'REDUCED_REDUNDANCY'|'STANDARD_IA'|
ApiGatewayManagement
'RequestCharged': 'requester'
Api
}
(apigatewaymanagement
api.html)
Response Structure
Boto 3 Docs 1.9.249
documentation ( (dict) --

../../index.html) AbortDate (datetime) --

Date when multipart upload will become eligible for abort operation by
TABLE OF CONTENTS lifecycle.

AbortRuleId (string) --
Quickstart
(../../guide/quickstart.html) Id of the lifecycle rule that makes a multipart upload eligible for abort
operation.
A Sample Tutorial
(../../guide/sqs.html) Bucket (string) --

Code Examples Name of the bucket to which the multipart upload was initiated.
(../../guide/examples.html)
Key (string) --
User Guides Object key for which the multipart upload was initiated.
(../../guide/index.html)
UploadId (string) --
Available Services (index.html)
Upload ID identifying the multipart upload whose parts are being
ACM (acm.html) listed.
ACMPCA (acm-pca.html) PartNumberMarker (integer) --
AlexaForBusiness Part number after which listing begins.
(alexaforbusiness.html)
NextPartNumberMarker (integer) --
Amplify (amplify.html)
When a list is truncated, this element specifies the last part in the list,
APIGateway as well as the value to use for the part-number-marker request
(apigateway.html) parameter in a subsequent request.
ApiGatewayManagement MaxParts (integer) --
Api
Maximum number of parts that were allowed in the response.
(apigatewaymanagement
api.html) IsTruncated (boolean) --
Indicates whether the returned list of parts is truncated.
Boto 3 Docs 1.9.249
documentation ( Parts (list) --

../../index.html) (dict) --

PartNumber (integer) --
TABLE OF CONTENTS
Part number identifying the part. This is a positive integer between
1 and 10,000.
Quickstart
(../../guide/quickstart.html) LastModified (datetime) --

A Sample Tutorial Date and time at which the part was uploaded.
(../../guide/sqs.html)
ETag (string) --
Code Examples
Entity tag returned when the part was uploaded.
(../../guide/examples.html)
Size (integer) --
User Guides
(../../guide/index.html) Size in bytes of the uploaded part data.

Initiator (dict) --
Available Services (index.html)
Identifies who initiated the multipart upload.
ACM (acm.html)
ID (string) --
ACMPCA (acm-pca.html)
If the principal is an AWS account, it provides the Canonical User ID. If
AlexaForBusiness
the principal is an IAM User, it provides a user ARN value.
(alexaforbusiness.html)
DisplayName (string) --
Amplify (amplify.html)
Name of the Principal.
APIGateway
(apigateway.html) Owner (dict) --

ApiGatewayManagement DisplayName (string) --


Api ID (string) --
(apigatewaymanagement StorageClass (string) --
api.html)
The class of storage used to store the object.
Boto 3 Docs 1.9.249
documentation ( RequestCharged (string) --

../../index.html) If present, indicates that the requester was successfully charged for the
request.
TABLE OF CONTENTS

put_bucket_accelerate_configuration (**kwargs)
Quickstart
(../../guide/quickstart.html) Sets the accelerate configuration of an existing bucket.

A Sample Tutorial See also: AWS API Documentation


(../../guide/sqs.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
01/PutBucketAccelerateConfiguration)
Code Examples
(../../guide/examples.html) Request Syntax

User Guides
(../../guide/index.html) response = client.put_bucket_accelerate_configuration(
Bucket='string',
Available Services (index.html) AccelerateConfiguration={
ACM (acm.html) 'Status': 'Enabled'|'Suspended'
}
ACMPCA (acm-pca.html)
)
AlexaForBusiness
(alexaforbusiness.html)
Parameters
Amplify (amplify.html) Bucket (string) --
APIGateway [REQUIRED]
(apigateway.html) Name of the bucket for which the accelerate configuration is set.
ApiGatewayManagement AccelerateConfiguration (dict) --
Api [REQUIRED]
(apigatewaymanagement
api.html) Specifies the Accelerate Configuration you want to set for the bucket.
Status (string) --
Boto 3 Docs 1.9.249
Specifies the transfer acceleration status of the bucket.
documentation (
Returns
../../index.html)
None

TABLE OF CONTENTS

put_bucket_acl (**kwargs)
Quickstart
Sets the permissions on a bucket using access control lists (ACL).
(../../guide/quickstart.html)
See also: AWS API Documentation
A Sample Tutorial
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAcl)
(../../guide/sqs.html)
Request Syntax
Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.put_bucket_acl(
documentation ( ACL='private'|'public-read'|'public-read-write'|'authenticated-rea
../../index.html) AccessControlPolicy={
'Grants': [
{
TABLE OF CONTENTS
'Grantee': {
'DisplayName': 'string',
Quickstart
'EmailAddress': 'string',
(../../guide/quickstart.html)
'ID': 'string',
A Sample Tutorial 'Type': 'CanonicalUser'|'AmazonCustomerByEmail'|'G
(../../guide/sqs.html) 'URI': 'string'
Code Examples },
(../../guide/examples.html) 'Permission': 'FULL_CONTROL'|'WRITE'|'WRITE_ACP'|'READ
},
User Guides
],
(../../guide/index.html)
'Owner': {
Available Services (index.html) 'DisplayName': 'string',
'ID': 'string'
ACM (acm.html)
}
ACMPCA (acm-pca.html) },
Bucket='string',
AlexaForBusiness
(alexaforbusiness.html) GrantFullControl='string',
GrantRead='string',
Amplify (amplify.html) GrantReadACP='string',
APIGateway GrantWrite='string',
(apigateway.html) GrantWriteACP='string'
)
ApiGatewayManagement
Api
(apigatewaymanagement
api.html) Parameters
ACL (string) -- The canned ACL to apply to the bucket.
Boto 3 Docs 1.9.249
AccessControlPolicy (dict) --
documentation ( Contains the elements that set the ACL permissions for an object per
../../index.html) grantee.

Grants (list) --
TABLE OF CONTENTS A list of grants.

(dict) --
Quickstart
Grantee (dict) --
(../../guide/quickstart.html)
DisplayName (string) --
A Sample Tutorial Screen name of the grantee.
(../../guide/sqs.html)
EmailAddress (string) --
Code Examples Email address of the grantee.
(../../guide/examples.html)
ID (string) --
User Guides The canonical user ID of the grantee.
(../../guide/index.html)
Type (string) -- [REQUIRED]
Available Services (index.html) Type of grantee

ACM (acm.html) URI (string) --


URI of the grantee group.
ACMPCA (acm-pca.html)
Permission (string) --
AlexaForBusiness Specifies the permission given to the grantee.
(alexaforbusiness.html)
Owner (dict) --
Amplify (amplify.html) Container for the bucket owner's display name and ID.
APIGateway DisplayName (string) --
(apigateway.html) ID (string) --
ApiGatewayManagement Bucket (string) -- [REQUIRED]
Api GrantFullControl (string) -- Allows grantee the read, write, read ACP, and
(apigatewaymanagement write ACP permissions on the bucket.
api.html) GrantRead (string) -- Allows grantee to list the objects in the bucket.
GrantReadACP (string) -- Allows grantee to read the bucket ACL.
Boto 3 Docs 1.9.249
GrantWrite (string) -- Allows grantee to create, overwrite, and delete any
documentation ( object in the bucket.
../../index.html) GrantWriteACP (string) -- Allows grantee to write the ACL for the
applicable bucket.
TABLE OF CONTENTS Returns
None
Quickstart
(../../guide/quickstart.html)

A Sample Tutorial put_bucket_analytics_configuration (**kwargs)


(../../guide/sqs.html) Sets an analytics configuration for the bucket (specified by the analytics
configuration ID).
Code Examples
(../../guide/examples.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
User Guides
01/PutBucketAnalyticsConfiguration)
(../../guide/index.html)
Request Syntax
Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.put_bucket_analytics_configuration(
documentation ( Bucket='string',
../../index.html) Id='string',
AnalyticsConfiguration={
'Id': 'string',
TABLE OF CONTENTS
'Filter': {
'Prefix': 'string',
Quickstart
'Tag': {
(../../guide/quickstart.html)
'Key': 'string',
A Sample Tutorial 'Value': 'string'
(../../guide/sqs.html) },
Code Examples 'And': {
(../../guide/examples.html) 'Prefix': 'string',
'Tags': [
User Guides
{
(../../guide/index.html)
'Key': 'string',
Available Services (index.html) 'Value': 'string'
},
ACM (acm.html)
]
ACMPCA (acm-pca.html) }
},
AlexaForBusiness
(alexaforbusiness.html) 'StorageClassAnalysis': {
'DataExport': {
Amplify (amplify.html) 'OutputSchemaVersion': 'V_1',
APIGateway 'Destination': {
(apigateway.html) 'S3BucketDestination': {
'Format': 'CSV',
ApiGatewayManagement
'BucketAccountId': 'string',
Api
'Bucket': 'string',
(apigatewaymanagement
api.html) 'Prefix': 'string'
}
Boto 3 Docs 1.9.249
}
documentation ( }
../../index.html) }
}
TABLE OF CONTENTS )

Quickstart
Parameters
(../../guide/quickstart.html)
Bucket (string) --
A Sample Tutorial [REQUIRED]
(../../guide/sqs.html)
The name of the bucket to which an analytics configuration is stored.
Code Examples
Id (string) --
(../../guide/examples.html)
[REQUIRED]
User Guides
The ID that identifies the analytics configuration.
(../../guide/index.html)
AnalyticsConfiguration (dict) --
Available Services (index.html) [REQUIRED]
ACM (acm.html) The configuration and any analyses for the analytics filter.
ACMPCA (acm-pca.html) Id (string) -- [REQUIRED]
AlexaForBusiness The ID that identifies the analytics configuration.
(alexaforbusiness.html) Filter (dict) --
Amplify (amplify.html) The filter used to describe a set of objects for analyses. A filter must
have exactly one prefix, one tag, or one conjunction
APIGateway
(AnalyticsAndOperator). If no filter is provided, all objects will be
(apigateway.html)
considered in any analysis.
ApiGatewayManagement
Prefix (string) --
Api
The prefix to use when evaluating an analytics filter.
(apigatewaymanagement
api.html) Tag (dict) --
The tag to use when evaluating an analytics filter.
Boto 3 Docs 1.9.249
documentation ( Key (string) -- [REQUIRED]
Name of the tag.
../../index.html)
Value (string) -- [REQUIRED]
TABLE OF CONTENTS Value of the tag.

And (dict) --
Quickstart A conjunction (logical AND) of predicates, which is used in evaluating
(../../guide/quickstart.html) an analytics filter. The operator must have at least two predicates.
A Sample Tutorial Prefix (string) --
(../../guide/sqs.html) The prefix to use when evaluating an AND predicate: The prefix
that an object must have to be included in the metrics results.
Code Examples
(../../guide/examples.html) Tags (list) --
The list of tags to use when evaluating an AND predicate.
User Guides
(../../guide/index.html) (dict) --
Key (string) -- [REQUIRED]
Available Services (index.html) Name of the tag.
ACM (acm.html) Value (string) -- [REQUIRED]
ACMPCA (acm-pca.html) Value of the tag.

AlexaForBusiness StorageClassAnalysis (dict) -- [REQUIRED]


(alexaforbusiness.html) Contains data related to access patterns to be collected and made
available to analyze the tradeoffs between different storage classes.
Amplify (amplify.html)
DataExport (dict) --
APIGateway Specifies how data related to the storage class analysis for an
(apigateway.html) Amazon S3 bucket should be exported.
ApiGatewayManagement OutputSchemaVersion (string) -- [REQUIRED]
Api The version of the output schema to use when exporting data.
(apigatewaymanagement Must be V_1 .
api.html)
Destination (dict) -- [REQUIRED]
Boto 3 Docs 1.9.249
The place to store the data for an analysis.
documentation (
S3BucketDestination (dict) -- [REQUIRED]
../../index.html)
A destination signifying output to an S3 bucket.

TABLE OF CONTENTS Format (string) -- [REQUIRED]


Specifies the file format used when exporting data to Amazon
S3.
Quickstart
(../../guide/quickstart.html) BucketAccountId (string) --
The account ID that owns the destination bucket. If no account
A Sample Tutorial
ID is provided, the owner will not be validated prior to
(../../guide/sqs.html)
exporting data.
Code Examples
Bucket (string) -- [REQUIRED]
(../../guide/examples.html)
The Amazon Resource Name (ARN) of the bucket to which data
User Guides is exported.
(../../guide/index.html)
Prefix (string) --
Available Services (index.html) The prefix to use when exporting data. The prefix is
prepended to all results.
ACM (acm.html)
Returns
ACMPCA (acm-pca.html)
None
AlexaForBusiness
(alexaforbusiness.html)
put_bucket_cors (**kwargs)
Amplify (amplify.html)
Sets the CORS configuration for a bucket.
APIGateway
(apigateway.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketCors)
ApiGatewayManagement
Api Request Syntax
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.put_bucket_cors(
documentation ( Bucket='string',
../../index.html) CORSConfiguration={
'CORSRules': [
{
TABLE OF CONTENTS
'AllowedHeaders': [
'string',
Quickstart
],
(../../guide/quickstart.html)
'AllowedMethods': [
A Sample Tutorial 'string',
(../../guide/sqs.html) ],
Code Examples 'AllowedOrigins': [
(../../guide/examples.html) 'string',
],
User Guides
'ExposeHeaders': [
(../../guide/index.html)
'string',
Available Services (index.html) ],
'MaxAgeSeconds': 123
ACM (acm.html)
},
ACMPCA (acm-pca.html) ]
},
AlexaForBusiness
(alexaforbusiness.html)
)
Amplify (amplify.html)

APIGateway
Parameters
(apigateway.html)
Bucket (string) -- [REQUIRED]
ApiGatewayManagement CORSConfiguration (dict) --
Api [REQUIRED]
(apigatewaymanagement
CORSRules (list) -- [REQUIRED]
api.html)
A set of allowed origins and methods.
Boto 3 Docs 1.9.249
documentation ( (dict) --
Specifies a cross-origin access rule for an Amazon S3 bucket.
../../index.html)
AllowedHeaders (list) --
TABLE OF CONTENTS Headers that are specified in the Access-Control-Request-Headers
header. These headers are allowed in a preflight OPTIONS request.
Quickstart
In response to any preflight OPTIONS request, Amazon S3 returns
(../../guide/quickstart.html)
any requested headers that are allowed.

A Sample Tutorial
(string) --
(../../guide/sqs.html)
AllowedMethods (list) -- [REQUIRED]
An HTTP method that you allow the origin to execute. Valid values
Code Examples are GET , PUT , HEAD , POST , and DELETE .
(../../guide/examples.html)
(string) --
User Guides AllowedOrigins (list) -- [REQUIRED]
(../../guide/index.html) One or more origins you want customers to be able to access the
bucket from.
Available Services (index.html)
(string) --
ACM (acm.html)
ExposeHeaders (list) --
ACMPCA (acm-pca.html) One or more headers in the response that you want customers to
be able to access from their applications (for example, from a
AlexaForBusiness
JavaScript XMLHttpRequest object).
(alexaforbusiness.html)
(string) --
Amplify (amplify.html)
MaxAgeSeconds (integer) --
APIGateway The time in seconds that your browser is to cache the preflight
(apigateway.html) response for the specified resource.
ApiGatewayManagement Returns
Api None
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 put_bucket_encryption (**kwargs)
Creates a new server-side encryption configuration (or replaces an existing one,
documentation (
if present).
../../index.html)
See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
TABLE OF CONTENTS
01/PutBucketEncryption)

Quickstart Request Syntax


(../../guide/quickstart.html)

A Sample Tutorial response = client.put_bucket_encryption(


(../../guide/sqs.html) Bucket='string',
ContentMD5='string',
Code Examples
(../../guide/examples.html) ServerSideEncryptionConfiguration={
'Rules': [
User Guides {
(../../guide/index.html) 'ApplyServerSideEncryptionByDefault': {
'SSEAlgorithm': 'AES256'|'aws:kms',
Available Services (index.html)
'KMSMasterKeyID': 'string'
ACM (acm.html) }
ACMPCA (acm-pca.html) },
]
AlexaForBusiness
}
(alexaforbusiness.html)
)
Amplify (amplify.html)

APIGateway Parameters
(apigateway.html)
Bucket (string) --
ApiGatewayManagement [REQUIRED]
Api
Specifies default encryption for a bucket using server-side encryption
(apigatewaymanagement
with Amazon S3-managed keys (SSE-S3) or AWS KMS-managed keys (SSE-
api.html)
KMS). For information about the Amazon S3 default encryption feature,
see Amazon S3 Default Bucket Encryption
Boto 3 Docs 1.9.249
(https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-
documentation ( encryption.html) in the Amazon Simple Storage Service Developer Guide .
../../index.html)
ContentMD5 (string) -- The base64-encoded 128-bit MD5 digest of the
server-side encryption configuration. This parameter is auto-populated
TABLE OF CONTENTS when using the command from the CLI.
ServerSideEncryptionConfiguration (dict) --
Quickstart [REQUIRED]
(../../guide/quickstart.html)
Rules (list) -- [REQUIRED]
A Sample Tutorial Container for information about a particular server-side encryption
(../../guide/sqs.html) configuration rule.
Code Examples (dict) --
(../../guide/examples.html) Specifies the default server-side encryption configuration.

User Guides ApplyServerSideEncryptionByDefault (dict) --


(../../guide/index.html) Specifies the default server-side encryption to apply to new objects
in the bucket. If a PUT Object request doesn't specify any server-
Available Services (index.html) side encryption, this default encryption will be applied.
ACM (acm.html) SSEAlgorithm (string) -- [REQUIRED]
ACMPCA (acm-pca.html) Server-side encryption algorithm to use for the default
encryption.
AlexaForBusiness
(alexaforbusiness.html) KMSMasterKeyID (string) --
KMS master key ID to use for the default encryption. This
Amplify (amplify.html)
parameter is allowed if and only if SSEAlgorithm is set to
APIGateway aws:kms .
(apigateway.html)
Returns
ApiGatewayManagement None
Api
(apigatewaymanagement
api.html) put_bucket_inventory_configuration (**kwargs)
Adds an inventory configuration (identified by the inventory ID) from the
Boto 3 Docs 1.9.249
bucket.
documentation (
See also: AWS API Documentation
../../index.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
01/PutBucketInventoryConfiguration)
TABLE OF CONTENTS
Request Syntax
Quickstart
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.put_bucket_inventory_configuration(
documentation ( Bucket='string',
../../index.html) Id='string',
InventoryConfiguration={
'Destination': {
TABLE OF CONTENTS
'S3BucketDestination': {
'AccountId': 'string',
Quickstart
'Bucket': 'string',
(../../guide/quickstart.html)
'Format': 'CSV'|'ORC'|'Parquet',
A Sample Tutorial 'Prefix': 'string',
(../../guide/sqs.html) 'Encryption': {
Code Examples 'SSES3': {}
(../../guide/examples.html) ,
'SSEKMS': {
User Guides
'KeyId': 'string'
(../../guide/index.html)
}
Available Services (index.html) }
}
ACM (acm.html)
},
ACMPCA (acm-pca.html) 'IsEnabled': True|False,
'Filter': {
AlexaForBusiness
(alexaforbusiness.html) 'Prefix': 'string'
},
Amplify (amplify.html) 'Id': 'string',
APIGateway 'IncludedObjectVersions': 'All'|'Current',
(apigateway.html) 'OptionalFields': [
'Size'|'LastModifiedDate'|'StorageClass'|'ETag'|'IsMultipa
ApiGatewayManagement
],
Api
'Schedule': {
(apigatewaymanagement
api.html) 'Frequency': 'Daily'|'Weekly'
}
Boto 3 Docs 1.9.249
}
documentation ( )
../../index.html)

TABLE OF CONTENTS Parameters


Bucket (string) --
Quickstart [REQUIRED]
(../../guide/quickstart.html)
The name of the bucket where the inventory configuration will be stored.
A Sample Tutorial
(../../guide/sqs.html) Id (string) --
[REQUIRED]
Code Examples
(../../guide/examples.html) The ID used to identify the inventory configuration.

InventoryConfiguration (dict) --
User Guides
[REQUIRED]
(../../guide/index.html)
Specifies the inventory configuration.
Available Services (index.html)
Destination (dict) -- [REQUIRED]
ACM (acm.html)
Contains information about where to publish the inventory results.
ACMPCA (acm-pca.html)
S3BucketDestination (dict) -- [REQUIRED]
AlexaForBusiness Contains the bucket name, file format, bucket owner (optional), and
(alexaforbusiness.html) prefix (optional) where inventory results are published.

Amplify (amplify.html) AccountId (string) --


The ID of the account that owns the destination bucket.
APIGateway
(apigateway.html) Bucket (string) -- [REQUIRED]
The Amazon resource name (ARN) of the bucket where inventory
ApiGatewayManagement
results will be published.
Api
(apigatewaymanagement Format (string) -- [REQUIRED]
api.html) Specifies the output format of the inventory results.
Prefix (string) --
Boto 3 Docs 1.9.249
The prefix that is prepended to all inventory results.
documentation (
Encryption (dict) --
../../index.html)
Contains the type of server-side encryption used to encrypt the
inventory results.
TABLE OF CONTENTS
SSES3 (dict) --
Specifies the use of SSE-S3 to encrypt delivered Inventory
Quickstart
reports.
(../../guide/quickstart.html)
SSEKMS (dict) --
A Sample Tutorial
Specifies the use of SSE-KMS to encrypt delivered Inventory
(../../guide/sqs.html)
reports.
Code Examples
KeyId (string) -- [REQUIRED]
(../../guide/examples.html)
Specifies the ID of the AWS Key Management Service (KMS)
User Guides master encryption key to use for encrypting Inventory reports.
(../../guide/index.html)
IsEnabled (boolean) -- [REQUIRED]
Available Services (index.html) 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
ACM (acm.html)
generated.
ACMPCA (acm-pca.html)
Filter (dict) --
AlexaForBusiness Specifies an inventory filter. The inventory only includes objects that
(alexaforbusiness.html) meet the filter's criteria.

Amplify (amplify.html) Prefix (string) -- [REQUIRED]


The prefix that an object must have to be included in the inventory
APIGateway
results.
(apigateway.html)
Id (string) -- [REQUIRED]
ApiGatewayManagement
The ID used to identify the inventory configuration.
Api
(apigatewaymanagement IncludedObjectVersions (string) -- [REQUIRED]
api.html)
Object versions to include in the inventory list. If set to All , the list
Boto 3 Docs 1.9.249
includes all the object versions, which adds the version-related fields
documentation ( VersionId , IsLatest , and DeleteMarker to the list. If set to Current ,
../../index.html) the list does not contain these version-related fields.

OptionalFields (list) --
TABLE OF CONTENTS
Contains the optional fields that are included in the inventory results.

Quickstart (string) --
(../../guide/quickstart.html) Schedule (dict) -- [REQUIRED]
Specifies the schedule for generating inventory results.
A Sample Tutorial
(../../guide/sqs.html) Frequency (string) -- [REQUIRED]
Specifies how frequently inventory results are produced.
Code Examples
(../../guide/examples.html) Returns
None
User Guides
(../../guide/index.html)
put_bucket_lifecycle (**kwargs)
Available Services (index.html)
No longer used, see the PutBucketLifecycleConfiguration operation.
ACM (acm.html)

ACMPCA (acm-pca.html)
Danger
AlexaForBusiness
This operation is deprecated and may not function as expected. This
(alexaforbusiness.html)
operation should not be used going forward and is only kept for the
Amplify (amplify.html) purpose of backwards compatiblity.

APIGateway
(apigateway.html) See also: AWS API Documentation
ApiGatewayManagement (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycle)
Api Request Syntax
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.put_bucket_lifecycle(
documentation ( Bucket='string',
../../index.html) LifecycleConfiguration={
'Rules': [
{
TABLE OF CONTENTS
'Expiration': {
'Date': datetime(2015, 1, 1),
Quickstart
'Days': 123,
(../../guide/quickstart.html)
'ExpiredObjectDeleteMarker': True|False
A Sample Tutorial },
(../../guide/sqs.html) 'ID': 'string',
Code Examples 'Prefix': 'string',
(../../guide/examples.html) 'Status': 'Enabled'|'Disabled',
'Transition': {
User Guides
'Date': datetime(2015, 1, 1),
(../../guide/index.html)
'Days': 123,
Available Services (index.html) 'StorageClass': 'GLACIER'|'STANDARD_IA'|'ONEZONE_I
},
ACM (acm.html)
'NoncurrentVersionTransition': {
ACMPCA (acm-pca.html) 'NoncurrentDays': 123,
'StorageClass': 'GLACIER'|'STANDARD_IA'|'ONEZONE_I
AlexaForBusiness
(alexaforbusiness.html) },
'NoncurrentVersionExpiration': {
Amplify (amplify.html) 'NoncurrentDays': 123
APIGateway },
(apigateway.html) 'AbortIncompleteMultipartUpload': {
'DaysAfterInitiation': 123
ApiGatewayManagement
}
Api
},
(apigatewaymanagement
api.html) ]
}
Boto 3 Docs 1.9.249
)
documentation (
../../index.html)
Parameters
TABLE OF CONTENTS
Bucket (string) -- [REQUIRED]
LifecycleConfiguration (dict) --
Quickstart Rules (list) -- [REQUIRED]
(../../guide/quickstart.html) (dict) --
A Sample Tutorial Specifies lifecycle rules for an Amazon S3 bucket. For more
(../../guide/sqs.html) information, see PUT Bucket lifecycle
(https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlifecycl
Code Examples in the Amazon Simple Storage Service API Reference .
(../../guide/examples.html)
Expiration (dict) --
User Guides Date (datetime) --
(../../guide/index.html) Indicates at what date the object is to be moved or deleted.
Should be in GMT ISO 8601 Format.
Available Services (index.html)
Days (integer) --
ACM (acm.html)
Indicates the lifetime, in days, of the objects that are subject to
ACMPCA (acm-pca.html) the rule. The value must be a non-zero positive integer.
AlexaForBusiness ExpiredObjectDeleteMarker (boolean) --
(alexaforbusiness.html) Indicates whether Amazon S3 will remove a delete marker with
no noncurrent versions. If set to true, the delete marker will be
Amplify (amplify.html)
expired; if set to false the policy takes no action. This cannot be
APIGateway specified with Days or Date in a Lifecycle Expiration Policy.
(apigateway.html)
ID (string) --
ApiGatewayManagement Unique identifier for the rule. The value can't be longer than 255
Api characters.
(apigatewaymanagement
Prefix (string) -- [REQUIRED]
api.html)
Object key prefix that identifies one or more objects to which this
Boto 3 Docs 1.9.249
rule applies.
documentation (
Status (string) -- [REQUIRED]
../../index.html)
If Enabled , the rule is currently being applied. If Disabled , the rule
is not currently being applied.
TABLE OF CONTENTS
Transition (dict) --
Date (datetime) --
Quickstart
Indicates when objects are transitioned to the specified storage
(../../guide/quickstart.html)
class. The date value must be in ISO 8601 format. The time is
A Sample Tutorial always midnight UTC.
(../../guide/sqs.html)
Days (integer) --
Code Examples Indicates the number of days after creation when objects are
(../../guide/examples.html) transitioned to the specified storage class. The value must be a
positive integer.
User Guides
(../../guide/index.html) StorageClass (string) --
The storage class to which you want the object to transition.
Available Services (index.html)
NoncurrentVersionTransition (dict) --
ACM (acm.html)
NoncurrentDays (integer) --
ACMPCA (acm-pca.html) Specifies the number of days an object is noncurrent before
Amazon S3 can perform the associated action. For information
AlexaForBusiness
about the noncurrent days calculations, see How Amazon S3
(alexaforbusiness.html)
Calculates When an Object Became Noncurrent
Amplify (amplify.html) (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-
control.html) in the Amazon Simple Storage Service Developer
APIGateway
Guide .
(apigateway.html)
StorageClass (string) --
ApiGatewayManagement
The class of storage used to store the object.
Api
(apigatewaymanagement NoncurrentVersionExpiration (dict) --
api.html) NoncurrentDays (integer) --
Specifies the number of days an object is noncurrent before
Boto 3 Docs 1.9.249
Amazon S3 can perform the associated action. For information
documentation ( about the noncurrent days calculations, see How Amazon S3
../../index.html) Calculates When an Object Became Noncurrent
(https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-
TABLE OF CONTENTS lifecycle-rules.html#non-current-days-calculations) in the
Amazon Simple Storage Service Developer Guide.
Quickstart AbortIncompleteMultipartUpload (dict) --
(../../guide/quickstart.html) DaysAfterInitiation (integer) --
A Sample Tutorial Specifies the number of days after which Amazon S3 aborts an
(../../guide/sqs.html) incomplete multipart upload.

Code Examples Returns


(../../guide/examples.html) None

User Guides
(../../guide/index.html) put_bucket_lifecycle_configuration (**kwargs)

Available Services (index.html) Sets lifecycle configuration for your bucket. If a lifecycle configuration exists, it
replaces it.
ACM (acm.html)
See also: AWS API Documentation
ACMPCA (acm-pca.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
AlexaForBusiness 01/PutBucketLifecycleConfiguration)
(alexaforbusiness.html) Request Syntax
Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.put_bucket_lifecycle_configuration(
documentation ( Bucket='string',
../../index.html) LifecycleConfiguration={
'Rules': [
{
TABLE OF CONTENTS
'Expiration': {
'Date': datetime(2015, 1, 1),
Quickstart
'Days': 123,
(../../guide/quickstart.html)
'ExpiredObjectDeleteMarker': True|False
A Sample Tutorial },
(../../guide/sqs.html) 'ID': 'string',
Code Examples 'Prefix': 'string',
(../../guide/examples.html) 'Filter': {
'Prefix': 'string',
User Guides
'Tag': {
(../../guide/index.html)
'Key': 'string',
Available Services (index.html) 'Value': 'string'
},
ACM (acm.html)
'And': {
ACMPCA (acm-pca.html) 'Prefix': 'string',
'Tags': [
AlexaForBusiness
(alexaforbusiness.html) {
'Key': 'string',
Amplify (amplify.html) 'Value': 'string'
APIGateway },
(apigateway.html) ]
}
ApiGatewayManagement
},
Api
'Status': 'Enabled'|'Disabled',
(apigatewaymanagement
api.html) 'Transitions': [
{
Boto 3 Docs 1.9.249
'Date': datetime(2015, 1, 1),
documentation ( 'Days': 123,
../../index.html) 'StorageClass': 'GLACIER'|'STANDARD_IA'|'ONEZO
},
TABLE OF CONTENTS ],
'NoncurrentVersionTransitions': [
Quickstart {
(../../guide/quickstart.html) 'NoncurrentDays': 123,
'StorageClass': 'GLACIER'|'STANDARD_IA'|'ONEZO
A Sample Tutorial
},
(../../guide/sqs.html)
],
Code Examples 'NoncurrentVersionExpiration': {
(../../guide/examples.html) 'NoncurrentDays': 123
User Guides },
(../../guide/index.html) 'AbortIncompleteMultipartUpload': {
'DaysAfterInitiation': 123
Available Services (index.html) }
ACM (acm.html) },
]
ACMPCA (acm-pca.html)
}
AlexaForBusiness )
(alexaforbusiness.html)

Amplify (amplify.html)
Parameters
APIGateway
(apigateway.html) Bucket (string) -- [REQUIRED]
LifecycleConfiguration (dict) --
ApiGatewayManagement Rules (list) -- [REQUIRED]
Api A lifecycle rule for individual objects in an Amazon S3 bucket.
(apigatewaymanagement
api.html) (dict) --
Expiration (dict) --
Boto 3 Docs 1.9.249
Date (datetime) --
documentation ( Indicates at what date the object is to be moved or deleted.
../../index.html) Should be in GMT ISO 8601 Format.

Days (integer) --
TABLE OF CONTENTS Indicates the lifetime, in days, of the objects that are subject to
the rule. The value must be a non-zero positive integer.
Quickstart
ExpiredObjectDeleteMarker (boolean) --
(../../guide/quickstart.html)
Indicates whether Amazon S3 will remove a delete marker with
A Sample Tutorial no noncurrent versions. If set to true, the delete marker will be
(../../guide/sqs.html) expired; if set to false the policy takes no action. This cannot be
Code Examples specified with Days or Date in a Lifecycle Expiration Policy.
(../../guide/examples.html) ID (string) --
Unique identifier for the rule. The value cannot be longer than 255
User Guides
characters.
(../../guide/index.html)
Prefix (string) --
Available Services (index.html) Prefix identifying one or more objects to which the rule applies.
ACM (acm.html) This is No longer used; use Filter instead.

ACMPCA (acm-pca.html) Filter (dict) --


Prefix (string) --
AlexaForBusiness
Prefix identifying one or more objects to which the rule applies.
(alexaforbusiness.html)
Tag (dict) --
Amplify (amplify.html)
This tag must exist in the object's tag set in order for the rule to
APIGateway apply.
(apigateway.html)
Key (string) -- [REQUIRED]
ApiGatewayManagement Name of the tag.
Api
Value (string) -- [REQUIRED]
(apigatewaymanagement
Value of the tag.
api.html)
And (dict) --
Boto 3 Docs 1.9.249
Prefix (string) --
documentation ( Tags (list) --
../../index.html) All of these tags must exist in the object's tag set in order for
the rule to apply.
TABLE OF CONTENTS (dict) --
Key (string) -- [REQUIRED]
Quickstart Name of the tag.
(../../guide/quickstart.html)
Value (string) -- [REQUIRED]
A Sample Tutorial Value of the tag.
(../../guide/sqs.html)
Status (string) -- [REQUIRED]
Code Examples If 'Enabled', the rule is currently being applied. If 'Disabled', the rule
(../../guide/examples.html) is not currently being applied.

User Guides Transitions (list) --


(../../guide/index.html) (dict) --
Specifies when an object transitions to a specified storage class.
Available Services (index.html)
Date (datetime) --
ACM (acm.html) Indicates when objects are transitioned to the specified
ACMPCA (acm-pca.html) storage class. The date value must be in ISO 8601 format. The
time is always midnight UTC.
AlexaForBusiness
(alexaforbusiness.html) Days (integer) --
Indicates the number of days after creation when objects are
Amplify (amplify.html)
transitioned to the specified storage class. The value must be a
APIGateway positive integer.
(apigateway.html)
StorageClass (string) --
ApiGatewayManagement The storage class to which you want the object to transition.
Api
NoncurrentVersionTransitions (list) --
(apigatewaymanagement
(dict) --
api.html)
Container for the transition rule that describes when noncurrent
Boto 3 Docs 1.9.249
objects transition to the STANDARD_IA , ONEZONE_IA ,
documentation ( INTELLIGENT_TIERING , GLACIER , or DEEP_ARCHIVE storage class.
../../index.html) If your bucket is versioning-enabled (or versioning is suspended),
you can set this action to request that Amazon S3 transition
TABLE OF CONTENTS noncurrent object versions to the STANDARD_IA , ONEZONE_IA ,
INTELLIGENT_TIERING , GLACIER , or DEEP_ARCHIVE storage class
Quickstart at a specific period in the object's lifetime.
(../../guide/quickstart.html) NoncurrentDays (integer) --
A Sample Tutorial Specifies the number of days an object is noncurrent before
(../../guide/sqs.html) Amazon S3 can perform the associated action. For information
about the noncurrent days calculations, see How Amazon S3
Code Examples
Calculates When an Object Became Noncurrent
(../../guide/examples.html)
(https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-
User Guides access-control.html) in the Amazon Simple Storage Service
(../../guide/index.html) Developer Guide .

StorageClass (string) --
Available Services (index.html)
The class of storage used to store the object.
ACM (acm.html)
NoncurrentVersionExpiration (dict) --
ACMPCA (acm-pca.html) NoncurrentDays (integer) --
AlexaForBusiness Specifies the number of days an object is noncurrent before
(alexaforbusiness.html) Amazon S3 can perform the associated action. For information
about the noncurrent days calculations, see How Amazon S3
Amplify (amplify.html) Calculates When an Object Became Noncurrent
APIGateway (https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-
(apigateway.html) lifecycle-rules.html#non-current-days-calculations) in the
Amazon Simple Storage Service Developer Guide.
ApiGatewayManagement
Api AbortIncompleteMultipartUpload (dict) --
(apigatewaymanagement DaysAfterInitiation (integer) --
api.html)
Specifies the number of days after which Amazon S3 aborts an
Boto 3 Docs 1.9.249
incomplete multipart upload.
documentation (
Returns
../../index.html)
None

TABLE OF CONTENTS

put_bucket_logging (**kwargs)
Quickstart
Set the logging parameters for a bucket and to specify permissions for who can
(../../guide/quickstart.html)
view and modify the logging parameters. To set the logging status of a bucket,
A Sample Tutorial you must be the bucket owner.
(../../guide/sqs.html)
See also: AWS API Documentation
Code Examples (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLogging)
(../../guide/examples.html)
Request Syntax
User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.put_bucket_logging(
documentation ( Bucket='string',
../../index.html) BucketLoggingStatus={
'LoggingEnabled': {
'TargetBucket': 'string',
TABLE OF CONTENTS
'TargetGrants': [
{
Quickstart
'Grantee': {
(../../guide/quickstart.html)
'DisplayName': 'string',
A Sample Tutorial 'EmailAddress': 'string',
(../../guide/sqs.html) 'ID': 'string',
Code Examples 'Type': 'CanonicalUser'|'AmazonCustomerByEmail
(../../guide/examples.html) 'URI': 'string'
},
User Guides
'Permission': 'FULL_CONTROL'|'READ'|'WRITE'
(../../guide/index.html)
},
Available Services (index.html) ],
'TargetPrefix': 'string'
ACM (acm.html)
}
ACMPCA (acm-pca.html) },

AlexaForBusiness
(alexaforbusiness.html) )

Amplify (amplify.html)

APIGateway Parameters
(apigateway.html) Bucket (string) -- [REQUIRED]
ApiGatewayManagement BucketLoggingStatus (dict) --
Api [REQUIRED]
(apigatewaymanagement LoggingEnabled (dict) --
api.html) TargetBucket (string) -- [REQUIRED]
Specifies the bucket where you want Amazon S3 to store server
Boto 3 Docs 1.9.249
access logs. You can have your logs delivered to any bucket that you
documentation ( own, including the same bucket that is being logged. You can also
../../index.html) configure multiple buckets to deliver their logs to the same target
bucket. In this case you should choose a different TargetPrefix for
TABLE OF CONTENTS each source bucket so that the delivered log files can be
distinguished by key.
Quickstart TargetGrants (list) --
(../../guide/quickstart.html) (dict) --
A Sample Tutorial Grantee (dict) --
(../../guide/sqs.html) DisplayName (string) --
Screen name of the grantee.
Code Examples
(../../guide/examples.html) EmailAddress (string) --
Email address of the grantee.
User Guides
ID (string) --
(../../guide/index.html)
The canonical user ID of the grantee.
Available Services (index.html) Type (string) -- [REQUIRED]
ACM (acm.html) Type of grantee

ACMPCA (acm-pca.html) URI (string) --


URI of the grantee group.
AlexaForBusiness
(alexaforbusiness.html) Permission (string) --
Logging permissions assigned to the Grantee for the bucket.
Amplify (amplify.html)
TargetPrefix (string) -- [REQUIRED]
APIGateway
A prefix for all log object keys. If you store log files from multiple
(apigateway.html)
Amazon S3 buckets in a single bucket, you can use a prefix to
ApiGatewayManagement distinguish which log files came from which bucket.
Api
Returns
(apigatewaymanagement
None
api.html)
Boto 3 Docs 1.9.249
put_bucket_metrics_configuration (**kwargs)
documentation (
Sets a metrics configuration (specified by the metrics configuration ID) for the
../../index.html)
bucket.

TABLE OF CONTENTS See also: AWS API Documentation


(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
01/PutBucketMetricsConfiguration)
Quickstart
(../../guide/quickstart.html) Request Syntax
A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.put_bucket_metrics_configuration(
documentation ( Bucket='string',
../../index.html) Id='string',
MetricsConfiguration={
'Id': 'string',
TABLE OF CONTENTS
'Filter': {
'Prefix': 'string',
Quickstart
'Tag': {
(../../guide/quickstart.html)
'Key': 'string',
A Sample Tutorial 'Value': 'string'
(../../guide/sqs.html) },
Code Examples 'And': {
(../../guide/examples.html) 'Prefix': 'string',
'Tags': [
User Guides
{
(../../guide/index.html)
'Key': 'string',
Available Services (index.html) 'Value': 'string'
},
ACM (acm.html)
]
ACMPCA (acm-pca.html) }
}
AlexaForBusiness
(alexaforbusiness.html) }
)
Amplify (amplify.html)

APIGateway
Parameters
(apigateway.html)
Bucket (string) --
ApiGatewayManagement [REQUIRED]
Api
The name of the bucket for which the metrics configuration is set.
(apigatewaymanagement
api.html) Id (string) --
[REQUIRED]
Boto 3 Docs 1.9.249
documentation ( The ID used to identify the metrics configuration.

../../index.html) MetricsConfiguration (dict) --


[REQUIRED]
TABLE OF CONTENTS Specifies the metrics configuration.
Id (string) -- [REQUIRED]
Quickstart
The ID used to identify the metrics configuration.
(../../guide/quickstart.html)
Filter (dict) --
A Sample Tutorial
Specifies a metrics configuration filter. The metrics configuration will
(../../guide/sqs.html)
only include objects that meet the filter's criteria. A filter must be a
Code Examples prefix, a tag, or a conjunction (MetricsAndOperator).
(../../guide/examples.html)
Prefix (string) --
User Guides The prefix used when evaluating a metrics filter.
(../../guide/index.html) Tag (dict) --
Available Services (index.html) The tag used when evaluating a metrics filter.

ACM (acm.html) Key (string) -- [REQUIRED]


Name of the tag.
ACMPCA (acm-pca.html)
Value (string) -- [REQUIRED]
AlexaForBusiness Value of the tag.
(alexaforbusiness.html)
And (dict) --
Amplify (amplify.html) A conjunction (logical AND) of predicates, which is used in evaluating
APIGateway a metrics filter. The operator must have at least two predicates, and
(apigateway.html) an object must match all of the predicates in order for the filter to
apply.
ApiGatewayManagement
Api Prefix (string) --
(apigatewaymanagement The prefix used when evaluating an AND predicate.
api.html) Tags (list) --
The list of tags used when evaluating an AND predicate.
Boto 3 Docs 1.9.249
documentation ( (dict) --
Key (string) -- [REQUIRED]
../../index.html)
Name of the tag.

TABLE OF CONTENTS Value (string) -- [REQUIRED]


Value of the tag.
Quickstart Returns
(../../guide/quickstart.html) None
A Sample Tutorial
(../../guide/sqs.html)
put_bucket_notification (**kwargs)
Code Examples
No longer used, see the PutBucketNotificationConfiguration operation.
(../../guide/examples.html)

User Guides
(../../guide/index.html) Danger
This operation is deprecated and may not function as expected. This
Available Services (index.html) operation should not be used going forward and is only kept for the
ACM (acm.html) purpose of backwards compatiblity.

ACMPCA (acm-pca.html)

AlexaForBusiness See also: AWS API Documentation


(alexaforbusiness.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
01/PutBucketNotification)
Amplify (amplify.html)
Request Syntax
APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.put_bucket_notification(
documentation ( Bucket='string',
../../index.html) NotificationConfiguration={
'TopicConfiguration': {
'Id': 'string',
TABLE OF CONTENTS
'Events': [
's3:ReducedRedundancyLostObject'|'s3:ObjectCreated:*'|
Quickstart
],
(../../guide/quickstart.html)
'Event': 's3:ReducedRedundancyLostObject'|'s3:ObjectCreate
A Sample Tutorial 'Topic': 'string'
(../../guide/sqs.html) },
Code Examples 'QueueConfiguration': {
(../../guide/examples.html) 'Id': 'string',
'Event': 's3:ReducedRedundancyLostObject'|'s3:ObjectCreate
User Guides
'Events': [
(../../guide/index.html)
's3:ReducedRedundancyLostObject'|'s3:ObjectCreated:*'|
Available Services (index.html) ],
'Queue': 'string'
ACM (acm.html)
},
ACMPCA (acm-pca.html) 'CloudFunctionConfiguration': {
'Id': 'string',
AlexaForBusiness
(alexaforbusiness.html) 'Event': 's3:ReducedRedundancyLostObject'|'s3:ObjectCreate
'Events': [
Amplify (amplify.html) 's3:ReducedRedundancyLostObject'|'s3:ObjectCreated:*'|
APIGateway ],
(apigateway.html) 'CloudFunction': 'string',
'InvocationRole': 'string'
ApiGatewayManagement
}
Api
}
(apigatewaymanagement
api.html) )
Boto 3 Docs 1.9.249
documentation ( Parameters
../../index.html) Bucket (string) -- [REQUIRED]
NotificationConfiguration (dict) --
TABLE OF CONTENTS [REQUIRED]

TopicConfiguration (dict) --
Quickstart Id (string) --
(../../guide/quickstart.html) An optional unique identifier for configurations in a notification
configuration. If you don't provide one, Amazon S3 will assign an ID.
A Sample Tutorial
(../../guide/sqs.html) Events (list) --
(string) --
Code Examples
The bucket event for which to send notifications.
(../../guide/examples.html)
Event (string) --
User Guides
Bucket event for which to send notifications.
(../../guide/index.html)
Topic (string) --
Available Services (index.html) Amazon SNS topic to which Amazon S3 will publish a message to
ACM (acm.html) report the specified events for the bucket.

ACMPCA (acm-pca.html) QueueConfiguration (dict) --


Id (string) --
AlexaForBusiness An optional unique identifier for configurations in a notification
(alexaforbusiness.html) configuration. If you don't provide one, Amazon S3 will assign an ID.
Amplify (amplify.html) Event (string) --
APIGateway The bucket event for which to send notifications.
(apigateway.html) Events (list) --
ApiGatewayManagement (string) --
Api The bucket event for which to send notifications.
(apigatewaymanagement Queue (string) --
api.html) CloudFunctionConfiguration (dict) --
Id (string) --
Boto 3 Docs 1.9.249
An optional unique identifier for configurations in a notification
documentation ( configuration. If you don't provide one, Amazon S3 will assign an ID.
../../index.html)
Event (string) --
The bucket event for which to send notifications.
TABLE OF CONTENTS
Events (list) --
(string) --
Quickstart
The bucket event for which to send notifications.
(../../guide/quickstart.html)
CloudFunction (string) --
A Sample Tutorial
InvocationRole (string) --
(../../guide/sqs.html)
Returns
Code Examples
(../../guide/examples.html) None

User Guides
(../../guide/index.html) put_bucket_notification_configuration (**kwargs)

Available Services (index.html) Enables notifications of specified events for a bucket.

ACM (acm.html) See also: AWS API Documentation


(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
ACMPCA (acm-pca.html) 01/PutBucketNotificationConfiguration)
AlexaForBusiness Request Syntax
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.put_bucket_notification_configuration(
documentation ( Bucket='string',
../../index.html) NotificationConfiguration={
'TopicConfigurations': [
{
TABLE OF CONTENTS
'Id': 'string',
'TopicArn': 'string',
Quickstart
'Events': [
(../../guide/quickstart.html)
's3:ReducedRedundancyLostObject'|'s3:ObjectCreated
A Sample Tutorial ],
(../../guide/sqs.html) 'Filter': {
Code Examples 'Key': {
(../../guide/examples.html) 'FilterRules': [
{
User Guides
'Name': 'prefix'|'suffix',
(../../guide/index.html)
'Value': 'string'
Available Services (index.html) },
]
ACM (acm.html)
}
ACMPCA (acm-pca.html) }
},
AlexaForBusiness
(alexaforbusiness.html) ],
'QueueConfigurations': [
Amplify (amplify.html) {
APIGateway 'Id': 'string',
(apigateway.html) 'QueueArn': 'string',
'Events': [
ApiGatewayManagement
's3:ReducedRedundancyLostObject'|'s3:ObjectCreated
Api
],
(apigatewaymanagement
api.html) 'Filter': {
'Key': {
Boto 3 Docs 1.9.249
'FilterRules': [
documentation ( {
../../index.html) 'Name': 'prefix'|'suffix',
'Value': 'string'
TABLE OF CONTENTS },
]
Quickstart }
(../../guide/quickstart.html) }
},
A Sample Tutorial
],
(../../guide/sqs.html)
'LambdaFunctionConfigurations': [
Code Examples {
(../../guide/examples.html) 'Id': 'string',
User Guides 'LambdaFunctionArn': 'string',
(../../guide/index.html) 'Events': [
's3:ReducedRedundancyLostObject'|'s3:ObjectCreated
Available Services (index.html) ],
ACM (acm.html) 'Filter': {
'Key': {
ACMPCA (acm-pca.html)
'FilterRules': [
AlexaForBusiness {
(alexaforbusiness.html) 'Name': 'prefix'|'suffix',

Amplify (amplify.html) 'Value': 'string'


},
APIGateway ]
(apigateway.html)
}
ApiGatewayManagement }
Api },
(apigatewaymanagement ]
api.html)
}
Boto 3 Docs 1.9.249
)
documentation (
../../index.html)
Parameters
TABLE OF CONTENTS
Bucket (string) -- [REQUIRED]
NotificationConfiguration (dict) --
Quickstart [REQUIRED]
(../../guide/quickstart.html)
TopicConfigurations (list) --
A Sample Tutorial The topic to which notifications are sent and the events for which
(../../guide/sqs.html) notifications are generated.
Code Examples (dict) --
(../../guide/examples.html) A container for specifying the configuration for publication of
messages to an Amazon Simple Notification Service (Amazon SNS)
User Guides
topic when Amazon S3 detects specified events.
(../../guide/index.html)
Id (string) --
Available Services (index.html)
An optional unique identifier for configurations in a notification
ACM (acm.html) configuration. If you don't provide one, Amazon S3 will assign an
ID.
ACMPCA (acm-pca.html)
TopicArn (string) -- [REQUIRED]
AlexaForBusiness
The Amazon Resource Name (ARN) of the Amazon SNS topic to
(alexaforbusiness.html)
which Amazon S3 publishes a message when it detects events of
Amplify (amplify.html) the specified type.
APIGateway Events (list) -- [REQUIRED]
(apigateway.html) The Amazon S3 bucket event about which to send notifications. For
more information, see Supported Event Types
ApiGatewayManagement
(https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.h
Api
in the Amazon Simple Storage Service Developer Guide .
(apigatewaymanagement
api.html) (string) --
The bucket event for which to send notifications.
Boto 3 Docs 1.9.249
documentation ( Filter (dict) --
Key (dict) --
../../index.html)
FilterRules (list) --
(dict) --
TABLE OF CONTENTS Specifies the Amazon S3 object key name to filter on and
whether to filter on the suffix or prefix of the key name.
Quickstart
Name (string) --
(../../guide/quickstart.html)
The object key name prefix or suffix identifying one or
A Sample Tutorial more objects to which the filtering rule applies. The
(../../guide/sqs.html) maximum length is 1,024 characters. Overlapping prefixes
Code Examples and suffixes are not supported. For more information, see
(../../guide/examples.html) Configuring Event Notifications
(https://docs.aws.amazon.com/AmazonS3/latest/dev/Notification
User Guides in the Amazon Simple Storage Service Developer Guide .
(../../guide/index.html)
Value (string) --
Available Services (index.html) The value that the filter searches for in object key names.

ACM (acm.html) QueueConfigurations (list) --


The Amazon Simple Queue Service queues to publish messages to and
ACMPCA (acm-pca.html)
the events for which to publish messages.
AlexaForBusiness
(dict) --
(alexaforbusiness.html)
Specifies the configuration for publishing messages to an Amazon
Amplify (amplify.html) Simple Queue Service (Amazon SQS) queue when Amazon S3 detects
specified events.
APIGateway
(apigateway.html) Id (string) --
An optional unique identifier for configurations in a notification
ApiGatewayManagement
configuration. If you don't provide one, Amazon S3 will assign an
Api
ID.
(apigatewaymanagement
api.html) QueueArn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the Amazon SQS queue to
Boto 3 Docs 1.9.249
which Amazon S3 publishes a message when it detects events of
documentation ( the specified type.
../../index.html)
Events (list) -- [REQUIRED]
(string) --
TABLE OF CONTENTS The bucket event for which to send notifications.

Filter (dict) --
Quickstart
Key (dict) --
(../../guide/quickstart.html)
FilterRules (list) --
A Sample Tutorial (dict) --
(../../guide/sqs.html) Specifies the Amazon S3 object key name to filter on and
Code Examples whether to filter on the suffix or prefix of the key name.
(../../guide/examples.html) Name (string) --
The object key name prefix or suffix identifying one or
User Guides
more objects to which the filtering rule applies. The
(../../guide/index.html)
maximum length is 1,024 characters. Overlapping prefixes
Available Services (index.html) and suffixes are not supported. For more information, see
Configuring Event Notifications
ACM (acm.html)
(https://docs.aws.amazon.com/AmazonS3/latest/dev/Notification
ACMPCA (acm-pca.html) in the Amazon Simple Storage Service Developer Guide .

AlexaForBusiness Value (string) --


(alexaforbusiness.html) The value that the filter searches for in object key names.

Amplify (amplify.html) LambdaFunctionConfigurations (list) --


Describes the AWS Lambda functions to invoke and the events for
APIGateway
which to invoke them.
(apigateway.html)
(dict) --
ApiGatewayManagement
A container for specifying the configuration for AWS Lambda
Api
notifications.
(apigatewaymanagement
api.html) Id (string) --
An optional unique identifier for configurations in a notification
Boto 3 Docs 1.9.249
configuration. If you don't provide one, Amazon S3 will assign an
documentation ( ID.
../../index.html)
LambdaFunctionArn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the AWS Lambda function
TABLE OF CONTENTS that Amazon S3 invokes when the specified event type occurs.

Events (list) -- [REQUIRED]


Quickstart
The Amazon S3 bucket event for which to invoke the AWS Lambda
(../../guide/quickstart.html)
function. For more information, see Supported Event Types
A Sample Tutorial (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.h
(../../guide/sqs.html) in the Amazon Simple Storage Service Developer Guide .
Code Examples (string) --
(../../guide/examples.html) The bucket event for which to send notifications.

User Guides Filter (dict) --


(../../guide/index.html) Key (dict) --
FilterRules (list) --
Available Services (index.html) (dict) --
ACM (acm.html) Specifies the Amazon S3 object key name to filter on and
whether to filter on the suffix or prefix of the key name.
ACMPCA (acm-pca.html)
Name (string) --
AlexaForBusiness
The object key name prefix or suffix identifying one or
(alexaforbusiness.html)
more objects to which the filtering rule applies. The
Amplify (amplify.html) maximum length is 1,024 characters. Overlapping prefixes
and suffixes are not supported. For more information, see
APIGateway
Configuring Event Notifications
(apigateway.html)
(https://docs.aws.amazon.com/AmazonS3/latest/dev/Notification
ApiGatewayManagement in the Amazon Simple Storage Service Developer Guide .
Api
Value (string) --
(apigatewaymanagement
The value that the filter searches for in object key names.
api.html)
Returns
Boto 3 Docs 1.9.249
None
documentation (
../../index.html)
put_bucket_policy (**kwargs)
TABLE OF CONTENTS Applies an Amazon S3 bucket policy to an Amazon S3 bucket.
See also: AWS API Documentation
Quickstart
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketPolicy)
(../../guide/quickstart.html)
Request Syntax
A Sample Tutorial
(../../guide/sqs.html)
response = client.put_bucket_policy(
Code Examples
Bucket='string',
(../../guide/examples.html)
ConfirmRemoveSelfBucketAccess=True|False,
User Guides Policy='string'
(../../guide/index.html) )

Available Services (index.html)


Parameters
ACM (acm.html)
Bucket (string) -- [REQUIRED]
ACMPCA (acm-pca.html) ConfirmRemoveSelfBucketAccess (boolean) -- Set this parameter to
AlexaForBusiness true to confirm that you want to remove your permissions to change this
(alexaforbusiness.html) bucket policy in the future.
Policy (string) --
Amplify (amplify.html)
[REQUIRED]
APIGateway
The bucket policy as a JSON document.
(apigateway.html)
Returns
ApiGatewayManagement
None
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 put_bucket_replication (**kwargs)
Creates a replication configuration or replaces an existing one. For more
documentation (
information, see Cross-Region Replication (CRR)
../../index.html) (https://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html) in the Amazon S3
Developer Guide .
TABLE OF CONTENTS
See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
Quickstart
01/PutBucketReplication)
(../../guide/quickstart.html)
Request Syntax
A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.put_bucket_replication(
documentation ( Bucket='string',
../../index.html) ReplicationConfiguration={
'Role': 'string',
'Rules': [
TABLE OF CONTENTS
{
'ID': 'string',
Quickstart
'Priority': 123,
(../../guide/quickstart.html)
'Prefix': 'string',
A Sample Tutorial 'Filter': {
(../../guide/sqs.html) 'Prefix': 'string',
Code Examples 'Tag': {
(../../guide/examples.html) 'Key': 'string',
'Value': 'string'
User Guides
},
(../../guide/index.html)
'And': {
Available Services (index.html) 'Prefix': 'string',
'Tags': [
ACM (acm.html)
{
ACMPCA (acm-pca.html) 'Key': 'string',
'Value': 'string'
AlexaForBusiness
(alexaforbusiness.html) },
]
Amplify (amplify.html) }
APIGateway },
(apigateway.html) 'Status': 'Enabled'|'Disabled',
'SourceSelectionCriteria': {
ApiGatewayManagement
'SseKmsEncryptedObjects': {
Api
'Status': 'Enabled'|'Disabled'
(apigatewaymanagement
api.html) }
},
Boto 3 Docs 1.9.249
'Destination': {
documentation ( 'Bucket': 'string',
../../index.html) 'Account': 'string',
'StorageClass': 'STANDARD'|'REDUCED_REDUNDANCY'|'S
TABLE OF CONTENTS 'AccessControlTranslation': {
'Owner': 'Destination'
Quickstart },
(../../guide/quickstart.html) 'EncryptionConfiguration': {
'ReplicaKmsKeyID': 'string'
A Sample Tutorial
}
(../../guide/sqs.html)
},
Code Examples 'DeleteMarkerReplication': {
(../../guide/examples.html) 'Status': 'Enabled'|'Disabled'
User Guides }
(../../guide/index.html) },
]
Available Services (index.html) },
ACM (acm.html) Token='string'
)
ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)
Parameters
Amplify (amplify.html) Bucket (string) -- [REQUIRED]
ReplicationConfiguration (dict) --
APIGateway
[REQUIRED]
(apigateway.html)
Role (string) -- [REQUIRED]
ApiGatewayManagement
The Amazon Resource Name (ARN) of the AWS Identity and Access
Api
Management (IAM) role that Amazon S3 assumes when replicating
(apigatewaymanagement
objects. For more information, see How to Set Up Cross-Region
api.html)
Replication (https://docs.aws.amazon.com/AmazonS3/latest/dev/crr-
Boto 3 Docs 1.9.249
how-setup.html) in the Amazon Simple Storage Service Developer Guide .
documentation (
Rules (list) -- [REQUIRED]
../../index.html)
A container for one or more replication rules. A replication
configuration must have at least one rule and can contain a maximum
TABLE OF CONTENTS of 1,000 rules.

(dict) --
Quickstart
Specifies which Amazon S3 objects to replicate and where to store
(../../guide/quickstart.html)
the replicas.
A Sample Tutorial
ID (string) --
(../../guide/sqs.html)
A unique identifier for the rule. The maximum value is 255
Code Examples characters.
(../../guide/examples.html)
Priority (integer) --
User Guides The priority associated with the rule. If you specify multiple rules in
(../../guide/index.html) a replication configuration, Amazon S3 prioritizes the rules to
prevent conflicts when filtering. If two or more rules identify the
Available Services (index.html) same object based on a specified filter, the rule with higher priority
ACM (acm.html) takes precedence. For example:

ACMPCA (acm-pca.html) Same object quality prefix based filter criteria If prefixes you
specified in multiple rules overlap
AlexaForBusiness
Same object qualify tag based filter criteria specified in multiple
(alexaforbusiness.html)
rules
Amplify (amplify.html) For more information, see Cross-Region Replication (CRR)
(https://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html) in
APIGateway
the Amazon S3 Developer Guide .
(apigateway.html)
Prefix (string) --
ApiGatewayManagement
An object keyname prefix that identifies the object or objects to
Api
which the rule applies. The maximum prefix length is 1,024
(apigatewaymanagement
characters. To include all objects in a bucket, specify an empty
api.html)
string.
Boto 3 Docs 1.9.249
documentation ( Filter (dict) --
Prefix (string) --
../../index.html)
An object keyname prefix that identifies the subset of objects to
which the rule applies.
TABLE OF CONTENTS
Tag (dict) --
A container for specifying a tag key and value.
Quickstart
(../../guide/quickstart.html) The rule applies only to objects that have the tag in their tag set.
A Sample Tutorial Key (string) -- [REQUIRED]
(../../guide/sqs.html) Name of the tag.
Code Examples Value (string) -- [REQUIRED]
(../../guide/examples.html) Value of the tag.

User Guides And (dict) --


(../../guide/index.html) A container for specifying rule filters. The filters determine the
subset of objects to which the rule applies. This element is
Available Services (index.html) required only if you specify more than one filter. For example:
ACM (acm.html) If you specify both a Prefix and a Tag filter, wrap these filters
ACMPCA (acm-pca.html) in an And tag.
If you specify a filter based on multiple tags, wrap the Tag
AlexaForBusiness
elements in an And tag.
(alexaforbusiness.html)
Prefix (string) --
Amplify (amplify.html) Tags (list) --
(dict) --
APIGateway
Key (string) -- [REQUIRED]
(apigateway.html)
Name of the tag.
ApiGatewayManagement
Value (string) -- [REQUIRED]
Api
Value of the tag.
(apigatewaymanagement
api.html) Status (string) -- [REQUIRED]
Specifies whether the rule is enabled.
Boto 3 Docs 1.9.249
documentation ( SourceSelectionCriteria (dict) --
A container that describes additional filters for identifying the
../../index.html)
source objects that you want to replicate. You can choose to
enable or disable the replication of these objects. Currently,
TABLE OF CONTENTS Amazon S3 supports only the filter that you can specify for objects
created with server-side encryption using an AWS KMS-Managed
Quickstart Key (SSE-KMS).
(../../guide/quickstart.html)
SseKmsEncryptedObjects (dict) --
A Sample Tutorial A container for filter information for the selection of Amazon S3
(../../guide/sqs.html) objects encrypted with AWS KMS. If you include
Code Examples SourceSelectionCriteria in the replication configuration, this
(../../guide/examples.html) element is required.

Status (string) -- [REQUIRED]


User Guides
Specifies whether Amazon S3 replicates objects created with
(../../guide/index.html)
server-side encryption using an AWS KMS-managed key.
Available Services (index.html)
Destination (dict) -- [REQUIRED]
ACM (acm.html) A container for information about the replication destination.

ACMPCA (acm-pca.html) Bucket (string) -- [REQUIRED]


The Amazon Resource Name (ARN) of the bucket where you
AlexaForBusiness
want Amazon S3 to store replicas of the object identified by the
(alexaforbusiness.html)
rule.
Amplify (amplify.html)
A replication configuration can replicate objects to only one
APIGateway destination bucket. If there are multiple rules in your replication
(apigateway.html) configuration, all rules must specify the same destination bucket.
ApiGatewayManagement Account (string) --
Api Destination bucket owner account ID. In a cross-account
(apigatewaymanagement scenario, if you direct Amazon S3 to change replica ownership to
api.html) the AWS account that owns the destination bucket by specifying
the AccessControlTranslation property, this is the account ID of
Boto 3 Docs 1.9.249
the destination bucket owner. For more information, see Cross-
documentation ( Region Replication Additional Configuration: Change Replica
../../index.html) Owner (https://docs.aws.amazon.com/AmazonS3/latest/dev/crr-
change-owner.html) in the Amazon Simple Storage Service
TABLE OF CONTENTS Developer Guide .

StorageClass (string) --
Quickstart The storage class to use when replicating objects, such as
(../../guide/quickstart.html) standard or reduced redundancy. By default, Amazon S3 uses
A Sample Tutorial the storage class of the source object to create the object replica.
(../../guide/sqs.html) For valid values, see the StorageClass element of the PUT
Code Examples Bucket replication
(../../guide/examples.html) (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTrep
action in the Amazon Simple Storage Service API Reference .
User Guides
AccessControlTranslation (dict) --
(../../guide/index.html)
Specify this only in a cross-account scenario (where source and
Available Services (index.html) destination bucket owners are not the same), and you want to
change replica ownership to the AWS account that owns the
ACM (acm.html)
destination bucket. If this is not specified in the replication
ACMPCA (acm-pca.html) configuration, the replicas are owned by same AWS account that
owns the source object.
AlexaForBusiness
(alexaforbusiness.html) Owner (string) -- [REQUIRED]
Specifies the replica ownership. For default and valid values,
Amplify (amplify.html)
see PUT bucket replication
APIGateway (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTr
(apigateway.html) in the Amazon Simple Storage Service API Reference .
ApiGatewayManagement EncryptionConfiguration (dict) --
Api A container that provides information about encryption. If
(apigatewaymanagement SourceSelectionCriteria is specified, you must specify this
api.html) element.
ReplicaKmsKeyID (string) --
Boto 3 Docs 1.9.249
Specifies the AWS KMS Key ID (Key ARN or Alias ARN) for the
documentation ( destination bucket. Amazon S3 uses this key to encrypt replica
../../index.html) objects.

DeleteMarkerReplication (dict) --
TABLE OF CONTENTS Status (string) --
The status of the delete marker replication.
Quickstart
(../../guide/quickstart.html)
Note
A Sample Tutorial
In the current implementation, Amazon S3 doesn't
(../../guide/sqs.html)
replicate the delete markers. The status must be Disabled
Code Examples .
(../../guide/examples.html)

User Guides
Token (string) -- A token that allows Amazon S3 object lock to be enabled
(../../guide/index.html)
for an existing bucket.
Available Services (index.html) Returns
ACM (acm.html) None

ACMPCA (acm-pca.html)

AlexaForBusiness put_bucket_request_payment (**kwargs)


(alexaforbusiness.html) Sets the request payment configuration for a bucket. By default, the bucket
Amplify (amplify.html) owner pays for downloads from the bucket. This configuration parameter
enables the bucket owner (only) to specify that the person requesting the
APIGateway
download will be charged for the download. Documentation on requester pays
(apigateway.html)
buckets can be found at
ApiGatewayManagement http://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html
Api (http://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html)
(apigatewaymanagement
api.html)
See also: AWS API Documentation
Boto 3 Docs 1.9.249
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
documentation ( 01/PutBucketRequestPayment)
../../index.html)
Request Syntax

TABLE OF CONTENTS
response = client.put_bucket_request_payment(
Quickstart Bucket='string',
(../../guide/quickstart.html) RequestPaymentConfiguration={
'Payer': 'Requester'|'BucketOwner'
A Sample Tutorial
}
(../../guide/sqs.html)
)
Code Examples
(../../guide/examples.html)
Parameters
User Guides Bucket (string) -- [REQUIRED]
(../../guide/index.html) RequestPaymentConfiguration (dict) --
[REQUIRED]
Available Services (index.html)
Payer (string) -- [REQUIRED]
ACM (acm.html)
Specifies who pays for the download and request fees.
ACMPCA (acm-pca.html)
Returns
AlexaForBusiness None
(alexaforbusiness.html)

Amplify (amplify.html)
put_bucket_tagging (**kwargs)
APIGateway
Sets the tags for a bucket.
(apigateway.html)
See also: AWS API Documentation
ApiGatewayManagement
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketTagging)
Api
(apigatewaymanagement Request Syntax
api.html)
Boto 3 Docs 1.9.249 response = client.put_bucket_tagging(
documentation ( Bucket='string',
../../index.html) Tagging={
'TagSet': [
{
TABLE OF CONTENTS
'Key': 'string',
'Value': 'string'
Quickstart
},
(../../guide/quickstart.html)
]
A Sample Tutorial }
(../../guide/sqs.html) )
Code Examples
(../../guide/examples.html)
Parameters
User Guides Bucket (string) -- [REQUIRED]
(../../guide/index.html) Tagging (dict) --
[REQUIRED]
Available Services (index.html)
TagSet (list) -- [REQUIRED]
ACM (acm.html) (dict) --
ACMPCA (acm-pca.html) Key (string) -- [REQUIRED]
Name of the tag.
AlexaForBusiness
(alexaforbusiness.html) Value (string) -- [REQUIRED]
Value of the tag.
Amplify (amplify.html)
Returns
APIGateway
None
(apigateway.html)

ApiGatewayManagement
Api put_bucket_versioning (**kwargs)
(apigatewaymanagement Sets the versioning state of an existing bucket. To set the versioning state, you
api.html) must be the bucket owner.
See also: AWS API Documentation
Boto 3 Docs 1.9.249
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
documentation ( 01/PutBucketVersioning)
../../index.html)
Request Syntax

TABLE OF CONTENTS
response = client.put_bucket_versioning(

Quickstart Bucket='string',
(../../guide/quickstart.html) MFA='string',
VersioningConfiguration={
A Sample Tutorial
'MFADelete': 'Enabled'|'Disabled',
(../../guide/sqs.html)
'Status': 'Enabled'|'Suspended'
Code Examples }
(../../guide/examples.html) )

User Guides
(../../guide/index.html) Parameters
Bucket (string) -- [REQUIRED]
Available Services (index.html)
MFA (string) -- The concatenation of the authentication device's serial
ACM (acm.html) number, a space, and the value that is displayed on your authentication
device.
ACMPCA (acm-pca.html)
VersioningConfiguration (dict) --
AlexaForBusiness [REQUIRED]
(alexaforbusiness.html)
MFADelete (string) --
Amplify (amplify.html) Specifies whether MFA delete is enabled in the bucket versioning
APIGateway configuration. This element is only returned if the bucket has been
(apigateway.html) configured with MFA delete. If the bucket has never been so
configured, this element is not returned.
ApiGatewayManagement
Api Status (string) --
(apigatewaymanagement The versioning state of the bucket.
api.html) Returns
None
Boto 3 Docs 1.9.249
documentation (
../../index.html) put_bucket_website (**kwargs)
Set the website configuration for a bucket.
TABLE OF CONTENTS
See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketWebsite)
Quickstart
(../../guide/quickstart.html) Request Syntax

A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.put_bucket_website(
documentation ( Bucket='string',
../../index.html) WebsiteConfiguration={
'ErrorDocument': {
'Key': 'string'
TABLE OF CONTENTS
},
'IndexDocument': {
Quickstart
'Suffix': 'string'
(../../guide/quickstart.html)
},
A Sample Tutorial 'RedirectAllRequestsTo': {
(../../guide/sqs.html) 'HostName': 'string',
Code Examples 'Protocol': 'http'|'https'
(../../guide/examples.html) },
'RoutingRules': [
User Guides
{
(../../guide/index.html)
'Condition': {
Available Services (index.html) 'HttpErrorCodeReturnedEquals': 'string',
'KeyPrefixEquals': 'string'
ACM (acm.html)
},
ACMPCA (acm-pca.html) 'Redirect': {
'HostName': 'string',
AlexaForBusiness
(alexaforbusiness.html) 'HttpRedirectCode': 'string',
'Protocol': 'http'|'https',
Amplify (amplify.html) 'ReplaceKeyPrefixWith': 'string',
APIGateway 'ReplaceKeyWith': 'string'
(apigateway.html) }
},
ApiGatewayManagement
]
Api
}
(apigatewaymanagement
api.html) )
Boto 3 Docs 1.9.249
Parameters
documentation ( Bucket (string) -- [REQUIRED]
../../index.html) WebsiteConfiguration (dict) --
[REQUIRED]
TABLE OF CONTENTS
ErrorDocument (dict) --
The name of the error document for the website.
Quickstart
(../../guide/quickstart.html) Key (string) -- [REQUIRED]
The object key name to use when a 4XX class error occurs.
A Sample Tutorial
(../../guide/sqs.html) IndexDocument (dict) --
The name of the index document for the website.
Code Examples
(../../guide/examples.html) Suffix (string) -- [REQUIRED]
A suffix that is appended to a request that is for a directory on the
User Guides website endpoint (e.g. if the suffix is index.html and you make a
(../../guide/index.html) 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
Available Services (index.html)
be empty and must not include a slash character.
ACM (acm.html)
RedirectAllRequestsTo (dict) --
ACMPCA (acm-pca.html) The redirect behavior for every request to this bucket's website
endpoint.
AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html) Warning


If you specify this property, you can't specify any other property.
APIGateway
(apigateway.html)

ApiGatewayManagement HostName (string) -- [REQUIRED]


Api Name of the host where requests are redirected.
(apigatewaymanagement
Protocol (string) --
api.html)
Protocol to use when redirecting requests. The default is the protocol
Boto 3 Docs 1.9.249
that is used in the original request.
documentation (
RoutingRules (list) --
../../index.html)
Rules that define when a redirect is applied and the redirect behavior.

TABLE OF CONTENTS (dict) --


Specifies the redirect behavior and when a redirect is applied.
Quickstart Condition (dict) --
(../../guide/quickstart.html) 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
A Sample Tutorial
the /docs folder, redirect to the /documents folder. 2. If request
(../../guide/sqs.html)
results in HTTP error 4xx, redirect request to another host where
Code Examples you might process the error.
(../../guide/examples.html)
HttpErrorCodeReturnedEquals (string) --
User Guides The HTTP error code when the redirect is applied. In the event of
(../../guide/index.html) an error, if the error code equals this value, then the specified
redirect is applied. Required when parent element Condition is
Available Services (index.html)
specified and sibling KeyPrefixEquals is not specified. If both are
ACM (acm.html) specified, then both must be true for the redirect to be applied.

ACMPCA (acm-pca.html) KeyPrefixEquals (string) --


The object key name prefix when the redirect is applied. For
AlexaForBusiness
example, to redirect requests for ExamplePage.html , the key
(alexaforbusiness.html)
prefix will be ExamplePage.html . To redirect request for all
Amplify (amplify.html) pages with the prefix docs/ , the key prefix will be /docs , which
APIGateway identifies all objects in the docs/ folder. Required when the
(apigateway.html) parent element Condition is specified and sibling
HttpErrorCodeReturnedEquals is not specified. If both conditions
ApiGatewayManagement
are specified, both must be true for the redirect to be applied.
Api
(apigatewaymanagement Redirect (dict) -- [REQUIRED]
api.html)
Container for redirect information. You can redirect requests to
Boto 3 Docs 1.9.249
another host, to another page, or with another protocol. In the
documentation ( event of an error, you can specify a different error code to return.
../../index.html)
HostName (string) --
The host name to use in the redirect request.
TABLE OF CONTENTS
HttpRedirectCode (string) --
The HTTP redirect code to use on the response. Not required if
Quickstart
one of the siblings is present.
(../../guide/quickstart.html)
Protocol (string) --
A Sample Tutorial
Protocol to use when redirecting requests. The default is the
(../../guide/sqs.html)
protocol that is used in the original request.
Code Examples
ReplaceKeyPrefixWith (string) --
(../../guide/examples.html)
The object key prefix to use in the redirect request. For example,
User Guides to redirect requests for all pages with prefix docs/ (objects in the
(../../guide/index.html) docs/ folder) to documents/ , you can set a condition block with
KeyPrefixEquals set to docs/ and in the Redirect set
Available Services (index.html)
ReplaceKeyPrefixWith to /documents . Not required if one of the
ACM (acm.html) siblings is present. Can be present only if ReplaceKeyWith is not
ACMPCA (acm-pca.html)
provided.

AlexaForBusiness
ReplaceKeyWith (string) --
(alexaforbusiness.html)
The specific object key to use in the redirect request. For
example, redirect request to error.html . Not required if one of
Amplify (amplify.html) the siblings is present. Can be present only if
APIGateway ReplaceKeyPrefixWith is not provided.
(apigateway.html) Returns
ApiGatewayManagement None
Api
(apigatewaymanagement
api.html) put_object (**kwargs)
Adds an object to a bucket.
Boto 3 Docs 1.9.249
documentation ( See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObject)
../../index.html)
Request Syntax
TABLE OF CONTENTS

Quickstart
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.put_object(
documentation ( ACL='private'|'public-read'|'public-read-write'|'authenticated-rea
../../index.html) Body=b'bytes'|file,
Bucket='string',
CacheControl='string',
TABLE OF CONTENTS
ContentDisposition='string',
ContentEncoding='string',
Quickstart
ContentLanguage='string',
(../../guide/quickstart.html)
ContentLength=123,
A Sample Tutorial ContentMD5='string',
(../../guide/sqs.html) ContentType='string',
Code Examples Expires=datetime(2015, 1, 1),
(../../guide/examples.html) GrantFullControl='string',
GrantRead='string',
User Guides
GrantReadACP='string',
(../../guide/index.html)
GrantWriteACP='string',
Available Services (index.html) Key='string',
Metadata={
ACM (acm.html)
'string': 'string'
ACMPCA (acm-pca.html) },
ServerSideEncryption='AES256'|'aws:kms',
AlexaForBusiness
(alexaforbusiness.html) StorageClass='STANDARD'|'REDUCED_REDUNDANCY'|'STANDARD_IA'|'ONEZON
WebsiteRedirectLocation='string',
Amplify (amplify.html) SSECustomerAlgorithm='string',
APIGateway SSECustomerKey='string',
(apigateway.html) SSEKMSKeyId='string',
SSEKMSEncryptionContext='string',
ApiGatewayManagement
RequestPayer='requester',
Api
Tagging='string',
(apigatewaymanagement
api.html) ObjectLockMode='GOVERNANCE'|'COMPLIANCE',
ObjectLockRetainUntilDate=datetime(2015, 1, 1),
Boto 3 Docs 1.9.249
ObjectLockLegalHoldStatus='ON'|'OFF'
documentation ( )
../../index.html)

TABLE OF CONTENTS Parameters


ACL (string) -- The canned ACL to apply to the object.
Quickstart Body (bytes or seekable file-like object) -- Object data.
(../../guide/quickstart.html) Bucket (string) --
A Sample Tutorial [REQUIRED]
(../../guide/sqs.html) Name of the bucket to which the PUT operation was initiated.
Code Examples CacheControl (string) -- Specifies caching behavior along the
(../../guide/examples.html) request/reply chain.
User Guides
ContentDisposition (string) -- Specifies presentational information for
(../../guide/index.html)
the object.
ContentEncoding (string) -- Specifies what content encodings have been
Available Services (index.html) applied to the object and thus what decoding mechanisms must be
applied to obtain the media-type referenced by the Content-Type header
ACM (acm.html)
field.
ACMPCA (acm-pca.html) ContentLanguage (string) -- The language the content is in.
AlexaForBusiness
ContentLength (integer) -- Size of the body in bytes. This parameter is
(alexaforbusiness.html)
useful when the size of the body cannot be determined automatically.
ContentMD5 (string) -- The base64-encoded 128-bit MD5 digest of the
Amplify (amplify.html) part data. This parameter is auto-populated when using the command
APIGateway from the CLI. This parameted is required if object lock parameters are
(apigateway.html) specified.
ContentType (string) -- A standard MIME type describing the format of
ApiGatewayManagement the object data.
Api Expires (datetime) -- The date and time at which the object is no longer
(apigatewaymanagement cacheable.
api.html)
GrantFullControl (string) -- Gives the grantee READ, READ_ACP, and
Boto 3 Docs 1.9.249
WRITE_ACP permissions on the object.
documentation ( GrantRead (string) -- Allows grantee to read the object data and its
../../index.html) metadata.
GrantReadACP (string) -- Allows grantee to read the object ACL.
TABLE OF CONTENTS GrantWriteACP (string) -- Allows grantee to write the ACL for the
applicable object.
Quickstart Key (string) --
(../../guide/quickstart.html) [REQUIRED]

A Sample Tutorial Object key for which the PUT operation was initiated.
(../../guide/sqs.html) Metadata (dict) --
Code Examples A map of metadata to store with the object in S3.
(../../guide/examples.html) (string) --
(string) --
User Guides
ServerSideEncryption (string) -- The Server-side encryption algorithm
(../../guide/index.html)
used when storing this object in S3 (e.g., AES256, aws:kms).
Available Services (index.html) StorageClass (string) -- The type of storage to use for the object. Defaults
to 'STANDARD'.
ACM (acm.html)
WebsiteRedirectLocation (string) -- If the bucket is configured as a
ACMPCA (acm-pca.html) 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
AlexaForBusiness
in the object metadata.
(alexaforbusiness.html)
SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
Amplify (amplify.html) encrypting the object (e.g., AES256).
SSECustomerKey (string) -- Specifies the customer-provided encryption
APIGateway
key for Amazon S3 to use in encrypting data. This value is used to store
(apigateway.html)
the object and then it is discarded; Amazon does not store the encryption
ApiGatewayManagement key. The key must be appropriate for use with the algorithm specified in
Api the x-amz-server-side-encryption-customer-algorithm header.
(apigatewaymanagement SSECustomerKeyMD5 (string) --
api.html)
Specifies the 128-bit MD5 digest of the encryption key according to RFC
Boto 3 Docs 1.9.249
1321. Amazon S3 uses this header for a message integrity check to
documentation ( ensure the encryption key was transmitted without error.
../../index.html)

Please note that this parameter is automatically populated if it is not


TABLE OF CONTENTS
provided. Including this parameter is not required

Quickstart
(../../guide/quickstart.html) SSEKMSKeyId (string) -- Specifies the AWS KMS key ID to use for object
encryption. All GET and PUT requests for an object protected by AWS KMS
A Sample Tutorial
will fail if not made via SSL or using SigV4. Documentation on configuring
(../../guide/sqs.html)
any of the officially supported AWS SDKs and CLI can be found at
Code Examples http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-
(../../guide/examples.html) signature-version
(http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify
User Guides
signature-version)
(../../guide/index.html)
SSEKMSEncryptionContext (string) -- Specifies the AWS KMS Encryption
Available Services (index.html) 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
ACM (acm.html)
pairs.
ACMPCA (acm-pca.html) RequestPayer (string) -- Confirms that the requester knows that she or
he will be charged for the request. Bucket owners need not specify this
AlexaForBusiness
parameter in their requests. Documentation on downloading objects
(alexaforbusiness.html)
from requester pays buckets can be found at
Amplify (amplify.html) http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
APIGateway
Tagging (string) -- The tag-set for the object. The tag-set must be encoded
(apigateway.html)
as URL Query parameters. (For example, "Key1=Value1")
ApiGatewayManagement ObjectLockMode (string) -- The object lock mode that you want to apply
Api to this object.
(apigatewaymanagement ObjectLockRetainUntilDate (datetime) -- The date and time when you
api.html) want this object's object lock to expire.
ObjectLockLegalHoldStatus (string) -- The Legal Hold status that you
Boto 3 Docs 1.9.249
want to apply to the specified object.
documentation (
Return type
../../index.html)
dict

TABLE OF CONTENTS Returns

Response Syntax
Quickstart
(../../guide/quickstart.html)
{
A Sample Tutorial 'Expiration': 'string',
(../../guide/sqs.html) 'ETag': 'string',
Code Examples 'ServerSideEncryption': 'AES256'|'aws:kms',
(../../guide/examples.html) 'VersionId': 'string',
'SSECustomerAlgorithm': 'string',
User Guides
'SSECustomerKeyMD5': 'string',
(../../guide/index.html)
'SSEKMSKeyId': 'string',
Available Services (index.html) 'SSEKMSEncryptionContext': 'string',
'RequestCharged': 'requester'
ACM (acm.html)
}
ACMPCA (acm-pca.html)

AlexaForBusiness Response Structure


(alexaforbusiness.html)
(dict) --
Amplify (amplify.html)
Expiration (string) --
APIGateway
(apigateway.html) If the object expiration is configured, this will contain the expiration
date (expiry-date) and rule ID (rule-id). The value of rule-id is URL
ApiGatewayManagement encoded.
Api
(apigatewaymanagement ETag (string) --
api.html) Entity tag for the uploaded object.
ServerSideEncryption (string) --
Boto 3 Docs 1.9.249
documentation ( The Server-side encryption algorithm used when storing this object in
S3 (e.g., AES256, aws:kms).
../../index.html)
VersionId (string) --
TABLE OF CONTENTS Version of the object.
SSECustomerAlgorithm (string) --
Quickstart
(../../guide/quickstart.html) If server-side encryption with a customer-provided encryption key was
requested, the response will include this header confirming the
A Sample Tutorial
encryption algorithm used.
(../../guide/sqs.html)
SSECustomerKeyMD5 (string) --
Code Examples
(../../guide/examples.html) If server-side encryption with a customer-provided encryption key was
requested, the response will include this header to provide round trip
User Guides message integrity verification of the customer-provided encryption key.
(../../guide/index.html)
SSEKMSKeyId (string) --
Available Services (index.html)
If present, specifies the ID of the AWS Key Management Service (KMS)
ACM (acm.html) master encryption key that was used for the object.
ACMPCA (acm-pca.html) SSEKMSEncryptionContext (string) --
AlexaForBusiness If present, specifies the AWS KMS Encryption Context to use for object
(alexaforbusiness.html) encryption. The value of this header is a base64-encoded UTF-8 string
Amplify (amplify.html) holding JSON with the encryption context key-value pairs.

APIGateway RequestCharged (string) --


(apigateway.html) If present, indicates that the requester was successfully charged for the
ApiGatewayManagement request.
Api
(apigatewaymanagement
api.html) put_object_acl (**kwargs)
uses the acl subresource to set the access control list (ACL) permissions for an
Boto 3 Docs 1.9.249
object that already exists in a bucket
documentation (
See also: AWS API Documentation
../../index.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectAcl)

TABLE OF CONTENTS Request Syntax

Quickstart
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.put_object_acl(
documentation ( ACL='private'|'public-read'|'public-read-write'|'authenticated-rea
../../index.html) AccessControlPolicy={
'Grants': [
{
TABLE OF CONTENTS
'Grantee': {
'DisplayName': 'string',
Quickstart
'EmailAddress': 'string',
(../../guide/quickstart.html)
'ID': 'string',
A Sample Tutorial 'Type': 'CanonicalUser'|'AmazonCustomerByEmail'|'G
(../../guide/sqs.html) 'URI': 'string'
Code Examples },
(../../guide/examples.html) 'Permission': 'FULL_CONTROL'|'WRITE'|'WRITE_ACP'|'READ
},
User Guides
],
(../../guide/index.html)
'Owner': {
Available Services (index.html) 'DisplayName': 'string',
'ID': 'string'
ACM (acm.html)
}
ACMPCA (acm-pca.html) },
Bucket='string',
AlexaForBusiness
(alexaforbusiness.html) GrantFullControl='string',
GrantRead='string',
Amplify (amplify.html) GrantReadACP='string',
APIGateway GrantWrite='string',
(apigateway.html) GrantWriteACP='string',
Key='string',
ApiGatewayManagement
RequestPayer='requester',
Api
VersionId='string'
(apigatewaymanagement
api.html) )
Boto 3 Docs 1.9.249
documentation ( Parameters
../../index.html) ACL (string) -- The canned ACL to apply to the object.
AccessControlPolicy (dict) --
TABLE OF CONTENTS Contains the elements that set the ACL permissions for an object per
grantee.
Quickstart Grants (list) --
(../../guide/quickstart.html) A list of grants.
A Sample Tutorial (dict) --
(../../guide/sqs.html) Grantee (dict) --
DisplayName (string) --
Code Examples
Screen name of the grantee.
(../../guide/examples.html)
EmailAddress (string) --
User Guides
Email address of the grantee.
(../../guide/index.html)
ID (string) --
Available Services (index.html) The canonical user ID of the grantee.
ACM (acm.html) Type (string) -- [REQUIRED]
ACMPCA (acm-pca.html) Type of grantee

AlexaForBusiness URI (string) --


(alexaforbusiness.html) URI of the grantee group.

Amplify (amplify.html) Permission (string) --


Specifies the permission given to the grantee.
APIGateway
(apigateway.html) Owner (dict) --
Container for the bucket owner's display name and ID.
ApiGatewayManagement
Api DisplayName (string) --
(apigatewaymanagement ID (string) --
api.html) Bucket (string) -- [REQUIRED]
GrantFullControl (string) -- Allows grantee the read, write, read ACP, and
Boto 3 Docs 1.9.249
write ACP permissions on the bucket.
documentation ( GrantRead (string) -- Allows grantee to list the objects in the bucket.
../../index.html) GrantReadACP (string) -- Allows grantee to read the bucket ACL.
GrantWrite (string) -- Allows grantee to create, overwrite, and delete any
TABLE OF CONTENTS object in the bucket.
GrantWriteACP (string) -- Allows grantee to write the ACL for the
Quickstart applicable bucket.
(../../guide/quickstart.html) Key (string) -- [REQUIRED]
RequestPayer (string) -- Confirms that the requester knows that she or
A Sample Tutorial he will be charged for the request. Bucket owners need not specify this
(../../guide/sqs.html) parameter in their requests. Documentation on downloading objects
Code Examples from requester pays buckets can be found at
(../../guide/examples.html) http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
User Guides VersionId (string) -- VersionId used to reference a specific version of the
(../../guide/index.html) object.

Available Services (index.html) Return type


dict
ACM (acm.html)
Returns
ACMPCA (acm-pca.html)
Response Syntax
AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html) {
'RequestCharged': 'requester'
APIGateway }
(apigateway.html)

ApiGatewayManagement
Response Structure
Api
(apigatewaymanagement (dict) --
api.html)
RequestCharged (string) --
Boto 3 Docs 1.9.249
documentation ( If present, indicates that the requester was successfully charged for the
request.
../../index.html)

TABLE OF CONTENTS put_object_legal_hold (**kwargs)


Applies a Legal Hold configuration to the specified object.
Quickstart
(../../guide/quickstart.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
A Sample Tutorial
01/PutObjectLegalHold)
(../../guide/sqs.html)
Request Syntax
Code Examples
(../../guide/examples.html)
response = client.put_object_legal_hold(
User Guides Bucket='string',
(../../guide/index.html) Key='string',
Available Services (index.html) LegalHold={
'Status': 'ON'|'OFF'
ACM (acm.html)
},
ACMPCA (acm-pca.html) RequestPayer='requester',
VersionId='string',
AlexaForBusiness
ContentMD5='string'
(alexaforbusiness.html)
)
Amplify (amplify.html)

APIGateway
Parameters
(apigateway.html)
Bucket (string) --
ApiGatewayManagement [REQUIRED]
Api
The bucket containing the object that you want to place a Legal Hold on.
(apigatewaymanagement
api.html) Key (string) --
[REQUIRED]
Boto 3 Docs 1.9.249
documentation ( The key name for the object that you want to place a Legal Hold on.

../../index.html) LegalHold (dict) --


Container element for the Legal Hold configuration you want to apply to
TABLE OF CONTENTS the specified object.
Status (string) --
Quickstart Indicates whether the specified object has a Legal Hold in place.
(../../guide/quickstart.html)
RequestPayer (string) -- Confirms that the requester knows that she or
A Sample Tutorial he will be charged for the request. Bucket owners need not specify this
(../../guide/sqs.html) parameter in their requests. Documentation on downloading objects
from requester pays buckets can be found at
Code Examples
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(../../guide/examples.html)
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
User Guides VersionId (string) -- The version ID of the object that you want to place a
(../../guide/index.html) Legal Hold on.
ContentMD5 (string) -- The MD5 hash for the request body.
Available Services (index.html)
Return type
ACM (acm.html)
dict
ACMPCA (acm-pca.html)
Returns
AlexaForBusiness
Response Syntax
(alexaforbusiness.html)

Amplify (amplify.html)
{
APIGateway 'RequestCharged': 'requester'
(apigateway.html) }
ApiGatewayManagement
Api Response Structure
(apigatewaymanagement
api.html) (dict) --
RequestCharged (string) --
Boto 3 Docs 1.9.249
documentation ( If present, indicates that the requester was successfully charged for the
request.
../../index.html)

TABLE OF CONTENTS put_object_lock_configuration (**kwargs)


Places an object lock configuration on the specified bucket. The rule specified in
Quickstart
the object lock configuration will be applied by default to every new object
(../../guide/quickstart.html)
placed in the specified bucket.
A Sample Tutorial
See also: AWS API Documentation
(../../guide/sqs.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
Code Examples 01/PutObjectLockConfiguration)
(../../guide/examples.html)
Request Syntax
User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.put_object_lock_configuration(
documentation ( Bucket='string',
../../index.html) ObjectLockConfiguration={
'ObjectLockEnabled': 'Enabled',
'Rule': {
TABLE OF CONTENTS
'DefaultRetention': {
'Mode': 'GOVERNANCE'|'COMPLIANCE',
Quickstart
'Days': 123,
(../../guide/quickstart.html)
'Years': 123
A Sample Tutorial }
(../../guide/sqs.html) }
Code Examples },
(../../guide/examples.html) RequestPayer='requester',
Token='string',
User Guides
ContentMD5='string'
(../../guide/index.html)
)
Available Services (index.html)

ACM (acm.html) Parameters


Bucket (string) --
ACMPCA (acm-pca.html)
[REQUIRED]
AlexaForBusiness
The bucket whose object lock configuration you want to create or
(alexaforbusiness.html)
replace.
Amplify (amplify.html)
ObjectLockConfiguration (dict) --
APIGateway The object lock configuration that you want to apply to the specified
(apigateway.html) bucket.
ApiGatewayManagement ObjectLockEnabled (string) --
Api Indicates whether this bucket has an object lock configuration enabled.
(apigatewaymanagement
Rule (dict) --
api.html)
The object lock rule in place for the specified object.
Boto 3 Docs 1.9.249
documentation ( DefaultRetention (dict) --
The default retention period that you want to apply to new objects
../../index.html)
placed in the specified bucket.

TABLE OF CONTENTS Mode (string) --


The default object lock retention mode you want to apply to new
objects placed in the specified bucket.
Quickstart
(../../guide/quickstart.html) Days (integer) --
The number of days that you want to specify for the default
A Sample Tutorial
retention period.
(../../guide/sqs.html)
Years (integer) --
Code Examples
The number of years that you want to specify for the default
(../../guide/examples.html)
retention period.
User Guides
RequestPayer (string) -- Confirms that the requester knows that she or
(../../guide/index.html)
he will be charged for the request. Bucket owners need not specify this
Available Services (index.html) parameter in their requests. Documentation on downloading objects
from requester pays buckets can be found at
ACM (acm.html) http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
ACMPCA (acm-pca.html) (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Token (string) -- A token to allow Amazon S3 object lock to be enabled for
AlexaForBusiness
an existing bucket.
(alexaforbusiness.html)
ContentMD5 (string) -- The MD5 hash for the request body.
Amplify (amplify.html)
Return type
APIGateway dict
(apigateway.html)
Returns
ApiGatewayManagement
Response Syntax
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'RequestCharged': 'requester'
../../index.html) }

TABLE OF CONTENTS Response Structure

(dict) --
Quickstart
(../../guide/quickstart.html) RequestCharged (string) --

A Sample Tutorial If present, indicates that the requester was successfully charged for the
(../../guide/sqs.html) request.

Code Examples
(../../guide/examples.html)
put_object_retention (**kwargs)
User Guides Places an Object Retention configuration on an object.
(../../guide/index.html)
See also: AWS API Documentation
Available Services (index.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
01/PutObjectRetention)
ACM (acm.html)
Request Syntax
ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.put_object_retention(
documentation ( Bucket='string',
../../index.html) Key='string',
Retention={
'Mode': 'GOVERNANCE'|'COMPLIANCE',
TABLE OF CONTENTS
'RetainUntilDate': datetime(2015, 1, 1)
},
Quickstart
RequestPayer='requester',
(../../guide/quickstart.html)
VersionId='string',
A Sample Tutorial BypassGovernanceRetention=True|False,
(../../guide/sqs.html) ContentMD5='string'
Code Examples )
(../../guide/examples.html)

User Guides Parameters


(../../guide/index.html) Bucket (string) --
[REQUIRED]
Available Services (index.html)
The bucket that contains the object you want to apply this Object
ACM (acm.html)
Retention configuration to.
ACMPCA (acm-pca.html)
Key (string) --
AlexaForBusiness [REQUIRED]
(alexaforbusiness.html)
The key name for the object that you want to apply this Object Retention
Amplify (amplify.html) configuration to.

APIGateway Retention (dict) --


(apigateway.html) The container element for the Object Retention configuration.

ApiGatewayManagement Mode (string) --


Api Indicates the Retention mode for the specified object.
(apigatewaymanagement
RetainUntilDate (datetime) --
api.html)
The date on which this object lock retention expires.
RequestPayer (string) -- Confirms that the requester knows that she or
Boto 3 Docs 1.9.249
he will be charged for the request. Bucket owners need not specify this
documentation ( parameter in their requests. Documentation on downloading objects
../../index.html) from requester pays buckets can be found at
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
TABLE OF CONTENTS (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
VersionId (string) -- The version ID for the object that you want to apply
Quickstart this Object Retention configuration to.
(../../guide/quickstart.html) BypassGovernanceRetention (boolean) -- Indicates whether this
operation should bypass Governance-mode restrictions.j
A Sample Tutorial ContentMD5 (string) -- The MD5 hash for the request body.
(../../guide/sqs.html)
Return type
Code Examples
dict
(../../guide/examples.html)
Returns
User Guides
(../../guide/index.html)
Response Syntax

Available Services (index.html)


{
ACM (acm.html) 'RequestCharged': 'requester'
ACMPCA (acm-pca.html) }

AlexaForBusiness
(alexaforbusiness.html) Response Structure

Amplify (amplify.html) (dict) --

APIGateway RequestCharged (string) --


(apigateway.html) If present, indicates that the requester was successfully charged for the
ApiGatewayManagement request.
Api
(apigatewaymanagement
api.html) put_object_tagging (**kwargs)
Sets the supplied tag-set to an object that already exists in a bucket
Boto 3 Docs 1.9.249
documentation ( See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectTagging)
../../index.html)
Request Syntax
TABLE OF CONTENTS
response = client.put_object_tagging(
Quickstart Bucket='string',
(../../guide/quickstart.html) Key='string',
A Sample Tutorial VersionId='string',
(../../guide/sqs.html) ContentMD5='string',
Tagging={
Code Examples
'TagSet': [
(../../guide/examples.html)
{
User Guides 'Key': 'string',
(../../guide/index.html) 'Value': 'string'
},
Available Services (index.html)
]
ACM (acm.html) }
)
ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html) Parameters
Bucket (string) -- [REQUIRED]
Amplify (amplify.html)
Key (string) -- [REQUIRED]
APIGateway VersionId (string) --
(apigateway.html) ContentMD5 (string) --
Tagging (dict) --
ApiGatewayManagement
[REQUIRED]
Api
(apigatewaymanagement TagSet (list) -- [REQUIRED]
api.html) (dict) --
Key (string) -- [REQUIRED]
Boto 3 Docs 1.9.249
Name of the tag.
documentation (
Value (string) -- [REQUIRED]
../../index.html)
Value of the tag.

TABLE OF CONTENTS Return type


dict
Quickstart Returns
(../../guide/quickstart.html)
Response Syntax
A Sample Tutorial
(../../guide/sqs.html)
{
Code Examples 'VersionId': 'string'
(../../guide/examples.html) }
User Guides
(../../guide/index.html) Response Structure
Available Services (index.html) (dict) --
ACM (acm.html) VersionId (string) --

ACMPCA (acm-pca.html)

AlexaForBusiness put_public_access_block (**kwargs)


(alexaforbusiness.html) Creates or modifies the PublicAccessBlock configuration for an Amazon S3
bucket.
Amplify (amplify.html)
See also: AWS API Documentation
APIGateway
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
(apigateway.html)
01/PutPublicAccessBlock)
ApiGatewayManagement
Request Syntax
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.put_public_access_block(
documentation ( Bucket='string',
../../index.html) ContentMD5='string',
PublicAccessBlockConfiguration={
'BlockPublicAcls': True|False,
TABLE OF CONTENTS
'IgnorePublicAcls': True|False,
'BlockPublicPolicy': True|False,
Quickstart
'RestrictPublicBuckets': True|False
(../../guide/quickstart.html)
}
A Sample Tutorial )
(../../guide/sqs.html)

Code Examples
Parameters
(../../guide/examples.html)
Bucket (string) --
User Guides [REQUIRED]
(../../guide/index.html)
The name of the Amazon S3 bucket whose PublicAccessBlock
Available Services (index.html) configuration you want to set.

ACM (acm.html) ContentMD5 (string) -- The MD5 hash of the PutPublicAccessBlock


request body.
ACMPCA (acm-pca.html)
PublicAccessBlockConfiguration (dict) --
AlexaForBusiness [REQUIRED]
(alexaforbusiness.html)
The PublicAccessBlock configuration that you want to apply to this
Amplify (amplify.html) Amazon S3 bucket. You can enable the configuration options in any
combination. For more information about when Amazon S3 considers a
APIGateway
bucket or object public, see The Meaning of "Public"
(apigateway.html)
(https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-
ApiGatewayManagement block-public-access.html#access-control-block-public-access-policy-
Api status) in the Amazon Simple Storage Service Developer Guide .
(apigatewaymanagement
BlockPublicAcls (boolean) --
api.html)
Specifies whether Amazon S3 should block public access control lists
Boto 3 Docs 1.9.249
(ACLs) for this bucket and objects in this bucket. Setting this element to
documentation ( TRUE causes the following behavior:
../../index.html)
PUT Bucket acl and PUT Object acl calls fail if the specified ACL is
public.
TABLE OF CONTENTS
PUT Object calls fail if the request includes a public ACL.
Enabling this setting doesn't affect existing policies or ACLs.
Quickstart
(../../guide/quickstart.html)
IgnorePublicAcls (boolean) --
Specifies whether Amazon S3 should ignore public ACLs for this bucket
A Sample Tutorial and objects in this bucket. Setting this element to TRUE causes Amazon
(../../guide/sqs.html) S3 to ignore all public ACLs on this bucket and objects in this bucket.
Code Examples Enabling this setting doesn't affect the persistence of any existing ACLs
(../../guide/examples.html) and doesn't prevent new public ACLs from being set.
User Guides BlockPublicPolicy (boolean) --
(../../guide/index.html) Specifies whether Amazon S3 should block public bucket policies for
this bucket. Setting this element to TRUE causes Amazon S3 to reject
Available Services (index.html)
calls to PUT Bucket policy if the specified bucket policy allows public
ACM (acm.html) access.
ACMPCA (acm-pca.html) Enabling this setting doesn't affect existing bucket policies.
AlexaForBusiness RestrictPublicBuckets (boolean) --
(alexaforbusiness.html) Specifies whether Amazon S3 should restrict public bucket policies for
this bucket. Setting this element to TRUE restricts access to this bucket
Amplify (amplify.html)
to only AWS services and authorized users within this account if the
APIGateway bucket has a public policy.
(apigateway.html)
Enabling this setting doesn't affect previously stored bucket policies,
ApiGatewayManagement except that public and cross-account access within any public bucket
Api policy, including non-public delegation to specific accounts, is blocked.
(apigatewaymanagement
Returns
api.html)
None
Boto 3 Docs 1.9.249
documentation (
../../index.html) restore_object (**kwargs)
Restores an archived copy of an object back into Amazon S3
TABLE OF CONTENTS
See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RestoreObject)
Quickstart
(../../guide/quickstart.html) Request Syntax

A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.restore_object(
documentation ( Bucket='string',
../../index.html) Key='string',
VersionId='string',
RestoreRequest={
TABLE OF CONTENTS
'Days': 123,
'GlacierJobParameters': {
Quickstart
'Tier': 'Standard'|'Bulk'|'Expedited'
(../../guide/quickstart.html)
},
A Sample Tutorial 'Type': 'SELECT',
(../../guide/sqs.html) 'Tier': 'Standard'|'Bulk'|'Expedited',
Code Examples 'Description': 'string',
(../../guide/examples.html) 'SelectParameters': {
'InputSerialization': {
User Guides
'CSV': {
(../../guide/index.html)
'FileHeaderInfo': 'USE'|'IGNORE'|'NONE',
Available Services (index.html) 'Comments': 'string',
'QuoteEscapeCharacter': 'string',
ACM (acm.html)
'RecordDelimiter': 'string',
ACMPCA (acm-pca.html) 'FieldDelimiter': 'string',
'QuoteCharacter': 'string',
AlexaForBusiness
(alexaforbusiness.html) 'AllowQuotedRecordDelimiter': True|False
},
Amplify (amplify.html) 'CompressionType': 'NONE'|'GZIP'|'BZIP2',
APIGateway 'JSON': {
(apigateway.html) 'Type': 'DOCUMENT'|'LINES'
},
ApiGatewayManagement
'Parquet': {}
Api
(apigatewaymanagement
api.html) },
'ExpressionType': 'SQL',
Boto 3 Docs 1.9.249
'Expression': 'string',
documentation ( 'OutputSerialization': {
../../index.html) 'CSV': {
'QuoteFields': 'ALWAYS'|'ASNEEDED',
TABLE OF CONTENTS 'QuoteEscapeCharacter': 'string',
'RecordDelimiter': 'string',
Quickstart 'FieldDelimiter': 'string',
(../../guide/quickstart.html) 'QuoteCharacter': 'string'
},
A Sample Tutorial
'JSON': {
(../../guide/sqs.html)
'RecordDelimiter': 'string'
Code Examples }
(../../guide/examples.html) }
User Guides },
(../../guide/index.html) 'OutputLocation': {
'S3': {
Available Services (index.html) 'BucketName': 'string',
ACM (acm.html) 'Prefix': 'string',
'Encryption': {
ACMPCA (acm-pca.html)
'EncryptionType': 'AES256'|'aws:kms',
AlexaForBusiness 'KMSKeyId': 'string',
(alexaforbusiness.html) 'KMSContext': 'string'
Amplify (amplify.html) },
'CannedACL': 'private'|'public-read'|'public-read-writ
APIGateway 'AccessControlList': [
(apigateway.html)
{
ApiGatewayManagement 'Grantee': {
Api 'DisplayName': 'string',
(apigatewaymanagement 'EmailAddress': 'string',
api.html) 'ID': 'string',
'Type': 'CanonicalUser'|'AmazonCustomerByE
Boto 3 Docs 1.9.249
'URI': 'string'
documentation ( },
../../index.html) 'Permission': 'FULL_CONTROL'|'WRITE'|'WRITE_AC
},
TABLE OF CONTENTS ],
'Tagging': {
Quickstart 'TagSet': [
(../../guide/quickstart.html) {
'Key': 'string',
A Sample Tutorial
'Value': 'string'
(../../guide/sqs.html)
},
Code Examples ]
(../../guide/examples.html) },
User Guides 'UserMetadata': [
(../../guide/index.html) {
'Name': 'string',
Available Services (index.html) 'Value': 'string'
ACM (acm.html) },
],
ACMPCA (acm-pca.html)
'StorageClass': 'STANDARD'|'REDUCED_REDUNDANCY'|'STAND
AlexaForBusiness }
(alexaforbusiness.html) }
Amplify (amplify.html) },
RequestPayer='requester'
APIGateway )
(apigateway.html)

ApiGatewayManagement
Api Parameters
(apigatewaymanagement
Bucket (string) -- [REQUIRED]
api.html)
Key (string) -- [REQUIRED]
Boto 3 Docs 1.9.249
VersionId (string) --
documentation ( RestoreRequest (dict) --
../../index.html) Days (integer) --
Lifetime of the active copy in days. Do not use with restores that specify
TABLE OF CONTENTS OutputLocation.
GlacierJobParameters (dict) --
Quickstart Glacier related parameters pertaining to this job. Do not use with
(../../guide/quickstart.html) restores that specify OutputLocation.
A Sample Tutorial Tier (string) -- [REQUIRED]
(../../guide/sqs.html) Glacier retrieval tier at which the restore will be processed.
Code Examples Type (string) --
(../../guide/examples.html) Type of restore request.

User Guides Tier (string) --


(../../guide/index.html) Glacier retrieval tier at which the restore will be processed.

Available Services (index.html) Description (string) --


The optional description for the job.
ACM (acm.html)
SelectParameters (dict) --
ACMPCA (acm-pca.html) Describes the parameters for Select job types.
AlexaForBusiness InputSerialization (dict) -- [REQUIRED]
(alexaforbusiness.html) Describes the serialization format of the object.
Amplify (amplify.html) CSV (dict) --
APIGateway Describes the serialization of a CSV-encoded object.
(apigateway.html) FileHeaderInfo (string) --
ApiGatewayManagement Describes the first line of input. Valid values: None, Ignore, Use.
Api Comments (string) --
(apigatewaymanagement The single character used to indicate a row should be ignored
api.html) when present at the start of a row.
QuoteEscapeCharacter (string) --
Boto 3 Docs 1.9.249
The single character used for escaping the quote character
documentation ( inside an already escaped value.
../../index.html)
RecordDelimiter (string) --
The value used to separate individual records.
TABLE OF CONTENTS
FieldDelimiter (string) --
The value used to separate individual fields in a record.
Quickstart
(../../guide/quickstart.html) QuoteCharacter (string) --
Value used for escaping where the field delimiter is part of the
A Sample Tutorial
value.
(../../guide/sqs.html)
AllowQuotedRecordDelimiter (boolean) --
Code Examples
Specifies that CSV field values may contain quoted record
(../../guide/examples.html)
delimiters and such records should be allowed. Default value is
User Guides FALSE. Setting this value to TRUE may lower performance.
(../../guide/index.html)
CompressionType (string) --
Available Services (index.html) Specifies object's compression format. Valid values: NONE, GZIP,
BZIP2. Default Value: NONE.
ACM (acm.html)
JSON (dict) --
ACMPCA (acm-pca.html) Specifies JSON as object's input serialization format.
AlexaForBusiness Type (string) --
(alexaforbusiness.html) The type of JSON. Valid values: Document, Lines.
Amplify (amplify.html) Parquet (dict) --
APIGateway Specifies Parquet as object's input serialization format.
(apigateway.html) ExpressionType (string) -- [REQUIRED]
ApiGatewayManagement The type of the provided expression (e.g., SQL).
Api Expression (string) -- [REQUIRED]
(apigatewaymanagement The expression that is used to query the object.
api.html)
OutputSerialization (dict) -- [REQUIRED]
Boto 3 Docs 1.9.249
Describes how the results of the Select job are serialized.
documentation (
CSV (dict) --
../../index.html)
Describes the serialization of CSV-encoded Select results.

TABLE OF CONTENTS QuoteFields (string) --


Indicates whether or not all output fields should be quoted.
Quickstart QuoteEscapeCharacter (string) --
(../../guide/quickstart.html) Th single character used for escaping the quote character inside
an already escaped value.
A Sample Tutorial
(../../guide/sqs.html) RecordDelimiter (string) --
The value used to separate individual records.
Code Examples
(../../guide/examples.html) FieldDelimiter (string) --
The value used to separate individual fields in a record.
User Guides
(../../guide/index.html) QuoteCharacter (string) --
The value used for escaping where the field delimiter is part of
Available Services (index.html) the value.
ACM (acm.html) JSON (dict) --
ACMPCA (acm-pca.html) Specifies JSON as request's output serialization format.

AlexaForBusiness RecordDelimiter (string) --


(alexaforbusiness.html) The value used to separate individual records in the output.

Amplify (amplify.html) OutputLocation (dict) --


Describes the location where the restore job's output is stored.
APIGateway
(apigateway.html) S3 (dict) --
Describes an S3 location that will receive the results of the restore
ApiGatewayManagement request.
Api
(apigatewaymanagement BucketName (string) -- [REQUIRED]
api.html) The name of the bucket where the restore results will be placed.
Prefix (string) -- [REQUIRED]
Boto 3 Docs 1.9.249
The prefix that is prepended to the restore results for this request.
documentation (
Encryption (dict) --
../../index.html)
EncryptionType (string) -- [REQUIRED]
The server-side encryption algorithm used when storing job
TABLE OF CONTENTS results in Amazon S3 (e.g., AES256, aws:kms).

KMSKeyId (string) --
Quickstart
If the encryption type is aws:kms, this optional value specifies
(../../guide/quickstart.html)
the AWS KMS key ID to use for encryption of job results.
A Sample Tutorial
KMSContext (string) --
(../../guide/sqs.html)
If the encryption type is aws:kms, this optional value can be used
Code Examples to specify the encryption context for the restore results.
(../../guide/examples.html)
CannedACL (string) --
User Guides The canned ACL to apply to the restore results.
(../../guide/index.html)
AccessControlList (list) --
Available Services (index.html) A list of grants that control access to the staged results.

ACM (acm.html) (dict) --


Grantee (dict) --
ACMPCA (acm-pca.html) DisplayName (string) --
AlexaForBusiness Screen name of the grantee.
(alexaforbusiness.html) EmailAddress (string) --
Amplify (amplify.html) Email address of the grantee.

APIGateway ID (string) --
(apigateway.html) The canonical user ID of the grantee.

ApiGatewayManagement Type (string) -- [REQUIRED]


Api Type of grantee
(apigatewaymanagement URI (string) --
api.html) URI of the grantee group.
Permission (string) --
Boto 3 Docs 1.9.249
Specifies the permission given to the grantee.
documentation (
Tagging (dict) --
../../index.html)
The tag-set that is applied to the restore results.

TABLE OF CONTENTS TagSet (list) -- [REQUIRED]


(dict) --
Key (string) -- [REQUIRED]
Quickstart
Name of the tag.
(../../guide/quickstart.html)
Value (string) -- [REQUIRED]
A Sample Tutorial
Value of the tag.
(../../guide/sqs.html)
UserMetadata (list) --
Code Examples
A list of metadata to store with the restore results in S3.
(../../guide/examples.html)
(dict) --
User Guides
A metadata key-value pair to store with an object.
(../../guide/index.html)
Name (string) --
Available Services (index.html) Value (string) --
ACM (acm.html) StorageClass (string) --
The class of storage used to store the restore results.
ACMPCA (acm-pca.html)
RequestPayer (string) -- Confirms that the requester knows that she or
AlexaForBusiness he will be charged for the request. Bucket owners need not specify this
(alexaforbusiness.html) parameter in their requests. Documentation on downloading objects
Amplify (amplify.html) from requester pays buckets can be found at
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
APIGateway
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(apigateway.html)
Return type
ApiGatewayManagement
dict
Api
(apigatewaymanagement Returns
api.html)
Response Syntax
Boto 3 Docs 1.9.249
documentation (
{
../../index.html)
'RequestCharged': 'requester',
'RestoreOutputPath': 'string'
TABLE OF CONTENTS
}

Quickstart
(../../guide/quickstart.html) Response Structure

A Sample Tutorial (dict) --


(../../guide/sqs.html)
RequestCharged (string) --
Code Examples
If present, indicates that the requester was successfully charged for the
(../../guide/examples.html)
request.
User Guides RestoreOutputPath (string) --
(../../guide/index.html)
Indicates the path in the provided S3 output location where Select
Available Services (index.html) results will be restored to.
ACM (acm.html)

ACMPCA (acm-pca.html) select_object_content (**kwargs)


AlexaForBusiness This operation filters the contents of an Amazon S3 object based on a simple
(alexaforbusiness.html) Structured Query Language (SQL) statement. In the request, along with the SQL
expression, you must also specify a data serialization format (JSON or CSV) of
Amplify (amplify.html)
the object. Amazon S3 uses this to parse object data into records, and returns
APIGateway only records that match the specified SQL expression. You must also specify the
(apigateway.html) data serialization format for the response.
ApiGatewayManagement See also: AWS API Documentation
Api (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
(apigatewaymanagement 01/SelectObjectContent)
api.html)
Request Syntax
Boto 3 Docs 1.9.249
documentation (
../../index.html)

TABLE OF CONTENTS

Quickstart
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.select_object_content(
documentation ( Bucket='string',
../../index.html) Key='string',
SSECustomerAlgorithm='string',
SSECustomerKey='string',
TABLE OF CONTENTS
Expression='string',
ExpressionType='SQL',
Quickstart
RequestProgress={
(../../guide/quickstart.html)
'Enabled': True|False
A Sample Tutorial },
(../../guide/sqs.html) InputSerialization={
Code Examples 'CSV': {
(../../guide/examples.html) 'FileHeaderInfo': 'USE'|'IGNORE'|'NONE',
'Comments': 'string',
User Guides
'QuoteEscapeCharacter': 'string',
(../../guide/index.html)
'RecordDelimiter': 'string',
Available Services (index.html) 'FieldDelimiter': 'string',
'QuoteCharacter': 'string',
ACM (acm.html)
'AllowQuotedRecordDelimiter': True|False
ACMPCA (acm-pca.html) },
'CompressionType': 'NONE'|'GZIP'|'BZIP2',
AlexaForBusiness
(alexaforbusiness.html) 'JSON': {
'Type': 'DOCUMENT'|'LINES'
Amplify (amplify.html) },
APIGateway 'Parquet': {}
(apigateway.html)
},
ApiGatewayManagement
OutputSerialization={
Api
'CSV': {
(apigatewaymanagement
api.html) 'QuoteFields': 'ALWAYS'|'ASNEEDED',
'QuoteEscapeCharacter': 'string',
Boto 3 Docs 1.9.249
'RecordDelimiter': 'string',
documentation ( 'FieldDelimiter': 'string',
../../index.html) 'QuoteCharacter': 'string'
},
TABLE OF CONTENTS 'JSON': {
'RecordDelimiter': 'string'
Quickstart }
(../../guide/quickstart.html) }
)
A Sample Tutorial
(../../guide/sqs.html)

Code Examples Parameters


(../../guide/examples.html) Bucket (string) --
[REQUIRED]
User Guides
(../../guide/index.html) The S3 bucket.

Key (string) --
Available Services (index.html)
[REQUIRED]
ACM (acm.html)
The object key.
ACMPCA (acm-pca.html)
SSECustomerAlgorithm (string) -- The SSE Algorithm used to encrypt the
AlexaForBusiness object. For more information, see Server-Side Encryption (Using
(alexaforbusiness.html) Customer-Provided Encryption Keys
Amplify (amplify.html)
(https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCusto
.
APIGateway SSECustomerKey (string) -- The SSE Customer Key. For more information,
(apigateway.html) see Server-Side Encryption (Using Customer-Provided Encryption Keys
ApiGatewayManagement (https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCusto
Api .
(apigatewaymanagement SSECustomerKeyMD5 (string) --
api.html)
The SSE Customer Key MD5. For more information, see Server-Side
Boto 3 Docs 1.9.249
Encryption (Using Customer-Provided Encryption Keys
documentation ( (https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCusto
../../index.html) .

TABLE OF CONTENTS
Please note that this parameter is automatically populated if it is not
provided. Including this parameter is not required
Quickstart
(../../guide/quickstart.html)
Expression (string) --
A Sample Tutorial
[REQUIRED]
(../../guide/sqs.html)
The expression that is used to query the object.
Code Examples
(../../guide/examples.html) ExpressionType (string) --
[REQUIRED]
User Guides
(../../guide/index.html) The type of the provided expression (for example., SQL).

Available Services (index.html)


RequestProgress (dict) --
Specifies if periodic request progress information should be enabled.
ACM (acm.html)
Enabled (boolean) --
ACMPCA (acm-pca.html) Specifies whether periodic QueryProgress frames should be sent. Valid
AlexaForBusiness values: TRUE, FALSE. Default value: FALSE.
(alexaforbusiness.html) InputSerialization (dict) --
Amplify (amplify.html) [REQUIRED]

APIGateway Describes the format of the data in the object that is being queried.
(apigateway.html) CSV (dict) --
ApiGatewayManagement Describes the serialization of a CSV-encoded object.
Api FileHeaderInfo (string) --
(apigatewaymanagement Describes the first line of input. Valid values: None, Ignore, Use.
api.html)
Comments (string) --
Boto 3 Docs 1.9.249
The single character used to indicate a row should be ignored when
documentation ( present at the start of a row.
../../index.html)
QuoteEscapeCharacter (string) --
The single character used for escaping the quote character inside an
TABLE OF CONTENTS already escaped value.
RecordDelimiter (string) --
Quickstart
The value used to separate individual records.
(../../guide/quickstart.html)
FieldDelimiter (string) --
A Sample Tutorial
The value used to separate individual fields in a record.
(../../guide/sqs.html)
QuoteCharacter (string) --
Code Examples
Value used for escaping where the field delimiter is part of the value.
(../../guide/examples.html)
AllowQuotedRecordDelimiter (boolean) --
User Guides
Specifies that CSV field values may contain quoted record delimiters
(../../guide/index.html)
and such records should be allowed. Default value is FALSE. Setting
Available Services (index.html) this value to TRUE may lower performance.

ACM (acm.html) CompressionType (string) --


Specifies object's compression format. Valid values: NONE, GZIP, BZIP2.
ACMPCA (acm-pca.html) Default Value: NONE.
AlexaForBusiness JSON (dict) --
(alexaforbusiness.html) Specifies JSON as object's input serialization format.
Amplify (amplify.html) Type (string) --
APIGateway The type of JSON. Valid values: Document, Lines.
(apigateway.html) Parquet (dict) --
ApiGatewayManagement Specifies Parquet as object's input serialization format.
Api OutputSerialization (dict) --
(apigatewaymanagement [REQUIRED]
api.html)
Describes the format of the data that you want Amazon S3 to return in
Boto 3 Docs 1.9.249
response.
documentation (
CSV (dict) --
../../index.html)
Describes the serialization of CSV-encoded Select results.

TABLE OF CONTENTS QuoteFields (string) --


Indicates whether or not all output fields should be quoted.
Quickstart QuoteEscapeCharacter (string) --
(../../guide/quickstart.html) Th single character used for escaping the quote character inside an
already escaped value.
A Sample Tutorial
(../../guide/sqs.html) RecordDelimiter (string) --
The value used to separate individual records.
Code Examples
(../../guide/examples.html) FieldDelimiter (string) --
The value used to separate individual fields in a record.
User Guides
(../../guide/index.html) QuoteCharacter (string) --
The value used for escaping where the field delimiter is part of the
Available Services (index.html) value.
ACM (acm.html) JSON (dict) --
ACMPCA (acm-pca.html) Specifies JSON as request's output serialization format.

AlexaForBusiness RecordDelimiter (string) --


(alexaforbusiness.html) The value used to separate individual records in the output.

Amplify (amplify.html) Return type


dict
APIGateway
(apigateway.html) Returns

ApiGatewayManagement The response of this operation contains an EventStream member. When


Api iterated the EventStream will yield events based on the structure below,
(apigatewaymanagement where only one of the top level keys will be present for any given event.
api.html)
Response Syntax
Boto 3 Docs 1.9.249
documentation (
{
../../index.html)
'Payload': EventStream({
'Records': {
TABLE OF CONTENTS
'Payload': b'bytes'
},
Quickstart
'Stats': {
(../../guide/quickstart.html)
'Details': {
A Sample Tutorial 'BytesScanned': 123,
(../../guide/sqs.html) 'BytesProcessed': 123,
Code Examples 'BytesReturned': 123
(../../guide/examples.html) }
},
User Guides 'Progress': {
(../../guide/index.html) 'Details': {
'BytesScanned': 123,
Available Services (index.html)
'BytesProcessed': 123,
ACM (acm.html) 'BytesReturned': 123
ACMPCA (acm-pca.html) }
},
AlexaForBusiness
'Cont': {},
(alexaforbusiness.html)
'End': {}
Amplify (amplify.html) })
APIGateway }
(apigateway.html)

ApiGatewayManagement Response Structure


Api
(dict) --
(apigatewaymanagement
api.html) Payload ( EventStream ) --
Records (dict) --
Boto 3 Docs 1.9.249
documentation ( The Records Event.

../../index.html) Payload (bytes) --

The byte array of partial, one or more result records.


TABLE OF CONTENTS
Stats (dict) --

Quickstart The Stats Event.


(../../guide/quickstart.html)
Details (dict) --
A Sample Tutorial
The Stats event details.
(../../guide/sqs.html)
BytesScanned (integer) --
Code Examples
(../../guide/examples.html) The total number of object bytes scanned.

User Guides BytesProcessed (integer) --


(../../guide/index.html) The total number of uncompressed object bytes processed.

Available Services (index.html) BytesReturned (integer) --

ACM (acm.html) The total number of bytes of records payload data returned.

ACMPCA (acm-pca.html) Progress (dict) --

AlexaForBusiness The Progress Event.


(alexaforbusiness.html)
Details (dict) --
Amplify (amplify.html)
The Progress event details.
APIGateway
BytesScanned (integer) --
(apigateway.html)
The current number of object bytes scanned.
ApiGatewayManagement
Api BytesProcessed (integer) --
(apigatewaymanagement The current number of uncompressed object bytes processed.
api.html)
BytesReturned (integer) --
Boto 3 Docs 1.9.249
documentation ( The current number of bytes of records payload data returned.

../../index.html) Cont (dict) --

The Continuation Event.


TABLE OF CONTENTS
End (dict) --

Quickstart The End Event.


(../../guide/quickstart.html)

A Sample Tutorial
upload_file (Filename, Bucket, Key, ExtraArgs=None, Callback=None,
(../../guide/sqs.html)
Config=None)
Code Examples
Upload a file to an S3 object.
(../../guide/examples.html)
Usage:
User Guides
(../../guide/index.html)
import boto3
Available Services (index.html) s3 = boto3.resource('s3')
ACM (acm.html) s3.meta.client.upload_file('/tmp/hello.txt', 'mybucket', 'hello.txt')

ACMPCA (acm-pca.html)
Similar behavior as S3Transfer's upload_file() method, except that parameters
AlexaForBusiness
are capitalized. Detailed examples can be found at S3Transfer's Usage.
(alexaforbusiness.html)
Parameters
Amplify (amplify.html)
Filename (str) -- The path to the file to upload.
APIGateway Bucket (str) -- The name of the bucket to upload to.
(apigateway.html) Key (str) -- The name of the key to upload to.
ApiGatewayManagement ExtraArgs (dict) -- Extra arguments that may be passed to the client
Api operation.
(apigatewaymanagement Callback (function) -- A method which takes a number of bytes
api.html) transferred to be periodically called during the upload.
Config (boto3.s3.transfer.TransferConfig
Boto 3 Docs 1.9.249
(../customizations/s3.html#boto3.s3.transfer.TransferConfig)) -- The
documentation ( transfer configuration to be used when performing the transfer.
../../index.html)

TABLE OF CONTENTS upload_fileobj (Fileobj, Bucket, Key, ExtraArgs=None, Callback=None,


Config=None)
Quickstart Upload a file-like object to S3.
(../../guide/quickstart.html)
The file-like object must be in binary mode.
A Sample Tutorial
This is a managed transfer which will perform a multipart upload in multiple
(../../guide/sqs.html)
threads if necessary.
Code Examples
Usage:
(../../guide/examples.html)

User Guides
import boto3
(../../guide/index.html)
s3 = boto3.client('s3')
Available Services (index.html)
with open('filename', 'rb') as data:
ACM (acm.html)
s3.upload_fileobj(data, 'mybucket', 'mykey')
ACMPCA (acm-pca.html)

AlexaForBusiness Parameters
(alexaforbusiness.html)
Fileobj (a file-like object) -- A file-like object to upload. At a minimum, it
Amplify (amplify.html) must implement the read method, and must return bytes.
Bucket (str) -- The name of the bucket to upload to.
APIGateway
Key (str) -- The name of the key to upload to.
(apigateway.html)
ExtraArgs (dict) -- Extra arguments that may be passed to the client
ApiGatewayManagement operation.
Api Callback (function) -- A method which takes a number of bytes
(apigatewaymanagement transferred to be periodically called during the upload.
api.html)
Config (boto3.s3.transfer.TransferConfig
Boto 3 Docs 1.9.249
(../customizations/s3.html#boto3.s3.transfer.TransferConfig)) -- The
documentation ( transfer configuration to be used when performing the upload.
../../index.html)

TABLE OF CONTENTS upload_part (**kwargs)


Uploads a part in a multipart upload.
Quickstart
(../../guide/quickstart.html)
Note: After you initiate multipart upload and upload one or more parts,
A Sample Tutorial you must either complete or abort multipart upload in order to stop
(../../guide/sqs.html) getting charged for storage of the uploaded parts. Only after you either
Code Examples complete or abort multipart upload, Amazon S3 frees up the parts storage
(../../guide/examples.html) and stops charging you for the parts storage.

User Guides
(../../guide/index.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPart)
Available Services (index.html)
Request Syntax
ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.upload_part(
documentation ( Body=b'bytes'|file,
../../index.html) Bucket='string',
ContentLength=123,
ContentMD5='string',
TABLE OF CONTENTS
Key='string',
PartNumber=123,
Quickstart
UploadId='string',
(../../guide/quickstart.html)
SSECustomerAlgorithm='string',
A Sample Tutorial SSECustomerKey='string',
(../../guide/sqs.html) RequestPayer='requester'
Code Examples )
(../../guide/examples.html)

User Guides Parameters


(../../guide/index.html) Body (bytes or seekable file-like object) -- Object data.
Bucket (string) --
Available Services (index.html)
[REQUIRED]
ACM (acm.html)
Name of the bucket to which the multipart upload was initiated.
ACMPCA (acm-pca.html)
ContentLength (integer) -- Size of the body in bytes. This parameter is
AlexaForBusiness useful when the size of the body cannot be determined automatically.
(alexaforbusiness.html) ContentMD5 (string) -- The base64-encoded 128-bit MD5 digest of the
part data. This parameter is auto-populated when using the command
Amplify (amplify.html)
from the CLI. This parameted is required if object lock parameters are
APIGateway specified.
(apigateway.html) Key (string) --
[REQUIRED]
ApiGatewayManagement
Api Object key for which the multipart upload was initiated.
(apigatewaymanagement
PartNumber (integer) --
api.html)
[REQUIRED]
Boto 3 Docs 1.9.249
documentation ( Part number of part being uploaded. This is a positive integer between 1
and 10,000.
../../index.html)
UploadId (string) --
TABLE OF CONTENTS [REQUIRED]
Upload ID identifying the multipart upload whose part is being uploaded.
Quickstart
SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
(../../guide/quickstart.html)
encrypting the object (e.g., AES256).
A Sample Tutorial SSECustomerKey (string) -- Specifies the customer-provided encryption
(../../guide/sqs.html) key for Amazon S3 to use in encrypting data. This value is used to store
the object and then it is discarded; Amazon does not store the encryption
Code Examples
key. The key must be appropriate for use with the algorithm specified in
(../../guide/examples.html)
the x-amz-server-side-encryption-customer-algorithm header. This must
User Guides be the same encryption key specified in the initiate multipart upload
(../../guide/index.html) request.
SSECustomerKeyMD5 (string) --
Available Services (index.html) Specifies the 128-bit MD5 digest of the encryption key according to RFC
ACM (acm.html) 1321. Amazon S3 uses this header for a message integrity check to
ensure the encryption key was transmitted without error.
ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)
Please note that this parameter is automatically populated if it is not
provided. Including this parameter is not required
Amplify (amplify.html)

APIGateway
RequestPayer (string) -- Confirms that the requester knows that she or
(apigateway.html)
he will be charged for the request. Bucket owners need not specify this
ApiGatewayManagement parameter in their requests. Documentation on downloading objects
Api from requester pays buckets can be found at
(apigatewaymanagement http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
api.html) (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Return type
Boto 3 Docs 1.9.249
dict
documentation (
Returns
../../index.html)
Response Syntax
TABLE OF CONTENTS

{
Quickstart 'ServerSideEncryption': 'AES256'|'aws:kms',
(../../guide/quickstart.html) 'ETag': 'string',
A Sample Tutorial 'SSECustomerAlgorithm': 'string',
(../../guide/sqs.html) 'SSECustomerKeyMD5': 'string',
'SSEKMSKeyId': 'string',
Code Examples
'RequestCharged': 'requester'
(../../guide/examples.html)
}
User Guides
(../../guide/index.html)
Response Structure
Available Services (index.html)
(dict) --
ACM (acm.html)
ServerSideEncryption (string) --
ACMPCA (acm-pca.html)
The Server-side encryption algorithm used when storing this object in
AlexaForBusiness S3 (e.g., AES256, aws:kms).
(alexaforbusiness.html)
ETag (string) --
Amplify (amplify.html)
Entity tag for the uploaded object.
APIGateway
SSECustomerAlgorithm (string) --
(apigateway.html)
If server-side encryption with a customer-provided encryption key was
ApiGatewayManagement
requested, the response will include this header confirming the
Api
encryption algorithm used.
(apigatewaymanagement
api.html) SSECustomerKeyMD5 (string) --
If server-side encryption with a customer-provided encryption key was
Boto 3 Docs 1.9.249
requested, the response will include this header to provide round trip
documentation ( message integrity verification of the customer-provided encryption key.
../../index.html)
SSEKMSKeyId (string) --

TABLE OF CONTENTS If present, specifies the ID of the AWS Key Management Service (KMS)
master encryption key that was used for the object.
Quickstart RequestCharged (string) --
(../../guide/quickstart.html)
If present, indicates that the requester was successfully charged for the
A Sample Tutorial request.
(../../guide/sqs.html)

Code Examples
upload_part_copy (**kwargs)
(../../guide/examples.html)
Uploads a part by copying data from an existing object as data source.
User Guides
See also: AWS API Documentation
(../../guide/index.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPartCopy)
Available Services (index.html)
Request Syntax
ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.upload_part_copy(
documentation ( Bucket='string',
../../index.html) CopySource='string' or {'Bucket': 'string', 'Key': 'string', 'Vers
CopySourceIfMatch='string',
CopySourceIfModifiedSince=datetime(2015, 1, 1),
TABLE OF CONTENTS
CopySourceIfNoneMatch='string',
CopySourceIfUnmodifiedSince=datetime(2015, 1, 1),
Quickstart
CopySourceRange='string',
(../../guide/quickstart.html)
Key='string',
A Sample Tutorial PartNumber=123,
(../../guide/sqs.html) UploadId='string',
Code Examples SSECustomerAlgorithm='string',
(../../guide/examples.html) SSECustomerKey='string',
CopySourceSSECustomerAlgorithm='string',
User Guides
CopySourceSSECustomerKey='string',
(../../guide/index.html)
RequestPayer='requester'
Available Services (index.html) )

ACM (acm.html)

ACMPCA (acm-pca.html) Parameters


AlexaForBusiness Bucket (string) -- [REQUIRED]
(alexaforbusiness.html) CopySource (str or dict) -- [REQUIRED] The name of the source bucket,
key name of the source object, and optional version ID of the source
Amplify (amplify.html)
object. You can either provide this value as a string or a dictionary. The
APIGateway string form is {bucket}/{key} or {bucket}/{key}?versionId={versionId} if
(apigateway.html) you want to copy a specific version. You can also provide this value as a
ApiGatewayManagement
dictionary. The dictionary format is recommended over the string format
Api
because it is more explicit. The dictionary format is: {'Bucket': 'bucket',
(apigatewaymanagement
'Key': 'key', 'VersionId': 'id'}. Note that the VersionId key is optional and
api.html)
may be omitted.
CopySourceIfMatch (string) -- Copies the object if its entity tag (ETag)
Boto 3 Docs 1.9.249
matches the specified tag.
documentation ( CopySourceIfModifiedSince (datetime) -- Copies the object if it has been
../../index.html) modified since the specified time.
CopySourceIfNoneMatch (string) -- Copies the object if its entity tag
TABLE OF CONTENTS (ETag) is different than the specified ETag.
CopySourceIfUnmodifiedSince (datetime) -- Copies the object if it hasn't
Quickstart been modified since the specified time.
(../../guide/quickstart.html) CopySourceRange (string) -- The range of bytes to copy from the source
object. The range value must use the form bytes=first-last, where the first
A Sample Tutorial and last are the zero-based byte offsets to copy. For example, bytes=0-9
(../../guide/sqs.html) indicates that you want to copy the first ten bytes of the source. You can
Code Examples copy a range only if the source object is greater than 5 MB.
(../../guide/examples.html) Key (string) -- [REQUIRED]
PartNumber (integer) --
User Guides [REQUIRED]
(../../guide/index.html)
Part number of part being copied. This is a positive integer between 1
Available Services (index.html) and 10,000.

ACM (acm.html) UploadId (string) --


[REQUIRED]
ACMPCA (acm-pca.html)
Upload ID identifying the multipart upload whose part is being copied.
AlexaForBusiness
(alexaforbusiness.html) SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
encrypting the object (e.g., AES256).
Amplify (amplify.html)
SSECustomerKey (string) -- Specifies the customer-provided encryption
APIGateway key for Amazon S3 to use in encrypting data. This value is used to store
(apigateway.html) the object and then it is discarded; Amazon does not store the encryption
key. The key must be appropriate for use with the algorithm specified in
ApiGatewayManagement
the x-amz-server-side-encryption-customer-algorithm header. This must
Api
be the same encryption key specified in the initiate multipart upload
(apigatewaymanagement
request.
api.html)
SSECustomerKeyMD5 (string) --
Boto 3 Docs 1.9.249
Specifies the 128-bit MD5 digest of the encryption key according to RFC
documentation ( 1321. Amazon S3 uses this header for a message integrity check to
../../index.html) ensure the encryption key was transmitted without error.

TABLE OF CONTENTS
Please note that this parameter is automatically populated if it is not
provided. Including this parameter is not required
Quickstart
(../../guide/quickstart.html)
CopySourceSSECustomerAlgorithm (string) -- Specifies the algorithm to
A Sample Tutorial
use when decrypting the source object (e.g., AES256).
(../../guide/sqs.html)
CopySourceSSECustomerKey (string) -- Specifies the customer-provided
Code Examples encryption key for Amazon S3 to use to decrypt the source object. The
(../../guide/examples.html) encryption key provided in this header must be one that was used when
the source object was created.
User Guides
CopySourceSSECustomerKeyMD5 (string) --
(../../guide/index.html)
Specifies the 128-bit MD5 digest of the encryption key according to RFC
Available Services (index.html) 1321. Amazon S3 uses this header for a message integrity check to
ensure the encryption key was transmitted without error.
ACM (acm.html)

ACMPCA (acm-pca.html)
Please note that this parameter is automatically populated if it is not
AlexaForBusiness provided. Including this parameter is not required
(alexaforbusiness.html)

Amplify (amplify.html) RequestPayer (string) -- Confirms that the requester knows that she or
APIGateway he will be charged for the request. Bucket owners need not specify this
(apigateway.html) parameter in their requests. Documentation on downloading objects
from requester pays buckets can be found at
ApiGatewayManagement
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Api
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(apigatewaymanagement
api.html) Return type
dict
Boto 3 Docs 1.9.249
documentation ( Returns

../../index.html) Response Syntax

TABLE OF CONTENTS {
'CopySourceVersionId': 'string',
Quickstart 'CopyPartResult': {
(../../guide/quickstart.html) 'ETag': 'string',
A Sample Tutorial 'LastModified': datetime(2015, 1, 1)
(../../guide/sqs.html) },
'ServerSideEncryption': 'AES256'|'aws:kms',
Code Examples
'SSECustomerAlgorithm': 'string',
(../../guide/examples.html)
'SSECustomerKeyMD5': 'string',
User Guides 'SSEKMSKeyId': 'string',
(../../guide/index.html) 'RequestCharged': 'requester'
}
Available Services (index.html)

ACM (acm.html)
Response Structure
ACMPCA (acm-pca.html)
(dict) --
AlexaForBusiness
CopySourceVersionId (string) --
(alexaforbusiness.html)
The version of the source object that was copied, if you have enabled
Amplify (amplify.html)
versioning on the source bucket.
APIGateway
CopyPartResult (dict) --
(apigateway.html)
ETag (string) --
ApiGatewayManagement
Api Entity tag of the object.
(apigatewaymanagement
LastModified (datetime) --
api.html)
Date and time at which the object was uploaded.
Boto 3 Docs 1.9.249
documentation ( ServerSideEncryption (string) --

../../index.html) The Server-side encryption algorithm used when storing this object in
S3 (e.g., AES256, aws:kms).
TABLE OF CONTENTS SSECustomerAlgorithm (string) --

If server-side encryption with a customer-provided encryption key was


Quickstart
requested, the response will include this header confirming the
(../../guide/quickstart.html)
encryption algorithm used.
A Sample Tutorial
SSECustomerKeyMD5 (string) --
(../../guide/sqs.html)
If server-side encryption with a customer-provided encryption key was
Code Examples
requested, the response will include this header to provide round trip
(../../guide/examples.html)
message integrity verification of the customer-provided encryption key.
User Guides SSEKMSKeyId (string) --
(../../guide/index.html)
If present, specifies the ID of the AWS Key Management Service (KMS)
Available Services (index.html) master encryption key that was used for the object.
ACM (acm.html) RequestCharged (string) --
ACMPCA (acm-pca.html) If present, indicates that the requester was successfully charged for the
AlexaForBusiness request.
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway Paginators
(apigateway.html)

ApiGatewayManagement The available paginators are:


Api
S3.Paginator.ListMultipartUploads
(apigatewaymanagement
S3.Paginator.ListObjectVersions
api.html)
S3.Paginator.ListObjects
Boto 3 Docs 1.9.249
S3.Paginator.ListObjectsV2
documentation (
S3.Paginator.ListParts
../../index.html)
class S3.Paginator. ListMultipartUploads

TABLE OF CONTENTS
paginator = client.get_paginator('list_multipart_uploads')
Quickstart
(../../guide/quickstart.html)
paginate (**kwargs)
A Sample Tutorial
Creates an iterator that will paginate through responses from
(../../guide/sqs.html)
S3.Client.list_multipart_uploads() .
Code Examples
See also: AWS API Documentation
(../../guide/examples.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
User Guides 01/ListMultipartUploads)
(../../guide/index.html)
Request Syntax
Available Services (index.html)

ACM (acm.html) response_iterator = paginator.paginate(


Bucket='string',
ACMPCA (acm-pca.html)
Delimiter='string',
AlexaForBusiness EncodingType='url',
(alexaforbusiness.html) Prefix='string',
PaginationConfig={
Amplify (amplify.html)
'MaxItems': 123,
APIGateway 'PageSize': 123,
(apigateway.html) 'StartingToken': 'string'
ApiGatewayManagement }
Api )
(apigatewaymanagement
api.html)
Parameters
Boto 3 Docs 1.9.249
Bucket (string) -- [REQUIRED]
documentation ( Delimiter (string) -- Character you use to group keys.
../../index.html) EncodingType (string) -- Requests Amazon S3 to encode the object keys
in the response and specifies the encoding method to use. An object key
TABLE OF CONTENTS may contain any Unicode character; however, XML 1.0 parser cannot
parse some characters, such as characters with an ASCII value from 0 to
Quickstart 10. For characters that are not supported in XML 1.0, you can add this
(../../guide/quickstart.html) parameter to request that Amazon S3 encode the keys in the response.
Prefix (string) -- Lists in-progress uploads only for those keys that begin
A Sample Tutorial
with the specified prefix.
(../../guide/sqs.html)
PaginationConfig (dict) --
Code Examples A dictionary that provides parameters to control pagination.
(../../guide/examples.html)
MaxItems (integer) --
User Guides The total number of items to return. If the total number of items
(../../guide/index.html) available is more than the value specified in max-items then a
NextToken will be provided in the output that you can use to resume
Available Services (index.html) pagination.
ACM (acm.html) PageSize (integer) --
ACMPCA (acm-pca.html) The size of each page.

AlexaForBusiness StartingToken (string) --


(alexaforbusiness.html) A token to specify where to start paginating. This is the NextToken from
a previous response.
Amplify (amplify.html)
Return type
APIGateway
dict
(apigateway.html)
Returns
ApiGatewayManagement
Api Response Syntax
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'Bucket': 'string',
../../index.html) 'KeyMarker': 'string',
'UploadIdMarker': 'string',
'Prefix': 'string',
TABLE OF CONTENTS
'Delimiter': 'string',
'MaxUploads': 123,
Quickstart
'IsTruncated': True|False,
(../../guide/quickstart.html)
'Uploads': [
A Sample Tutorial {
(../../guide/sqs.html) 'UploadId': 'string',
Code Examples 'Key': 'string',
(../../guide/examples.html) 'Initiated': datetime(2015, 1, 1),
'StorageClass': 'STANDARD'|'REDUCED_REDUNDANCY'|'STAND
User Guides
'Owner': {
(../../guide/index.html)
'DisplayName': 'string',
Available Services (index.html) 'ID': 'string'
},
ACM (acm.html)
'Initiator': {
ACMPCA (acm-pca.html) 'ID': 'string',
'DisplayName': 'string'
AlexaForBusiness
(alexaforbusiness.html) }
},
Amplify (amplify.html) ],
APIGateway 'CommonPrefixes': [
(apigateway.html) {
'Prefix': 'string'
ApiGatewayManagement
},
Api
],
(apigatewaymanagement
api.html) 'EncodingType': 'url',
'NextToken': 'string'
Boto 3 Docs 1.9.249
}
documentation (
../../index.html)
Response Structure
TABLE OF CONTENTS
(dict) --

Quickstart Bucket (string) --


(../../guide/quickstart.html)
Name of the bucket to which the multipart upload was initiated.
A Sample Tutorial
KeyMarker (string) --
(../../guide/sqs.html)
The key at or after which the listing began.
Code Examples
(../../guide/examples.html) UploadIdMarker (string) --

User Guides Upload ID after which listing began.


(../../guide/index.html) Prefix (string) --

Available Services (index.html) When a prefix is provided in the request, this field contains the
specified prefix. The result contains only keys starting with the
ACM (acm.html)
specified prefix.
ACMPCA (acm-pca.html)
Delimiter (string) --
AlexaForBusiness
MaxUploads (integer) --
(alexaforbusiness.html)
Maximum number of multipart uploads that could have been included
Amplify (amplify.html)
in the response.
APIGateway
IsTruncated (boolean) --
(apigateway.html)
Indicates whether the returned list of multipart uploads is truncated. A
ApiGatewayManagement
value of true indicates that the list was truncated. The list can be
Api
truncated if the number of multipart uploads exceeds the limit allowed
(apigatewaymanagement
or specified by max uploads.
api.html)
Uploads (list) --
Boto 3 Docs 1.9.249
documentation ( (dict) --

../../index.html) UploadId (string) --

Upload ID that identifies the multipart upload.


TABLE OF CONTENTS
Key (string) --

Quickstart Key of the object for which the multipart upload was initiated.
(../../guide/quickstart.html)
Initiated (datetime) --
A Sample Tutorial
Date and time at which the multipart upload was initiated.
(../../guide/sqs.html)
StorageClass (string) --
Code Examples
(../../guide/examples.html) The class of storage used to store the object.

User Guides Owner (dict) --


(../../guide/index.html) DisplayName (string) --
ID (string) --
Available Services (index.html)
Initiator (dict) --
ACM (acm.html)
Identifies who initiated the multipart upload.
ACMPCA (acm-pca.html)
ID (string) --
AlexaForBusiness
If the principal is an AWS account, it provides the Canonical User
(alexaforbusiness.html)
ID. If the principal is an IAM User, it provides a user ARN value.
Amplify (amplify.html)
DisplayName (string) --
APIGateway
Name of the Principal.
(apigateway.html)
CommonPrefixes (list) --
ApiGatewayManagement
Api (dict) --
(apigatewaymanagement Prefix (string) --
api.html) EncodingType (string) --
Encoding type used by Amazon S3 to encode object keys in the
Boto 3 Docs 1.9.249
response.
documentation (
NextToken (string) --
../../index.html)
A token to resume pagination.
TABLE OF CONTENTS

class S3.Paginator. ListObjectVersions


Quickstart
(../../guide/quickstart.html)
paginator = client.get_paginator('list_object_versions')
A Sample Tutorial
(../../guide/sqs.html)

Code Examples paginate (**kwargs)


(../../guide/examples.html) Creates an iterator that will paginate through responses from
S3.Client.list_object_versions() .
User Guides
(../../guide/index.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectVersions)
Available Services (index.html)
Request Syntax
ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response_iterator = paginator.paginate(
documentation ( Bucket='string',
../../index.html) Delimiter='string',
EncodingType='url',
Prefix='string',
TABLE OF CONTENTS
PaginationConfig={
'MaxItems': 123,
Quickstart
'PageSize': 123,
(../../guide/quickstart.html)
'StartingToken': 'string'
A Sample Tutorial }
(../../guide/sqs.html) )
Code Examples
(../../guide/examples.html)
Parameters
User Guides Bucket (string) -- [REQUIRED]
(../../guide/index.html) Delimiter (string) -- A delimiter is a character you use to group keys.
EncodingType (string) -- Requests Amazon S3 to encode the object keys
Available Services (index.html) in the response and specifies the encoding method to use. An object key
ACM (acm.html) may contain any Unicode character; however, XML 1.0 parser cannot
parse some characters, such as characters with an ASCII value from 0 to
ACMPCA (acm-pca.html)
10. For characters that are not supported in XML 1.0, you can add this
AlexaForBusiness parameter to request that Amazon S3 encode the keys in the response.
(alexaforbusiness.html) Prefix (string) -- Limits the response to keys that begin with the specified
prefix.
Amplify (amplify.html)
PaginationConfig (dict) --
APIGateway A dictionary that provides parameters to control pagination.
(apigateway.html)
MaxItems (integer) --
ApiGatewayManagement The total number of items to return. If the total number of items
Api available is more than the value specified in max-items then a
(apigatewaymanagement NextToken will be provided in the output that you can use to resume
api.html) pagination.
PageSize (integer) --
Boto 3 Docs 1.9.249
The size of each page.
documentation (
StartingToken (string) --
../../index.html)
A token to specify where to start paginating. This is the NextToken from
a previous response.
TABLE OF CONTENTS
Return type
Quickstart dict
(../../guide/quickstart.html) Returns
A Sample Tutorial Response Syntax
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'IsTruncated': True|False,
../../index.html) 'KeyMarker': 'string',
'VersionIdMarker': 'string',
'Versions': [
TABLE OF CONTENTS
{
'ETag': 'string',
Quickstart
'Size': 123,
(../../guide/quickstart.html)
'StorageClass': 'STANDARD',
A Sample Tutorial 'Key': 'string',
(../../guide/sqs.html) 'VersionId': 'string',
Code Examples 'IsLatest': True|False,
(../../guide/examples.html) 'LastModified': datetime(2015, 1, 1),
'Owner': {
User Guides
'DisplayName': 'string',
(../../guide/index.html)
'ID': 'string'
Available Services (index.html) }
},
ACM (acm.html)
],
ACMPCA (acm-pca.html) 'DeleteMarkers': [
{
AlexaForBusiness
(alexaforbusiness.html) 'Owner': {
'DisplayName': 'string',
Amplify (amplify.html) 'ID': 'string'
APIGateway },
(apigateway.html) 'Key': 'string',
'VersionId': 'string',
ApiGatewayManagement
'IsLatest': True|False,
Api
'LastModified': datetime(2015, 1, 1)
(apigatewaymanagement
api.html) },
],
Boto 3 Docs 1.9.249
'Name': 'string',
documentation ( 'Prefix': 'string',
../../index.html) 'Delimiter': 'string',
'MaxKeys': 123,
TABLE OF CONTENTS 'CommonPrefixes': [
{
Quickstart 'Prefix': 'string'
(../../guide/quickstart.html) },
],
A Sample Tutorial
'EncodingType': 'url',
(../../guide/sqs.html)
'NextToken': 'string'
Code Examples }
(../../guide/examples.html)

User Guides Response Structure


(../../guide/index.html)
(dict) --
Available Services (index.html)
IsTruncated (boolean) --
ACM (acm.html)
A flag that indicates whether or not Amazon S3 returned all of the
ACMPCA (acm-pca.html) results that satisfied the search criteria. If your results were truncated,
AlexaForBusiness
you can make a follow-up paginated request using the NextKeyMarker
(alexaforbusiness.html)
and NextVersionIdMarker response parameters as a starting place in
another request to return the rest of the results.
Amplify (amplify.html)
KeyMarker (string) --
APIGateway
(apigateway.html)
Marks the last Key returned in a truncated response.

ApiGatewayManagement
VersionIdMarker (string) --
Api Versions (list) --
(apigatewaymanagement
(dict) --
api.html)
ETag (string) --
Boto 3 Docs 1.9.249
documentation ( Size (integer) --

../../index.html) Size in bytes of the object.

StorageClass (string) --
TABLE OF CONTENTS
The class of storage used to store the object.

Quickstart Key (string) --


(../../guide/quickstart.html)
The object key.
A Sample Tutorial
VersionId (string) --
(../../guide/sqs.html)
Version ID of an object.
Code Examples
(../../guide/examples.html) IsLatest (boolean) --

User Guides Specifies whether the object is (true) or is not (false) the latest
(../../guide/index.html) version of an object.
LastModified (datetime) --
Available Services (index.html)
Date and time the object was last modified.
ACM (acm.html)
Owner (dict) --
ACMPCA (acm-pca.html)
DisplayName (string) --
AlexaForBusiness
ID (string) --
(alexaforbusiness.html)
DeleteMarkers (list) --
Amplify (amplify.html)
(dict) --
APIGateway
Owner (dict) --
(apigateway.html)
DisplayName (string) --
ApiGatewayManagement
ID (string) --
Api
Key (string) --
(apigatewaymanagement
api.html) The object key.
VersionId (string) --
Boto 3 Docs 1.9.249
documentation ( Version ID of an object.

../../index.html) IsLatest (boolean) --


Specifies whether the object is (true) or is not (false) the latest
TABLE OF CONTENTS version of an object.

LastModified (datetime) --
Quickstart
(../../guide/quickstart.html) Date and time the object was last modified.

A Sample Tutorial Name (string) --


(../../guide/sqs.html)
Prefix (string) --
Code Examples
Delimiter (string) --
(../../guide/examples.html)
MaxKeys (integer) --
User Guides
(../../guide/index.html) CommonPrefixes (list) --

(dict) --
Available Services (index.html)
Prefix (string) --
ACM (acm.html) EncodingType (string) --
ACMPCA (acm-pca.html) Encoding type used by Amazon S3 to encode object keys in the
response.
AlexaForBusiness
(alexaforbusiness.html) NextToken (string) --
Amplify (amplify.html) A token to resume pagination.
APIGateway
(apigateway.html)
class S3.Paginator. ListObjects
ApiGatewayManagement
Api
paginator = client.get_paginator('list_objects')
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 paginate (**kwargs)

documentation ( Creates an iterator that will paginate through responses from


S3.Client.list_objects() .
../../index.html)
See also: AWS API Documentation
TABLE OF CONTENTS (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjects)
Request Syntax
Quickstart
(../../guide/quickstart.html)
response_iterator = paginator.paginate(
A Sample Tutorial Bucket='string',
(../../guide/sqs.html) Delimiter='string',
Code Examples EncodingType='url',
(../../guide/examples.html) Prefix='string',
RequestPayer='requester',
User Guides PaginationConfig={
(../../guide/index.html) 'MaxItems': 123,
Available Services (index.html) 'PageSize': 123,
'StartingToken': 'string'
ACM (acm.html) }
ACMPCA (acm-pca.html) )

AlexaForBusiness
(alexaforbusiness.html) Parameters
Amplify (amplify.html) Bucket (string) -- [REQUIRED]
Delimiter (string) -- A delimiter is a character you use to group keys.
APIGateway EncodingType (string) -- Requests Amazon S3 to encode the object keys
(apigateway.html) in the response and specifies the encoding method to use. An object key
ApiGatewayManagement may contain any Unicode character; however, XML 1.0 parser cannot
Api parse some characters, such as characters with an ASCII value from 0 to
(apigatewaymanagement 10. For characters that are not supported in XML 1.0, you can add this
api.html) parameter to request that Amazon S3 encode the keys in the response.
Prefix (string) -- Limits the response to keys that begin with the specified
Boto 3 Docs 1.9.249
prefix.
documentation ( RequestPayer (string) -- Confirms that the requester knows that she or
../../index.html) he will be charged for the list objects request. Bucket owners need not
specify this parameter in their requests.
TABLE OF CONTENTS PaginationConfig (dict) --
A dictionary that provides parameters to control pagination.
Quickstart MaxItems (integer) --
(../../guide/quickstart.html) The total number of items to return. If the total number of items
A Sample Tutorial available is more than the value specified in max-items then a
(../../guide/sqs.html) NextToken will be provided in the output that you can use to resume
pagination.
Code Examples
(../../guide/examples.html) PageSize (integer) --
The size of each page.
User Guides
StartingToken (string) --
(../../guide/index.html)
A token to specify where to start paginating. This is the NextToken from
Available Services (index.html) a previous response.

ACM (acm.html) Return type


dict
ACMPCA (acm-pca.html)
Returns
AlexaForBusiness
(alexaforbusiness.html) Response Syntax
Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'IsTruncated': True|False,
../../index.html) 'Marker': 'string',
'NextMarker': 'string',
'Contents': [
TABLE OF CONTENTS
{
'Key': 'string',
Quickstart
'LastModified': datetime(2015, 1, 1),
(../../guide/quickstart.html)
'ETag': 'string',
A Sample Tutorial 'Size': 123,
(../../guide/sqs.html) 'StorageClass': 'STANDARD'|'REDUCED_REDUNDANCY'|'GLACI
Code Examples 'Owner': {
(../../guide/examples.html) 'DisplayName': 'string',
'ID': 'string'
User Guides
}
(../../guide/index.html)
},
Available Services (index.html) ],
'Name': 'string',
ACM (acm.html)
'Prefix': 'string',
ACMPCA (acm-pca.html) 'Delimiter': 'string',
'MaxKeys': 123,
AlexaForBusiness
(alexaforbusiness.html) 'CommonPrefixes': [
{
Amplify (amplify.html) 'Prefix': 'string'
APIGateway },
(apigateway.html) ],
'EncodingType': 'url',
ApiGatewayManagement
'NextToken': 'string'
Api
}
(apigatewaymanagement
api.html)
Response Structure
Boto 3 Docs 1.9.249
documentation ( (dict) --

../../index.html) IsTruncated (boolean) --

A flag that indicates whether or not Amazon S3 returned all of the


TABLE OF CONTENTS results that satisfied the search criteria.

Marker (string) --
Quickstart
(../../guide/quickstart.html) NextMarker (string) --

A Sample Tutorial When response is truncated (the IsTruncated element value in the
(../../guide/sqs.html) 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
Code Examples
objects in alphabetical order Note: This element is returned only if you
(../../guide/examples.html)
have delimiter request parameter specified. If response does not
User Guides include the NextMaker and it is truncated, you can use the value of the
(../../guide/index.html) last Key in the response as the marker in the subsequent request to get
the next set of object keys.
Available Services (index.html)
Contents (list) --
ACM (acm.html)
(dict) --
ACMPCA (acm-pca.html)
Key (string) --
AlexaForBusiness
(alexaforbusiness.html) LastModified (datetime) --

Amplify (amplify.html) ETag (string) --

APIGateway Size (integer) --


(apigateway.html) StorageClass (string) --
ApiGatewayManagement The class of storage used to store the object.
Api
Owner (dict) --
(apigatewaymanagement
api.html) DisplayName (string) --
ID (string) --
Boto 3 Docs 1.9.249
Name (string) --
documentation (
Prefix (string) --
../../index.html)
Delimiter (string) --
TABLE OF CONTENTS MaxKeys (integer) --

CommonPrefixes (list) --
Quickstart
(../../guide/quickstart.html) (dict) --
Prefix (string) --
A Sample Tutorial
EncodingType (string) --
(../../guide/sqs.html)
Encoding type used by Amazon S3 to encode object keys in the
Code Examples
response.
(../../guide/examples.html)
NextToken (string) --
User Guides
(../../guide/index.html) A token to resume pagination.

Available Services (index.html)


class S3.Paginator. ListObjectsV2
ACM (acm.html)

ACMPCA (acm-pca.html)
paginator = client.get_paginator('list_objects_v2')
AlexaForBusiness
(alexaforbusiness.html)
paginate (**kwargs)
Amplify (amplify.html)
Creates an iterator that will paginate through responses from
APIGateway S3.Client.list_objects_v2() .
(apigateway.html)
See also: AWS API Documentation
ApiGatewayManagement (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectsV2)
Api
(apigatewaymanagement Request Syntax
api.html)
Boto 3 Docs 1.9.249 response_iterator = paginator.paginate(
documentation ( Bucket='string',
../../index.html) Delimiter='string',
EncodingType='url',
Prefix='string',
TABLE OF CONTENTS
FetchOwner=True|False,
StartAfter='string',
Quickstart
RequestPayer='requester',
(../../guide/quickstart.html)
PaginationConfig={
A Sample Tutorial 'MaxItems': 123,
(../../guide/sqs.html) 'PageSize': 123,
Code Examples 'StartingToken': 'string'
(../../guide/examples.html) }
)
User Guides
(../../guide/index.html)
Parameters
Available Services (index.html)
Bucket (string) --
ACM (acm.html) [REQUIRED]

ACMPCA (acm-pca.html) Name of the bucket to list.

AlexaForBusiness Delimiter (string) -- A delimiter is a character you use to group keys.


(alexaforbusiness.html) EncodingType (string) -- Encoding type used by Amazon S3 to encode
object keys in the response.
Amplify (amplify.html)
Prefix (string) -- Limits the response to keys that begin with the specified
APIGateway prefix.
(apigateway.html) FetchOwner (boolean) -- The owner field is not present in listV2 by
default, if you want to return owner field with each key in the result then
ApiGatewayManagement
set the fetch owner field to true
Api
StartAfter (string) -- StartAfter is where you want Amazon S3 to start
(apigatewaymanagement
listing from. Amazon S3 starts listing after this specified key. StartAfter
api.html)
can be any key in the bucket
Boto 3 Docs 1.9.249
RequestPayer (string) -- Confirms that the requester knows that she or
documentation ( he will be charged for the list objects request in V2 style. Bucket owners
../../index.html) need not specify this parameter in their requests.
PaginationConfig (dict) --
TABLE OF CONTENTS A dictionary that provides parameters to control pagination.
MaxItems (integer) --
Quickstart The total number of items to return. If the total number of items
(../../guide/quickstart.html) available is more than the value specified in max-items then a
A Sample Tutorial NextToken will be provided in the output that you can use to resume
(../../guide/sqs.html) pagination.

Code Examples PageSize (integer) --


(../../guide/examples.html) The size of each page.
StartingToken (string) --
User Guides
A token to specify where to start paginating. This is the NextToken from
(../../guide/index.html)
a previous response.
Available Services (index.html)
Return type
ACM (acm.html) dict
ACMPCA (acm-pca.html) Returns
AlexaForBusiness Response Syntax
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'IsTruncated': True|False,
../../index.html) 'Contents': [
{
'Key': 'string',
TABLE OF CONTENTS
'LastModified': datetime(2015, 1, 1),
'ETag': 'string',
Quickstart
'Size': 123,
(../../guide/quickstart.html)
'StorageClass': 'STANDARD'|'REDUCED_REDUNDANCY'|'GLACI
A Sample Tutorial 'Owner': {
(../../guide/sqs.html) 'DisplayName': 'string',
Code Examples 'ID': 'string'
(../../guide/examples.html) }
},
User Guides
],
(../../guide/index.html)
'Name': 'string',
Available Services (index.html) 'Prefix': 'string',
'Delimiter': 'string',
ACM (acm.html)
'MaxKeys': 123,
ACMPCA (acm-pca.html) 'CommonPrefixes': [
{
AlexaForBusiness
(alexaforbusiness.html) 'Prefix': 'string'
},
Amplify (amplify.html) ],
APIGateway 'EncodingType': 'url',
(apigateway.html) 'KeyCount': 123,
'ContinuationToken': 'string',
ApiGatewayManagement
'StartAfter': 'string',
Api
'NextToken': 'string'
(apigatewaymanagement
api.html) }
Boto 3 Docs 1.9.249
documentation ( Response Structure
../../index.html) (dict) --

IsTruncated (boolean) --
TABLE OF CONTENTS
A flag that indicates whether or not Amazon S3 returned all of the
Quickstart results that satisfied the search criteria.
(../../guide/quickstart.html) Contents (list) --
A Sample Tutorial Metadata about each object returned.
(../../guide/sqs.html)
(dict) --
Code Examples
(../../guide/examples.html) Key (string) --
LastModified (datetime) --
User Guides
(../../guide/index.html) ETag (string) --

Available Services (index.html) Size (integer) --

ACM (acm.html) StorageClass (string) --

ACMPCA (acm-pca.html) The class of storage used to store the object.

AlexaForBusiness Owner (dict) --


(alexaforbusiness.html) DisplayName (string) --
Amplify (amplify.html) ID (string) --
Name (string) --
APIGateway
(apigateway.html) Name of the bucket to list.

ApiGatewayManagement Prefix (string) --


Api Limits the response to keys that begin with the specified prefix.
(apigatewaymanagement
api.html) Delimiter (string) --
A delimiter is a character you use to group keys.
Boto 3 Docs 1.9.249
documentation ( MaxKeys (integer) --

../../index.html) Sets the maximum number of keys returned in the response. The
response might contain fewer keys but will never contain more.
TABLE OF CONTENTS CommonPrefixes (list) --

CommonPrefixes contains all (if there are any) keys between Prefix and
Quickstart
the next occurrence of the string specified by delimiter
(../../guide/quickstart.html)
(dict) --
A Sample Tutorial
Prefix (string) --
(../../guide/sqs.html)
EncodingType (string) --
Code Examples
Encoding type used by Amazon S3 to encode object keys in the
(../../guide/examples.html)
response.
User Guides KeyCount (integer) --
(../../guide/index.html)
KeyCount is the number of keys returned with this request. KeyCount
Available Services (index.html) will always be less than equals to MaxKeys field. Say you ask for 50
ACM (acm.html) keys, your result will include less than equals 50 keys

ACMPCA (acm-pca.html) ContinuationToken (string) --

AlexaForBusiness ContinuationToken indicates Amazon S3 that the list is being continued


(alexaforbusiness.html) on this bucket with a token. ContinuationToken is obfuscated and is
not a real key
Amplify (amplify.html)
StartAfter (string) --
APIGateway
(apigateway.html) 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
ApiGatewayManagement bucket
Api
(apigatewaymanagement NextToken (string) --
api.html) A token to resume pagination.
Boto 3 Docs 1.9.249
documentation ( class S3.Paginator. ListParts

../../index.html)
paginator = client.get_paginator('list_parts')
TABLE OF CONTENTS

paginate (**kwargs)
Quickstart
(../../guide/quickstart.html)
Creates an iterator that will paginate through responses from
S3.Client.list_parts() .
A Sample Tutorial
(../../guide/sqs.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListParts)
Code Examples
(../../guide/examples.html) Request Syntax

User Guides
response_iterator = paginator.paginate(
(../../guide/index.html)
Bucket='string',
Available Services (index.html) Key='string',
UploadId='string',
ACM (acm.html)
RequestPayer='requester',
ACMPCA (acm-pca.html) PaginationConfig={
AlexaForBusiness 'MaxItems': 123,
(alexaforbusiness.html) 'PageSize': 123,
'StartingToken': 'string'
Amplify (amplify.html)
}
APIGateway )
(apigateway.html)

ApiGatewayManagement Parameters
Api
Bucket (string) -- [REQUIRED]
(apigatewaymanagement
Key (string) -- [REQUIRED]
api.html)
UploadId (string) --
Boto 3 Docs 1.9.249
[REQUIRED]
documentation (
Upload ID identifying the multipart upload whose parts are being listed.
../../index.html)
RequestPayer (string) -- Confirms that the requester knows that she or
TABLE OF CONTENTS he will be charged for the request. Bucket owners need not specify this
parameter in their requests. Documentation on downloading objects
from requester pays buckets can be found at
Quickstart
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(../../guide/quickstart.html)
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
A Sample Tutorial PaginationConfig (dict) --
(../../guide/sqs.html) A dictionary that provides parameters to control pagination.
Code Examples MaxItems (integer) --
(../../guide/examples.html) The total number of items to return. If the total number of items
available is more than the value specified in max-items then a
User Guides
NextToken will be provided in the output that you can use to resume
(../../guide/index.html)
pagination.
Available Services (index.html)
PageSize (integer) --
ACM (acm.html) The size of each page.

ACMPCA (acm-pca.html) StartingToken (string) --


A token to specify where to start paginating. This is the NextToken from
AlexaForBusiness
a previous response.
(alexaforbusiness.html)
Return type
Amplify (amplify.html)
dict
APIGateway
Returns
(apigateway.html)
Response Syntax
ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'AbortDate': datetime(2015, 1, 1),
../../index.html) 'AbortRuleId': 'string',
'Bucket': 'string',
'Key': 'string',
TABLE OF CONTENTS
'UploadId': 'string',
'PartNumberMarker': 123,
Quickstart
'MaxParts': 123,
(../../guide/quickstart.html)
'IsTruncated': True|False,
A Sample Tutorial 'Parts': [
(../../guide/sqs.html) {
Code Examples 'PartNumber': 123,
(../../guide/examples.html) 'LastModified': datetime(2015, 1, 1),
'ETag': 'string',
User Guides
'Size': 123
(../../guide/index.html)
},
Available Services (index.html) ],
'Initiator': {
ACM (acm.html)
'ID': 'string',
ACMPCA (acm-pca.html) 'DisplayName': 'string'
},
AlexaForBusiness
(alexaforbusiness.html) 'Owner': {
'DisplayName': 'string',
Amplify (amplify.html) 'ID': 'string'
APIGateway },
(apigateway.html) 'StorageClass': 'STANDARD'|'REDUCED_REDUNDANCY'|'STANDARD_IA'|
'RequestCharged': 'requester',
ApiGatewayManagement
'NextToken': 'string'
Api
}
(apigatewaymanagement
api.html)
Response Structure
Boto 3 Docs 1.9.249
documentation ( (dict) --

../../index.html) AbortDate (datetime) --

Date when multipart upload will become eligible for abort operation by
TABLE OF CONTENTS lifecycle.

AbortRuleId (string) --
Quickstart
(../../guide/quickstart.html) Id of the lifecycle rule that makes a multipart upload eligible for abort
operation.
A Sample Tutorial
(../../guide/sqs.html) Bucket (string) --

Code Examples Name of the bucket to which the multipart upload was initiated.
(../../guide/examples.html)
Key (string) --
User Guides Object key for which the multipart upload was initiated.
(../../guide/index.html)
UploadId (string) --
Available Services (index.html)
Upload ID identifying the multipart upload whose parts are being
ACM (acm.html) listed.
ACMPCA (acm-pca.html) PartNumberMarker (integer) --
AlexaForBusiness Part number after which listing begins.
(alexaforbusiness.html)
MaxParts (integer) --
Amplify (amplify.html)
Maximum number of parts that were allowed in the response.
APIGateway
IsTruncated (boolean) --
(apigateway.html)
Indicates whether the returned list of parts is truncated.
ApiGatewayManagement
Api Parts (list) --
(apigatewaymanagement
(dict) --
api.html)
PartNumber (integer) --
Boto 3 Docs 1.9.249
documentation ( Part number identifying the part. This is a positive integer between
1 and 10,000.
../../index.html)
LastModified (datetime) --
TABLE OF CONTENTS Date and time at which the part was uploaded.

ETag (string) --
Quickstart
(../../guide/quickstart.html) Entity tag returned when the part was uploaded.

A Sample Tutorial Size (integer) --


(../../guide/sqs.html)
Size in bytes of the uploaded part data.
Code Examples
Initiator (dict) --
(../../guide/examples.html)
Identifies who initiated the multipart upload.
User Guides
(../../guide/index.html) ID (string) --
If the principal is an AWS account, it provides the Canonical User ID. If
Available Services (index.html)
the principal is an IAM User, it provides a user ARN value.
ACM (acm.html)
DisplayName (string) --
ACMPCA (acm-pca.html)
Name of the Principal.
AlexaForBusiness
Owner (dict) --
(alexaforbusiness.html)
DisplayName (string) --
Amplify (amplify.html)
ID (string) --
APIGateway StorageClass (string) --
(apigateway.html)
The class of storage used to store the object.
ApiGatewayManagement
RequestCharged (string) --
Api
(apigatewaymanagement If present, indicates that the requester was successfully charged for the
api.html) request.
NextToken (string) --
Boto 3 Docs 1.9.249
documentation ( A token to resume pagination.

../../index.html)

TABLE OF CONTENTS
Waiters
Quickstart
(../../guide/quickstart.html) The available waiters are:

A Sample Tutorial S3.Waiter.BucketExists


(../../guide/sqs.html) S3.Waiter.BucketNotExists
S3.Waiter.ObjectExists
Code Examples
(../../guide/examples.html) S3.Waiter.ObjectNotExists

class S3.Waiter. BucketExists


User Guides
(../../guide/index.html)
waiter = client.get_waiter('bucket_exists')
Available Services (index.html)

ACM (acm.html)
wait (**kwargs)
ACMPCA (acm-pca.html)
Polls S3.Client.head_bucket() every 5 seconds until a successful state is
AlexaForBusiness reached. An error is returned after 20 failed checks.
(alexaforbusiness.html)
See also: AWS API Documentation
Amplify (amplify.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadBucket)
APIGateway Request Syntax
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 waiter.wait(
documentation ( Bucket='string',
../../index.html) WaiterConfig={
'Delay': 123,
'MaxAttempts': 123
TABLE OF CONTENTS
}
)
Quickstart
(../../guide/quickstart.html)

A Sample Tutorial Parameters


(../../guide/sqs.html) Bucket (string) -- [REQUIRED]
WaiterConfig (dict) --
Code Examples
A dictionary that provides parameters to control waiting behavior.
(../../guide/examples.html)
Delay (integer) --
User Guides The amount of time in seconds to wait between attempts. Default: 5
(../../guide/index.html)
MaxAttempts (integer) --
Available Services (index.html) The maximum number of attempts to be made. Default: 20
ACM (acm.html) Returns
ACMPCA (acm-pca.html) None

AlexaForBusiness
(alexaforbusiness.html) class S3.Waiter. BucketNotExists
Amplify (amplify.html)

APIGateway waiter = client.get_waiter('bucket_not_exists')


(apigateway.html)

ApiGatewayManagement wait (**kwargs)


Api Polls S3.Client.head_bucket() every 5 seconds until a successful state is
(apigatewaymanagement
reached. An error is returned after 20 failed checks.
api.html)
See also: AWS API Documentation
Boto 3 Docs 1.9.249
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadBucket)
documentation (
Request Syntax
../../index.html)

TABLE OF CONTENTS waiter.wait(


Bucket='string',
Quickstart WaiterConfig={
(../../guide/quickstart.html) 'Delay': 123,
'MaxAttempts': 123
A Sample Tutorial
}
(../../guide/sqs.html)
)
Code Examples
(../../guide/examples.html)
Parameters
User Guides Bucket (string) -- [REQUIRED]
(../../guide/index.html) WaiterConfig (dict) --
A dictionary that provides parameters to control waiting behavior.
Available Services (index.html)
Delay (integer) --
ACM (acm.html)
The amount of time in seconds to wait between attempts. Default: 5
ACMPCA (acm-pca.html)
MaxAttempts (integer) --
AlexaForBusiness The maximum number of attempts to be made. Default: 20
(alexaforbusiness.html)
Returns
Amplify (amplify.html) None
APIGateway
(apigateway.html)
class S3.Waiter. ObjectExists
ApiGatewayManagement
Api
(apigatewaymanagement waiter = client.get_waiter('object_exists')
api.html)
Boto 3 Docs 1.9.249 wait (**kwargs)
Polls S3.Client.head_object() every 5 seconds until a successful state is
documentation (
reached. An error is returned after 20 failed checks.
../../index.html)
See also: AWS API Documentation
TABLE OF CONTENTS
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObject)

Request Syntax
Quickstart
(../../guide/quickstart.html)
waiter.wait(
A Sample Tutorial Bucket='string',
(../../guide/sqs.html) IfMatch='string',
Code Examples IfModifiedSince=datetime(2015, 1, 1),
(../../guide/examples.html) IfNoneMatch='string',
IfUnmodifiedSince=datetime(2015, 1, 1),
User Guides Key='string',
(../../guide/index.html) Range='string',

Available Services (index.html) VersionId='string',


SSECustomerAlgorithm='string',
ACM (acm.html) SSECustomerKey='string',
ACMPCA (acm-pca.html) RequestPayer='requester',
PartNumber=123,
AlexaForBusiness
WaiterConfig={
(alexaforbusiness.html)
'Delay': 123,
Amplify (amplify.html) 'MaxAttempts': 123
APIGateway }
(apigateway.html) )

ApiGatewayManagement
Api Parameters
(apigatewaymanagement Bucket (string) -- [REQUIRED]
api.html)
IfMatch (string) -- Return the object only if its entity tag (ETag) is the same
Boto 3 Docs 1.9.249
as the one specified, otherwise return a 412 (precondition failed).
documentation ( IfModifiedSince (datetime) -- Return the object only if it has been
../../index.html) modified since the specified time, otherwise return a 304 (not modified).
IfNoneMatch (string) -- Return the object only if its entity tag (ETag) is
TABLE OF CONTENTS different from the one specified, otherwise return a 304 (not modified).
IfUnmodifiedSince (datetime) -- Return the object only if it has not been
Quickstart modified since the specified time, otherwise return a 412 (precondition
(../../guide/quickstart.html) failed).
Key (string) -- [REQUIRED]
A Sample Tutorial Range (string) -- Downloads the specified range bytes of an object. For
(../../guide/sqs.html) more information about the HTTP Range header, go to
Code Examples http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
(../../guide/examples.html) (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35).
VersionId (string) -- VersionId used to reference a specific version of the
User Guides object.
(../../guide/index.html) SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
encrypting the object (e.g., AES256).
Available Services (index.html)
SSECustomerKey (string) -- Specifies the customer-provided encryption
ACM (acm.html) key for Amazon S3 to use in encrypting data. This value is used to store
the object and then it is discarded; Amazon does not store the encryption
ACMPCA (acm-pca.html)
key. The key must be appropriate for use with the algorithm specified in
AlexaForBusiness the x-amz-server-side-encryption-customer-algorithm header.
(alexaforbusiness.html) SSECustomerKeyMD5 (string) --
Amplify (amplify.html) 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
APIGateway ensure the encryption key was transmitted without error.
(apigateway.html)

ApiGatewayManagement
Please note that this parameter is automatically populated if it is not
Api
provided. Including this parameter is not required
(apigatewaymanagement
api.html)
RequestPayer (string) -- Confirms that the requester knows that she or
Boto 3 Docs 1.9.249
he will be charged for the request. Bucket owners need not specify this
documentation ( parameter in their requests. Documentation on downloading objects
../../index.html) from requester pays buckets can be found at
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
TABLE OF CONTENTS (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
PartNumber (integer) -- Part number of the object being read. This is a
Quickstart positive integer between 1 and 10,000. Effectively performs a 'ranged'
(../../guide/quickstart.html) HEAD request for the part specified. Useful querying about the size of the
part and the number of parts in this object.
A Sample Tutorial WaiterConfig (dict) --
(../../guide/sqs.html) A dictionary that provides parameters to control waiting behavior.
Code Examples Delay (integer) --
(../../guide/examples.html) The amount of time in seconds to wait between attempts. Default: 5
User Guides MaxAttempts (integer) --
(../../guide/index.html) The maximum number of attempts to be made. Default: 20

Available Services (index.html) Returns


None
ACM (acm.html)

ACMPCA (acm-pca.html)
class S3.Waiter. ObjectNotExists
AlexaForBusiness
(alexaforbusiness.html)
waiter = client.get_waiter('object_not_exists')
Amplify (amplify.html)

APIGateway
(apigateway.html) wait (**kwargs)

ApiGatewayManagement Polls S3.Client.head_object() every 5 seconds until a successful state is


Api reached. An error is returned after 20 failed checks.
(apigatewaymanagement See also: AWS API Documentation
api.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObject)
Request Syntax
Boto 3 Docs 1.9.249
documentation (
waiter.wait(
../../index.html)
Bucket='string',
IfMatch='string',
TABLE OF CONTENTS
IfModifiedSince=datetime(2015, 1, 1),
IfNoneMatch='string',
Quickstart
IfUnmodifiedSince=datetime(2015, 1, 1),
(../../guide/quickstart.html)
Key='string',
A Sample Tutorial Range='string',
(../../guide/sqs.html) VersionId='string',

Code Examples SSECustomerAlgorithm='string',


(../../guide/examples.html) SSECustomerKey='string',
RequestPayer='requester',
User Guides PartNumber=123,
(../../guide/index.html) WaiterConfig={
'Delay': 123,
Available Services (index.html)
'MaxAttempts': 123
ACM (acm.html) }
ACMPCA (acm-pca.html) )

AlexaForBusiness
(alexaforbusiness.html) Parameters
Amplify (amplify.html) Bucket (string) -- [REQUIRED]
IfMatch (string) -- Return the object only if its entity tag (ETag) is the same
APIGateway as the one specified, otherwise return a 412 (precondition failed).
(apigateway.html) IfModifiedSince (datetime) -- Return the object only if it has been
ApiGatewayManagement modified since the specified time, otherwise return a 304 (not modified).
Api IfNoneMatch (string) -- Return the object only if its entity tag (ETag) is
(apigatewaymanagement different from the one specified, otherwise return a 304 (not modified).
api.html)
IfUnmodifiedSince (datetime) -- Return the object only if it has not been
Boto 3 Docs 1.9.249
modified since the specified time, otherwise return a 412 (precondition
documentation ( failed).
../../index.html) Key (string) -- [REQUIRED]
Range (string) -- Downloads the specified range bytes of an object. For
TABLE OF CONTENTS more information about the HTTP Range header, go to
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
Quickstart (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35).
(../../guide/quickstart.html) VersionId (string) -- VersionId used to reference a specific version of the
object.
A Sample Tutorial SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
(../../guide/sqs.html) encrypting the object (e.g., AES256).
Code Examples SSECustomerKey (string) -- Specifies the customer-provided encryption
(../../guide/examples.html) key for Amazon S3 to use in encrypting data. This value is used to store
the object and then it is discarded; Amazon does not store the encryption
User Guides key. The key must be appropriate for use with the algorithm specified in
(../../guide/index.html) the x-amz-server-side-encryption-customer-algorithm header.
SSECustomerKeyMD5 (string) --
Available Services (index.html)
Specifies the 128-bit MD5 digest of the encryption key according to RFC
ACM (acm.html) 1321. Amazon S3 uses this header for a message integrity check to
ensure the encryption key was transmitted without error.
ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html) Please note that this parameter is automatically populated if it is not
provided. Including this parameter is not required
Amplify (amplify.html)

APIGateway
RequestPayer (string) -- Confirms that the requester knows that she or
(apigateway.html)
he will be charged for the request. Bucket owners need not specify this
ApiGatewayManagement parameter in their requests. Documentation on downloading objects
Api from requester pays buckets can be found at
(apigatewaymanagement http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
api.html) (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
PartNumber (integer) -- Part number of the object being read. This is a
Boto 3 Docs 1.9.249
positive integer between 1 and 10,000. Effectively performs a 'ranged'
documentation ( HEAD request for the part specified. Useful querying about the size of the
../../index.html) part and the number of parts in this object.
WaiterConfig (dict) --
TABLE OF CONTENTS A dictionary that provides parameters to control waiting behavior.
Delay (integer) --
Quickstart The amount of time in seconds to wait between attempts. Default: 5
(../../guide/quickstart.html)
MaxAttempts (integer) --
A Sample Tutorial The maximum number of attempts to be made. Default: 20
(../../guide/sqs.html)
Returns
Code Examples None
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)


Service Resource
ACM (acm.html) class S3. ServiceResource
ACMPCA (acm-pca.html) A resource representing Amazon Simple Storage Service (S3):

AlexaForBusiness
(alexaforbusiness.html) import boto3

Amplify (amplify.html)
s3 = boto3.resource('s3')
APIGateway
(apigateway.html)
These are the resource's available actions:
ApiGatewayManagement
Api create_bucket()
(apigatewaymanagement get_available_subresources()
api.html) These are the resource's available sub-resources:
Bucket()
Boto 3 Docs 1.9.249
BucketAcl()
documentation ( BucketCors()
../../index.html) BucketLifecycle()
BucketLifecycleConfiguration()
TABLE OF CONTENTS BucketLogging()
BucketNotification()
Quickstart BucketPolicy()
(../../guide/quickstart.html) BucketRequestPayment()
BucketTagging()
A Sample Tutorial
(../../guide/sqs.html) BucketVersioning()
BucketWebsite()
Code Examples MultipartUpload()
(../../guide/examples.html)
MultipartUploadPart()
User Guides Object()
(../../guide/index.html) ObjectAcl()
ObjectSummary()
Available Services (index.html) ObjectVersion()
ACM (acm.html) These are the resource's available collections:
ACMPCA (acm-pca.html) buckets
AlexaForBusiness Actions
(alexaforbusiness.html)
Actions call operations on resources. They may automatically handle the passing in
Amplify (amplify.html) of arguments set from identifiers and some attributes. For more information about
actions refer to the Resources Introduction Guide
APIGateway
(../../guide/resources.html#actions-intro).
(apigateway.html)

ApiGatewayManagement create_bucket (**kwargs)


Api Creates a new bucket.
(apigatewaymanagement
See also: AWS API Documentation
api.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateBucket)
Request Syntax
Boto 3 Docs 1.9.249
documentation (
bucket = s3.create_bucket(
../../index.html)
ACL='private'|'public-read'|'public-read-write'|'authenticated-rea
Bucket='string',
TABLE OF CONTENTS
CreateBucketConfiguration={
'LocationConstraint': 'EU'|'eu-west-1'|'us-west-1'|'us-west-2'
Quickstart
},
(../../guide/quickstart.html)
GrantFullControl='string',
A Sample Tutorial GrantRead='string',
(../../guide/sqs.html) GrantReadACP='string',

Code Examples GrantWrite='string',


(../../guide/examples.html) GrantWriteACP='string',
ObjectLockEnabledForBucket=True|False
User Guides )
(../../guide/index.html)

Available Services (index.html)


Parameters
ACM (acm.html)
ACL (string) -- The canned ACL to apply to the bucket.
ACMPCA (acm-pca.html) Bucket (string) -- [REQUIRED]
AlexaForBusiness CreateBucketConfiguration (dict) --
(alexaforbusiness.html) LocationConstraint (string) --
Specifies the region where the bucket will be created. If you don't
Amplify (amplify.html) specify a region, the bucket is created in US East (N. Virginia) Region
APIGateway (us-east-1).
(apigateway.html) GrantFullControl (string) -- Allows grantee the read, write, read ACP, and
ApiGatewayManagement write ACP permissions on the bucket.
Api GrantRead (string) -- Allows grantee to list the objects in the bucket.
(apigatewaymanagement GrantReadACP (string) -- Allows grantee to read the bucket ACL.
api.html)
GrantWrite (string) -- Allows grantee to create, overwrite, and delete any
Boto 3 Docs 1.9.249
object in the bucket.
documentation ( GrantWriteACP (string) -- Allows grantee to write the ACL for the
../../index.html) applicable bucket.
ObjectLockEnabledForBucket (boolean) -- Specifies whether you want
TABLE OF CONTENTS Amazon S3 object lock to be enabled for the new bucket.

Return type
Quickstart s3.Bucket
(../../guide/quickstart.html)
Returns
A Sample Tutorial
Bucket resource
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html) get_available_subresources ()
Returns a list of all the available sub-resources for this Resource.
User Guides
(../../guide/index.html) Returns
A list containing the name of each sub-resource for this resource
Available Services (index.html)
Return type
ACM (acm.html)
list of str
ACMPCA (acm-pca.html)

AlexaForBusiness
Sub-resources
(alexaforbusiness.html)
Sub-resources are methods that create a new instance of a child resource. This
Amplify (amplify.html) resource's identifiers get passed along to the child. For more information about
APIGateway sub-resources refer to the Resources Introduction Guide
(apigateway.html) (../../guide/resources.html#subresources-intro).

ApiGatewayManagement Bucket (name)


Api Creates a Bucket resource.:
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 bucket = s3.Bucket('name')
documentation (
../../index.html) Parameters
name (string) -- The Bucket's name identifier. This must be set.
TABLE OF CONTENTS
Return type
S3.Bucket
Quickstart
(../../guide/quickstart.html) Returns
A Sample Tutorial A Bucket resource
(../../guide/sqs.html)

Code Examples
BucketAcl (bucket_name)
(../../guide/examples.html)
Creates a BucketAcl resource.:
User Guides
(../../guide/index.html)
bucket_acl = s3.BucketAcl('bucket_name')
Available Services (index.html)

ACM (acm.html) Parameters


ACMPCA (acm-pca.html) bucket_name (string) -- The BucketAcl's bucket_name identifier. This must
be set.
AlexaForBusiness
(alexaforbusiness.html) Return type
S3.BucketAcl
Amplify (amplify.html)
Returns
APIGateway
A BucketAcl resource
(apigateway.html)

ApiGatewayManagement
Api BucketCors (bucket_name)
(apigatewaymanagement Creates a BucketCors resource.:
api.html)
Boto 3 Docs 1.9.249 bucket_cors = s3.BucketCors('bucket_name')
documentation (
../../index.html) Parameters
bucket_name (string) -- The BucketCors's bucket_name identifier. This
TABLE OF CONTENTS must be set.
Return type
Quickstart
S3.BucketCors
(../../guide/quickstart.html)

A Sample Tutorial Returns


(../../guide/sqs.html) A BucketCors resource

Code Examples
(../../guide/examples.html)
BucketLifecycle (bucket_name)
User Guides Creates a BucketLifecycle resource.:
(../../guide/index.html)

Available Services (index.html) bucket_lifecycle = s3.BucketLifecycle('bucket_name')

ACM (acm.html)
Parameters
ACMPCA (acm-pca.html)
bucket_name (string) -- The BucketLifecycle's bucket_name identifier. This
AlexaForBusiness must be set.
(alexaforbusiness.html)
Return type
Amplify (amplify.html)
S3.BucketLifecycle
APIGateway
Returns
(apigateway.html)
A BucketLifecycle resource
ApiGatewayManagement
Api
(apigatewaymanagement BucketLifecycleConfiguration (bucket_name)
api.html) Creates a BucketLifecycleConfiguration resource.:
Boto 3 Docs 1.9.249 bucket_lifecycle_configuration = s3.BucketLifecycleConfiguration('buck
documentation (
../../index.html)
Parameters
TABLE OF CONTENTS bucket_name (string) -- The BucketLifecycleConfiguration's bucket_name
identifier. This must be set.
Quickstart Return type
(../../guide/quickstart.html)
S3.BucketLifecycleConfiguration
A Sample Tutorial
Returns
(../../guide/sqs.html)
A BucketLifecycleConfiguration resource
Code Examples
(../../guide/examples.html)
BucketLogging (bucket_name)
User Guides
(../../guide/index.html) Creates a BucketLogging resource.:

Available Services (index.html)


bucket_logging = s3.BucketLogging('bucket_name')
ACM (acm.html)

ACMPCA (acm-pca.html) Parameters


AlexaForBusiness bucket_name (string) -- The BucketLogging's bucket_name identifier. This
(alexaforbusiness.html) must be set.

Amplify (amplify.html) Return type

APIGateway S3.BucketLogging
(apigateway.html) Returns
ApiGatewayManagement A BucketLogging resource
Api
(apigatewaymanagement
api.html) BucketNotification (bucket_name)
Creates a BucketNotification resource.:
Boto 3 Docs 1.9.249
documentation (
bucket_notification = s3.BucketNotification('bucket_name')
../../index.html)

TABLE OF CONTENTS Parameters


bucket_name (string) -- The BucketNotification's bucket_name identifier.
Quickstart This must be set.
(../../guide/quickstart.html)
Return type
A Sample Tutorial S3.BucketNotification
(../../guide/sqs.html)
Returns
Code Examples A BucketNotification resource
(../../guide/examples.html)

User Guides
(../../guide/index.html) BucketPolicy (bucket_name)
Creates a BucketPolicy resource.:
Available Services (index.html)

ACM (acm.html) bucket_policy = s3.BucketPolicy('bucket_name')


ACMPCA (acm-pca.html)

AlexaForBusiness Parameters
(alexaforbusiness.html) bucket_name (string) -- The BucketPolicy's bucket_name identifier. This
Amplify (amplify.html) must be set.

APIGateway Return type


(apigateway.html) S3.BucketPolicy

ApiGatewayManagement Returns
Api A BucketPolicy resource
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 BucketRequestPayment (bucket_name)
Creates a BucketRequestPayment resource.:
documentation (
../../index.html)
bucket_request_payment = s3.BucketRequestPayment('bucket_name')
TABLE OF CONTENTS

Parameters
Quickstart bucket_name (string) -- The BucketRequestPayment's bucket_name
(../../guide/quickstart.html) identifier. This must be set.
A Sample Tutorial Return type
(../../guide/sqs.html)
S3.BucketRequestPayment
Code Examples
Returns
(../../guide/examples.html)
A BucketRequestPayment resource
User Guides
(../../guide/index.html)
BucketTagging (bucket_name)
Available Services (index.html)
Creates a BucketTagging resource.:
ACM (acm.html)

ACMPCA (acm-pca.html) bucket_tagging = s3.BucketTagging('bucket_name')


AlexaForBusiness
(alexaforbusiness.html)
Parameters
Amplify (amplify.html) bucket_name (string) -- The BucketTagging's bucket_name identifier. This
must be set.
APIGateway
(apigateway.html) Return type
ApiGatewayManagement S3.BucketTagging
Api Returns
(apigatewaymanagement
A BucketTagging resource
api.html)
Boto 3 Docs 1.9.249 BucketVersioning (bucket_name)
Creates a BucketVersioning resource.:
documentation (
../../index.html)
bucket_versioning = s3.BucketVersioning('bucket_name')
TABLE OF CONTENTS

Parameters
Quickstart bucket_name (string) -- The BucketVersioning's bucket_name identifier.
(../../guide/quickstart.html) This must be set.
A Sample Tutorial Return type
(../../guide/sqs.html)
S3.BucketVersioning
Code Examples
Returns
(../../guide/examples.html)
A BucketVersioning resource
User Guides
(../../guide/index.html)
BucketWebsite (bucket_name)
Available Services (index.html)
Creates a BucketWebsite resource.:
ACM (acm.html)

ACMPCA (acm-pca.html) bucket_website = s3.BucketWebsite('bucket_name')


AlexaForBusiness
(alexaforbusiness.html)
Parameters
Amplify (amplify.html) bucket_name (string) -- The BucketWebsite's bucket_name identifier. This
must be set.
APIGateway
(apigateway.html) Return type
ApiGatewayManagement S3.BucketWebsite
Api Returns
(apigatewaymanagement
A BucketWebsite resource
api.html)
Boto 3 Docs 1.9.249 MultipartUpload (bucket_name, object_key, id)

documentation ( Creates a MultipartUpload resource.:

../../index.html)
multipart_upload = s3.MultipartUpload('bucket_name','object_key','id')
TABLE OF CONTENTS

Quickstart Parameters
(../../guide/quickstart.html) bucket_name (string) -- The MultipartUpload's bucket_name identifier.
A Sample Tutorial
This must be set.
(../../guide/sqs.html)
object_key (string) -- The MultipartUpload's object_key identifier. This
must be set.
Code Examples id (string) -- The MultipartUpload's id identifier. This must be set.
(../../guide/examples.html)
Return type
User Guides S3.MultipartUpload
(../../guide/index.html)
Returns
Available Services (index.html) A MultipartUpload resource
ACM (acm.html)

ACMPCA (acm-pca.html) MultipartUploadPart (bucket_name, object_key, multipart_upload_id,


AlexaForBusiness part_number)
(alexaforbusiness.html) Creates a MultipartUploadPart resource.:
Amplify (amplify.html)

APIGateway multipart_upload_part = s3.MultipartUploadPart('bucket_name','object_k


(apigateway.html)

ApiGatewayManagement
Api Parameters
(apigatewaymanagement bucket_name (string) -- The MultipartUploadPart's bucket_name
api.html) identifier. This must be set.
object_key (string) -- The MultipartUploadPart's object_key identifier. This
Boto 3 Docs 1.9.249
must be set.
documentation ( multipart_upload_id (string) -- The MultipartUploadPart's
../../index.html) multipart_upload_id identifier. This must be set.
part_number (string) -- The MultipartUploadPart's part_number
TABLE OF CONTENTS identifier. This must be set.
Return type
Quickstart S3.MultipartUploadPart
(../../guide/quickstart.html)
Returns
A Sample Tutorial
A MultipartUploadPart resource
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html) Object (bucket_name, key)
Creates a Object resource.:
User Guides
(../../guide/index.html)
object = s3.Object('bucket_name','key')
Available Services (index.html)

ACM (acm.html)
Parameters
ACMPCA (acm-pca.html) bucket_name (string) -- The Object's bucket_name identifier. This must
AlexaForBusiness be set.
(alexaforbusiness.html) key (string) -- The Object's key identifier. This must be set.

Amplify (amplify.html) Return type


S3.Object
APIGateway
(apigateway.html) Returns
ApiGatewayManagement A Object resource
Api
(apigatewaymanagement
api.html) ObjectAcl (bucket_name, object_key)
Creates a ObjectAcl resource.:
Boto 3 Docs 1.9.249
documentation (
object_acl = s3.ObjectAcl('bucket_name','object_key')
../../index.html)

TABLE OF CONTENTS Parameters


bucket_name (string) -- The ObjectAcl's bucket_name identifier. This
Quickstart must be set.
(../../guide/quickstart.html) object_key (string) -- The ObjectAcl's object_key identifier. This must be
set.
A Sample Tutorial
(../../guide/sqs.html) Return type
S3.ObjectAcl
Code Examples
(../../guide/examples.html) Returns
A ObjectAcl resource
User Guides
(../../guide/index.html)

Available Services (index.html) ObjectSummary (bucket_name, key)

ACM (acm.html) Creates a ObjectSummary resource.:

ACMPCA (acm-pca.html)
object_summary = s3.ObjectSummary('bucket_name','key')
AlexaForBusiness
(alexaforbusiness.html)
Parameters
Amplify (amplify.html)
bucket_name (string) -- The ObjectSummary's bucket_name identifier.
APIGateway This must be set.
(apigateway.html) key (string) -- The ObjectSummary's key identifier. This must be set.
ApiGatewayManagement Return type
Api
S3.ObjectSummary
(apigatewaymanagement
api.html) Returns
A ObjectSummary resource
Boto 3 Docs 1.9.249
documentation (
../../index.html) ObjectVersion (bucket_name, object_key, id)
Creates a ObjectVersion resource.:
TABLE OF CONTENTS

object_version = s3.ObjectVersion('bucket_name','object_key','id')
Quickstart
(../../guide/quickstart.html)
Parameters
A Sample Tutorial
(../../guide/sqs.html) bucket_name (string) -- The ObjectVersion's bucket_name identifier. This
must be set.
Code Examples object_key (string) -- The ObjectVersion's object_key identifier. This must
(../../guide/examples.html) be set.
User Guides
id (string) -- The ObjectVersion's id identifier. This must be set.
(../../guide/index.html) Return type
S3.ObjectVersion
Available Services (index.html)

ACM (acm.html)
Returns
A ObjectVersion resource
ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html) Collections
Collections provide an interface to iterate over and manipulate groups of resources.
Amplify (amplify.html)
For more information about collections refer to the Resources Introduction Guide
APIGateway (../../guide/collections.html#guide-collections).
(apigateway.html)
buckets
ApiGatewayManagement A collection of Bucket resources
Api
(apigatewaymanagement all ()
api.html) Creates an iterable of all Bucket resources in the collection.
See also: AWS API Documentation
Boto 3 Docs 1.9.249
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBuckets)
documentation (
Request Syntax
../../index.html)

TABLE OF CONTENTS bucket_iterator = s3.buckets.all()

Quickstart Return type


(../../guide/quickstart.html)
list( s3.Bucket )
A Sample Tutorial
Returns
(../../guide/sqs.html)
A list of Bucket resources
Code Examples
(../../guide/examples.html)
filter ()
User Guides
(../../guide/index.html) Creates an iterable of all Bucket resources in the collection filtered by
kwargs passed to method.
Available Services (index.html)
See also: AWS API Documentation
ACM (acm.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBuckets)
ACMPCA (acm-pca.html) Request Syntax
AlexaForBusiness
(alexaforbusiness.html) bucket_iterator = s3.buckets.filter()
Amplify (amplify.html)

APIGateway Return type


(apigateway.html) list( s3.Bucket )
ApiGatewayManagement Returns
Api A list of Bucket resources
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 limit (**kwargs)
Creates an iterable up to a specified amount of Bucket resources in the
documentation (
collection.
../../index.html)
See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBuckets)
TABLE OF CONTENTS
Request Syntax
Quickstart
(../../guide/quickstart.html)
bucket_iterator = s3.buckets.limit()
A Sample Tutorial
(../../guide/sqs.html)
Return type
Code Examples list( s3.Bucket )
(../../guide/examples.html)
Returns
User Guides A list of Bucket resources
(../../guide/index.html)

Available Services (index.html)


page_size (**kwargs)
ACM (acm.html)
Creates an iterable of all Bucket resources in the collection, but limits the
ACMPCA (acm-pca.html) number of items returned by each service call by the specified amount.

AlexaForBusiness See also: AWS API Documentation


(alexaforbusiness.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBuckets)

Amplify (amplify.html) Request Syntax

APIGateway
(apigateway.html) bucket_iterator = s3.buckets.page_size()

ApiGatewayManagement
Api Return type
(apigatewaymanagement
list( s3.Bucket )
api.html)
Returns
Boto 3 Docs 1.9.249
A list of Bucket resources
documentation (
../../index.html)

TABLE OF CONTENTS Bucket


Quickstart
class S3. Bucket (name)
(../../guide/quickstart.html)
A resource representing an Amazon Simple Storage Service (S3) Bucket:
A Sample Tutorial
(../../guide/sqs.html)
import boto3
Code Examples
(../../guide/examples.html)
s3 = boto3.resource('s3')
User Guides bucket = s3.Bucket('name')
(../../guide/index.html)

Available Services (index.html) Parameters


name (string) -- The Bucket's name identifier. This must be set.
ACM (acm.html)

ACMPCA (acm-pca.html) These are the resource's available identifiers:

AlexaForBusiness name
(alexaforbusiness.html)
These are the resource's available attributes:
Amplify (amplify.html)
creation_date
APIGateway
These are the resource's available actions:
(apigateway.html)
copy()
ApiGatewayManagement
create()
Api
delete()
(apigatewaymanagement
api.html) delete_objects()
download_file()
Boto 3 Docs 1.9.249
download_fileobj()
documentation ( get_available_subresources()
../../index.html) load()
put_object()
TABLE OF CONTENTS upload_file()
upload_fileobj()
Quickstart
These are the resource's available sub-resources:
(../../guide/quickstart.html)
Acl()
A Sample Tutorial
Cors()
(../../guide/sqs.html)
Lifecycle()
Code Examples LifecycleConfiguration()
(../../guide/examples.html) Logging()
Notification()
User Guides
Object()
(../../guide/index.html)
Policy()
Available Services (index.html) RequestPayment()
ACM (acm.html) Tagging()
Versioning()
ACMPCA (acm-pca.html) Website()
AlexaForBusiness
These are the resource's available collections:
(alexaforbusiness.html)
multipart_uploads
Amplify (amplify.html)
object_versions
APIGateway objects
(apigateway.html)
These are the resource's available waiters:
ApiGatewayManagement
wait_until_exists()
Api
wait_until_not_exists()
(apigatewaymanagement
api.html) Identifiers
Identifiers are properties of a resource that are set upon instantation of the
Boto 3 Docs 1.9.249
resource. For more information about identifiers refer to the Resources
documentation ( Introduction Guide (../../guide/resources.html#identifiers-attributes-intro).
../../index.html)
name
(string) The Bucket's name identifier. This must be set.
TABLE OF CONTENTS

Attributes
Quickstart Attributes provide access to the properties of a resource. Attributes are lazy-loaded
(../../guide/quickstart.html) the first time one is accessed via the load() method. For more information about
A Sample Tutorial attributes refer to the Resources Introduction Guide
(../../guide/sqs.html) (../../guide/resources.html#identifiers-attributes-intro).

Code Examples creation_date


(../../guide/examples.html) (datetime) --

User Guides Date the bucket was created.


(../../guide/index.html)
Actions
Available Services (index.html) Actions call operations on resources. They may automatically handle the passing in
ACM (acm.html) of arguments set from identifiers and some attributes. For more information about
actions refer to the Resources Introduction Guide
ACMPCA (acm-pca.html)
(../../guide/resources.html#actions-intro).
AlexaForBusiness
copy (CopySource, Key, ExtraArgs=None, Callback=None, SourceClient=None,
(alexaforbusiness.html)
Config=None)
Amplify (amplify.html)
Copy an object from one S3 location to an object in this bucket.
APIGateway
This is a managed transfer which will perform a multipart copy in multiple
(apigateway.html)
threads if necessary.
ApiGatewayManagement
Usage:
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 import boto3
documentation ( s3 = boto3.resource('s3')
../../index.html) copy_source = {
'Bucket': 'mybucket',
'Key': 'mykey'
TABLE OF CONTENTS
}
bucket = s3.Bucket('otherbucket')
Quickstart
bucket.copy(copy_source, 'otherkey')
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html) Parameters
CopySource (dict) -- The name of the source bucket, key name of the
Code Examples
source object, and optional version ID of the source object. The dictionary
(../../guide/examples.html)
format is: {'Bucket': 'bucket', 'Key': 'key', 'VersionId': 'id'} .
User Guides Note that the VersionId key is optional and may be omitted.
(../../guide/index.html) Key (str) -- The name of the key to copy to
ExtraArgs (dict) -- Extra arguments that may be passed to the client
Available Services (index.html) operation
ACM (acm.html) Callback (function) -- A method which takes a number of bytes
transferred to be periodically called during the copy.
ACMPCA (acm-pca.html)
SourceClient (botocore or boto3 Client) -- The client to be used for
AlexaForBusiness operation that may happen at the source object. For example, this client
(alexaforbusiness.html) is used for the head_object that determines the size of the copy. If no
client is provided, the current client is used as the client for the source
Amplify (amplify.html)
object.
APIGateway Config (boto3.s3.transfer.TransferConfig
(apigateway.html) (../customizations/s3.html#boto3.s3.transfer.TransferConfig)) -- The
transfer configuration to be used when performing the copy.
ApiGatewayManagement
Api
(apigatewaymanagement
create (**kwargs)
api.html)
Creates a new bucket.
Boto 3 Docs 1.9.249
documentation ( See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateBucket)
../../index.html)
Request Syntax
TABLE OF CONTENTS
response = bucket.create(
Quickstart ACL='private'|'public-read'|'public-read-write'|'authenticated-rea
(../../guide/quickstart.html) CreateBucketConfiguration={
A Sample Tutorial 'LocationConstraint': 'EU'|'eu-west-1'|'us-west-1'|'us-west-2'
(../../guide/sqs.html) },
GrantFullControl='string',
Code Examples
GrantRead='string',
(../../guide/examples.html)
GrantReadACP='string',
User Guides GrantWrite='string',
(../../guide/index.html) GrantWriteACP='string',
ObjectLockEnabledForBucket=True|False
Available Services (index.html)
)
ACM (acm.html)

ACMPCA (acm-pca.html)
Parameters
AlexaForBusiness
ACL (string) -- The canned ACL to apply to the bucket.
(alexaforbusiness.html)
CreateBucketConfiguration (dict) --
Amplify (amplify.html) LocationConstraint (string) --
APIGateway Specifies the region where the bucket will be created. If you don't
(apigateway.html) specify a region, the bucket is created in US East (N. Virginia) Region
(us-east-1).
ApiGatewayManagement
Api GrantFullControl (string) -- Allows grantee the read, write, read ACP, and
(apigatewaymanagement write ACP permissions on the bucket.
api.html) GrantRead (string) -- Allows grantee to list the objects in the bucket.
GrantReadACP (string) -- Allows grantee to read the bucket ACL.
Boto 3 Docs 1.9.249
GrantWrite (string) -- Allows grantee to create, overwrite, and delete any
documentation ( object in the bucket.
../../index.html) GrantWriteACP (string) -- Allows grantee to write the ACL for the
applicable bucket.
TABLE OF CONTENTS ObjectLockEnabledForBucket (boolean) -- Specifies whether you want
Amazon S3 object lock to be enabled for the new bucket.
Quickstart Return type
(../../guide/quickstart.html) dict
A Sample Tutorial Returns
(../../guide/sqs.html)
Response Syntax
Code Examples
(../../guide/examples.html)
{
User Guides 'Location': 'string'
(../../guide/index.html) }

Available Services (index.html)

ACM (acm.html) Response Structure

ACMPCA (acm-pca.html) (dict) --


Location (string) --
AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html) delete ()

APIGateway
Deletes the bucket. All objects (including all object versions and Delete Markers)
(apigateway.html)
in the bucket must be deleted before the bucket itself can be deleted.

ApiGatewayManagement
See also: AWS API Documentation
Api
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucket)
(apigatewaymanagement Request Syntax
api.html)
Boto 3 Docs 1.9.249 response = bucket.delete()
documentation (
../../index.html) Returns
None
TABLE OF CONTENTS

Quickstart delete_objects (**kwargs)


(../../guide/quickstart.html) This operation enables you to delete multiple objects from a bucket using a
A Sample Tutorial single HTTP request. You may specify up to 1000 keys.
(../../guide/sqs.html) See also: AWS API Documentation
Code Examples (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjects)
(../../guide/examples.html) Request Syntax
User Guides
(../../guide/index.html) response = bucket.delete_objects(
Delete={
Available Services (index.html)
'Objects': [
ACM (acm.html) {
ACMPCA (acm-pca.html) 'Key': 'string',
'VersionId': 'string'
AlexaForBusiness
},
(alexaforbusiness.html)
],
Amplify (amplify.html) 'Quiet': True|False
},
APIGateway
(apigateway.html) MFA='string',
RequestPayer='requester',
ApiGatewayManagement BypassGovernanceRetention=True|False
Api
)
(apigatewaymanagement
api.html)
Parameters
Boto 3 Docs 1.9.249
Delete (dict) --
documentation (
[REQUIRED]
../../index.html)
Objects (list) -- [REQUIRED]
(dict) --
TABLE OF CONTENTS
Key (string) -- [REQUIRED]
Key name of the object to delete.
Quickstart
(../../guide/quickstart.html) VersionId (string) --
VersionId for the specific version of the object to delete.
A Sample Tutorial
(../../guide/sqs.html) Quiet (boolean) --
Element to enable quiet mode for the request. When you add this
Code Examples element, you must set its value to true.
(../../guide/examples.html)
MFA (string) -- The concatenation of the authentication device's serial
User Guides number, a space, and the value that is displayed on your authentication
(../../guide/index.html) device.
RequestPayer (string) -- Confirms that the requester knows that she or
Available Services (index.html)
he will be charged for the request. Bucket owners need not specify this
ACM (acm.html) parameter in their requests. Documentation on downloading objects
from requester pays buckets can be found at
ACMPCA (acm-pca.html)
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
AlexaForBusiness (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(alexaforbusiness.html) BypassGovernanceRetention (boolean) -- Specifies whether you want to
Amplify (amplify.html)
delete this object even if it has a Governance-type object lock in place.
You must have sufficient permissions to perform this operation.
APIGateway
(apigateway.html)
Return type
dict
ApiGatewayManagement
Api Returns
(apigatewaymanagement Response Syntax
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'Deleted': [
../../index.html) {
'Key': 'string',
'VersionId': 'string',
TABLE OF CONTENTS
'DeleteMarker': True|False,
'DeleteMarkerVersionId': 'string'
Quickstart
},
(../../guide/quickstart.html)
],
A Sample Tutorial 'RequestCharged': 'requester',
(../../guide/sqs.html) 'Errors': [
Code Examples {
(../../guide/examples.html) 'Key': 'string',
'VersionId': 'string',
User Guides
'Code': 'string',
(../../guide/index.html)
'Message': 'string'
Available Services (index.html) },
]
ACM (acm.html)
}
ACMPCA (acm-pca.html)

AlexaForBusiness Response Structure


(alexaforbusiness.html)
(dict) --
Amplify (amplify.html)
Deleted (list) --
APIGateway
(apigateway.html)
(dict) --
Key (string) --
ApiGatewayManagement VersionId (string) --
Api DeleteMarker (boolean) --
(apigatewaymanagement DeleteMarkerVersionId (string) --
api.html) RequestCharged (string) --
If present, indicates that the requester was successfully charged for the
Boto 3 Docs 1.9.249
request.
documentation (
Errors (list) --
../../index.html)
(dict) --
TABLE OF CONTENTS Key (string) --
VersionId (string) --
Code (string) --
Quickstart
Message (string) --
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html) download_file (Key, Filename, ExtraArgs=None, Callback=None, Config=None)
Code Examples Download an S3 object to a file.
(../../guide/examples.html)
Usage:
User Guides
(../../guide/index.html) import boto3
s3 = boto3.resource('s3')
Available Services (index.html)
s3.Bucket('mybucket').download_file('hello.txt', '/tmp/hello.txt')
ACM (acm.html)

ACMPCA (acm-pca.html)
Similar behavior as S3Transfer's download_file() method, except that
AlexaForBusiness parameters are capitalized. Detailed examples can be found at S3Transfer's
(alexaforbusiness.html) Usage.

Amplify (amplify.html) Parameters


Key (str) -- The name of the key to download from.
APIGateway
Filename (str) -- The path to the file to download to.
(apigateway.html)
ExtraArgs (dict) -- Extra arguments that may be passed to the client
ApiGatewayManagement operation.
Api Callback (function) -- A method which takes a number of bytes
(apigatewaymanagement transferred to be periodically called during the download.
api.html)
Config (boto3.s3.transfer.TransferConfig
Boto 3 Docs 1.9.249
(../customizations/s3.html#boto3.s3.transfer.TransferConfig)) -- The
documentation ( transfer configuration to be used when performing the transfer.
../../index.html)

TABLE OF CONTENTS download_fileobj (Key, Fileobj, ExtraArgs=None, Callback=None, Config=None)


Download an object from this bucket to a file-like-object.
Quickstart
The file-like object must be in binary mode.
(../../guide/quickstart.html)
This is a managed transfer which will perform a multipart download in multiple
A Sample Tutorial
threads if necessary.
(../../guide/sqs.html)
Usage:
Code Examples
(../../guide/examples.html)
import boto3
User Guides s3 = boto3.resource('s3')
(../../guide/index.html) bucket = s3.Bucket('mybucket')
Available Services (index.html)
with open('filename', 'wb') as data:
ACM (acm.html)
bucket.download_fileobj('mykey', data)
ACMPCA (acm-pca.html)

AlexaForBusiness Parameters
(alexaforbusiness.html) Fileobj (a file-like object) -- A file-like object to download into. At a
Amplify (amplify.html) minimum, it must implement the write method and must accept bytes.
Key (str) -- The name of the key to download from.
APIGateway ExtraArgs (dict) -- Extra arguments that may be passed to the client
(apigateway.html) operation.
ApiGatewayManagement Callback (function) -- A method which takes a number of bytes
Api transferred to be periodically called during the download.
(apigatewaymanagement Config (boto3.s3.transfer.TransferConfig
api.html) (../customizations/s3.html#boto3.s3.transfer.TransferConfig)) -- The
transfer configuration to be used when performing the download.
Boto 3 Docs 1.9.249
documentation (
../../index.html) get_available_subresources ()
Returns a list of all the available sub-resources for this Resource.
TABLE OF CONTENTS
Returns
A list containing the name of each sub-resource for this resource
Quickstart
(../../guide/quickstart.html) Return type

A Sample Tutorial
list of str
(../../guide/sqs.html)

Code Examples load (*args, **kwargs)


(../../guide/examples.html)
Calls s3.Client.list_buckets() to update the attributes of the Bucket resource.
User Guides
(../../guide/index.html)
put_object (**kwargs)
Available Services (index.html) Adds an object to a bucket.

ACM (acm.html) See also: AWS API Documentation


(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObject)
ACMPCA (acm-pca.html)
Request Syntax
AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 object = bucket.put_object(
documentation ( ACL='private'|'public-read'|'public-read-write'|'authenticated-rea
../../index.html) Body=b'bytes'|file,
CacheControl='string',
ContentDisposition='string',
TABLE OF CONTENTS
ContentEncoding='string',
ContentLanguage='string',
Quickstart
ContentLength=123,
(../../guide/quickstart.html)
ContentMD5='string',
A Sample Tutorial ContentType='string',
(../../guide/sqs.html) Expires=datetime(2015, 1, 1),
Code Examples GrantFullControl='string',
(../../guide/examples.html) GrantRead='string',
GrantReadACP='string',
User Guides
GrantWriteACP='string',
(../../guide/index.html)
Key='string',
Available Services (index.html) Metadata={
'string': 'string'
ACM (acm.html)
},
ACMPCA (acm-pca.html) ServerSideEncryption='AES256'|'aws:kms',
StorageClass='STANDARD'|'REDUCED_REDUNDANCY'|'STANDARD_IA'|'ONEZON
AlexaForBusiness
(alexaforbusiness.html) WebsiteRedirectLocation='string',
SSECustomerAlgorithm='string',
Amplify (amplify.html) SSECustomerKey='string',
APIGateway SSEKMSKeyId='string',
(apigateway.html) SSEKMSEncryptionContext='string',
RequestPayer='requester',
ApiGatewayManagement
Tagging='string',
Api
ObjectLockMode='GOVERNANCE'|'COMPLIANCE',
(apigatewaymanagement
api.html) ObjectLockRetainUntilDate=datetime(2015, 1, 1),
ObjectLockLegalHoldStatus='ON'|'OFF'
Boto 3 Docs 1.9.249
)
documentation (
../../index.html)
Parameters
TABLE OF CONTENTS
ACL (string) -- The canned ACL to apply to the object.
Body (bytes or seekable file-like object) -- Object data.
Quickstart CacheControl (string) -- Specifies caching behavior along the
(../../guide/quickstart.html) request/reply chain.
A Sample Tutorial ContentDisposition (string) -- Specifies presentational information for
(../../guide/sqs.html) the object.
ContentEncoding (string) -- Specifies what content encodings have been
Code Examples applied to the object and thus what decoding mechanisms must be
(../../guide/examples.html) applied to obtain the media-type referenced by the Content-Type header
User Guides field.
(../../guide/index.html) ContentLanguage (string) -- The language the content is in.
ContentLength (integer) -- Size of the body in bytes. This parameter is
Available Services (index.html) useful when the size of the body cannot be determined automatically.
ContentMD5 (string) -- The base64-encoded 128-bit MD5 digest of the
ACM (acm.html)
part data. This parameter is auto-populated when using the command
ACMPCA (acm-pca.html) from the CLI. This parameted is required if object lock parameters are
AlexaForBusiness specified.
(alexaforbusiness.html) ContentType (string) -- A standard MIME type describing the format of
the object data.
Amplify (amplify.html) Expires (datetime) -- The date and time at which the object is no longer
APIGateway cacheable.
(apigateway.html) GrantFullControl (string) -- Gives the grantee READ, READ_ACP, and
WRITE_ACP permissions on the object.
ApiGatewayManagement GrantRead (string) -- Allows grantee to read the object data and its
Api metadata.
(apigatewaymanagement GrantReadACP (string) -- Allows grantee to read the object ACL.
api.html)
GrantWriteACP (string) -- Allows grantee to write the ACL for the
Boto 3 Docs 1.9.249
applicable object.
documentation ( Key (string) --
../../index.html) [REQUIRED]

Object key for which the PUT operation was initiated.


TABLE OF CONTENTS
Metadata (dict) --
A map of metadata to store with the object in S3.
Quickstart
(../../guide/quickstart.html) (string) --
(string) --
A Sample Tutorial
ServerSideEncryption (string) -- The Server-side encryption algorithm
(../../guide/sqs.html)
used when storing this object in S3 (e.g., AES256, aws:kms).
Code Examples StorageClass (string) -- The type of storage to use for the object. Defaults
(../../guide/examples.html) to 'STANDARD'.
WebsiteRedirectLocation (string) -- If the bucket is configured as a
User Guides
website, redirects requests for this object to another object in the same
(../../guide/index.html)
bucket or to an external URL. Amazon S3 stores the value of this header
Available Services (index.html) in the object metadata.
SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
ACM (acm.html)
encrypting the object (e.g., AES256).
ACMPCA (acm-pca.html) SSECustomerKey (string) -- Specifies the customer-provided encryption
key for Amazon S3 to use in encrypting data. This value is used to store
AlexaForBusiness
the object and then it is discarded; Amazon does not store the encryption
(alexaforbusiness.html)
key. The key must be appropriate for use with the algorithm specified in
Amplify (amplify.html) the x-amz-server-side-encryption-customer-algorithm header.
SSECustomerKeyMD5 (string) --
APIGateway
Specifies the 128-bit MD5 digest of the encryption key according to RFC
(apigateway.html)
1321. Amazon S3 uses this header for a message integrity check to
ApiGatewayManagement ensure the encryption key was transmitted without error.
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 Please note that this parameter is automatically populated if it is not
documentation ( provided. Including this parameter is not required
../../index.html)
SSEKMSKeyId (string) -- Specifies the AWS KMS key ID to use for object
TABLE OF CONTENTS encryption. All GET and PUT requests for an object protected by AWS KMS
will fail if not made via SSL or using SigV4. Documentation on configuring
Quickstart any of the officially supported AWS SDKs and CLI can be found at
(../../guide/quickstart.html) http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-
signature-version
A Sample Tutorial
(http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify
(../../guide/sqs.html)
signature-version)
Code Examples SSEKMSEncryptionContext (string) -- Specifies the AWS KMS Encryption
(../../guide/examples.html) 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
User Guides
pairs.
(../../guide/index.html)
RequestPayer (string) -- Confirms that the requester knows that she or
Available Services (index.html) he will be charged for the request. Bucket owners need not specify this
parameter in their requests. Documentation on downloading objects
ACM (acm.html)
from requester pays buckets can be found at
ACMPCA (acm-pca.html) http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
AlexaForBusiness
Tagging (string) -- The tag-set for the object. The tag-set must be encoded
(alexaforbusiness.html)
as URL Query parameters. (For example, "Key1=Value1")
Amplify (amplify.html) ObjectLockMode (string) -- The object lock mode that you want to apply
to this object.
APIGateway
ObjectLockRetainUntilDate (datetime) -- The date and time when you
(apigateway.html)
want this object's object lock to expire.
ApiGatewayManagement ObjectLockLegalHoldStatus (string) -- The Legal Hold status that you
Api want to apply to the specified object.
(apigatewaymanagement
Return type
api.html)
s3.Object
Boto 3 Docs 1.9.249
documentation ( Returns
Object resource
../../index.html)

TABLE OF CONTENTS
upload_file (Filename, Key, ExtraArgs=None, Callback=None, Config=None)
Upload a file to an S3 object.
Quickstart
(../../guide/quickstart.html) Usage:

A Sample Tutorial
(../../guide/sqs.html) import boto3
s3 = boto3.resource('s3')
Code Examples
s3.Bucket('mybucket').upload_file('/tmp/hello.txt', 'hello.txt')
(../../guide/examples.html)

User Guides
Similar behavior as S3Transfer's upload_file() method, except that parameters
(../../guide/index.html)
are capitalized. Detailed examples can be found at S3Transfer's Usage.
Available Services (index.html)
Parameters
ACM (acm.html) Filename (str) -- The path to the file to upload.
Key (str) -- The name of the key to upload to.
ACMPCA (acm-pca.html)
ExtraArgs (dict) -- Extra arguments that may be passed to the client
AlexaForBusiness operation.
(alexaforbusiness.html) Callback (function) -- A method which takes a number of bytes
Amplify (amplify.html) transferred to be periodically called during the upload.
Config (boto3.s3.transfer.TransferConfig
APIGateway (../customizations/s3.html#boto3.s3.transfer.TransferConfig)) -- The
(apigateway.html) transfer configuration to be used when performing the transfer.
ApiGatewayManagement
Api
(apigatewaymanagement upload_fileobj (Fileobj, Key, ExtraArgs=None, Callback=None, Config=None)
api.html) Upload a file-like object to this bucket.
The file-like object must be in binary mode.
Boto 3 Docs 1.9.249
documentation ( This is a managed transfer which will perform a multipart upload in multiple
threads if necessary.
../../index.html)
Usage:
TABLE OF CONTENTS
import boto3
Quickstart s3 = boto3.resource('s3')
(../../guide/quickstart.html) bucket = s3.Bucket('mybucket')
A Sample Tutorial
(../../guide/sqs.html) with open('filename', 'rb') as data:
bucket.upload_fileobj(data, 'mykey')
Code Examples
(../../guide/examples.html)
Parameters
User Guides
Fileobj (a file-like object) -- A file-like object to upload. At a minimum, it
(../../guide/index.html)
must implement the read method, and must return bytes.
Available Services (index.html) Key (str) -- The name of the key to upload to.
ExtraArgs (dict) -- Extra arguments that may be passed to the client
ACM (acm.html)
operation.
ACMPCA (acm-pca.html) Callback (function) -- A method which takes a number of bytes
transferred to be periodically called during the upload.
AlexaForBusiness
Config (boto3.s3.transfer.TransferConfig
(alexaforbusiness.html)
(../customizations/s3.html#boto3.s3.transfer.TransferConfig)) -- The
Amplify (amplify.html) transfer configuration to be used when performing the upload.
APIGateway
(apigateway.html)
Sub-resources
ApiGatewayManagement Sub-resources are methods that create a new instance of a child resource. This
Api resource's identifiers get passed along to the child. For more information about
(apigatewaymanagement sub-resources refer to the Resources Introduction Guide
api.html) (../../guide/resources.html#subresources-intro).
Boto 3 Docs 1.9.249 Acl ()

documentation ( Creates a BucketAcl resource.:

../../index.html)
bucket_acl = bucket.Acl()
TABLE OF CONTENTS

Return type
Quickstart S3.BucketAcl
(../../guide/quickstart.html)
Returns
A Sample Tutorial
A BucketAcl resource
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html) Cors ()

User Guides
Creates a BucketCors resource.:
(../../guide/index.html)
bucket_cors = bucket.Cors()
Available Services (index.html)

ACM (acm.html)
Return type
ACMPCA (acm-pca.html)
S3.BucketCors
AlexaForBusiness
Returns
(alexaforbusiness.html)
A BucketCors resource
Amplify (amplify.html)

APIGateway
(apigateway.html) Lifecycle ()
Creates a BucketLifecycle resource.:
ApiGatewayManagement
Api
(apigatewaymanagement bucket_lifecycle = bucket.Lifecycle()
api.html)
Return type
Boto 3 Docs 1.9.249
S3.BucketLifecycle
documentation (
../../index.html) Returns
A BucketLifecycle resource
TABLE OF CONTENTS

LifecycleConfiguration ()
Quickstart
(../../guide/quickstart.html) Creates a BucketLifecycleConfiguration resource.:

A Sample Tutorial
(../../guide/sqs.html) bucket_lifecycle_configuration = bucket.LifecycleConfiguration()

Code Examples
(../../guide/examples.html) Return type
S3.BucketLifecycleConfiguration
User Guides
(../../guide/index.html) Returns
A BucketLifecycleConfiguration resource
Available Services (index.html)

ACM (acm.html)
Logging ()
ACMPCA (acm-pca.html)
Creates a BucketLogging resource.:
AlexaForBusiness
(alexaforbusiness.html)
bucket_logging = bucket.Logging()
Amplify (amplify.html)

APIGateway
Return type
(apigateway.html)
S3.BucketLogging
ApiGatewayManagement
Api Returns
(apigatewaymanagement A BucketLogging resource
api.html)
Boto 3 Docs 1.9.249 Notification ()
Creates a BucketNotification resource.:
documentation (
../../index.html)
bucket_notification = bucket.Notification()
TABLE OF CONTENTS

Return type
Quickstart S3.BucketNotification
(../../guide/quickstart.html)
Returns
A Sample Tutorial
A BucketNotification resource
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html) Object (key)
Creates a Object resource.:
User Guides
(../../guide/index.html)
object = bucket.Object('key')
Available Services (index.html)

ACM (acm.html)
Parameters
ACMPCA (acm-pca.html)
key (string) -- The Object's key identifier. This must be set.
AlexaForBusiness
Return type
(alexaforbusiness.html)
S3.Object
Amplify (amplify.html)
Returns
APIGateway A Object resource
(apigateway.html)

ApiGatewayManagement
Api Policy ()
(apigatewaymanagement Creates a BucketPolicy resource.:
api.html)
Boto 3 Docs 1.9.249 bucket_policy = bucket.Policy()
documentation (
../../index.html) Return type
S3.BucketPolicy
TABLE OF CONTENTS
Returns
Quickstart A BucketPolicy resource
(../../guide/quickstart.html)

A Sample Tutorial RequestPayment ()


(../../guide/sqs.html)
Creates a BucketRequestPayment resource.:
Code Examples
(../../guide/examples.html)
bucket_request_payment = bucket.RequestPayment()
User Guides
(../../guide/index.html)
Return type
Available Services (index.html) S3.BucketRequestPayment

ACM (acm.html) Returns


ACMPCA (acm-pca.html) A BucketRequestPayment resource

AlexaForBusiness
(alexaforbusiness.html) Tagging ()
Amplify (amplify.html) Creates a BucketTagging resource.:
APIGateway
(apigateway.html) bucket_tagging = bucket.Tagging()
ApiGatewayManagement
Api Return type
(apigatewaymanagement
S3.BucketTagging
api.html)
Returns
Boto 3 Docs 1.9.249
A BucketTagging resource
documentation (
../../index.html)
Versioning ()
TABLE OF CONTENTS Creates a BucketVersioning resource.:

Quickstart
bucket_versioning = bucket.Versioning()
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html) Return type
S3.BucketVersioning
Code Examples
(../../guide/examples.html) Returns
A BucketVersioning resource
User Guides
(../../guide/index.html)

Available Services (index.html) Website ()


Creates a BucketWebsite resource.:
ACM (acm.html)

ACMPCA (acm-pca.html)
bucket_website = bucket.Website()
AlexaForBusiness
(alexaforbusiness.html)
Return type
Amplify (amplify.html)
S3.BucketWebsite
APIGateway
Returns
(apigateway.html)
A BucketWebsite resource
ApiGatewayManagement
Api
(apigatewaymanagement Collections
api.html)
Collections provide an interface to iterate over and manipulate groups of resources.
Boto 3 Docs 1.9.249
For more information about collections refer to the Resources Introduction Guide
documentation ( (../../guide/collections.html#guide-collections).
../../index.html)
multipart_uploads
A collection of MultipartUpload resources
TABLE OF CONTENTS
all ()
Quickstart Creates an iterable of all MultipartUpload resources in the collection.
(../../guide/quickstart.html)
See also: AWS API Documentation
A Sample Tutorial (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
(../../guide/sqs.html) 01/ListMultipartUploads)
Code Examples Request Syntax
(../../guide/examples.html)

User Guides multipart_upload_iterator = bucket.multipart_uploads.all()


(../../guide/index.html)

Available Services (index.html) Return type

ACM (acm.html) list( s3.MultipartUpload )

ACMPCA (acm-pca.html) Returns


A list of MultipartUpload resources
AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html) filter (**kwargs)

APIGateway Creates an iterable of all MultipartUpload resources in the collection


(apigateway.html) filtered by kwargs passed to method.

ApiGatewayManagement See also: AWS API Documentation


Api (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
(apigatewaymanagement 01/ListMultipartUploads)
api.html) Request Syntax
Boto 3 Docs 1.9.249 multipart_upload_iterator = bucket.multipart_uploads.filter(
documentation ( Delimiter='string',
../../index.html) EncodingType='url',
KeyMarker='string',
MaxUploads=123,
TABLE OF CONTENTS
Prefix='string',
UploadIdMarker='string'
Quickstart
)
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html) Parameters
Delimiter (string) -- Character you use to group keys.
Code Examples
EncodingType (string) -- Requests Amazon S3 to encode the object
(../../guide/examples.html)
keys in the response and specifies the encoding method to use. An
User Guides object key may contain any Unicode character; however, XML 1.0
(../../guide/index.html) parser cannot parse some characters, such as characters with an
ASCII value from 0 to 10. For characters that are not supported in
Available Services (index.html) XML 1.0, you can add this parameter to request that Amazon S3
ACM (acm.html) encode the keys in the response.
KeyMarker (string) -- Together with upload-id-marker, this parameter
ACMPCA (acm-pca.html) specifies the multipart upload after which listing should begin.
AlexaForBusiness MaxUploads (integer) -- Sets the maximum number of multipart
(alexaforbusiness.html) 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.
Amplify (amplify.html)
Prefix (string) -- Lists in-progress uploads only for those keys that
APIGateway begin with the specified prefix.
(apigateway.html) UploadIdMarker (string) -- Together with key-marker, specifies the
multipart upload after which listing should begin. If key-marker is not
ApiGatewayManagement
specified, the upload-id-marker parameter is ignored.
Api
(apigatewaymanagement Return type
api.html) list( s3.MultipartUpload )
Returns
Boto 3 Docs 1.9.249
A list of MultipartUpload resources
documentation (
../../index.html)
limit (**kwargs)
TABLE OF CONTENTS Creates an iterable up to a specified amount of MultipartUpload resources
in the collection.
Quickstart
See also: AWS API Documentation
(../../guide/quickstart.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
A Sample Tutorial 01/ListMultipartUploads)
(../../guide/sqs.html)
Request Syntax
Code Examples
(../../guide/examples.html)
multipart_upload_iterator = bucket.multipart_uploads.limit(
User Guides count=123
(../../guide/index.html) )

Available Services (index.html)


Parameters
ACM (acm.html)
count (integer) -- The limit to the number of resources in the iterable.
ACMPCA (acm-pca.html)
Return type
AlexaForBusiness
list( s3.MultipartUpload )
(alexaforbusiness.html)
Returns
Amplify (amplify.html)
A list of MultipartUpload resources
APIGateway
(apigateway.html)

ApiGatewayManagement page_size (**kwargs)


Api Creates an iterable of all MultipartUpload resources in the collection, but
(apigatewaymanagement limits the number of items returned by each service call by the specified
api.html) amount.
See also: AWS API Documentation
Boto 3 Docs 1.9.249
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
documentation ( 01/ListMultipartUploads)
../../index.html)
Request Syntax

TABLE OF CONTENTS
multipart_upload_iterator = bucket.multipart_uploads.page_size(

Quickstart count=123
(../../guide/quickstart.html) )

A Sample Tutorial
(../../guide/sqs.html) Parameters
count (integer) -- The number of items returned by each service call
Code Examples
(../../guide/examples.html) Return type
list( s3.MultipartUpload )
User Guides
(../../guide/index.html) Returns
A list of MultipartUpload resources
Available Services (index.html)

ACM (acm.html)
object_versions
ACMPCA (acm-pca.html)
A collection of ObjectVersion resources
AlexaForBusiness
(alexaforbusiness.html) all ()
Creates an iterable of all ObjectVersion resources in the collection.
Amplify (amplify.html)
See also: AWS API Documentation
APIGateway
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
(apigateway.html)
01/ListObjectVersions)
ApiGatewayManagement
Request Syntax
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 object_version_iterator = bucket.object_versions.all()
documentation (
../../index.html) Return type
list( s3.ObjectVersion )
TABLE OF CONTENTS
Returns
Quickstart A list of ObjectVersion resources
(../../guide/quickstart.html)

A Sample Tutorial delete (**kwargs)


(../../guide/sqs.html)
This operation enables you to delete multiple objects from a bucket using a
Code Examples single HTTP request. You may specify up to 1000 keys.
(../../guide/examples.html)
See also: AWS API Documentation
User Guides (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjects)
(../../guide/index.html) Request Syntax
Available Services (index.html)

ACM (acm.html) response = bucket.object_versions.delete(


MFA='string',
ACMPCA (acm-pca.html) RequestPayer='requester',
AlexaForBusiness BypassGovernanceRetention=True|False
(alexaforbusiness.html) )

Amplify (amplify.html)

APIGateway Parameters
(apigateway.html) MFA (string) -- The concatenation of the authentication device's serial
number, a space, and the value that is displayed on your
ApiGatewayManagement
authentication device.
Api
RequestPayer (string) -- Confirms that the requester knows that she
(apigatewaymanagement
or he will be charged for the request. Bucket owners need not specify
api.html)
this parameter in their requests. Documentation on downloading
objects from requester pays buckets can be found at
Boto 3 Docs 1.9.249
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPays
documentation ( (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPays
../../index.html) BypassGovernanceRetention (boolean) -- Specifies whether you
want to delete this object even if it has a Governance-type object lock
TABLE OF CONTENTS in place. You must have sufficient permissions to perform this
operation.
Quickstart Return type
(../../guide/quickstart.html) dict
A Sample Tutorial Returns
(../../guide/sqs.html)
Response Syntax
Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'Deleted': [
../../index.html) {
'Key': 'string',
'VersionId': 'string',
TABLE OF CONTENTS
'DeleteMarker': True|False,
'DeleteMarkerVersionId': 'string'
Quickstart
},
(../../guide/quickstart.html)
],
A Sample Tutorial 'RequestCharged': 'requester',
(../../guide/sqs.html) 'Errors': [
Code Examples {
(../../guide/examples.html) 'Key': 'string',
'VersionId': 'string',
User Guides
'Code': 'string',
(../../guide/index.html)
'Message': 'string'
Available Services (index.html) },
]
ACM (acm.html)
}
ACMPCA (acm-pca.html)

AlexaForBusiness Response Structure


(alexaforbusiness.html)
(dict) --
Amplify (amplify.html)
Deleted (list) --
APIGateway
(dict) --
(apigateway.html)
Key (string) --
ApiGatewayManagement VersionId (string) --
Api DeleteMarker (boolean) --
(apigatewaymanagement DeleteMarkerVersionId (string) --
api.html) RequestCharged (string) --
If present, indicates that the requester was successfully charged for
Boto 3 Docs 1.9.249
the request.
documentation (
Errors (list) --
../../index.html)
(dict) --
TABLE OF CONTENTS Key (string) --
VersionId (string) --
Code (string) --
Quickstart
Message (string) --
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html) filter (**kwargs)
Code Examples Creates an iterable of all ObjectVersion resources in the collection filtered
(../../guide/examples.html) by kwargs passed to method.

User Guides See also: AWS API Documentation


(../../guide/index.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
01/ListObjectVersions)
Available Services (index.html)
Request Syntax
ACM (acm.html)

ACMPCA (acm-pca.html) object_version_iterator = bucket.object_versions.filter(


AlexaForBusiness Delimiter='string',
(alexaforbusiness.html) EncodingType='url',
KeyMarker='string',
Amplify (amplify.html)
MaxKeys=123,
APIGateway Prefix='string',
(apigateway.html) VersionIdMarker='string'
)
ApiGatewayManagement
Api
(apigatewaymanagement Parameters
api.html)
Delimiter (string) -- A delimiter is a character you use to group keys.
Boto 3 Docs 1.9.249
EncodingType (string) -- Requests Amazon S3 to encode the object
documentation ( keys in the response and specifies the encoding method to use. An
../../index.html) object key may contain any Unicode character; however, XML 1.0
parser cannot parse some characters, such as characters with an
TABLE OF CONTENTS 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
Quickstart encode the keys in the response.
(../../guide/quickstart.html) KeyMarker (string) -- Specifies the key to start with when listing
objects in a bucket.
A Sample Tutorial MaxKeys (integer) -- Sets the maximum number of keys returned in
(../../guide/sqs.html) the response. The response might contain fewer keys but will never
Code Examples contain more.
(../../guide/examples.html) Prefix (string) -- Limits the response to keys that begin with the
specified prefix.
User Guides VersionIdMarker (string) -- Specifies the object version you want to
(../../guide/index.html) start listing from.

Available Services (index.html) Return type

ACM (acm.html)
list( s3.ObjectVersion )

ACMPCA (acm-pca.html) Returns


A list of ObjectVersion resources
AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html) limit (**kwargs)

APIGateway Creates an iterable up to a specified amount of ObjectVersion resources in


(apigateway.html) the collection.

ApiGatewayManagement See also: AWS API Documentation


Api (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
(apigatewaymanagement 01/ListObjectVersions)
api.html) Request Syntax
Boto 3 Docs 1.9.249 object_version_iterator = bucket.object_versions.limit(
documentation ( count=123
../../index.html) )

TABLE OF CONTENTS Parameters


count (integer) -- The limit to the number of resources in the iterable.
Quickstart
Return type
(../../guide/quickstart.html)
list( s3.ObjectVersion )
A Sample Tutorial
(../../guide/sqs.html) Returns
A list of ObjectVersion resources
Code Examples
(../../guide/examples.html)

User Guides page_size (**kwargs)


(../../guide/index.html) Creates an iterable of all ObjectVersion resources in the collection, but
limits the number of items returned by each service call by the specified
Available Services (index.html)
amount.
ACM (acm.html)
See also: AWS API Documentation
ACMPCA (acm-pca.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
01/ListObjectVersions)
AlexaForBusiness
(alexaforbusiness.html) Request Syntax

Amplify (amplify.html)
object_version_iterator = bucket.object_versions.page_size(
APIGateway
count=123
(apigateway.html)
)
ApiGatewayManagement
Api
(apigatewaymanagement Parameters
api.html) count (integer) -- The number of items returned by each service call
Return type
Boto 3 Docs 1.9.249
list( s3.ObjectVersion )
documentation (
../../index.html) Returns
A list of ObjectVersion resources
TABLE OF CONTENTS

objects
Quickstart
A collection of ObjectSummary resources
(../../guide/quickstart.html)

A Sample Tutorial all ()


(../../guide/sqs.html) Creates an iterable of all ObjectSummary resources in the collection.

Code Examples See also: AWS API Documentation


(../../guide/examples.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjects)

User Guides Request Syntax


(../../guide/index.html)
object_summary_iterator = bucket.objects.all()
Available Services (index.html)

ACM (acm.html)
Return type
ACMPCA (acm-pca.html)
list( s3.ObjectSummary )
AlexaForBusiness
Returns
(alexaforbusiness.html)
A list of ObjectSummary resources
Amplify (amplify.html)

APIGateway
(apigateway.html) delete (**kwargs)
This operation enables you to delete multiple objects from a bucket using a
ApiGatewayManagement
single HTTP request. You may specify up to 1000 keys.
Api
(apigatewaymanagement See also: AWS API Documentation
api.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjects)
Request Syntax
Boto 3 Docs 1.9.249
documentation (
response = bucket.objects.delete(
../../index.html)
MFA='string',
RequestPayer='requester',
TABLE OF CONTENTS
BypassGovernanceRetention=True|False
)
Quickstart
(../../guide/quickstart.html)
Parameters
A Sample Tutorial
(../../guide/sqs.html) MFA (string) -- The concatenation of the authentication device's serial
number, a space, and the value that is displayed on your
Code Examples authentication device.
(../../guide/examples.html) RequestPayer (string) -- Confirms that the requester knows that she
or he will be charged for the request. Bucket owners need not specify
User Guides
this parameter in their requests. Documentation on downloading
(../../guide/index.html)
objects from requester pays buckets can be found at
Available Services (index.html) http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPays
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPays
ACM (acm.html)
BypassGovernanceRetention (boolean) -- Specifies whether you
ACMPCA (acm-pca.html) want to delete this object even if it has a Governance-type object lock
in place. You must have sufficient permissions to perform this
AlexaForBusiness
operation.
(alexaforbusiness.html)
Return type
Amplify (amplify.html)
dict
APIGateway
(apigateway.html) Returns

ApiGatewayManagement Response Syntax


Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'Deleted': [
../../index.html) {
'Key': 'string',
'VersionId': 'string',
TABLE OF CONTENTS
'DeleteMarker': True|False,
'DeleteMarkerVersionId': 'string'
Quickstart
},
(../../guide/quickstart.html)
],
A Sample Tutorial 'RequestCharged': 'requester',
(../../guide/sqs.html) 'Errors': [
Code Examples {
(../../guide/examples.html) 'Key': 'string',
'VersionId': 'string',
User Guides
'Code': 'string',
(../../guide/index.html)
'Message': 'string'
Available Services (index.html) },
]
ACM (acm.html)
}
ACMPCA (acm-pca.html)

AlexaForBusiness Response Structure


(alexaforbusiness.html)
(dict) --
Amplify (amplify.html)
Deleted (list) --
APIGateway
(dict) --
(apigateway.html)
Key (string) --
ApiGatewayManagement VersionId (string) --
Api DeleteMarker (boolean) --
(apigatewaymanagement DeleteMarkerVersionId (string) --
api.html) RequestCharged (string) --
If present, indicates that the requester was successfully charged for
Boto 3 Docs 1.9.249
the request.
documentation (
Errors (list) --
../../index.html)
(dict) --
TABLE OF CONTENTS Key (string) --
VersionId (string) --
Code (string) --
Quickstart
Message (string) --
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html) filter (**kwargs)
Code Examples Creates an iterable of all ObjectSummary resources in the collection filtered
(../../guide/examples.html) by kwargs passed to method.

User Guides See also: AWS API Documentation


(../../guide/index.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjects)

Request Syntax
Available Services (index.html)

ACM (acm.html)
object_summary_iterator = bucket.objects.filter(
ACMPCA (acm-pca.html) Delimiter='string',
AlexaForBusiness EncodingType='url',
(alexaforbusiness.html) Marker='string',
MaxKeys=123,
Amplify (amplify.html)
Prefix='string',
APIGateway RequestPayer='requester'
(apigateway.html) )

ApiGatewayManagement
Api Parameters
(apigatewaymanagement
Delimiter (string) -- A delimiter is a character you use to group keys.
api.html)
EncodingType (string) -- Requests Amazon S3 to encode the object
Boto 3 Docs 1.9.249
keys in the response and specifies the encoding method to use. An
documentation ( object key may contain any Unicode character; however, XML 1.0
../../index.html) parser cannot parse some characters, such as characters with an
ASCII value from 0 to 10. For characters that are not supported in
TABLE OF CONTENTS XML 1.0, you can add this parameter to request that Amazon S3
encode the keys in the response.
Quickstart Marker (string) -- Specifies the key to start with when listing objects in
(../../guide/quickstart.html) a bucket.
MaxKeys (integer) -- Sets the maximum number of keys returned in
A Sample Tutorial the response. The response might contain fewer keys but will never
(../../guide/sqs.html) contain more.
Code Examples Prefix (string) -- Limits the response to keys that begin with the
(../../guide/examples.html) specified prefix.
RequestPayer (string) -- Confirms that the requester knows that she
User Guides or he will be charged for the list objects request. Bucket owners need
(../../guide/index.html) not specify this parameter in their requests.

Available Services (index.html) Return type

ACM (acm.html)
list( s3.ObjectSummary )

ACMPCA (acm-pca.html) Returns


A list of ObjectSummary resources
AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html) limit (**kwargs)

APIGateway Creates an iterable up to a specified amount of ObjectSummary resources


(apigateway.html) in the collection.

ApiGatewayManagement See also: AWS API Documentation


Api (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjects)
(apigatewaymanagement Request Syntax
api.html)
Boto 3 Docs 1.9.249 object_summary_iterator = bucket.objects.limit(
documentation ( count=123
../../index.html) )

TABLE OF CONTENTS Parameters


count (integer) -- The limit to the number of resources in the iterable.
Quickstart
Return type
(../../guide/quickstart.html)
list( s3.ObjectSummary )
A Sample Tutorial
(../../guide/sqs.html) Returns
A list of ObjectSummary resources
Code Examples
(../../guide/examples.html)

User Guides page_size (**kwargs)


(../../guide/index.html) Creates an iterable of all ObjectSummary resources in the collection, but
limits the number of items returned by each service call by the specified
Available Services (index.html)
amount.
ACM (acm.html)
See also: AWS API Documentation
ACMPCA (acm-pca.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjects)

AlexaForBusiness Request Syntax


(alexaforbusiness.html)

Amplify (amplify.html) object_summary_iterator = bucket.objects.page_size(


count=123
APIGateway
)
(apigateway.html)

ApiGatewayManagement
Api Parameters
(apigatewaymanagement count (integer) -- The number of items returned by each service call
api.html)
Return type
Boto 3 Docs 1.9.249
list( s3.ObjectSummary )
documentation (
../../index.html) Returns
A list of ObjectSummary resources
TABLE OF CONTENTS

Waiters
Quickstart
Waiters provide an interface to wait for a resource to reach a specific state. For
(../../guide/quickstart.html)
more information about waiters refer to the Resources Introduction Guide
A Sample Tutorial (../../guide/resources.html#waiters-intro).
(../../guide/sqs.html)
wait_until_exists ()
Code Examples Waits until this Bucket is exists. This method calls
(../../guide/examples.html) S3.Waiter.bucket_exists.wait() which polls. S3.Client.head_bucket() every
User Guides 5 seconds until a successful state is reached. An error is returned after 20 failed
(../../guide/index.html) checks.
See also: AWS API Documentation
Available Services (index.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadBucket)
ACM (acm.html)
Request Syntax
ACMPCA (acm-pca.html)

AlexaForBusiness bucket.wait_until_exists()
(alexaforbusiness.html)

Amplify (amplify.html) Returns


APIGateway None
(apigateway.html)

ApiGatewayManagement
wait_until_not_exists ()
Api
(apigatewaymanagement
api.html)
Waits until this Bucket is not exists. This method calls
Boto 3 Docs 1.9.249
S3.Waiter.bucket_not_exists.wait() which polls. S3.Client.head_bucket()
documentation ( every 5 seconds until a successful state is reached. An error is returned after 20
../../index.html) failed checks.
See also: AWS API Documentation
TABLE OF CONTENTS (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadBucket)
Request Syntax
Quickstart
(../../guide/quickstart.html)

A Sample Tutorial bucket.wait_until_not_exists()


(../../guide/sqs.html)

Code Examples Returns


(../../guide/examples.html) None

User Guides
(../../guide/index.html)

Available Services (index.html) BucketAcl


ACM (acm.html)
class S3. BucketAcl (bucket_name)
ACMPCA (acm-pca.html)
A resource representing an Amazon Simple Storage Service (S3) BucketAcl:
AlexaForBusiness
(alexaforbusiness.html)
import boto3
Amplify (amplify.html)

APIGateway s3 = boto3.resource('s3')
(apigateway.html) bucket_acl = s3.BucketAcl('bucket_name')

ApiGatewayManagement
Api Parameters
(apigatewaymanagement
bucket_name (string) -- The BucketAcl's bucket_name identifier. This must be
api.html)
set.
These are the resource's available identifiers:
Boto 3 Docs 1.9.249
documentation ( bucket_name

../../index.html) These are the resource's available attributes:


grants
TABLE OF CONTENTS owner

Quickstart
These are the resource's available actions:
(../../guide/quickstart.html) get_available_subresources()
A Sample Tutorial load()
(../../guide/sqs.html) put()
reload()
Code Examples
(../../guide/examples.html) These are the resource's available sub-resources:

Bucket()
User Guides
(../../guide/index.html) Identifiers
Identifiers are properties of a resource that are set upon instantation of the
Available Services (index.html)
resource. For more information about identifiers refer to the Resources
ACM (acm.html) Introduction Guide (../../guide/resources.html#identifiers-attributes-intro).
ACMPCA (acm-pca.html) bucket_name
AlexaForBusiness (string) The BucketAcl's bucket_name identifier. This must be set.
(alexaforbusiness.html)
Attributes
Amplify (amplify.html)
Attributes provide access to the properties of a resource. Attributes are lazy-loaded
APIGateway the first time one is accessed via the load() method. For more information about
(apigateway.html) attributes refer to the Resources Introduction Guide
(../../guide/resources.html#identifiers-attributes-intro).
ApiGatewayManagement
Api grants
(apigatewaymanagement (list) --
api.html)
A list of grants.
Boto 3 Docs 1.9.249
documentation ( (dict) --

../../index.html) Grantee (dict) --


DisplayName (string) --
TABLE OF CONTENTS
Screen name of the grantee.

Quickstart EmailAddress (string) --


(../../guide/quickstart.html)
Email address of the grantee.
A Sample Tutorial
ID (string) --
(../../guide/sqs.html)
The canonical user ID of the grantee.
Code Examples
(../../guide/examples.html) Type (string) --

User Guides Type of grantee


(../../guide/index.html) URI (string) --

Available Services (index.html) URI of the grantee group.

ACM (acm.html) Permission (string) --

ACMPCA (acm-pca.html) Specifies the permission given to the grantee.

AlexaForBusiness
owner
(alexaforbusiness.html)
(dict) --
Amplify (amplify.html) DisplayName (string) --
APIGateway ID (string) --
(apigateway.html)
Actions
ApiGatewayManagement Actions call operations on resources. They may automatically handle the passing in
Api of arguments set from identifiers and some attributes. For more information about
(apigatewaymanagement actions refer to the Resources Introduction Guide
api.html) (../../guide/resources.html#actions-intro).
Boto 3 Docs 1.9.249 get_available_subresources ()
Returns a list of all the available sub-resources for this Resource.
documentation (
../../index.html) Returns
A list containing the name of each sub-resource for this resource
TABLE OF CONTENTS Return type
list of str
Quickstart
(../../guide/quickstart.html)

A Sample Tutorial load ()


(../../guide/sqs.html) Calls S3.Client.get_bucket_acl() to update the attributes of the BucketAcl
resource. Note that the load and reload methods are the same method and can
Code Examples
be used interchangeably.
(../../guide/examples.html)
See also: AWS API Documentation
User Guides
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
(../../guide/index.html)
Request Syntax
Available Services (index.html)

ACM (acm.html) bucket_acl.load()


ACMPCA (acm-pca.html)

AlexaForBusiness Returns
(alexaforbusiness.html) None
Amplify (amplify.html)

APIGateway put (**kwargs)


(apigateway.html)
Sets the permissions on a bucket using access control lists (ACL).
ApiGatewayManagement
See also: AWS API Documentation
Api
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAcl)
(apigatewaymanagement
api.html) Request Syntax
Boto 3 Docs 1.9.249 response = bucket_acl.put(
documentation ( ACL='private'|'public-read'|'public-read-write'|'authenticated-rea
../../index.html) AccessControlPolicy={
'Grants': [
{
TABLE OF CONTENTS
'Grantee': {
'DisplayName': 'string',
Quickstart
'EmailAddress': 'string',
(../../guide/quickstart.html)
'ID': 'string',
A Sample Tutorial 'Type': 'CanonicalUser'|'AmazonCustomerByEmail'|'G
(../../guide/sqs.html) 'URI': 'string'
Code Examples },
(../../guide/examples.html) 'Permission': 'FULL_CONTROL'|'WRITE'|'WRITE_ACP'|'READ
},
User Guides
],
(../../guide/index.html)
'Owner': {
Available Services (index.html) 'DisplayName': 'string',
'ID': 'string'
ACM (acm.html)
}
ACMPCA (acm-pca.html) },
GrantFullControl='string',
AlexaForBusiness
(alexaforbusiness.html) GrantRead='string',
GrantReadACP='string',
Amplify (amplify.html) GrantWrite='string',
APIGateway GrantWriteACP='string'
(apigateway.html) )

ApiGatewayManagement
Api
(apigatewaymanagement Parameters
api.html) ACL (string) -- The canned ACL to apply to the bucket.
AccessControlPolicy (dict) --
Boto 3 Docs 1.9.249
Contains the elements that set the ACL permissions for an object per
documentation ( grantee.
../../index.html)
Grants (list) --
A list of grants.
TABLE OF CONTENTS
(dict) --
Grantee (dict) --
Quickstart
DisplayName (string) --
(../../guide/quickstart.html)
Screen name of the grantee.
A Sample Tutorial
EmailAddress (string) --
(../../guide/sqs.html)
Email address of the grantee.
Code Examples
ID (string) --
(../../guide/examples.html)
The canonical user ID of the grantee.
User Guides
Type (string) -- [REQUIRED]
(../../guide/index.html)
Type of grantee
Available Services (index.html) URI (string) --
ACM (acm.html) URI of the grantee group.

ACMPCA (acm-pca.html) Permission (string) --


Specifies the permission given to the grantee.
AlexaForBusiness
(alexaforbusiness.html) Owner (dict) --
Container for the bucket owner's display name and ID.
Amplify (amplify.html)
DisplayName (string) --
APIGateway ID (string) --
(apigateway.html) GrantFullControl (string) -- Allows grantee the read, write, read ACP, and
ApiGatewayManagement write ACP permissions on the bucket.
Api GrantRead (string) -- Allows grantee to list the objects in the bucket.
(apigatewaymanagement GrantReadACP (string) -- Allows grantee to read the bucket ACL.
api.html)
GrantWrite (string) -- Allows grantee to create, overwrite, and delete any
Boto 3 Docs 1.9.249
object in the bucket.
documentation ( GrantWriteACP (string) -- Allows grantee to write the ACL for the
../../index.html) applicable bucket.

Returns
TABLE OF CONTENTS
None

Quickstart
(../../guide/quickstart.html) reload ()
A Sample Tutorial Calls S3.Client.get_bucket_acl() to update the attributes of the BucketAcl
(../../guide/sqs.html) resource. Note that the load and reload methods are the same method and can
be used interchangeably.
Code Examples
(../../guide/examples.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
User Guides
(../../guide/index.html) Request Syntax

Available Services (index.html)


bucket_acl.reload()
ACM (acm.html)

ACMPCA (acm-pca.html)
Returns
AlexaForBusiness None
(alexaforbusiness.html)

Amplify (amplify.html)
Sub-resources
APIGateway Sub-resources are methods that create a new instance of a child resource. This
(apigateway.html) resource's identifiers get passed along to the child. For more information about
ApiGatewayManagement sub-resources refer to the Resources Introduction Guide
Api (../../guide/resources.html#subresources-intro).
(apigatewaymanagement
Bucket ()
api.html)
Creates a Bucket resource.:
Boto 3 Docs 1.9.249
documentation (
bucket = bucket_acl.Bucket()
../../index.html)

TABLE OF CONTENTS Return type


S3.Bucket
Quickstart
Returns
(../../guide/quickstart.html)
A Bucket resource
A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html) BucketCors
User Guides
(../../guide/index.html) class S3. BucketCors (bucket_name)
A resource representing an Amazon Simple Storage Service (S3) BucketCors:
Available Services (index.html)

ACM (acm.html)
import boto3
ACMPCA (acm-pca.html)
s3 = boto3.resource('s3')
AlexaForBusiness
bucket_cors = s3.BucketCors('bucket_name')
(alexaforbusiness.html)

Amplify (amplify.html)
Parameters
APIGateway
bucket_name (string) -- The BucketCors's bucket_name identifier. This must be
(apigateway.html)
set.
ApiGatewayManagement
Api These are the resource's available identifiers:
(apigatewaymanagement
bucket_name
api.html)
These are the resource's available attributes:
Boto 3 Docs 1.9.249
documentation ( cors_rules

../../index.html) These are the resource's available actions:

delete()
TABLE OF CONTENTS get_available_subresources()
load()
Quickstart put()
(../../guide/quickstart.html) reload()
A Sample Tutorial These are the resource's available sub-resources:
(../../guide/sqs.html)
Bucket()
Code Examples
(../../guide/examples.html) Identifiers
Identifiers are properties of a resource that are set upon instantation of the
User Guides resource. For more information about identifiers refer to the Resources
(../../guide/index.html) Introduction Guide (../../guide/resources.html#identifiers-attributes-intro).
Available Services (index.html) bucket_name
ACM (acm.html) (string) The BucketCors's bucket_name identifier. This must be set.

ACMPCA (acm-pca.html) Attributes


AlexaForBusiness Attributes provide access to the properties of a resource. Attributes are lazy-loaded
(alexaforbusiness.html) the first time one is accessed via the load() method. For more information about
attributes refer to the Resources Introduction Guide
Amplify (amplify.html)
(../../guide/resources.html#identifiers-attributes-intro).
APIGateway
cors_rules
(apigateway.html)
(list) --
ApiGatewayManagement
Api (dict) --
(apigatewaymanagement Specifies a cross-origin access rule for an Amazon S3 bucket.
api.html)
AllowedHeaders (list) --
Boto 3 Docs 1.9.249
documentation ( Headers that are specified in the Access-Control-Request-
Headers header. These headers are allowed in a preflight
../../index.html)
OPTIONS request. In response to any preflight OPTIONS
request, Amazon S3 returns any requested headers that are
TABLE OF CONTENTS
allowed.

Quickstart (string) --
(../../guide/quickstart.html) AllowedMethods (list) --

A Sample Tutorial An HTTP method that you allow the origin to execute. Valid
(../../guide/sqs.html) values are GET , PUT , HEAD , POST , and DELETE .

Code Examples (string) --


(../../guide/examples.html) AllowedOrigins (list) --
One or more origins you want customers to be able to access
User Guides
the bucket from.
(../../guide/index.html)
(string) --
Available Services (index.html)
ExposeHeaders (list) --
ACM (acm.html)
One or more headers in the response that you want customers
ACMPCA (acm-pca.html) to be able to access from their applications (for example, from
a JavaScript XMLHttpRequest object).
AlexaForBusiness
(alexaforbusiness.html) (string) --
MaxAgeSeconds (integer) --
Amplify (amplify.html)
The time in seconds that your browser is to cache the preflight
APIGateway
response for the specified resource.
(apigateway.html)

ApiGatewayManagement Actions
Api Actions call operations on resources. They may automatically handle the passing in
(apigatewaymanagement of arguments set from identifiers and some attributes. For more information about
api.html) actions refer to the Resources Introduction Guide
(../../guide/resources.html#actions-intro).
Boto 3 Docs 1.9.249
documentation ( delete ()
../../index.html) Deletes the CORS configuration information set for the bucket.
See also: AWS API Documentation
TABLE OF CONTENTS (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketCors)
Request Syntax
Quickstart
(../../guide/quickstart.html)
response = bucket_cors.delete()
A Sample Tutorial
(../../guide/sqs.html)

Code Examples
Returns
(../../guide/examples.html) None

User Guides
(../../guide/index.html) get_available_subresources ()

Available Services (index.html) Returns a list of all the available sub-resources for this Resource.

ACM (acm.html) Returns


A list containing the name of each sub-resource for this resource
ACMPCA (acm-pca.html)
Return type
AlexaForBusiness
list of str
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway load ()
(apigateway.html) Calls S3.Client.get_bucket_cors() to update the attributes of the BucketCors
resource. Note that the load and reload methods are the same method and can
ApiGatewayManagement
be used interchangeably.
Api
(apigatewaymanagement See also: AWS API Documentation
api.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
Request Syntax
Boto 3 Docs 1.9.249
documentation (
bucket_cors.load()
../../index.html)

TABLE OF CONTENTS Returns


None
Quickstart
(../../guide/quickstart.html)
put (**kwargs)
A Sample Tutorial
(../../guide/sqs.html) Sets the CORS configuration for a bucket.

Code Examples See also: AWS API Documentation


(../../guide/examples.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketCors)

Request Syntax
User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = bucket_cors.put(
documentation ( CORSConfiguration={
../../index.html) 'CORSRules': [
{
'AllowedHeaders': [
TABLE OF CONTENTS
'string',
],
Quickstart
'AllowedMethods': [
(../../guide/quickstart.html)
'string',
A Sample Tutorial ],
(../../guide/sqs.html) 'AllowedOrigins': [
Code Examples 'string',
(../../guide/examples.html) ],
'ExposeHeaders': [
User Guides
'string',
(../../guide/index.html)
],
Available Services (index.html) 'MaxAgeSeconds': 123
},
ACM (acm.html)
]
ACMPCA (acm-pca.html) },

AlexaForBusiness
(alexaforbusiness.html) )

Amplify (amplify.html)
Parameters
APIGateway
CORSConfiguration (dict) --
(apigateway.html)
[REQUIRED]
ApiGatewayManagement
CORSRules (list) -- [REQUIRED]
Api
A set of allowed origins and methods.
(apigatewaymanagement
api.html) (dict) --
Specifies a cross-origin access rule for an Amazon S3 bucket.
Boto 3 Docs 1.9.249
documentation ( AllowedHeaders (list) --
Headers that are specified in the Access-Control-Request-Headers
../../index.html)
header. These headers are allowed in a preflight OPTIONS request. In
response to any preflight OPTIONS request, Amazon S3 returns any
TABLE OF CONTENTS requested headers that are allowed.
(string) --
Quickstart
AllowedMethods (list) -- [REQUIRED]
(../../guide/quickstart.html)
An HTTP method that you allow the origin to execute. Valid values
A Sample Tutorial are GET , PUT , HEAD , POST , and DELETE .
(../../guide/sqs.html)
(string) --
Code Examples AllowedOrigins (list) -- [REQUIRED]
(../../guide/examples.html) One or more origins you want customers to be able to access the
bucket from.
User Guides
(../../guide/index.html) (string) --
ExposeHeaders (list) --
Available Services (index.html)
One or more headers in the response that you want customers to be
ACM (acm.html) able to access from their applications (for example, from a JavaScript
XMLHttpRequest object).
ACMPCA (acm-pca.html)
(string) --
AlexaForBusiness
MaxAgeSeconds (integer) --
(alexaforbusiness.html)
The time in seconds that your browser is to cache the preflight
Amplify (amplify.html) response for the specified resource.
APIGateway Returns
(apigateway.html) None
ApiGatewayManagement
Api
(apigatewaymanagement reload ()
api.html)
Calls S3.Client.get_bucket_cors() to update the attributes of the BucketCors
Boto 3 Docs 1.9.249
resource. Note that the load and reload methods are the same method and can
documentation ( be used interchangeably.
../../index.html)
See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
TABLE OF CONTENTS
Request Syntax
Quickstart
(../../guide/quickstart.html) bucket_cors.reload()
A Sample Tutorial
(../../guide/sqs.html) Returns
Code Examples None
(../../guide/examples.html)

User Guides Sub-resources


(../../guide/index.html) Sub-resources are methods that create a new instance of a child resource. This
Available Services (index.html) resource's identifiers get passed along to the child. For more information about
sub-resources refer to the Resources Introduction Guide
ACM (acm.html) (../../guide/resources.html#subresources-intro).
ACMPCA (acm-pca.html)
Bucket ()
AlexaForBusiness Creates a Bucket resource.:
(alexaforbusiness.html)

Amplify (amplify.html) bucket = bucket_cors.Bucket()


APIGateway
(apigateway.html)
Return type
ApiGatewayManagement S3.Bucket
Api
Returns
(apigatewaymanagement
api.html) A Bucket resource
Boto 3 Docs 1.9.249
documentation (
../../index.html)
BucketLifecycle
TABLE OF CONTENTS class S3. BucketLifecycle (bucket_name)
A resource representing an Amazon Simple Storage Service (S3) BucketLifecycle:
Quickstart
(../../guide/quickstart.html)
import boto3
A Sample Tutorial
(../../guide/sqs.html) s3 = boto3.resource('s3')

Code Examples bucket_lifecycle = s3.BucketLifecycle('bucket_name')


(../../guide/examples.html)

User Guides Parameters


(../../guide/index.html) bucket_name (string) -- The BucketLifecycle's bucket_name identifier. This
must be set.
Available Services (index.html)
These are the resource's available identifiers:
ACM (acm.html)
bucket_name
ACMPCA (acm-pca.html)

AlexaForBusiness These are the resource's available attributes:


(alexaforbusiness.html) rules
Amplify (amplify.html) These are the resource's available actions:
APIGateway delete()
(apigateway.html) get_available_subresources()
ApiGatewayManagement load()
Api put()
(apigatewaymanagement reload()
api.html)
These are the resource's available sub-resources:
Boto 3 Docs 1.9.249
documentation ( Bucket()

../../index.html) Identifiers
Identifiers are properties of a resource that are set upon instantation of the
TABLE OF CONTENTS resource. For more information about identifiers refer to the Resources
Introduction Guide (../../guide/resources.html#identifiers-attributes-intro).
Quickstart bucket_name
(../../guide/quickstart.html)
(string) The BucketLifecycle's bucket_name identifier. This must be set.
A Sample Tutorial
(../../guide/sqs.html) Attributes
Attributes provide access to the properties of a resource. Attributes are lazy-loaded
Code Examples
the first time one is accessed via the load() method. For more information about
(../../guide/examples.html)
attributes refer to the Resources Introduction Guide
User Guides (../../guide/resources.html#identifiers-attributes-intro).
(../../guide/index.html) rules
Available Services (index.html) (list) --

ACM (acm.html) (dict) --

ACMPCA (acm-pca.html) Specifies lifecycle rules for an Amazon S3 bucket. For more
information, see PUT Bucket lifecycle
AlexaForBusiness
(https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlifecycl
(alexaforbusiness.html)
in the Amazon Simple Storage Service API Reference .
Amplify (amplify.html)
Expiration (dict) --
APIGateway
Date (datetime) --
(apigateway.html)
Indicates at what date the object is to be moved or
ApiGatewayManagement
deleted. Should be in GMT ISO 8601 Format.
Api
(apigatewaymanagement Days (integer) --
api.html)
Indicates the lifetime, in days, of the objects that are
Boto 3 Docs 1.9.249
subject to the rule. The value must be a non-zero positive
documentation ( integer.
../../index.html)
ExpiredObjectDeleteMarker (boolean) --

TABLE OF CONTENTS 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
Quickstart
action. This cannot be specified with Days or Date in a
(../../guide/quickstart.html)
Lifecycle Expiration Policy.
A Sample Tutorial
ID (string) --
(../../guide/sqs.html)
Unique identifier for the rule. The value can't be longer than
Code Examples
255 characters.
(../../guide/examples.html)
Prefix (string) --
User Guides
(../../guide/index.html) Object key prefix that identifies one or more objects to which
this rule applies.
Available Services (index.html)
Status (string) --
ACM (acm.html)
If Enabled , the rule is currently being applied. If Disabled , the
ACMPCA (acm-pca.html) rule is not currently being applied.
AlexaForBusiness Transition (dict) --
(alexaforbusiness.html)
Date (datetime) --
Amplify (amplify.html)
Indicates when objects are transitioned to the specified
APIGateway storage class. The date value must be in ISO 8601 format.
(apigateway.html) The time is always midnight UTC.
ApiGatewayManagement Days (integer) --
Api
(apigatewaymanagement
api.html)
Indicates the number of days after creation when objects
Boto 3 Docs 1.9.249
are transitioned to the specified storage class. The value
documentation ( must be a positive integer.
../../index.html)
StorageClass (string) --

TABLE OF CONTENTS The storage class to which you want the object to
transition.
Quickstart NoncurrentVersionTransition (dict) --
(../../guide/quickstart.html)
NoncurrentDays (integer) --
A Sample Tutorial
Specifies the number of days an object is noncurrent
(../../guide/sqs.html)
before Amazon S3 can perform the associated action. For
Code Examples information about the noncurrent days calculations, see
(../../guide/examples.html) How Amazon S3 Calculates When an Object Became
Noncurrent
User Guides
(https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-
(../../guide/index.html)
access-control.html) in the Amazon Simple Storage Service
Available Services (index.html) Developer Guide .

ACM (acm.html) StorageClass (string) --

ACMPCA (acm-pca.html) The class of storage used to store the object.

AlexaForBusiness NoncurrentVersionExpiration (dict) --


(alexaforbusiness.html) NoncurrentDays (integer) --
Amplify (amplify.html) Specifies the number of days an object is noncurrent
APIGateway before Amazon S3 can perform the associated action. For
(apigateway.html) information about the noncurrent days calculations, see
How Amazon S3 Calculates When an Object Became
ApiGatewayManagement Noncurrent
Api (https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-
(apigatewaymanagement lifecycle-rules.html#non-current-days-calculations) in the
api.html) Amazon Simple Storage Service Developer Guide.
AbortIncompleteMultipartUpload (dict) --
Boto 3 Docs 1.9.249
documentation ( DaysAfterInitiation (integer) --

../../index.html) Specifies the number of days after which Amazon S3


aborts an incomplete multipart upload.
TABLE OF CONTENTS
Actions
Actions call operations on resources. They may automatically handle the passing in
Quickstart
of arguments set from identifiers and some attributes. For more information about
(../../guide/quickstart.html)
actions refer to the Resources Introduction Guide
A Sample Tutorial (../../guide/resources.html#actions-intro).
(../../guide/sqs.html)
delete ()
Code Examples
Deletes the lifecycle configuration from the bucket.
(../../guide/examples.html)
See also: AWS API Documentation
User Guides (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
(../../guide/index.html) 01/DeleteBucketLifecycle)
Available Services (index.html) Request Syntax
ACM (acm.html)

ACMPCA (acm-pca.html) response = bucket_lifecycle.delete()

AlexaForBusiness
(alexaforbusiness.html) Returns
None
Amplify (amplify.html)

APIGateway
(apigateway.html) get_available_subresources ()
ApiGatewayManagement Returns a list of all the available sub-resources for this Resource.
Api
Returns
(apigatewaymanagement
A list containing the name of each sub-resource for this resource
api.html)
Return type
Boto 3 Docs 1.9.249
list of str
documentation (
../../index.html)
load ()
TABLE OF CONTENTS Calls S3.Client.get_bucket_lifecycle() to update the attributes of the
BucketLifecycle resource. Note that the load and reload methods are the same
Quickstart method and can be used interchangeably.
(../../guide/quickstart.html)
See also: AWS API Documentation
A Sample Tutorial (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
(../../guide/sqs.html)
Request Syntax
Code Examples
(../../guide/examples.html)
bucket_lifecycle.load()
User Guides
(../../guide/index.html)
Returns
Available Services (index.html) None
ACM (acm.html)

ACMPCA (acm-pca.html) put (**kwargs)


AlexaForBusiness No longer used, see the PutBucketLifecycleConfiguration operation.
(alexaforbusiness.html)

Amplify (amplify.html) Danger


APIGateway This operation is deprecated and may not function as expected. This
(apigateway.html) operation should not be used going forward and is only kept for the
purpose of backwards compatiblity.
ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
See also: AWS API Documentation
Boto 3 Docs 1.9.249
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycle)
documentation (
Request Syntax
../../index.html)

TABLE OF CONTENTS

Quickstart
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = bucket_lifecycle.put(
documentation ( LifecycleConfiguration={
../../index.html) 'Rules': [
{
'Expiration': {
TABLE OF CONTENTS
'Date': datetime(2015, 1, 1),
'Days': 123,
Quickstart
'ExpiredObjectDeleteMarker': True|False
(../../guide/quickstart.html)
},
A Sample Tutorial 'ID': 'string',
(../../guide/sqs.html) 'Prefix': 'string',
Code Examples 'Status': 'Enabled'|'Disabled',
(../../guide/examples.html) 'Transition': {
'Date': datetime(2015, 1, 1),
User Guides
'Days': 123,
(../../guide/index.html)
'StorageClass': 'GLACIER'|'STANDARD_IA'|'ONEZONE_I
Available Services (index.html) },
'NoncurrentVersionTransition': {
ACM (acm.html)
'NoncurrentDays': 123,
ACMPCA (acm-pca.html) 'StorageClass': 'GLACIER'|'STANDARD_IA'|'ONEZONE_I
},
AlexaForBusiness
(alexaforbusiness.html) 'NoncurrentVersionExpiration': {
'NoncurrentDays': 123
Amplify (amplify.html) },
APIGateway 'AbortIncompleteMultipartUpload': {
(apigateway.html) 'DaysAfterInitiation': 123
}
ApiGatewayManagement
},
Api
]
(apigatewaymanagement
api.html)
}
Boto 3 Docs 1.9.249
)
documentation (
../../index.html)
Parameters
TABLE OF CONTENTS
LifecycleConfiguration (dict) --
Rules (list) -- [REQUIRED]
Quickstart (dict) --
(../../guide/quickstart.html) Specifies lifecycle rules for an Amazon S3 bucket. For more
A Sample Tutorial information, see PUT Bucket lifecycle
(../../guide/sqs.html) (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlifecycle.h
in the Amazon Simple Storage Service API Reference .
Code Examples
(../../guide/examples.html) Expiration (dict) --
Date (datetime) --
User Guides Indicates at what date the object is to be moved or deleted. Should
(../../guide/index.html) be in GMT ISO 8601 Format.

Available Services (index.html) Days (integer) --


Indicates the lifetime, in days, of the objects that are subject to the
ACM (acm.html)
rule. The value must be a non-zero positive integer.
ACMPCA (acm-pca.html)
ExpiredObjectDeleteMarker (boolean) --
AlexaForBusiness Indicates whether Amazon S3 will remove a delete marker with no
(alexaforbusiness.html) noncurrent versions. If set to true, the delete marker will be
expired; if set to false the policy takes no action. This cannot be
Amplify (amplify.html)
specified with Days or Date in a Lifecycle Expiration Policy.
APIGateway
ID (string) --
(apigateway.html)
Unique identifier for the rule. The value can't be longer than 255
ApiGatewayManagement characters.
Api
Prefix (string) -- [REQUIRED]
(apigatewaymanagement
api.html)
Object key prefix that identifies one or more objects to which this
Boto 3 Docs 1.9.249
rule applies.
documentation (
Status (string) -- [REQUIRED]
../../index.html)
If Enabled , the rule is currently being applied. If Disabled , the rule is
not currently being applied.
TABLE OF CONTENTS
Transition (dict) --
Quickstart
Date (datetime) --
(../../guide/quickstart.html)
Indicates when objects are transitioned to the specified storage
class. The date value must be in ISO 8601 format. The time is
A Sample Tutorial always midnight UTC.
(../../guide/sqs.html)
Days (integer) --
Code Examples Indicates the number of days after creation when objects are
(../../guide/examples.html) transitioned to the specified storage class. The value must be a
positive integer.
User Guides
(../../guide/index.html) StorageClass (string) --
The storage class to which you want the object to transition.
Available Services (index.html)
NoncurrentVersionTransition (dict) --
ACM (acm.html)
NoncurrentDays (integer) --
ACMPCA (acm-pca.html) Specifies the number of days an object is noncurrent before
Amazon S3 can perform the associated action. For information
AlexaForBusiness
about the noncurrent days calculations, see How Amazon S3
(alexaforbusiness.html)
Calculates When an Object Became Noncurrent
Amplify (amplify.html) (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-
control.html) in the Amazon Simple Storage Service Developer Guide .
APIGateway
(apigateway.html) StorageClass (string) --
The class of storage used to store the object.
ApiGatewayManagement
Api NoncurrentVersionExpiration (dict) --
(apigatewaymanagement NoncurrentDays (integer) --
api.html)
Specifies the number of days an object is noncurrent before
Boto 3 Docs 1.9.249
Amazon S3 can perform the associated action. For information
documentation ( about the noncurrent days calculations, see How Amazon S3
../../index.html) Calculates When an Object Became Noncurrent
(https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-
TABLE OF CONTENTS lifecycle-rules.html#non-current-days-calculations) in the Amazon
Simple Storage Service Developer Guide.
Quickstart AbortIncompleteMultipartUpload (dict) --
(../../guide/quickstart.html) DaysAfterInitiation (integer) --
A Sample Tutorial Specifies the number of days after which Amazon S3 aborts an
(../../guide/sqs.html) incomplete multipart upload.

Code Examples Returns


(../../guide/examples.html) None

User Guides
(../../guide/index.html) reload ()

Available Services (index.html) Calls S3.Client.get_bucket_lifecycle() to update the attributes of the


BucketLifecycle resource. Note that the load and reload methods are the same
ACM (acm.html)
method and can be used interchangeably.
ACMPCA (acm-pca.html)
See also: AWS API Documentation
AlexaForBusiness (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
(alexaforbusiness.html)
Request Syntax
Amplify (amplify.html)

APIGateway bucket_lifecycle.reload()
(apigateway.html)

ApiGatewayManagement Returns
Api None
(apigatewaymanagement
api.html)
Sub-resources
Boto 3 Docs 1.9.249
Sub-resources are methods that create a new instance of a child resource. This
documentation ( resource's identifiers get passed along to the child. For more information about
../../index.html) sub-resources refer to the Resources Introduction Guide
(../../guide/resources.html#subresources-intro).
TABLE OF CONTENTS
Bucket ()
Creates a Bucket resource.:
Quickstart
(../../guide/quickstart.html)
bucket = bucket_lifecycle.Bucket()
A Sample Tutorial
(../../guide/sqs.html)

Code Examples Return type


(../../guide/examples.html) S3.Bucket

User Guides Returns


(../../guide/index.html) A Bucket resource

Available Services (index.html)

BucketLifecycleConfiguration
ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html) class S3. BucketLifecycleConfiguration (bucket_name)
A resource representing an Amazon Simple Storage Service (S3)
Amplify (amplify.html)
BucketLifecycleConfiguration:
APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 import boto3
documentation (
../../index.html) s3 = boto3.resource('s3')
bucket_lifecycle_configuration = s3.BucketLifecycleConfiguration('bucket_

TABLE OF CONTENTS

Quickstart Parameters
(../../guide/quickstart.html) bucket_name (string) -- The BucketLifecycleConfiguration's bucket_name
identifier. This must be set.
A Sample Tutorial
(../../guide/sqs.html)
These are the resource's available identifiers:
Code Examples
bucket_name
(../../guide/examples.html)
These are the resource's available attributes:
User Guides
(../../guide/index.html) rules

These are the resource's available actions:


Available Services (index.html)
delete()
ACM (acm.html)
get_available_subresources()
ACMPCA (acm-pca.html) load()
AlexaForBusiness put()
(alexaforbusiness.html) reload()

Amplify (amplify.html) These are the resource's available sub-resources:

APIGateway Bucket()
(apigateway.html)
Identifiers
ApiGatewayManagement Identifiers are properties of a resource that are set upon instantation of the
Api resource. For more information about identifiers refer to the Resources
(apigatewaymanagement Introduction Guide (../../guide/resources.html#identifiers-attributes-intro).
api.html)
bucket_name
Boto 3 Docs 1.9.249
(string) The BucketLifecycleConfiguration's bucket_name identifier. This must be
documentation (
set.
../../index.html)
Attributes
TABLE OF CONTENTS Attributes provide access to the properties of a resource. Attributes are lazy-loaded
the first time one is accessed via the load() method. For more information about
Quickstart attributes refer to the Resources Introduction Guide
(../../guide/quickstart.html) (../../guide/resources.html#identifiers-attributes-intro).

A Sample Tutorial rules


(../../guide/sqs.html) (list) --
Code Examples (dict) --
(../../guide/examples.html)
Expiration (dict) --
User Guides
Date (datetime) --
(../../guide/index.html)
Indicates at what date the object is to be moved or
Available Services (index.html) deleted. Should be in GMT ISO 8601 Format.
ACM (acm.html) Days (integer) --
ACMPCA (acm-pca.html) Indicates the lifetime, in days, of the objects that are
AlexaForBusiness subject to the rule. The value must be a non-zero positive
(alexaforbusiness.html) integer.

Amplify (amplify.html) ExpiredObjectDeleteMarker (boolean) --

APIGateway Indicates whether Amazon S3 will remove a delete marker


(apigateway.html) with no noncurrent versions. If set to true, the delete
marker will be expired; if set to false the policy takes no
ApiGatewayManagement action. This cannot be specified with Days or Date in a
Api Lifecycle Expiration Policy.
(apigatewaymanagement
api.html) ID (string) --
Unique identifier for the rule. The value cannot be longer than
Boto 3 Docs 1.9.249
255 characters.
documentation (
Prefix (string) --
../../index.html)
Prefix identifying one or more objects to which the rule applies.
TABLE OF CONTENTS This is No longer used; use Filter instead.

Filter (dict) --
Quickstart
Prefix (string) --
(../../guide/quickstart.html)
Prefix identifying one or more objects to which the rule
A Sample Tutorial
applies.
(../../guide/sqs.html)
Tag (dict) --
Code Examples
(../../guide/examples.html) This tag must exist in the object's tag set in order for the
rule to apply.
User Guides
(../../guide/index.html) Key (string) --
Name of the tag.
Available Services (index.html)
Value (string) --
ACM (acm.html)
Value of the tag.
ACMPCA (acm-pca.html)
And (dict) --
AlexaForBusiness
(alexaforbusiness.html) Prefix (string) --
Amplify (amplify.html) Tags (list) --
APIGateway All of these tags must exist in the object's tag set in
(apigateway.html) order for the rule to apply.
ApiGatewayManagement (dict) --
Api
Key (string) --
(apigatewaymanagement
api.html) Name of the tag.
Value (string) --
Boto 3 Docs 1.9.249
documentation ( Value of the tag.

../../index.html) Status (string) --


If 'Enabled', the rule is currently being applied. If 'Disabled', the
TABLE OF CONTENTS rule is not currently being applied.

Transitions (list) --
Quickstart
(../../guide/quickstart.html) (dict) --

A Sample Tutorial Specifies when an object transitions to a specified storage


(../../guide/sqs.html) class.

Code Examples Date (datetime) --


(../../guide/examples.html)
Indicates when objects are transitioned to the
User Guides specified storage class. The date value must be in
(../../guide/index.html) ISO 8601 format. The time is always midnight UTC.

Days (integer) --
Available Services (index.html)
Indicates the number of days after creation when
ACM (acm.html)
objects are transitioned to the specified storage
ACMPCA (acm-pca.html) class. The value must be a positive integer.
AlexaForBusiness StorageClass (string) --
(alexaforbusiness.html)
The storage class to which you want the object to
Amplify (amplify.html) transition.
APIGateway NoncurrentVersionTransitions (list) --
(apigateway.html)
(dict) --
ApiGatewayManagement
Container for the transition rule that describes when
Api
noncurrent objects transition to the STANDARD_IA ,
(apigatewaymanagement
ONEZONE_IA , INTELLIGENT_TIERING , GLACIER , or
api.html)
DEEP_ARCHIVE storage class. If your bucket is versioning-
Boto 3 Docs 1.9.249
enabled (or versioning is suspended), you can set this
documentation ( action to request that Amazon S3 transition noncurrent
../../index.html) object versions to the STANDARD_IA , ONEZONE_IA ,
INTELLIGENT_TIERING , GLACIER , or DEEP_ARCHIVE storage
TABLE OF CONTENTS class at a specific period in the object's lifetime.

NoncurrentDays (integer) --
Quickstart
(../../guide/quickstart.html) Specifies the number of days an object is noncurrent
before Amazon S3 can perform the associated
A Sample Tutorial action. For information about the noncurrent days
(../../guide/sqs.html) calculations, see How Amazon S3 Calculates When
Code Examples an Object Became Noncurrent
(../../guide/examples.html) (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-
access-control.html) in the Amazon Simple Storage
User Guides Service Developer Guide .
(../../guide/index.html)
StorageClass (string) --
Available Services (index.html)
The class of storage used to store the object.
ACM (acm.html)
NoncurrentVersionExpiration (dict) --
ACMPCA (acm-pca.html)
NoncurrentDays (integer) --
AlexaForBusiness
Specifies the number of days an object is noncurrent
(alexaforbusiness.html)
before Amazon S3 can perform the associated action. For
Amplify (amplify.html) information about the noncurrent days calculations, see
How Amazon S3 Calculates When an Object Became
APIGateway
Noncurrent
(apigateway.html)
(https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-
ApiGatewayManagement lifecycle-rules.html#non-current-days-calculations) in the
Api Amazon Simple Storage Service Developer Guide.
(apigatewaymanagement
AbortIncompleteMultipartUpload (dict) --
api.html)
DaysAfterInitiation (integer) --
Boto 3 Docs 1.9.249
documentation ( Specifies the number of days after which Amazon S3
aborts an incomplete multipart upload.
../../index.html)
Actions
TABLE OF CONTENTS Actions call operations on resources. They may automatically handle the passing in
of arguments set from identifiers and some attributes. For more information about
Quickstart actions refer to the Resources Introduction Guide
(../../guide/quickstart.html) (../../guide/resources.html#actions-intro).
A Sample Tutorial delete ()
(../../guide/sqs.html)
Deletes the lifecycle configuration from the bucket.
Code Examples
See also: AWS API Documentation
(../../guide/examples.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
User Guides 01/DeleteBucketLifecycle)
(../../guide/index.html) Request Syntax
Available Services (index.html)

ACM (acm.html) response = bucket_lifecycle_configuration.delete()

ACMPCA (acm-pca.html)
Returns
AlexaForBusiness
None
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway get_available_subresources ()
(apigateway.html) Returns a list of all the available sub-resources for this Resource.

ApiGatewayManagement Returns
Api A list containing the name of each sub-resource for this resource
(apigatewaymanagement
Return type
api.html)
list of str
Boto 3 Docs 1.9.249
documentation (
../../index.html) load ()
Calls S3.Client.get_bucket_lifecycle_configuration() to update the
TABLE OF CONTENTS attributes of the BucketLifecycleConfiguration resource. Note that the load and
reload methods are the same method and can be used interchangeably.
Quickstart
See also: AWS API Documentation
(../../guide/quickstart.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
A Sample Tutorial
Request Syntax
(../../guide/sqs.html)

Code Examples
bucket_lifecycle_configuration.load()
(../../guide/examples.html)

User Guides
Returns
(../../guide/index.html)
None
Available Services (index.html)

ACM (acm.html)
put (**kwargs)
ACMPCA (acm-pca.html) Sets lifecycle configuration for your bucket. If a lifecycle configuration exists, it
AlexaForBusiness replaces it.
(alexaforbusiness.html) See also: AWS API Documentation
Amplify (amplify.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
01/PutBucketLifecycleConfiguration)
APIGateway
(apigateway.html) Request Syntax

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = bucket_lifecycle_configuration.put(
documentation ( LifecycleConfiguration={
../../index.html) 'Rules': [
{
'Expiration': {
TABLE OF CONTENTS
'Date': datetime(2015, 1, 1),
'Days': 123,
Quickstart
'ExpiredObjectDeleteMarker': True|False
(../../guide/quickstart.html)
},
A Sample Tutorial 'ID': 'string',
(../../guide/sqs.html) 'Prefix': 'string',
Code Examples 'Filter': {
(../../guide/examples.html) 'Prefix': 'string',
'Tag': {
User Guides
'Key': 'string',
(../../guide/index.html)
'Value': 'string'
Available Services (index.html) },
'And': {
ACM (acm.html)
'Prefix': 'string',
ACMPCA (acm-pca.html) 'Tags': [
{
AlexaForBusiness
(alexaforbusiness.html) 'Key': 'string',
'Value': 'string'
Amplify (amplify.html) },
APIGateway ]
(apigateway.html) }
},
ApiGatewayManagement
'Status': 'Enabled'|'Disabled',
Api
'Transitions': [
(apigatewaymanagement
api.html) {
'Date': datetime(2015, 1, 1),
Boto 3 Docs 1.9.249
'Days': 123,
documentation ( 'StorageClass': 'GLACIER'|'STANDARD_IA'|'ONEZO
../../index.html) },
],
TABLE OF CONTENTS 'NoncurrentVersionTransitions': [
{
Quickstart 'NoncurrentDays': 123,
(../../guide/quickstart.html) 'StorageClass': 'GLACIER'|'STANDARD_IA'|'ONEZO
},
A Sample Tutorial
],
(../../guide/sqs.html)
'NoncurrentVersionExpiration': {
Code Examples 'NoncurrentDays': 123
(../../guide/examples.html) },
User Guides 'AbortIncompleteMultipartUpload': {
(../../guide/index.html) 'DaysAfterInitiation': 123
}
Available Services (index.html) },
ACM (acm.html) ]
}
ACMPCA (acm-pca.html)
)
AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html) Parameters


LifecycleConfiguration (dict) --
APIGateway
Rules (list) -- [REQUIRED]
(apigateway.html)
A lifecycle rule for individual objects in an Amazon S3 bucket.
ApiGatewayManagement
(dict) --
Api
Expiration (dict) --
(apigatewaymanagement
Date (datetime) --
api.html)
Indicates at what date the object is to be moved or deleted. Should
Boto 3 Docs 1.9.249
be in GMT ISO 8601 Format.
documentation (
Days (integer) --
../../index.html)
Indicates the lifetime, in days, of the objects that are subject to the
rule. The value must be a non-zero positive integer.
TABLE OF CONTENTS
ExpiredObjectDeleteMarker (boolean) --
Indicates whether Amazon S3 will remove a delete marker with no
Quickstart
noncurrent versions. If set to true, the delete marker will be
(../../guide/quickstart.html)
expired; if set to false the policy takes no action. This cannot be
A Sample Tutorial specified with Days or Date in a Lifecycle Expiration Policy.
(../../guide/sqs.html)
ID (string) --
Code Examples Unique identifier for the rule. The value cannot be longer than 255
(../../guide/examples.html) characters.

User Guides Prefix (string) --


(../../guide/index.html) Prefix identifying one or more objects to which the rule applies. This
is No longer used; use Filter instead.
Available Services (index.html)
Filter (dict) --
ACM (acm.html) Prefix (string) --
ACMPCA (acm-pca.html) Prefix identifying one or more objects to which the rule applies.

AlexaForBusiness Tag (dict) --


(alexaforbusiness.html) This tag must exist in the object's tag set in order for the rule to
apply.
Amplify (amplify.html)
Key (string) -- [REQUIRED]
APIGateway
Name of the tag.
(apigateway.html)
Value (string) -- [REQUIRED]
ApiGatewayManagement
Value of the tag.
Api
(apigatewaymanagement And (dict) --
api.html) Prefix (string) --
Tags (list) --
Boto 3 Docs 1.9.249
All of these tags must exist in the object's tag set in order for the
documentation ( rule to apply.
../../index.html)
(dict) --
Key (string) -- [REQUIRED]
TABLE OF CONTENTS Name of the tag.
Value (string) -- [REQUIRED]
Quickstart
Value of the tag.
(../../guide/quickstart.html)
Status (string) -- [REQUIRED]
A Sample Tutorial
If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is
(../../guide/sqs.html)
not currently being applied.
Code Examples
Transitions (list) --
(../../guide/examples.html)
(dict) --
User Guides Specifies when an object transitions to a specified storage class.
(../../guide/index.html)
Date (datetime) --
Available Services (index.html) Indicates when objects are transitioned to the specified storage
class. The date value must be in ISO 8601 format. The time is
ACM (acm.html) always midnight UTC.
ACMPCA (acm-pca.html) Days (integer) --
AlexaForBusiness Indicates the number of days after creation when objects are
(alexaforbusiness.html) transitioned to the specified storage class. The value must be a
positive integer.
Amplify (amplify.html)
StorageClass (string) --
APIGateway
The storage class to which you want the object to transition.
(apigateway.html)
NoncurrentVersionTransitions (list) --
ApiGatewayManagement
(dict) --
Api
(apigatewaymanagement
api.html)
Container for the transition rule that describes when noncurrent
Boto 3 Docs 1.9.249
objects transition to the STANDARD_IA , ONEZONE_IA ,
documentation ( INTELLIGENT_TIERING , GLACIER , or DEEP_ARCHIVE storage class. If
../../index.html) your bucket is versioning-enabled (or versioning is suspended), you
can set this action to request that Amazon S3 transition noncurrent
TABLE OF CONTENTS object versions to the STANDARD_IA , ONEZONE_IA ,
INTELLIGENT_TIERING , GLACIER , or DEEP_ARCHIVE storage class at
Quickstart a specific period in the object's lifetime.
(../../guide/quickstart.html) NoncurrentDays (integer) --
A Sample Tutorial Specifies the number of days an object is noncurrent before
(../../guide/sqs.html) Amazon S3 can perform the associated action. For information
about the noncurrent days calculations, see How Amazon S3
Code Examples
Calculates When an Object Became Noncurrent
(../../guide/examples.html)
(https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-
User Guides control.html) in the Amazon Simple Storage Service Developer
(../../guide/index.html) Guide .
StorageClass (string) --
Available Services (index.html)
The class of storage used to store the object.
ACM (acm.html)
NoncurrentVersionExpiration (dict) --
ACMPCA (acm-pca.html) NoncurrentDays (integer) --
AlexaForBusiness Specifies the number of days an object is noncurrent before
(alexaforbusiness.html) Amazon S3 can perform the associated action. For information
about the noncurrent days calculations, see How Amazon S3
Amplify (amplify.html) Calculates When an Object Became Noncurrent
APIGateway (https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-
(apigateway.html) lifecycle-rules.html#non-current-days-calculations) in the Amazon
Simple Storage Service Developer Guide.
ApiGatewayManagement
Api AbortIncompleteMultipartUpload (dict) --
(apigatewaymanagement DaysAfterInitiation (integer) --
api.html)
Specifies the number of days after which Amazon S3 aborts an
Boto 3 Docs 1.9.249
incomplete multipart upload.
documentation (
Returns
../../index.html)
None

TABLE OF CONTENTS

reload ()
Quickstart
Calls S3.Client.get_bucket_lifecycle_configuration() to update the
(../../guide/quickstart.html)
attributes of the BucketLifecycleConfiguration resource. Note that the load and
A Sample Tutorial reload methods are the same method and can be used interchangeably.
(../../guide/sqs.html)
See also: AWS API Documentation
Code Examples (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
(../../guide/examples.html)
Request Syntax
User Guides
(../../guide/index.html)
bucket_lifecycle_configuration.reload()
Available Services (index.html)

ACM (acm.html) Returns


None
ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html) Sub-resources
Amplify (amplify.html) Sub-resources are methods that create a new instance of a child resource. This
resource's identifiers get passed along to the child. For more information about
APIGateway sub-resources refer to the Resources Introduction Guide
(apigateway.html) (../../guide/resources.html#subresources-intro).
ApiGatewayManagement
Bucket ()
Api
Creates a Bucket resource.:
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 bucket = bucket_lifecycle_configuration.Bucket()
documentation (
../../index.html) Return type
S3.Bucket
TABLE OF CONTENTS
Returns

Quickstart A Bucket resource


(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html)
BucketLogging
Code Examples
(../../guide/examples.html)
class S3. BucketLogging (bucket_name)
User Guides A resource representing an Amazon Simple Storage Service (S3) BucketLogging:
(../../guide/index.html)

Available Services (index.html) import boto3

ACM (acm.html)
s3 = boto3.resource('s3')
ACMPCA (acm-pca.html) bucket_logging = s3.BucketLogging('bucket_name')
AlexaForBusiness
(alexaforbusiness.html)
Parameters
Amplify (amplify.html) bucket_name (string) -- The BucketLogging's bucket_name identifier. This must
be set.
APIGateway
(apigateway.html)
These are the resource's available identifiers:
ApiGatewayManagement
bucket_name
Api
(apigatewaymanagement These are the resource's available attributes:
api.html)
logging_enabled
Boto 3 Docs 1.9.249
documentation ( These are the resource's available actions:
../../index.html) get_available_subresources()
load()
TABLE OF CONTENTS put()
reload()
Quickstart These are the resource's available sub-resources:
(../../guide/quickstart.html)
Bucket()
A Sample Tutorial
(../../guide/sqs.html) Identifiers
Identifiers are properties of a resource that are set upon instantation of the
Code Examples
resource. For more information about identifiers refer to the Resources
(../../guide/examples.html)
Introduction Guide (../../guide/resources.html#identifiers-attributes-intro).
User Guides bucket_name
(../../guide/index.html)
(string) The BucketLogging's bucket_name identifier. This must be set.
Available Services (index.html)
Attributes
ACM (acm.html) Attributes provide access to the properties of a resource. Attributes are lazy-loaded
ACMPCA (acm-pca.html) the first time one is accessed via the load() method. For more information about
attributes refer to the Resources Introduction Guide
AlexaForBusiness
(../../guide/resources.html#identifiers-attributes-intro).
(alexaforbusiness.html)
logging_enabled
Amplify (amplify.html)
(dict) --
APIGateway
(apigateway.html)
TargetBucket (string) --

ApiGatewayManagement
Specifies the bucket where you want Amazon S3 to store server
Api
access logs. You can have your logs delivered to any bucket that you
(apigatewaymanagement
own, including the same bucket that is being logged. You can also
api.html)
configure multiple buckets to deliver their logs to the same target
bucket. In this case you should choose a different TargetPrefix for
Boto 3 Docs 1.9.249
each source bucket so that the delivered log files can be
documentation ( distinguished by key.
../../index.html)
TargetGrants (list) --

TABLE OF CONTENTS (dict) --

Grantee (dict) --
Quickstart
DisplayName (string) --
(../../guide/quickstart.html)
Screen name of the grantee.
A Sample Tutorial
(../../guide/sqs.html) EmailAddress (string) --

Code Examples Email address of the grantee.


(../../guide/examples.html)
ID (string) --
User Guides The canonical user ID of the grantee.
(../../guide/index.html)
Type (string) --
Available Services (index.html)
Type of grantee
ACM (acm.html)
URI (string) --
ACMPCA (acm-pca.html)
URI of the grantee group.
AlexaForBusiness
Permission (string) --
(alexaforbusiness.html)
Logging permissions assigned to the Grantee for the
Amplify (amplify.html)
bucket.
APIGateway
TargetPrefix (string) --
(apigateway.html)
A prefix for all log object keys. If you store log files from multiple
ApiGatewayManagement
Amazon S3 buckets in a single bucket, you can use a prefix to
Api
distinguish which log files came from which bucket.
(apigatewaymanagement
api.html)
Actions
Actions call operations on resources. They may automatically handle the passing in
Boto 3 Docs 1.9.249
of arguments set from identifiers and some attributes. For more information about
documentation ( actions refer to the Resources Introduction Guide
../../index.html) (../../guide/resources.html#actions-intro).

get_available_subresources ()
TABLE OF CONTENTS
Returns a list of all the available sub-resources for this Resource.

Quickstart Returns
(../../guide/quickstart.html) A list containing the name of each sub-resource for this resource
A Sample Tutorial Return type
(../../guide/sqs.html) list of str
Code Examples
(../../guide/examples.html)
load ()
User Guides
Calls S3.Client.get_bucket_logging() to update the attributes of the
(../../guide/index.html)
BucketLogging resource. Note that the load and reload methods are the same
Available Services (index.html) method and can be used interchangeably.

ACM (acm.html) See also: AWS API Documentation


(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
ACMPCA (acm-pca.html)
Request Syntax
AlexaForBusiness
(alexaforbusiness.html)
bucket_logging.load()
Amplify (amplify.html)

APIGateway
Returns
(apigateway.html)
None
ApiGatewayManagement
Api
(apigatewaymanagement put (**kwargs)
api.html)
Set the logging parameters for a bucket and to specify permissions for who can
Boto 3 Docs 1.9.249
view and modify the logging parameters. To set the logging status of a bucket,
documentation ( you must be the bucket owner.
../../index.html)
See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLogging)
TABLE OF CONTENTS
Request Syntax
Quickstart
(../../guide/quickstart.html) response = bucket_logging.put(
A Sample Tutorial BucketLoggingStatus={
(../../guide/sqs.html) 'LoggingEnabled': {
'TargetBucket': 'string',
Code Examples
'TargetGrants': [
(../../guide/examples.html)
{
User Guides 'Grantee': {
(../../guide/index.html) 'DisplayName': 'string',
'EmailAddress': 'string',
Available Services (index.html) 'ID': 'string',
ACM (acm.html) 'Type': 'CanonicalUser'|'AmazonCustomerByEmail
'URI': 'string'
ACMPCA (acm-pca.html)
},
AlexaForBusiness 'Permission': 'FULL_CONTROL'|'READ'|'WRITE'
(alexaforbusiness.html) },
Amplify (amplify.html) ],
'TargetPrefix': 'string'
APIGateway
}
(apigateway.html)
},
ApiGatewayManagement
Api )
(apigatewaymanagement
api.html)
Parameters
Boto 3 Docs 1.9.249
BucketLoggingStatus (dict) --
documentation ( [REQUIRED]
../../index.html)
LoggingEnabled (dict) --
TargetBucket (string) -- [REQUIRED]
TABLE OF CONTENTS
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,
Quickstart including the same bucket that is being logged. You can also configure
(../../guide/quickstart.html) multiple buckets to deliver their logs to the same target bucket. In this
A Sample Tutorial case you should choose a different TargetPrefix for each source bucket
(../../guide/sqs.html) so that the delivered log files can be distinguished by key.

Code Examples TargetGrants (list) --


(../../guide/examples.html) (dict) --
Grantee (dict) --
User Guides DisplayName (string) --
(../../guide/index.html) Screen name of the grantee.

Available Services (index.html) EmailAddress (string) --


Email address of the grantee.
ACM (acm.html)
ID (string) --
ACMPCA (acm-pca.html)
The canonical user ID of the grantee.
AlexaForBusiness
Type (string) -- [REQUIRED]
(alexaforbusiness.html)
Type of grantee
Amplify (amplify.html)
URI (string) --
APIGateway URI of the grantee group.
(apigateway.html)
Permission (string) --
ApiGatewayManagement Logging permissions assigned to the Grantee for the bucket.
Api
TargetPrefix (string) -- [REQUIRED]
(apigatewaymanagement
api.html)
A prefix for all log object keys. If you store log files from multiple
Boto 3 Docs 1.9.249
Amazon S3 buckets in a single bucket, you can use a prefix to
documentation ( distinguish which log files came from which bucket.
../../index.html)
Returns
None
TABLE OF CONTENTS

Quickstart reload ()
(../../guide/quickstart.html)
Calls S3.Client.get_bucket_logging() to update the attributes of the
A Sample Tutorial BucketLogging resource. Note that the load and reload methods are the same
(../../guide/sqs.html) method and can be used interchangeably.
Code Examples See also: AWS API Documentation
(../../guide/examples.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)

User Guides Request Syntax


(../../guide/index.html)

Available Services (index.html) bucket_logging.reload()

ACM (acm.html)
Returns
ACMPCA (acm-pca.html)
None
AlexaForBusiness
(alexaforbusiness.html)
Sub-resources
Amplify (amplify.html)
Sub-resources are methods that create a new instance of a child resource. This
APIGateway resource's identifiers get passed along to the child. For more information about
(apigateway.html) sub-resources refer to the Resources Introduction Guide
ApiGatewayManagement (../../guide/resources.html#subresources-intro).
Api
Bucket ()
(apigatewaymanagement
Creates a Bucket resource.:
api.html)
Boto 3 Docs 1.9.249 bucket = bucket_logging.Bucket()
documentation (
../../index.html) Return type
S3.Bucket
TABLE OF CONTENTS
Returns
Quickstart A Bucket resource
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html)
BucketNotification
Code Examples
(../../guide/examples.html)
class S3. BucketNotification (bucket_name)
User Guides A resource representing an Amazon Simple Storage Service (S3) BucketNotification:
(../../guide/index.html)

Available Services (index.html) import boto3

ACM (acm.html)
s3 = boto3.resource('s3')
ACMPCA (acm-pca.html) bucket_notification = s3.BucketNotification('bucket_name')
AlexaForBusiness
(alexaforbusiness.html)
Parameters
Amplify (amplify.html) bucket_name (string) -- The BucketNotification's bucket_name identifier. This
must be set.
APIGateway
(apigateway.html)
These are the resource's available identifiers:
ApiGatewayManagement
bucket_name
Api
(apigatewaymanagement These are the resource's available attributes:
api.html)
lambda_function_configurations
Boto 3 Docs 1.9.249
queue_configurations
documentation ( topic_configurations
../../index.html)
These are the resource's available actions:

TABLE OF CONTENTS get_available_subresources()


load()
Quickstart put()
(../../guide/quickstart.html) reload()

A Sample Tutorial These are the resource's available sub-resources:


(../../guide/sqs.html)
Bucket()
Code Examples
Identifiers
(../../guide/examples.html)
Identifiers are properties of a resource that are set upon instantation of the
User Guides resource. For more information about identifiers refer to the Resources
(../../guide/index.html) Introduction Guide (../../guide/resources.html#identifiers-attributes-intro).

Available Services (index.html) bucket_name


(string) The BucketNotification's bucket_name identifier. This must be set.
ACM (acm.html)

ACMPCA (acm-pca.html) Attributes


Attributes provide access to the properties of a resource. Attributes are lazy-loaded
AlexaForBusiness
the first time one is accessed via the load() method. For more information about
(alexaforbusiness.html)
attributes refer to the Resources Introduction Guide
Amplify (amplify.html) (../../guide/resources.html#identifiers-attributes-intro).
APIGateway lambda_function_configurations
(apigateway.html) (list) --
ApiGatewayManagement Describes the AWS Lambda functions to invoke and the events for which
Api to invoke them.
(apigatewaymanagement
api.html) (dict) --
A container for specifying the configuration for AWS Lambda
Boto 3 Docs 1.9.249
notifications.
documentation (
Id (string) --
../../index.html)
An optional unique identifier for configurations in a notification
TABLE OF CONTENTS configuration. If you don't provide one, Amazon S3 will assign
an ID.
Quickstart LambdaFunctionArn (string) --
(../../guide/quickstart.html)
The Amazon Resource Name (ARN) of the AWS Lambda
A Sample Tutorial function that Amazon S3 invokes when the specified event type
(../../guide/sqs.html) occurs.
Code Examples Events (list) --
(../../guide/examples.html)
The Amazon S3 bucket event for which to invoke the AWS
User Guides Lambda function. For more information, see Supported Event
(../../guide/index.html) Types
(https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowT
Available Services (index.html) in the Amazon Simple Storage Service Developer Guide .
ACM (acm.html) (string) --
ACMPCA (acm-pca.html) The bucket event for which to send notifications.
AlexaForBusiness Filter (dict) --
(alexaforbusiness.html)
Key (dict) --
Amplify (amplify.html)
FilterRules (list) --
APIGateway
(apigateway.html) (dict) --

ApiGatewayManagement Specifies the Amazon S3 object key name to


Api filter on and whether to filter on the suffix or
(apigatewaymanagement prefix of the key name.
api.html) Name (string) --
The object key name prefix or suffix
Boto 3 Docs 1.9.249
identifying one or more objects to which
documentation ( the filtering rule applies. The maximum
../../index.html) length is 1,024 characters. Overlapping
prefixes and suffixes are not supported.
TABLE OF CONTENTS For more information, see Configuring
Event Notifications
Quickstart (https://docs.aws.amazon.com/AmazonS3/latest/
(../../guide/quickstart.html) in the Amazon Simple Storage Service
Developer Guide .
A Sample Tutorial
(../../guide/sqs.html) Value (string) --

Code Examples The value that the filter searches for in


(../../guide/examples.html) object key names.

User Guides queue_configurations


(../../guide/index.html) (list) --

Available Services (index.html) The Amazon Simple Queue Service queues to publish messages to and the
events for which to publish messages.
ACM (acm.html)
(dict) --
ACMPCA (acm-pca.html)
Specifies the configuration for publishing messages to an Amazon
AlexaForBusiness
Simple Queue Service (Amazon SQS) queue when Amazon S3 detects
(alexaforbusiness.html)
specified events.
Amplify (amplify.html)
Id (string) --
APIGateway
An optional unique identifier for configurations in a notification
(apigateway.html)
configuration. If you don't provide one, Amazon S3 will assign
ApiGatewayManagement an ID.
Api
QueueArn (string) --
(apigatewaymanagement
api.html)
The Amazon Resource Name (ARN) of the Amazon SQS queue
Boto 3 Docs 1.9.249
to which Amazon S3 publishes a message when it detects
documentation ( events of the specified type.
../../index.html)
Events (list) --

TABLE OF CONTENTS (string) --

The bucket event for which to send notifications.


Quickstart
Filter (dict) --
(../../guide/quickstart.html)
Key (dict) --
A Sample Tutorial
(../../guide/sqs.html) FilterRules (list) --

Code Examples (dict) --


(../../guide/examples.html)
Specifies the Amazon S3 object key name to
User Guides filter on and whether to filter on the suffix or
(../../guide/index.html) prefix of the key name.
Name (string) --
Available Services (index.html)
The object key name prefix or suffix
ACM (acm.html)
identifying one or more objects to which
ACMPCA (acm-pca.html) the filtering rule applies. The maximum
AlexaForBusiness length is 1,024 characters. Overlapping
(alexaforbusiness.html) prefixes and suffixes are not supported.
For more information, see Configuring
Amplify (amplify.html) Event Notifications
APIGateway (https://docs.aws.amazon.com/AmazonS3/latest/
(apigateway.html) in the Amazon Simple Storage Service
Developer Guide .
ApiGatewayManagement
Api Value (string) --
(apigatewaymanagement The value that the filter searches for in
api.html) object key names.
topic_configurations
Boto 3 Docs 1.9.249
(list) --
documentation (
../../index.html) The topic to which notifications are sent and the events for which
notifications are generated.

TABLE OF CONTENTS (dict) --

A container for specifying the configuration for publication of


Quickstart messages to an Amazon Simple Notification Service (Amazon SNS)
(../../guide/quickstart.html) topic when Amazon S3 detects specified events.
A Sample Tutorial Id (string) --
(../../guide/sqs.html)
An optional unique identifier for configurations in a notification
Code Examples configuration. If you don't provide one, Amazon S3 will assign
(../../guide/examples.html) an ID.
User Guides TopicArn (string) --
(../../guide/index.html)
The Amazon Resource Name (ARN) of the Amazon SNS topic to
Available Services (index.html) which Amazon S3 publishes a message when it detects events
of the specified type.
ACM (acm.html)
Events (list) --
ACMPCA (acm-pca.html)
The Amazon S3 bucket event about which to send notifications.
AlexaForBusiness
For more information, see Supported Event Types
(alexaforbusiness.html)
(https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowT
Amplify (amplify.html) in the Amazon Simple Storage Service Developer Guide .

APIGateway (string) --
(apigateway.html)
The bucket event for which to send notifications.
ApiGatewayManagement
Filter (dict) --
Api
(apigatewaymanagement Key (dict) --
api.html) FilterRules (list) --
(dict) --
Boto 3 Docs 1.9.249
documentation ( Specifies the Amazon S3 object key name to
filter on and whether to filter on the suffix or
../../index.html)
prefix of the key name.

TABLE OF CONTENTS Name (string) --

The object key name prefix or suffix


Quickstart identifying one or more objects to which
(../../guide/quickstart.html) the filtering rule applies. The maximum
length is 1,024 characters. Overlapping
A Sample Tutorial
prefixes and suffixes are not supported.
(../../guide/sqs.html)
For more information, see Configuring
Code Examples Event Notifications
(../../guide/examples.html) (https://docs.aws.amazon.com/AmazonS3/latest/
in the Amazon Simple Storage Service
User Guides
Developer Guide .
(../../guide/index.html)
Value (string) --
Available Services (index.html)
The value that the filter searches for in
ACM (acm.html) object key names.
ACMPCA (acm-pca.html)
Actions
AlexaForBusiness
Actions call operations on resources. They may automatically handle the passing in
(alexaforbusiness.html)
of arguments set from identifiers and some attributes. For more information about
Amplify (amplify.html) actions refer to the Resources Introduction Guide
(../../guide/resources.html#actions-intro).
APIGateway
(apigateway.html) get_available_subresources ()
ApiGatewayManagement Returns a list of all the available sub-resources for this Resource.
Api Returns
(apigatewaymanagement
A list containing the name of each sub-resource for this resource
api.html)
Return type
Boto 3 Docs 1.9.249
list of str
documentation (
../../index.html)
load ()
TABLE OF CONTENTS Calls S3.Client.get_bucket_notification_configuration() to update the
attributes of the BucketNotification resource. Note that the load and reload
Quickstart methods are the same method and can be used interchangeably.
(../../guide/quickstart.html)
See also: AWS API Documentation
A Sample Tutorial (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
(../../guide/sqs.html)
Request Syntax
Code Examples
(../../guide/examples.html)
bucket_notification.load()
User Guides
(../../guide/index.html)
Returns
Available Services (index.html) None
ACM (acm.html)

ACMPCA (acm-pca.html) put (**kwargs)


AlexaForBusiness Enables notifications of specified events for a bucket.
(alexaforbusiness.html)
See also: AWS API Documentation
Amplify (amplify.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
01/PutBucketNotificationConfiguration)
APIGateway
(apigateway.html) Request Syntax

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = bucket_notification.put(
documentation ( NotificationConfiguration={
../../index.html) 'TopicConfigurations': [
{
'Id': 'string',
TABLE OF CONTENTS
'TopicArn': 'string',
'Events': [
Quickstart
's3:ReducedRedundancyLostObject'|'s3:ObjectCreated
(../../guide/quickstart.html)
],
A Sample Tutorial 'Filter': {
(../../guide/sqs.html) 'Key': {
Code Examples 'FilterRules': [
(../../guide/examples.html) {
'Name': 'prefix'|'suffix',
User Guides
'Value': 'string'
(../../guide/index.html)
},
Available Services (index.html) ]
}
ACM (acm.html)
}
ACMPCA (acm-pca.html) },
],
AlexaForBusiness
(alexaforbusiness.html) 'QueueConfigurations': [
{
Amplify (amplify.html) 'Id': 'string',
APIGateway 'QueueArn': 'string',
(apigateway.html) 'Events': [
's3:ReducedRedundancyLostObject'|'s3:ObjectCreated
ApiGatewayManagement
],
Api
'Filter': {
(apigatewaymanagement
api.html) 'Key': {
'FilterRules': [
Boto 3 Docs 1.9.249
{
documentation ( 'Name': 'prefix'|'suffix',
../../index.html) 'Value': 'string'
},
TABLE OF CONTENTS ]
}
Quickstart }
(../../guide/quickstart.html) },
],
A Sample Tutorial
'LambdaFunctionConfigurations': [
(../../guide/sqs.html)
{
Code Examples 'Id': 'string',
(../../guide/examples.html) 'LambdaFunctionArn': 'string',
User Guides 'Events': [
(../../guide/index.html) 's3:ReducedRedundancyLostObject'|'s3:ObjectCreated
],
Available Services (index.html) 'Filter': {
ACM (acm.html) 'Key': {
'FilterRules': [
ACMPCA (acm-pca.html)
{
AlexaForBusiness 'Name': 'prefix'|'suffix',
(alexaforbusiness.html) 'Value': 'string'
Amplify (amplify.html) },
]
APIGateway }
(apigateway.html)
}
ApiGatewayManagement },
Api ]
(apigatewaymanagement }
api.html) )
Boto 3 Docs 1.9.249
documentation (
Parameters
../../index.html) NotificationConfiguration (dict) --
[REQUIRED]
TABLE OF CONTENTS
TopicConfigurations (list) --
The topic to which notifications are sent and the events for which
Quickstart
notifications are generated.
(../../guide/quickstart.html)
(dict) --
A Sample Tutorial
A container for specifying the configuration for publication of messages
(../../guide/sqs.html)
to an Amazon Simple Notification Service (Amazon SNS) topic when
Code Examples Amazon S3 detects specified events.
(../../guide/examples.html)
Id (string) --
User Guides An optional unique identifier for configurations in a notification
(../../guide/index.html) configuration. If you don't provide one, Amazon S3 will assign an ID.

TopicArn (string) -- [REQUIRED]


Available Services (index.html)
The Amazon Resource Name (ARN) of the Amazon SNS topic to which
ACM (acm.html) Amazon S3 publishes a message when it detects events of the
ACMPCA (acm-pca.html) specified type.

AlexaForBusiness Events (list) -- [REQUIRED]


(alexaforbusiness.html) The Amazon S3 bucket event about which to send notifications. For
more information, see Supported Event Types
Amplify (amplify.html) (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.htm
APIGateway in the Amazon Simple Storage Service Developer Guide .
(apigateway.html) (string) --
ApiGatewayManagement The bucket event for which to send notifications.
Api Filter (dict) --
(apigatewaymanagement Key (dict) --
api.html) FilterRules (list) --
(dict) --
Boto 3 Docs 1.9.249
Specifies the Amazon S3 object key name to filter on and
documentation ( whether to filter on the suffix or prefix of the key name.
../../index.html)
Name (string) --
The object key name prefix or suffix identifying one or more
TABLE OF CONTENTS objects to which the filtering rule applies. The maximum
length is 1,024 characters. Overlapping prefixes and suffixes
Quickstart are not supported. For more information, see Configuring
(../../guide/quickstart.html) Event Notifications
A Sample Tutorial (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHo
(../../guide/sqs.html) in the Amazon Simple Storage Service Developer Guide .

Code Examples Value (string) --


(../../guide/examples.html) The value that the filter searches for in object key names.

QueueConfigurations (list) --
User Guides
The Amazon Simple Queue Service queues to publish messages to and
(../../guide/index.html)
the events for which to publish messages.
Available Services (index.html) (dict) --
ACM (acm.html) Specifies the configuration for publishing messages to an Amazon
Simple Queue Service (Amazon SQS) queue when Amazon S3 detects
ACMPCA (acm-pca.html)
specified events.
AlexaForBusiness
Id (string) --
(alexaforbusiness.html)
An optional unique identifier for configurations in a notification
Amplify (amplify.html) configuration. If you don't provide one, Amazon S3 will assign an ID.

APIGateway QueueArn (string) -- [REQUIRED]


(apigateway.html) The Amazon Resource Name (ARN) of the Amazon SQS queue to
which Amazon S3 publishes a message when it detects events of the
ApiGatewayManagement
specified type.
Api
(apigatewaymanagement Events (list) -- [REQUIRED]
api.html) (string) --
The bucket event for which to send notifications.
Boto 3 Docs 1.9.249
documentation ( Filter (dict) --
Key (dict) --
../../index.html)
FilterRules (list) --
(dict) --
TABLE OF CONTENTS Specifies the Amazon S3 object key name to filter on and
whether to filter on the suffix or prefix of the key name.
Quickstart
Name (string) --
(../../guide/quickstart.html)
The object key name prefix or suffix identifying one or more
A Sample Tutorial objects to which the filtering rule applies. The maximum
(../../guide/sqs.html) length is 1,024 characters. Overlapping prefixes and suffixes
Code Examples are not supported. For more information, see Configuring
(../../guide/examples.html) Event Notifications
(https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHo
User Guides in the Amazon Simple Storage Service Developer Guide .
(../../guide/index.html)
Value (string) --
Available Services (index.html) The value that the filter searches for in object key names.

ACM (acm.html) LambdaFunctionConfigurations (list) --


Describes the AWS Lambda functions to invoke and the events for which
ACMPCA (acm-pca.html)
to invoke them.
AlexaForBusiness
(dict) --
(alexaforbusiness.html)
A container for specifying the configuration for AWS Lambda
Amplify (amplify.html) notifications.

APIGateway Id (string) --
(apigateway.html) An optional unique identifier for configurations in a notification
configuration. If you don't provide one, Amazon S3 will assign an ID.
ApiGatewayManagement
Api LambdaFunctionArn (string) -- [REQUIRED]
(apigatewaymanagement The Amazon Resource Name (ARN) of the AWS Lambda function that
api.html) Amazon S3 invokes when the specified event type occurs.
Events (list) -- [REQUIRED]
Boto 3 Docs 1.9.249
The Amazon S3 bucket event for which to invoke the AWS Lambda
documentation ( function. For more information, see Supported Event Types
../../index.html) (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.htm
in the Amazon Simple Storage Service Developer Guide .
TABLE OF CONTENTS (string) --
The bucket event for which to send notifications.
Quickstart
Filter (dict) --
(../../guide/quickstart.html)
Key (dict) --
A Sample Tutorial FilterRules (list) --
(../../guide/sqs.html) (dict) --
Code Examples Specifies the Amazon S3 object key name to filter on and
(../../guide/examples.html) whether to filter on the suffix or prefix of the key name.
Name (string) --
User Guides
The object key name prefix or suffix identifying one or more
(../../guide/index.html)
objects to which the filtering rule applies. The maximum
Available Services (index.html) length is 1,024 characters. Overlapping prefixes and suffixes
are not supported. For more information, see Configuring
ACM (acm.html)
Event Notifications
ACMPCA (acm-pca.html) (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHo
in the Amazon Simple Storage Service Developer Guide .
AlexaForBusiness
(alexaforbusiness.html) Value (string) --
The value that the filter searches for in object key names.
Amplify (amplify.html)
Returns
APIGateway
(apigateway.html)
None

ApiGatewayManagement
Api reload ()
(apigatewaymanagement
api.html)
Calls S3.Client.get_bucket_notification_configuration() to update the
Boto 3 Docs 1.9.249
attributes of the BucketNotification resource. Note that the load and reload
documentation ( methods are the same method and can be used interchangeably.
../../index.html)
See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
TABLE OF CONTENTS
Request Syntax
Quickstart
(../../guide/quickstart.html) bucket_notification.reload()
A Sample Tutorial
(../../guide/sqs.html) Returns
Code Examples None
(../../guide/examples.html)

User Guides Sub-resources


(../../guide/index.html) Sub-resources are methods that create a new instance of a child resource. This
Available Services (index.html) resource's identifiers get passed along to the child. For more information about
sub-resources refer to the Resources Introduction Guide
ACM (acm.html) (../../guide/resources.html#subresources-intro).
ACMPCA (acm-pca.html)
Bucket ()
AlexaForBusiness Creates a Bucket resource.:
(alexaforbusiness.html)

Amplify (amplify.html) bucket = bucket_notification.Bucket()


APIGateway
(apigateway.html)
Return type
ApiGatewayManagement S3.Bucket
Api
Returns
(apigatewaymanagement
api.html) A Bucket resource
Boto 3 Docs 1.9.249
documentation (
../../index.html)
BucketPolicy
TABLE OF CONTENTS class S3. BucketPolicy (bucket_name)
A resource representing an Amazon Simple Storage Service (S3) BucketPolicy:
Quickstart
(../../guide/quickstart.html)
import boto3
A Sample Tutorial
(../../guide/sqs.html) s3 = boto3.resource('s3')

Code Examples bucket_policy = s3.BucketPolicy('bucket_name')


(../../guide/examples.html)

User Guides Parameters


(../../guide/index.html) bucket_name (string) -- The BucketPolicy's bucket_name identifier. This must
be set.
Available Services (index.html)
These are the resource's available identifiers:
ACM (acm.html)
bucket_name
ACMPCA (acm-pca.html)

AlexaForBusiness These are the resource's available attributes:


(alexaforbusiness.html) policy
Amplify (amplify.html) These are the resource's available actions:
APIGateway delete()
(apigateway.html) get_available_subresources()
ApiGatewayManagement load()
Api put()
(apigatewaymanagement reload()
api.html)
These are the resource's available sub-resources:
Boto 3 Docs 1.9.249
documentation ( Bucket()

../../index.html) Identifiers
Identifiers are properties of a resource that are set upon instantation of the
TABLE OF CONTENTS resource. For more information about identifiers refer to the Resources
Introduction Guide (../../guide/resources.html#identifiers-attributes-intro).
Quickstart bucket_name
(../../guide/quickstart.html)
(string) The BucketPolicy's bucket_name identifier. This must be set.
A Sample Tutorial
(../../guide/sqs.html) Attributes
Attributes provide access to the properties of a resource. Attributes are lazy-loaded
Code Examples
the first time one is accessed via the load() method. For more information about
(../../guide/examples.html)
attributes refer to the Resources Introduction Guide
User Guides (../../guide/resources.html#identifiers-attributes-intro).
(../../guide/index.html) policy
Available Services (index.html) (string) --

ACM (acm.html) The bucket policy as a JSON document.

ACMPCA (acm-pca.html) Actions


AlexaForBusiness Actions call operations on resources. They may automatically handle the passing in
(alexaforbusiness.html) of arguments set from identifiers and some attributes. For more information about
actions refer to the Resources Introduction Guide
Amplify (amplify.html)
(../../guide/resources.html#actions-intro).
APIGateway
(apigateway.html) delete ()
Deletes the policy from the bucket.
ApiGatewayManagement
Api See also: AWS API Documentation
(apigatewaymanagement (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketPolicy)
api.html) Request Syntax
Boto 3 Docs 1.9.249 response = bucket_policy.delete()
documentation (
../../index.html) Returns
None
TABLE OF CONTENTS

Quickstart get_available_subresources ()
(../../guide/quickstart.html) Returns a list of all the available sub-resources for this Resource.
A Sample Tutorial Returns
(../../guide/sqs.html)
A list containing the name of each sub-resource for this resource
Code Examples
Return type
(../../guide/examples.html)
list of str
User Guides
(../../guide/index.html)
load ()
Available Services (index.html)
Calls S3.Client.get_bucket_policy() to update the attributes of the
ACM (acm.html) BucketPolicy resource. Note that the load and reload methods are the same
ACMPCA (acm-pca.html)
method and can be used interchangeably.

AlexaForBusiness
See also: AWS API Documentation
(alexaforbusiness.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)

Amplify (amplify.html)
Request Syntax

APIGateway
(apigateway.html) bucket_policy.load()

ApiGatewayManagement
Api Returns
(apigatewaymanagement None
api.html)
Boto 3 Docs 1.9.249 put (**kwargs)
Applies an Amazon S3 bucket policy to an Amazon S3 bucket.
documentation (
../../index.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketPolicy)
TABLE OF CONTENTS Request Syntax

Quickstart
response = bucket_policy.put(
(../../guide/quickstart.html)
ConfirmRemoveSelfBucketAccess=True|False,
A Sample Tutorial Policy='string'
(../../guide/sqs.html) )
Code Examples
(../../guide/examples.html) Parameters
User Guides ConfirmRemoveSelfBucketAccess (boolean) -- Set this parameter to
(../../guide/index.html) true to confirm that you want to remove your permissions to change this
bucket policy in the future.
Available Services (index.html) Policy (string) --
ACM (acm.html) [REQUIRED]

ACMPCA (acm-pca.html) The bucket policy as a JSON document.

AlexaForBusiness Returns
(alexaforbusiness.html) None

Amplify (amplify.html)

APIGateway reload ()
(apigateway.html) Calls S3.Client.get_bucket_policy() to update the attributes of the
ApiGatewayManagement BucketPolicy resource. Note that the load and reload methods are the same
Api method and can be used interchangeably.
(apigatewaymanagement See also: AWS API Documentation
api.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
Request Syntax
Boto 3 Docs 1.9.249
documentation (
bucket_policy.reload()
../../index.html)

TABLE OF CONTENTS Returns


None
Quickstart
(../../guide/quickstart.html)
Sub-resources
A Sample Tutorial
Sub-resources are methods that create a new instance of a child resource. This
(../../guide/sqs.html)
resource's identifiers get passed along to the child. For more information about
Code Examples sub-resources refer to the Resources Introduction Guide
(../../guide/examples.html) (../../guide/resources.html#subresources-intro).

User Guides Bucket ()


(../../guide/index.html) Creates a Bucket resource.:

Available Services (index.html)


bucket = bucket_policy.Bucket()
ACM (acm.html)

ACMPCA (acm-pca.html)
Return type
AlexaForBusiness
S3.Bucket
(alexaforbusiness.html)
Returns
Amplify (amplify.html)
A Bucket resource
APIGateway
(apigateway.html)

ApiGatewayManagement
Api BucketRequestPayment
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 class S3. BucketRequestPayment (bucket_name)

documentation ( A resource representing an Amazon Simple Storage Service (S3)


BucketRequestPayment:
../../index.html)

TABLE OF CONTENTS import boto3

s3 = boto3.resource('s3')
Quickstart
(../../guide/quickstart.html) bucket_request_payment = s3.BucketRequestPayment('bucket_name')

A Sample Tutorial
(../../guide/sqs.html) Parameters
bucket_name (string) -- The BucketRequestPayment's bucket_name identifier.
Code Examples
This must be set.
(../../guide/examples.html)

User Guides These are the resource's available identifiers:


(../../guide/index.html) bucket_name
Available Services (index.html) These are the resource's available attributes:
ACM (acm.html) payer
ACMPCA (acm-pca.html) These are the resource's available actions:
AlexaForBusiness get_available_subresources()
(alexaforbusiness.html) load()
Amplify (amplify.html) put()
reload()
APIGateway
(apigateway.html) These are the resource's available sub-resources:

ApiGatewayManagement Bucket()
Api
Identifiers
(apigatewaymanagement
api.html)
Identifiers are properties of a resource that are set upon instantation of the
Boto 3 Docs 1.9.249
resource. For more information about identifiers refer to the Resources
documentation ( Introduction Guide (../../guide/resources.html#identifiers-attributes-intro).
../../index.html)
bucket_name
(string) The BucketRequestPayment's bucket_name identifier. This must be set.
TABLE OF CONTENTS

Attributes
Quickstart Attributes provide access to the properties of a resource. Attributes are lazy-loaded
(../../guide/quickstart.html) the first time one is accessed via the load() method. For more information about
A Sample Tutorial attributes refer to the Resources Introduction Guide
(../../guide/sqs.html) (../../guide/resources.html#identifiers-attributes-intro).

Code Examples payer


(../../guide/examples.html) (string) --

User Guides Specifies who pays for the download and request fees.
(../../guide/index.html)
Actions
Available Services (index.html) Actions call operations on resources. They may automatically handle the passing in
ACM (acm.html) of arguments set from identifiers and some attributes. For more information about
actions refer to the Resources Introduction Guide
ACMPCA (acm-pca.html)
(../../guide/resources.html#actions-intro).
AlexaForBusiness
get_available_subresources ()
(alexaforbusiness.html)
Returns a list of all the available sub-resources for this Resource.
Amplify (amplify.html)
Returns
APIGateway
A list containing the name of each sub-resource for this resource
(apigateway.html)
Return type
ApiGatewayManagement
list of str
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 load ()
Calls S3.Client.get_bucket_request_payment() to update the attributes of the
documentation (
BucketRequestPayment resource. Note that the load and reload methods are
../../index.html)
the same method and can be used interchangeably.

TABLE OF CONTENTS
See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)

Quickstart Request Syntax


(../../guide/quickstart.html)

A Sample Tutorial bucket_request_payment.load()


(../../guide/sqs.html)

Code Examples Returns


(../../guide/examples.html)
None
User Guides
(../../guide/index.html)
put (**kwargs)
Available Services (index.html) Sets the request payment configuration for a bucket. By default, the bucket
ACM (acm.html) owner pays for downloads from the bucket. This configuration parameter
enables the bucket owner (only) to specify that the person requesting the
ACMPCA (acm-pca.html)
download will be charged for the download. Documentation on requester pays
AlexaForBusiness buckets can be found at
(alexaforbusiness.html) http://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html
(http://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html)
Amplify (amplify.html)
See also: AWS API Documentation
APIGateway
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
(apigateway.html)
01/PutBucketRequestPayment)
ApiGatewayManagement
Request Syntax
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = bucket_request_payment.put(
documentation ( RequestPaymentConfiguration={
../../index.html) 'Payer': 'Requester'|'BucketOwner'
}
)
TABLE OF CONTENTS

Quickstart Parameters
(../../guide/quickstart.html) RequestPaymentConfiguration (dict) --
A Sample Tutorial [REQUIRED]
(../../guide/sqs.html) Payer (string) -- [REQUIRED]
Code Examples Specifies who pays for the download and request fees.
(../../guide/examples.html) Returns
User Guides None
(../../guide/index.html)

Available Services (index.html) reload ()


ACM (acm.html) Calls S3.Client.get_bucket_request_payment() to update the attributes of the
BucketRequestPayment resource. Note that the load and reload methods are
ACMPCA (acm-pca.html)
the same method and can be used interchangeably.
AlexaForBusiness
See also: AWS API Documentation
(alexaforbusiness.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
Amplify (amplify.html)
Request Syntax
APIGateway
(apigateway.html)
bucket_request_payment.reload()
ApiGatewayManagement
Api
(apigatewaymanagement Returns
api.html) None
Boto 3 Docs 1.9.249
Sub-resources
documentation (
Sub-resources are methods that create a new instance of a child resource. This
../../index.html)
resource's identifiers get passed along to the child. For more information about
sub-resources refer to the Resources Introduction Guide
TABLE OF CONTENTS (../../guide/resources.html#subresources-intro).

Quickstart Bucket ()
(../../guide/quickstart.html) Creates a Bucket resource.:

A Sample Tutorial
(../../guide/sqs.html) bucket = bucket_request_payment.Bucket()

Code Examples
(../../guide/examples.html) Return type
S3.Bucket
User Guides
(../../guide/index.html) Returns

Available Services (index.html)


A Bucket resource

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
BucketTagging
(alexaforbusiness.html)
class S3. BucketTagging (bucket_name)
Amplify (amplify.html)
A resource representing an Amazon Simple Storage Service (S3) BucketTagging:
APIGateway
(apigateway.html)
import boto3
ApiGatewayManagement
Api
s3 = boto3.resource('s3')
(apigatewaymanagement
bucket_tagging = s3.BucketTagging('bucket_name')
api.html)
Parameters
Boto 3 Docs 1.9.249
bucket_name (string) -- The BucketTagging's bucket_name identifier. This must
documentation ( be set.
../../index.html)
These are the resource's available identifiers:
TABLE OF CONTENTS bucket_name

Quickstart These are the resource's available attributes:


(../../guide/quickstart.html) tag_set
A Sample Tutorial These are the resource's available actions:
(../../guide/sqs.html)
delete()
Code Examples get_available_subresources()
(../../guide/examples.html) load()

User Guides put()


(../../guide/index.html) reload()

These are the resource's available sub-resources:


Available Services (index.html)
Bucket()
ACM (acm.html)
Identifiers
ACMPCA (acm-pca.html)
Identifiers are properties of a resource that are set upon instantation of the
AlexaForBusiness resource. For more information about identifiers refer to the Resources
(alexaforbusiness.html) Introduction Guide (../../guide/resources.html#identifiers-attributes-intro).
Amplify (amplify.html) bucket_name
APIGateway (string) The BucketTagging's bucket_name identifier. This must be set.
(apigateway.html)
Attributes
ApiGatewayManagement
Attributes provide access to the properties of a resource. Attributes are lazy-loaded
Api
the first time one is accessed via the load() method. For more information about
(apigatewaymanagement
attributes refer to the Resources Introduction Guide
api.html)
(../../guide/resources.html#identifiers-attributes-intro).
Boto 3 Docs 1.9.249
documentation ( tag_set

../../index.html) (list) --

(dict) --
TABLE OF CONTENTS
Key (string) --

Quickstart Name of the tag.


(../../guide/quickstart.html) Value (string) --
A Sample Tutorial Value of the tag.
(../../guide/sqs.html)
Actions
Code Examples
(../../guide/examples.html) Actions call operations on resources. They may automatically handle the passing in
of arguments set from identifiers and some attributes. For more information about
User Guides actions refer to the Resources Introduction Guide
(../../guide/index.html) (../../guide/resources.html#actions-intro).

Available Services (index.html) delete ()

ACM (acm.html) Deletes the tags from the bucket.

ACMPCA (acm-pca.html) See also: AWS API Documentation


(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
AlexaForBusiness 01/DeleteBucketTagging)
(alexaforbusiness.html)
Request Syntax
Amplify (amplify.html)

APIGateway
response = bucket_tagging.delete()
(apigateway.html)

ApiGatewayManagement
Returns
Api
(apigatewaymanagement None
api.html)
Boto 3 Docs 1.9.249 get_available_subresources ()
Returns a list of all the available sub-resources for this Resource.
documentation (
../../index.html) Returns
A list containing the name of each sub-resource for this resource
TABLE OF CONTENTS Return type
list of str
Quickstart
(../../guide/quickstart.html)

A Sample Tutorial load ()


(../../guide/sqs.html) Calls S3.Client.get_bucket_tagging() to update the attributes of the
BucketTagging resource. Note that the load and reload methods are the same
Code Examples
method and can be used interchangeably.
(../../guide/examples.html)
See also: AWS API Documentation
User Guides
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
(../../guide/index.html)
Request Syntax
Available Services (index.html)

ACM (acm.html) bucket_tagging.load()


ACMPCA (acm-pca.html)

AlexaForBusiness Returns
(alexaforbusiness.html) None
Amplify (amplify.html)

APIGateway put (**kwargs)


(apigateway.html)
Sets the tags for a bucket.
ApiGatewayManagement
See also: AWS API Documentation
Api
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketTagging)
(apigatewaymanagement
api.html) Request Syntax
Boto 3 Docs 1.9.249 response = bucket_tagging.put(
documentation ( Tagging={
../../index.html) 'TagSet': [
{
'Key': 'string',
TABLE OF CONTENTS
'Value': 'string'
},
Quickstart
]
(../../guide/quickstart.html)
}
A Sample Tutorial )
(../../guide/sqs.html)

Code Examples
Parameters
(../../guide/examples.html)
Tagging (dict) --
User Guides [REQUIRED]
(../../guide/index.html)
TagSet (list) -- [REQUIRED]
Available Services (index.html) (dict) --
Key (string) -- [REQUIRED]
ACM (acm.html) Name of the tag.
ACMPCA (acm-pca.html) Value (string) -- [REQUIRED]
AlexaForBusiness Value of the tag.
(alexaforbusiness.html) Returns
Amplify (amplify.html) None

APIGateway
(apigateway.html)
reload ()
ApiGatewayManagement Calls S3.Client.get_bucket_tagging() to update the attributes of the
Api BucketTagging resource. Note that the load and reload methods are the same
(apigatewaymanagement method and can be used interchangeably.
api.html)
See also: AWS API Documentation
Boto 3 Docs 1.9.249
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
documentation (
Request Syntax
../../index.html)

TABLE OF CONTENTS bucket_tagging.reload()

Quickstart Returns
(../../guide/quickstart.html)
None
A Sample Tutorial
(../../guide/sqs.html)
Sub-resources
Code Examples
Sub-resources are methods that create a new instance of a child resource. This
(../../guide/examples.html)
resource's identifiers get passed along to the child. For more information about
User Guides sub-resources refer to the Resources Introduction Guide
(../../guide/index.html) (../../guide/resources.html#subresources-intro).

Available Services (index.html) Bucket ()


Creates a Bucket resource.:
ACM (acm.html)

ACMPCA (acm-pca.html)
bucket = bucket_tagging.Bucket()
AlexaForBusiness
(alexaforbusiness.html)
Return type
Amplify (amplify.html)
S3.Bucket
APIGateway
Returns
(apigateway.html)
A Bucket resource
ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249
documentation (
BucketVersioning
../../index.html)
class S3. BucketVersioning (bucket_name)
A resource representing an Amazon Simple Storage Service (S3) BucketVersioning:
TABLE OF CONTENTS

Quickstart import boto3


(../../guide/quickstart.html)
s3 = boto3.resource('s3')
A Sample Tutorial
bucket_versioning = s3.BucketVersioning('bucket_name')
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html) Parameters
bucket_name (string) -- The BucketVersioning's bucket_name identifier. This
User Guides must be set.
(../../guide/index.html)
These are the resource's available identifiers:
Available Services (index.html)
bucket_name
ACM (acm.html)
These are the resource's available attributes:
ACMPCA (acm-pca.html)
mfa_delete
AlexaForBusiness
status
(alexaforbusiness.html)
These are the resource's available actions:
Amplify (amplify.html)
enable()
APIGateway
get_available_subresources()
(apigateway.html)
load()
ApiGatewayManagement put()
Api reload()
(apigatewaymanagement
suspend()
api.html)
These are the resource's available sub-resources:
Boto 3 Docs 1.9.249
documentation ( Bucket()

../../index.html) Identifiers
Identifiers are properties of a resource that are set upon instantation of the
TABLE OF CONTENTS resource. For more information about identifiers refer to the Resources
Introduction Guide (../../guide/resources.html#identifiers-attributes-intro).
Quickstart bucket_name
(../../guide/quickstart.html)
(string) The BucketVersioning's bucket_name identifier. This must be set.
A Sample Tutorial
(../../guide/sqs.html) Attributes
Attributes provide access to the properties of a resource. Attributes are lazy-loaded
Code Examples
the first time one is accessed via the load() method. For more information about
(../../guide/examples.html)
attributes refer to the Resources Introduction Guide
User Guides (../../guide/resources.html#identifiers-attributes-intro).
(../../guide/index.html) mfa_delete
Available Services (index.html) (string) --

ACM (acm.html) Specifies whether MFA delete is enabled in the bucket versioning
configuration. This element is only returned if the bucket has been
ACMPCA (acm-pca.html)
configured with MFA delete. If the bucket has never been so configured,
AlexaForBusiness this element is not returned.
(alexaforbusiness.html)
status
Amplify (amplify.html)
(string) --
APIGateway
The versioning state of the bucket.
(apigateway.html)

ApiGatewayManagement Actions
Api Actions call operations on resources. They may automatically handle the passing in
(apigatewaymanagement of arguments set from identifiers and some attributes. For more information about
api.html) actions refer to the Resources Introduction Guide
(../../guide/resources.html#actions-intro).
Boto 3 Docs 1.9.249
documentation ( enable (**kwargs)
../../index.html) Sets the versioning state of an existing bucket. To set the versioning state, you
must be the bucket owner.
TABLE OF CONTENTS See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
Quickstart 01/PutBucketVersioning)
(../../guide/quickstart.html)
Request Syntax
A Sample Tutorial
(../../guide/sqs.html)
response = bucket_versioning.enable(
Code Examples MFA='string',
(../../guide/examples.html)
)
User Guides
(../../guide/index.html)
Parameters
Available Services (index.html)
MFA (string) -- The concatenation of the authentication device's serial
ACM (acm.html) number, a space, and the value that is displayed on your authentication
ACMPCA (acm-pca.html) device.

AlexaForBusiness Returns
(alexaforbusiness.html) None

Amplify (amplify.html)

APIGateway get_available_subresources ()
(apigateway.html) Returns a list of all the available sub-resources for this Resource.
ApiGatewayManagement Returns
Api A list containing the name of each sub-resource for this resource
(apigatewaymanagement
api.html) Return type
list of str
Boto 3 Docs 1.9.249
documentation (
../../index.html) load ()
Calls S3.Client.get_bucket_versioning() to update the attributes of the
TABLE OF CONTENTS BucketVersioning resource. Note that the load and reload methods are the
same method and can be used interchangeably.
Quickstart
See also: AWS API Documentation
(../../guide/quickstart.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
A Sample Tutorial
Request Syntax
(../../guide/sqs.html)

Code Examples
bucket_versioning.load()
(../../guide/examples.html)

User Guides
Returns
(../../guide/index.html)
None
Available Services (index.html)

ACM (acm.html)
put (**kwargs)
ACMPCA (acm-pca.html) Sets the versioning state of an existing bucket. To set the versioning state, you
AlexaForBusiness must be the bucket owner.
(alexaforbusiness.html) See also: AWS API Documentation
Amplify (amplify.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
01/PutBucketVersioning)
APIGateway
(apigateway.html) Request Syntax

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = bucket_versioning.put(
documentation ( MFA='string',
../../index.html) VersioningConfiguration={
'MFADelete': 'Enabled'|'Disabled',
'Status': 'Enabled'|'Suspended'
TABLE OF CONTENTS
}
)
Quickstart
(../../guide/quickstart.html)

A Sample Tutorial Parameters


(../../guide/sqs.html) MFA (string) -- The concatenation of the authentication device's serial
number, a space, and the value that is displayed on your authentication
Code Examples
device.
(../../guide/examples.html)
VersioningConfiguration (dict) --
User Guides [REQUIRED]
(../../guide/index.html) MFADelete (string) --
Specifies whether MFA delete is enabled in the bucket versioning
Available Services (index.html)
configuration. This element is only returned if the bucket has been
ACM (acm.html) configured with MFA delete. If the bucket has never been so
ACMPCA (acm-pca.html) configured, this element is not returned.

AlexaForBusiness Status (string) --


(alexaforbusiness.html) The versioning state of the bucket.

Amplify (amplify.html) Returns


None
APIGateway
(apigateway.html)

ApiGatewayManagement reload ()
Api Calls S3.Client.get_bucket_versioning() to update the attributes of the
(apigatewaymanagement BucketVersioning resource. Note that the load and reload methods are the
api.html) same method and can be used interchangeably.
See also: AWS API Documentation
Boto 3 Docs 1.9.249
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
documentation (
Request Syntax
../../index.html)

TABLE OF CONTENTS bucket_versioning.reload()

Quickstart Returns
(../../guide/quickstart.html)
None
A Sample Tutorial
(../../guide/sqs.html)
suspend (**kwargs)
Code Examples
(../../guide/examples.html) Sets the versioning state of an existing bucket. To set the versioning state, you
must be the bucket owner.
User Guides
See also: AWS API Documentation
(../../guide/index.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
Available Services (index.html) 01/PutBucketVersioning)

ACM (acm.html) Request Syntax

ACMPCA (acm-pca.html)
response = bucket_versioning.suspend(
AlexaForBusiness
MFA='string',
(alexaforbusiness.html)

Amplify (amplify.html) )
APIGateway
(apigateway.html)
Parameters
ApiGatewayManagement MFA (string) -- The concatenation of the authentication device's serial
Api number, a space, and the value that is displayed on your authentication
(apigatewaymanagement device.
api.html)
Returns
Boto 3 Docs 1.9.249
None
documentation (
../../index.html)
Sub-resources
TABLE OF CONTENTS Sub-resources are methods that create a new instance of a child resource. This
resource's identifiers get passed along to the child. For more information about
Quickstart sub-resources refer to the Resources Introduction Guide
(../../guide/quickstart.html) (../../guide/resources.html#subresources-intro).

A Sample Tutorial Bucket ()


(../../guide/sqs.html) Creates a Bucket resource.:
Code Examples
(../../guide/examples.html) bucket = bucket_versioning.Bucket()

User Guides
(../../guide/index.html) Return type

Available Services (index.html) S3.Bucket

ACM (acm.html) Returns


A Bucket resource
ACMPCA (acm-pca.html)

AlexaForBusiness

BucketWebsite
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html) class S3. BucketWebsite (bucket_name)
A resource representing an Amazon Simple Storage Service (S3) BucketWebsite:
ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 import boto3
documentation (
../../index.html) s3 = boto3.resource('s3')
bucket_website = s3.BucketWebsite('bucket_name')

TABLE OF CONTENTS
Parameters
Quickstart bucket_name (string) -- The BucketWebsite's bucket_name identifier. This must
(../../guide/quickstart.html) be set.
A Sample Tutorial
(../../guide/sqs.html)
These are the resource's available identifiers:
bucket_name
Code Examples
(../../guide/examples.html) These are the resource's available attributes:

User Guides error_document


(../../guide/index.html) index_document
redirect_all_requests_to
Available Services (index.html)
routing_rules
ACM (acm.html)
These are the resource's available actions:
ACMPCA (acm-pca.html)
delete()
AlexaForBusiness get_available_subresources()
(alexaforbusiness.html) load()
Amplify (amplify.html) put()
reload()
APIGateway
(apigateway.html) These are the resource's available sub-resources:

ApiGatewayManagement Bucket()
Api Identifiers
(apigatewaymanagement
api.html)
Identifiers are properties of a resource that are set upon instantation of the
Boto 3 Docs 1.9.249
resource. For more information about identifiers refer to the Resources
documentation ( Introduction Guide (../../guide/resources.html#identifiers-attributes-intro).
../../index.html)
bucket_name
(string) The BucketWebsite's bucket_name identifier. This must be set.
TABLE OF CONTENTS

Attributes
Quickstart Attributes provide access to the properties of a resource. Attributes are lazy-loaded
(../../guide/quickstart.html) the first time one is accessed via the load() method. For more information about
A Sample Tutorial attributes refer to the Resources Introduction Guide
(../../guide/sqs.html) (../../guide/resources.html#identifiers-attributes-intro).

Code Examples error_document


(../../guide/examples.html) (dict) --

User Guides Key (string) --


(../../guide/index.html)
The object key name to use when a 4XX class error occurs.
Available Services (index.html)
index_document
ACM (acm.html)
(dict) --
ACMPCA (acm-pca.html)
Suffix (string) --
AlexaForBusiness
A suffix that is appended to a request that is for a directory on the
(alexaforbusiness.html)
website endpoint (e.g. if the suffix is index.html and you make a
Amplify (amplify.html) 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
APIGateway
be empty and must not include a slash character.
(apigateway.html)

ApiGatewayManagement redirect_all_requests_to
Api (dict) --
(apigatewaymanagement
HostName (string) --
api.html)
Name of the host where requests are redirected.
Boto 3 Docs 1.9.249
documentation ( Protocol (string) --

../../index.html) Protocol to use when redirecting requests. The default is the


protocol that is used in the original request.
TABLE OF CONTENTS
routing_rules

Quickstart (list) --
(../../guide/quickstart.html) (dict) --
A Sample Tutorial Specifies the redirect behavior and when a redirect is applied.
(../../guide/sqs.html)
Condition (dict) --
Code Examples
A container for describing a condition that must be met for the
(../../guide/examples.html)
specified redirect to apply. For example, 1. If request is for
User Guides pages in the /docs folder, redirect to the /documents folder. 2.
(../../guide/index.html) If request results in HTTP error 4xx, redirect request to another
host where you might process the error.
Available Services (index.html)
HttpErrorCodeReturnedEquals (string) --
ACM (acm.html)
The HTTP error code when the redirect is applied. In the
ACMPCA (acm-pca.html)
event of an error, if the error code equals this value, then
AlexaForBusiness the specified redirect is applied. Required when parent
(alexaforbusiness.html) element Condition is specified and sibling
KeyPrefixEquals is not specified. If both are specified,
Amplify (amplify.html)
then both must be true for the redirect to be applied.
APIGateway
KeyPrefixEquals (string) --
(apigateway.html)
The object key name prefix when the redirect is applied.
ApiGatewayManagement
For example, to redirect requests for ExamplePage.html ,
Api
the key prefix will be ExamplePage.html . To redirect
(apigatewaymanagement
api.html)
request for all pages with the prefix docs/ , the key prefix
will be /docs , which identifies all objects in the docs/
Boto 3 Docs 1.9.249
folder. Required when the parent element Condition is
documentation ( specified and sibling HttpErrorCodeReturnedEquals is not
../../index.html) specified. If both conditions are specified, both must be
true for the redirect to be applied.
TABLE OF CONTENTS
Redirect (dict) --

Quickstart Container for redirect information. You can redirect requests to


(../../guide/quickstart.html) another host, to another page, or with another protocol. In the
event of an error, you can specify a different error code to
A Sample Tutorial return.
(../../guide/sqs.html)
HostName (string) --
Code Examples
(../../guide/examples.html) The host name to use in the redirect request.

HttpRedirectCode (string) --
User Guides
(../../guide/index.html) The HTTP redirect code to use on the response. Not
required if one of the siblings is present.
Available Services (index.html)
Protocol (string) --
ACM (acm.html)
Protocol to use when redirecting requests. The default is
ACMPCA (acm-pca.html)
the protocol that is used in the original request.
AlexaForBusiness
ReplaceKeyPrefixWith (string) --
(alexaforbusiness.html)
The object key prefix to use in the redirect request. For
Amplify (amplify.html)
example, to redirect requests for all pages with prefix
APIGateway docs/ (objects in the docs/ folder) to documents/ , you
(apigateway.html) can set a condition block with KeyPrefixEquals set to
docs/ and in the Redirect set ReplaceKeyPrefixWith to
ApiGatewayManagement
/documents . Not required if one of the siblings is present.
Api
Can be present only if ReplaceKeyWith is not provided.
(apigatewaymanagement
api.html) ReplaceKeyWith (string) --
The specific object key to use in the redirect request. For
Boto 3 Docs 1.9.249
example, redirect request to error.html . Not required if
documentation ( one of the siblings is present. Can be present only if
../../index.html) ReplaceKeyPrefixWith is not provided.

TABLE OF CONTENTS Actions


Actions call operations on resources. They may automatically handle the passing in
Quickstart of arguments set from identifiers and some attributes. For more information about
(../../guide/quickstart.html) actions refer to the Resources Introduction Guide
(../../guide/resources.html#actions-intro).
A Sample Tutorial
(../../guide/sqs.html) delete ()

Code Examples This operation removes the website configuration from the bucket.
(../../guide/examples.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
User Guides
01/DeleteBucketWebsite)
(../../guide/index.html)
Request Syntax
Available Services (index.html)

ACM (acm.html)
response = bucket_website.delete()
ACMPCA (acm-pca.html)

AlexaForBusiness Returns
(alexaforbusiness.html) None
Amplify (amplify.html)

APIGateway
get_available_subresources ()
(apigateway.html)
Returns a list of all the available sub-resources for this Resource.
ApiGatewayManagement
Returns
Api
(apigatewaymanagement A list containing the name of each sub-resource for this resource
api.html) Return type
list of str
Boto 3 Docs 1.9.249
documentation (
../../index.html) load ()
Calls S3.Client.get_bucket_website() to update the attributes of the
TABLE OF CONTENTS BucketWebsite resource. Note that the load and reload methods are the same
method and can be used interchangeably.
Quickstart
See also: AWS API Documentation
(../../guide/quickstart.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
A Sample Tutorial
Request Syntax
(../../guide/sqs.html)

Code Examples
bucket_website.load()
(../../guide/examples.html)

User Guides
Returns
(../../guide/index.html)
None
Available Services (index.html)

ACM (acm.html)
put (**kwargs)
ACMPCA (acm-pca.html) Set the website configuration for a bucket.
AlexaForBusiness See also: AWS API Documentation
(alexaforbusiness.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketWebsite)
Amplify (amplify.html) Request Syntax
APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = bucket_website.put(
documentation ( WebsiteConfiguration={
../../index.html) 'ErrorDocument': {
'Key': 'string'
},
TABLE OF CONTENTS
'IndexDocument': {
'Suffix': 'string'
Quickstart
},
(../../guide/quickstart.html)
'RedirectAllRequestsTo': {
A Sample Tutorial 'HostName': 'string',
(../../guide/sqs.html) 'Protocol': 'http'|'https'
Code Examples },
(../../guide/examples.html) 'RoutingRules': [
{
User Guides
'Condition': {
(../../guide/index.html)
'HttpErrorCodeReturnedEquals': 'string',
Available Services (index.html) 'KeyPrefixEquals': 'string'
},
ACM (acm.html)
'Redirect': {
ACMPCA (acm-pca.html) 'HostName': 'string',
'HttpRedirectCode': 'string',
AlexaForBusiness
(alexaforbusiness.html) 'Protocol': 'http'|'https',
'ReplaceKeyPrefixWith': 'string',
Amplify (amplify.html) 'ReplaceKeyWith': 'string'
APIGateway }
(apigateway.html) },
]
ApiGatewayManagement
}
Api
)
(apigatewaymanagement
api.html)
Parameters
Boto 3 Docs 1.9.249
WebsiteConfiguration (dict) --
documentation (
[REQUIRED]
../../index.html)
ErrorDocument (dict) --
The name of the error document for the website.
TABLE OF CONTENTS
Key (string) -- [REQUIRED]
Quickstart The object key name to use when a 4XX class error occurs.
(../../guide/quickstart.html) IndexDocument (dict) --
A Sample Tutorial The name of the index document for the website.
(../../guide/sqs.html) Suffix (string) -- [REQUIRED]
Code Examples A suffix that is appended to a request that is for a directory on the
(../../guide/examples.html) website endpoint (e.g. if the suffix is index.html and you make a
request to samplebucket/images/ the data that is returned will be for
User Guides the object with the key name images/index.html) The suffix must not
(../../guide/index.html) be empty and must not include a slash character.

Available Services (index.html) RedirectAllRequestsTo (dict) --


The redirect behavior for every request to this bucket's website endpoint.
ACM (acm.html)

ACMPCA (acm-pca.html)
Warning
AlexaForBusiness
If you specify this property, you can't specify any other property.
(alexaforbusiness.html)

Amplify (amplify.html)
HostName (string) -- [REQUIRED]
APIGateway
Name of the host where requests are redirected.
(apigateway.html)
Protocol (string) --
ApiGatewayManagement
Protocol to use when redirecting requests. The default is the protocol
Api
that is used in the original request.
(apigatewaymanagement
api.html) RoutingRules (list) --
Rules that define when a redirect is applied and the redirect behavior.
Boto 3 Docs 1.9.249
documentation ( (dict) --
Specifies the redirect behavior and when a redirect is applied.
../../index.html)
Condition (dict) --
TABLE OF CONTENTS 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
Quickstart
(../../guide/quickstart.html)
results in HTTP error 4xx, redirect request to another host where you
might process the error.
A Sample Tutorial
(../../guide/sqs.html)
HttpErrorCodeReturnedEquals (string) --
The HTTP error code when the redirect is applied. In the event of
Code Examples an error, if the error code equals this value, then the specified
(../../guide/examples.html) redirect is applied. Required when parent element Condition is
specified and sibling KeyPrefixEquals is not specified. If both are
User Guides
(../../guide/index.html)
specified, then both must be true for the redirect to be applied.

KeyPrefixEquals (string) --
Available Services (index.html)
The object key name prefix when the redirect is applied. For
ACM (acm.html) example, to redirect requests for ExamplePage.html , the key prefix
will be ExamplePage.html . To redirect request for all pages with
ACMPCA (acm-pca.html)
the prefix docs/ , the key prefix will be /docs , which identifies all
AlexaForBusiness objects in the docs/ folder. Required when the parent element
(alexaforbusiness.html) Condition is specified and sibling HttpErrorCodeReturnedEquals is
Amplify (amplify.html) not specified. If both conditions are specified, both must be true
for the redirect to be applied.
APIGateway
(apigateway.html) Redirect (dict) -- [REQUIRED]
Container for redirect information. You can redirect requests to
ApiGatewayManagement
another host, to another page, or with another protocol. In the event
Api
of an error, you can specify a different error code to return.
(apigatewaymanagement
api.html) HostName (string) --
The host name to use in the redirect request.
Boto 3 Docs 1.9.249
documentation ( HttpRedirectCode (string) --
The HTTP redirect code to use on the response. Not required if one
../../index.html)
of the siblings is present.

TABLE OF CONTENTS Protocol (string) --


Protocol to use when redirecting requests. The default is the
protocol that is used in the original request.
Quickstart
(../../guide/quickstart.html) ReplaceKeyPrefixWith (string) --
The object key prefix to use in the redirect request. For example, to
A Sample Tutorial
redirect requests for all pages with prefix docs/ (objects in the
(../../guide/sqs.html)
docs/ folder) to documents/ , you can set a condition block with
Code Examples KeyPrefixEquals set to docs/ and in the Redirect set
(../../guide/examples.html) ReplaceKeyPrefixWith to /documents . Not required if one of the

User Guides siblings is present. Can be present only if ReplaceKeyWith is not


(../../guide/index.html) provided.
ReplaceKeyWith (string) --
Available Services (index.html)
The specific object key to use in the redirect request. For example,
ACM (acm.html) redirect request to error.html . Not required if one of the siblings
ACMPCA (acm-pca.html) is present. Can be present only if ReplaceKeyPrefixWith is not
provided.
AlexaForBusiness
(alexaforbusiness.html) Returns
None
Amplify (amplify.html)

APIGateway
(apigateway.html) reload ()

ApiGatewayManagement Calls S3.Client.get_bucket_website() to update the attributes of the


Api BucketWebsite resource. Note that the load and reload methods are the same
(apigatewaymanagement method and can be used interchangeably.
api.html)
See also: AWS API Documentation
Boto 3 Docs 1.9.249
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
documentation (
Request Syntax
../../index.html)

TABLE OF CONTENTS bucket_website.reload()

Quickstart Returns
(../../guide/quickstart.html)
None
A Sample Tutorial
(../../guide/sqs.html)
Sub-resources
Code Examples
Sub-resources are methods that create a new instance of a child resource. This
(../../guide/examples.html)
resource's identifiers get passed along to the child. For more information about
User Guides sub-resources refer to the Resources Introduction Guide
(../../guide/index.html) (../../guide/resources.html#subresources-intro).

Available Services (index.html) Bucket ()


Creates a Bucket resource.:
ACM (acm.html)

ACMPCA (acm-pca.html)
bucket = bucket_website.Bucket()
AlexaForBusiness
(alexaforbusiness.html)
Return type
Amplify (amplify.html)
S3.Bucket
APIGateway
Returns
(apigateway.html)
A Bucket resource
ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249
documentation (
MultipartUpload
../../index.html)
class S3. MultipartUpload (bucket_name, object_key, id)
A resource representing an Amazon Simple Storage Service (S3) MultipartUpload:
TABLE OF CONTENTS

Quickstart import boto3


(../../guide/quickstart.html)
s3 = boto3.resource('s3')
A Sample Tutorial
multipart_upload = s3.MultipartUpload('bucket_name','object_key','id')
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html) Parameters
bucket_name (string) -- The MultipartUpload's bucket_name identifier. This
User Guides must be set.
(../../guide/index.html) object_key (string) -- The MultipartUpload's object_key identifier. This must
be set.
Available Services (index.html)
id (string) -- The MultipartUpload's id identifier. This must be set.
ACM (acm.html)
These are the resource's available identifiers:
ACMPCA (acm-pca.html)
bucket_name
AlexaForBusiness
object_key
(alexaforbusiness.html)
id
Amplify (amplify.html)
These are the resource's available attributes:
APIGateway
(apigateway.html) initiated
initiator
ApiGatewayManagement key
Api
owner
(apigatewaymanagement
storage_class
api.html)
upload_id
Boto 3 Docs 1.9.249
documentation ( These are the resource's available actions:

../../index.html) abort()
complete()
TABLE OF CONTENTS get_available_subresources()

These are the resource's available sub-resources:


Quickstart
(../../guide/quickstart.html) Object()
Part()
A Sample Tutorial
(../../guide/sqs.html) These are the resource's available collections:

Code Examples parts


(../../guide/examples.html) Identifiers
User Guides Identifiers are properties of a resource that are set upon instantation of the
(../../guide/index.html) resource. For more information about identifiers refer to the Resources
Introduction Guide (../../guide/resources.html#identifiers-attributes-intro).
Available Services (index.html)
bucket_name
ACM (acm.html) (string) The MultipartUpload's bucket_name identifier. This must be set.
ACMPCA (acm-pca.html)
object_key
AlexaForBusiness
(string) The MultipartUpload's object_key identifier. This must be set.
(alexaforbusiness.html)

Amplify (amplify.html) id
(string) The MultipartUpload's id identifier. This must be set.
APIGateway
(apigateway.html)
Attributes
ApiGatewayManagement Attributes provide access to the properties of a resource. Attributes are lazy-loaded
Api the first time one is accessed via the load() method. For more information about
(apigatewaymanagement attributes refer to the Resources Introduction Guide
api.html) (../../guide/resources.html#identifiers-attributes-intro).
initiated
Boto 3 Docs 1.9.249
(datetime) --
documentation (
../../index.html) Date and time at which the multipart upload was initiated.

initiator
TABLE OF CONTENTS
(dict) --

Quickstart Identifies who initiated the multipart upload.


(../../guide/quickstart.html) ID (string) --
A Sample Tutorial If the principal is an AWS account, it provides the Canonical User ID.
(../../guide/sqs.html) If the principal is an IAM User, it provides a user ARN value.
Code Examples DisplayName (string) --
(../../guide/examples.html)
Name of the Principal.
User Guides
(../../guide/index.html) key
(string) --
Available Services (index.html)
Key of the object for which the multipart upload was initiated.
ACM (acm.html)

ACMPCA (acm-pca.html) owner

AlexaForBusiness (dict) --
(alexaforbusiness.html) DisplayName (string) --
ID (string) --
Amplify (amplify.html)

APIGateway storage_class
(apigateway.html) (string) --

ApiGatewayManagement The class of storage used to store the object.


Api
(apigatewaymanagement upload_id
api.html) (string) --
Upload ID that identifies the multipart upload.
Boto 3 Docs 1.9.249
documentation ( Actions
../../index.html) Actions call operations on resources. They may automatically handle the passing in
of arguments set from identifiers and some attributes. For more information about
TABLE OF CONTENTS actions refer to the Resources Introduction Guide
(../../guide/resources.html#actions-intro).
Quickstart abort (**kwargs)
(../../guide/quickstart.html)
Aborts a multipart upload.
A Sample Tutorial
To verify that all parts have been removed, so you don't get charged for the
(../../guide/sqs.html)
part storage, you should call the List Parts operation and ensure the parts list is
Code Examples empty.
(../../guide/examples.html)
See also: AWS API Documentation
User Guides (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
(../../guide/index.html) 01/AbortMultipartUpload)

Available Services (index.html) Request Syntax

ACM (acm.html)
response = multipart_upload.abort(
ACMPCA (acm-pca.html) RequestPayer='requester'
AlexaForBusiness )
(alexaforbusiness.html)

Amplify (amplify.html) Parameters


APIGateway RequestPayer (string) -- Confirms that the requester knows that she or he
(apigateway.html) will be charged for the request. Bucket owners need not specify this
parameter in their requests. Documentation on downloading objects from
ApiGatewayManagement requester pays buckets can be found at
Api http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBucke
(apigatewaymanagement (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBucke
api.html)
Return type
Boto 3 Docs 1.9.249
dict
documentation (
../../index.html) Returns
Response Syntax
TABLE OF CONTENTS
{
Quickstart 'RequestCharged': 'requester'
(../../guide/quickstart.html) }

A Sample Tutorial
(../../guide/sqs.html) Response Structure
Code Examples (dict) --
(../../guide/examples.html) RequestCharged (string) --
If present, indicates that the requester was successfully charged for the
User Guides
request.
(../../guide/index.html)

Available Services (index.html)


complete (**kwargs)
ACM (acm.html)
Completes a multipart upload by assembling previously uploaded parts.
ACMPCA (acm-pca.html)
See also: AWS API Documentation
AlexaForBusiness (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
(alexaforbusiness.html) 01/CompleteMultipartUpload)
Amplify (amplify.html) Request Syntax
APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 object = multipart_upload.complete(
documentation ( MultipartUpload={
../../index.html) 'Parts': [
{
'ETag': 'string',
TABLE OF CONTENTS
'PartNumber': 123
},
Quickstart
]
(../../guide/quickstart.html)
},
A Sample Tutorial RequestPayer='requester'
(../../guide/sqs.html) )
Code Examples
(../../guide/examples.html)
Parameters
User Guides MultipartUpload (dict) --
(../../guide/index.html) Parts (list) --
(dict) --
Available Services (index.html) ETag (string) --
ACM (acm.html) Entity tag returned when the part was uploaded.

ACMPCA (acm-pca.html) PartNumber (integer) --


Part number that identifies the part. This is a positive integer
AlexaForBusiness
between 1 and 10,000.
(alexaforbusiness.html)
RequestPayer (string) -- Confirms that the requester knows that she or
Amplify (amplify.html)
he will be charged for the request. Bucket owners need not specify this
APIGateway parameter in their requests. Documentation on downloading objects
(apigateway.html) from requester pays buckets can be found at
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
ApiGatewayManagement
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Api
(apigatewaymanagement Return type
api.html) s3.Object
Returns
Boto 3 Docs 1.9.249
Object resource
documentation (
../../index.html)
get_available_subresources ()
TABLE OF CONTENTS Returns a list of all the available sub-resources for this Resource.

Returns
Quickstart
A list containing the name of each sub-resource for this resource
(../../guide/quickstart.html)
Return type
A Sample Tutorial
(../../guide/sqs.html) list of str

Code Examples
(../../guide/examples.html) Sub-resources
Sub-resources are methods that create a new instance of a child resource. This
User Guides
resource's identifiers get passed along to the child. For more information about
(../../guide/index.html)
sub-resources refer to the Resources Introduction Guide
Available Services (index.html) (../../guide/resources.html#subresources-intro).

ACM (acm.html) Object ()


ACMPCA (acm-pca.html) Creates a Object resource.:

AlexaForBusiness
(alexaforbusiness.html) object = multipart_upload.Object()

Amplify (amplify.html)

APIGateway Return type


(apigateway.html) S3.Object

ApiGatewayManagement Returns
Api A Object resource
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 Part (part_number)
Creates a MultipartUploadPart resource.:
documentation (
../../index.html)
multipart_upload_part = multipart_upload.Part('part_number')
TABLE OF CONTENTS

Parameters
Quickstart part_number (string) -- The Part's part_number identifier. This must be set.
(../../guide/quickstart.html)
Return type
A Sample Tutorial
S3.MultipartUploadPart
(../../guide/sqs.html)
Returns
Code Examples
A MultipartUploadPart resource
(../../guide/examples.html)

User Guides
(../../guide/index.html) Collections
Collections provide an interface to iterate over and manipulate groups of resources.
Available Services (index.html) For more information about collections refer to the Resources Introduction Guide
ACM (acm.html) (../../guide/collections.html#guide-collections).

ACMPCA (acm-pca.html) parts


A collection of MultipartUploadPart resources
AlexaForBusiness
(alexaforbusiness.html) all ()
Amplify (amplify.html) Creates an iterable of all MultipartUploadPart resources in the collection.

APIGateway See also: AWS API Documentation


(apigateway.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListParts)

ApiGatewayManagement Request Syntax


Api
(apigatewaymanagement
multipart_upload_part_iterator = multipart_upload.parts.all()
api.html)
Return type
Boto 3 Docs 1.9.249
list( s3.MultipartUploadPart )
documentation (
../../index.html) Returns
A list of MultipartUploadPart resources
TABLE OF CONTENTS

filter (**kwargs)
Quickstart
(../../guide/quickstart.html) Creates an iterable of all MultipartUploadPart resources in the collection
filtered by kwargs passed to method.
A Sample Tutorial
(../../guide/sqs.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListParts)
Code Examples
(../../guide/examples.html) Request Syntax

User Guides
multipart_upload_part_iterator = multipart_upload.parts.filter(
(../../guide/index.html)
MaxParts=123,
Available Services (index.html) PartNumberMarker=123,
RequestPayer='requester'
ACM (acm.html)
)
ACMPCA (acm-pca.html)

AlexaForBusiness
Parameters
(alexaforbusiness.html)
MaxParts (integer) -- Sets the maximum number of parts to return.
Amplify (amplify.html) PartNumberMarker (integer) -- Specifies the part after which listing
should begin. Only parts with higher part numbers will be listed.
APIGateway
RequestPayer (string) -- Confirms that the requester knows that she
(apigateway.html)
or he will be charged for the request. Bucket owners need not specify
ApiGatewayManagement this parameter in their requests. Documentation on downloading
Api objects from requester pays buckets can be found at
(apigatewaymanagement http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPays
api.html) (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPays
Return type
Boto 3 Docs 1.9.249
list( s3.MultipartUploadPart )
documentation (
../../index.html) Returns
A list of MultipartUploadPart resources
TABLE OF CONTENTS

limit (**kwargs)
Quickstart
(../../guide/quickstart.html) Creates an iterable up to a specified amount of MultipartUploadPart
resources in the collection.
A Sample Tutorial
(../../guide/sqs.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListParts)
Code Examples
(../../guide/examples.html) Request Syntax

User Guides
multipart_upload_part_iterator = multipart_upload.parts.limit(
(../../guide/index.html)
count=123
Available Services (index.html) )

ACM (acm.html)

ACMPCA (acm-pca.html) Parameters


count (integer) -- The limit to the number of resources in the iterable.
AlexaForBusiness
(alexaforbusiness.html) Return type
list( s3.MultipartUploadPart )
Amplify (amplify.html)
Returns
APIGateway
(apigateway.html) A list of MultipartUploadPart resources

ApiGatewayManagement
Api page_size (**kwargs)
(apigatewaymanagement
api.html)
Creates an iterable of all MultipartUploadPart resources in the collection,
Boto 3 Docs 1.9.249
but limits the number of items returned by each service call by the specified
documentation ( amount.
../../index.html)
See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListParts)
TABLE OF CONTENTS
Request Syntax
Quickstart
(../../guide/quickstart.html) multipart_upload_part_iterator = multipart_upload.parts.page_size(

A Sample Tutorial count=123


(../../guide/sqs.html) )

Code Examples
(../../guide/examples.html)
Parameters
User Guides count (integer) -- The number of items returned by each service call
(../../guide/index.html)
Return type
Available Services (index.html) list( s3.MultipartUploadPart )
ACM (acm.html) Returns
ACMPCA (acm-pca.html) A list of MultipartUploadPart resources

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html) MultipartUploadPart


APIGateway
(apigateway.html) class S3. MultipartUploadPart (bucket_name, object_key, multipart_upload_id,
ApiGatewayManagement part_number)
Api A resource representing an Amazon Simple Storage Service (S3)
(apigatewaymanagement MultipartUploadPart:
api.html)
Boto 3 Docs 1.9.249 import boto3
documentation (
../../index.html) s3 = boto3.resource('s3')
multipart_upload_part = s3.MultipartUploadPart('bucket_name','object_key'

TABLE OF CONTENTS

Quickstart Parameters
(../../guide/quickstart.html) bucket_name (string) -- The MultipartUploadPart's bucket_name identifier.
This must be set.
A Sample Tutorial
object_key (string) -- The MultipartUploadPart's object_key identifier. This
(../../guide/sqs.html)
must be set.
Code Examples multipart_upload_id (string) -- The MultipartUploadPart's
(../../guide/examples.html) multipart_upload_id identifier. This must be set.
part_number (string) -- The MultipartUploadPart's part_number identifier.
User Guides
This must be set.
(../../guide/index.html)

Available Services (index.html) These are the resource's available identifiers:

ACM (acm.html) bucket_name


object_key
ACMPCA (acm-pca.html) multipart_upload_id
AlexaForBusiness part_number
(alexaforbusiness.html)
These are the resource's available attributes:
Amplify (amplify.html)
e_tag
APIGateway last_modified
(apigateway.html) size

ApiGatewayManagement These are the resource's available actions:


Api
copy_from()
(apigatewaymanagement
get_available_subresources()
api.html)
upload()
Boto 3 Docs 1.9.249
documentation ( These are the resource's available sub-resources:

../../index.html) MultipartUpload()

Identifiers
TABLE OF CONTENTS
Identifiers are properties of a resource that are set upon instantation of the
resource. For more information about identifiers refer to the Resources
Quickstart Introduction Guide (../../guide/resources.html#identifiers-attributes-intro).
(../../guide/quickstart.html)
bucket_name
A Sample Tutorial
(string) The MultipartUploadPart's bucket_name identifier. This must be set.
(../../guide/sqs.html)

Code Examples object_key


(../../guide/examples.html) (string) The MultipartUploadPart's object_key identifier. This must be set.

User Guides multipart_upload_id


(../../guide/index.html)
(string) The MultipartUploadPart's multipart_upload_id identifier. This must be
Available Services (index.html) set.

ACM (acm.html) part_number


ACMPCA (acm-pca.html) (string) The MultipartUploadPart's part_number identifier. This must be set.
AlexaForBusiness
Attributes
(alexaforbusiness.html)
Attributes provide access to the properties of a resource. Attributes are lazy-loaded
Amplify (amplify.html) the first time one is accessed via the load() method. For more information about
APIGateway attributes refer to the Resources Introduction Guide
(apigateway.html) (../../guide/resources.html#identifiers-attributes-intro).

ApiGatewayManagement e_tag
Api (string) --
(apigatewaymanagement
Entity tag returned when the part was uploaded.
api.html)
last_modified
Boto 3 Docs 1.9.249
(datetime) --
documentation (
../../index.html) Date and time at which the part was uploaded.

size
TABLE OF CONTENTS
(integer) --

Quickstart Size in bytes of the uploaded part data.


(../../guide/quickstart.html)
Actions
A Sample Tutorial
Actions call operations on resources. They may automatically handle the passing in
(../../guide/sqs.html)
of arguments set from identifiers and some attributes. For more information about
Code Examples actions refer to the Resources Introduction Guide
(../../guide/examples.html) (../../guide/resources.html#actions-intro).

User Guides copy_from (**kwargs)


(../../guide/index.html) Uploads a part by copying data from an existing object as data source.

Available Services (index.html) See also: AWS API Documentation


(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPartCopy)
ACM (acm.html)
Request Syntax
ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = multipart_upload_part.copy_from(
documentation ( CopySource='string' or {'Bucket': 'string', 'Key': 'string', 'Vers
../../index.html) CopySourceIfMatch='string',
CopySourceIfModifiedSince=datetime(2015, 1, 1),
CopySourceIfNoneMatch='string',
TABLE OF CONTENTS
CopySourceIfUnmodifiedSince=datetime(2015, 1, 1),
CopySourceRange='string',
Quickstart
SSECustomerAlgorithm='string',
(../../guide/quickstart.html)
SSECustomerKey='string',
A Sample Tutorial CopySourceSSECustomerAlgorithm='string',
(../../guide/sqs.html) CopySourceSSECustomerKey='string',
Code Examples RequestPayer='requester'
(../../guide/examples.html) )

User Guides
(../../guide/index.html)
Parameters
Available Services (index.html) CopySource (str or dict) -- [REQUIRED] The name of the source bucket,
ACM (acm.html) key name of the source object, and optional version ID of the source
object. You can either provide this value as a string or a dictionary. The
ACMPCA (acm-pca.html) string form is {bucket}/{key} or {bucket}/{key}?versionId={versionId} if
AlexaForBusiness you want to copy a specific version. You can also provide this value as a
(alexaforbusiness.html) dictionary. The dictionary format is recommended over the string format
because it is more explicit. The dictionary format is: {'Bucket': 'bucket',
Amplify (amplify.html)
'Key': 'key', 'VersionId': 'id'}. Note that the VersionId key is optional and
APIGateway may be omitted.
(apigateway.html) CopySourceIfMatch (string) -- Copies the object if its entity tag (ETag)
matches the specified tag.
ApiGatewayManagement
CopySourceIfModifiedSince (datetime) -- Copies the object if it has been
Api
modified since the specified time.
(apigatewaymanagement
api.html)
CopySourceIfNoneMatch (string) -- Copies the object if its entity tag
Boto 3 Docs 1.9.249
(ETag) is different than the specified ETag.
documentation ( CopySourceIfUnmodifiedSince (datetime) -- Copies the object if it hasn't
../../index.html) been modified since the specified time.
CopySourceRange (string) -- The range of bytes to copy from the source
TABLE OF CONTENTS 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
Quickstart indicates that you want to copy the first ten bytes of the source. You can
(../../guide/quickstart.html) copy a range only if the source object is greater than 5 MB.
SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
A Sample Tutorial encrypting the object (e.g., AES256).
(../../guide/sqs.html) SSECustomerKey (string) -- Specifies the customer-provided encryption
Code Examples key for Amazon S3 to use in encrypting data. This value is used to store
(../../guide/examples.html) the object and then it is discarded; Amazon does not store the encryption
key. The key must be appropriate for use with the algorithm specified in
User Guides the x-amz-server-side-encryption-customer-algorithm header. This must
(../../guide/index.html) be the same encryption key specified in the initiate multipart upload
request.
Available Services (index.html)
SSECustomerKeyMD5 (string) --
ACM (acm.html) 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
ACMPCA (acm-pca.html)
ensure the encryption key was transmitted without error.
AlexaForBusiness
(alexaforbusiness.html)
Please note that this parameter is automatically populated if it is not
Amplify (amplify.html)
provided. Including this parameter is not required
APIGateway
(apigateway.html)
CopySourceSSECustomerAlgorithm (string) -- Specifies the algorithm to
ApiGatewayManagement use when decrypting the source object (e.g., AES256).
Api CopySourceSSECustomerKey (string) -- Specifies the customer-provided
(apigatewaymanagement encryption key for Amazon S3 to use to decrypt the source object. The
api.html)
encryption key provided in this header must be one that was used when
Boto 3 Docs 1.9.249
the source object was created.
documentation ( CopySourceSSECustomerKeyMD5 (string) --
../../index.html) 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
TABLE OF CONTENTS ensure the encryption key was transmitted without error.

Quickstart
Please note that this parameter is automatically populated if it is not
(../../guide/quickstart.html)
provided. Including this parameter is not required
A Sample Tutorial
(../../guide/sqs.html)
RequestPayer (string) -- Confirms that the requester knows that she or
Code Examples he will be charged for the request. Bucket owners need not specify this
(../../guide/examples.html) parameter in their requests. Documentation on downloading objects
from requester pays buckets can be found at
User Guides
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(../../guide/index.html)
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Available Services (index.html) Return type
ACM (acm.html) dict

ACMPCA (acm-pca.html) Returns

AlexaForBusiness Response Syntax


(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'CopySourceVersionId': 'string',
../../index.html) 'CopyPartResult': {
'ETag': 'string',
'LastModified': datetime(2015, 1, 1)
TABLE OF CONTENTS
},
'ServerSideEncryption': 'AES256'|'aws:kms',
Quickstart
'SSECustomerAlgorithm': 'string',
(../../guide/quickstart.html)
'SSECustomerKeyMD5': 'string',
A Sample Tutorial 'SSEKMSKeyId': 'string',
(../../guide/sqs.html) 'RequestCharged': 'requester'
Code Examples }
(../../guide/examples.html)

User Guides Response Structure


(../../guide/index.html) (dict) --
Available Services (index.html) CopySourceVersionId (string) --
ACM (acm.html) The version of the source object that was copied, if you have enabled
ACMPCA (acm-pca.html) versioning on the source bucket.

AlexaForBusiness CopyPartResult (dict) --


(alexaforbusiness.html) ETag (string) --
Amplify (amplify.html) Entity tag of the object.
APIGateway LastModified (datetime) --
(apigateway.html)
Date and time at which the object was uploaded.
ApiGatewayManagement
ServerSideEncryption (string) --
Api
(apigatewaymanagement The Server-side encryption algorithm used when storing this object in
api.html) S3 (e.g., AES256, aws:kms).
SSECustomerAlgorithm (string) --
Boto 3 Docs 1.9.249
documentation ( If server-side encryption with a customer-provided encryption key was
requested, the response will include this header confirming the
../../index.html)
encryption algorithm used.

TABLE OF CONTENTS SSECustomerKeyMD5 (string) --


If server-side encryption with a customer-provided encryption key was
Quickstart requested, the response will include this header to provide round trip
(../../guide/quickstart.html) message integrity verification of the customer-provided encryption key.
A Sample Tutorial SSEKMSKeyId (string) --
(../../guide/sqs.html)
If present, specifies the ID of the AWS Key Management Service (KMS)
Code Examples master encryption key that was used for the object.
(../../guide/examples.html)
RequestCharged (string) --
User Guides If present, indicates that the requester was successfully charged for the
(../../guide/index.html) request.
Available Services (index.html)

ACM (acm.html) get_available_subresources ()


ACMPCA (acm-pca.html) Returns a list of all the available sub-resources for this Resource.

AlexaForBusiness Returns
(alexaforbusiness.html) A list containing the name of each sub-resource for this resource
Amplify (amplify.html) Return type
APIGateway list of str
(apigateway.html)

ApiGatewayManagement
upload (**kwargs)
Api
Uploads a part in a multipart upload.
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 Note: After you initiate multipart upload and upload one or more parts,
documentation ( you must either complete or abort multipart upload in order to stop
../../index.html) 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.
TABLE OF CONTENTS

Quickstart See also: AWS API Documentation


(../../guide/quickstart.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPart)
A Sample Tutorial Request Syntax
(../../guide/sqs.html)

Code Examples response = multipart_upload_part.upload(


(../../guide/examples.html) Body=b'bytes'|file,
ContentLength=123,
User Guides
ContentMD5='string',
(../../guide/index.html)
SSECustomerAlgorithm='string',
Available Services (index.html) SSECustomerKey='string',

ACM (acm.html) RequestPayer='requester'


)
ACMPCA (acm-pca.html)

AlexaForBusiness
Parameters
(alexaforbusiness.html)
Body (bytes or seekable file-like object) -- Object data.
Amplify (amplify.html) ContentLength (integer) -- Size of the body in bytes. This parameter is
APIGateway useful when the size of the body cannot be determined automatically.
(apigateway.html) ContentMD5 (string) -- The base64-encoded 128-bit MD5 digest of the
part data. This parameter is auto-populated when using the command
ApiGatewayManagement from the CLI. This parameted is required if object lock parameters are
Api specified.
(apigatewaymanagement SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
api.html) encrypting the object (e.g., AES256).
SSECustomerKey (string) -- Specifies the customer-provided encryption
Boto 3 Docs 1.9.249
key for Amazon S3 to use in encrypting data. This value is used to store
documentation ( the object and then it is discarded; Amazon does not store the encryption
../../index.html) key. The key must be appropriate for use with the algorithm specified in
the x-amz-server-side-encryption-customer-algorithm header. This must
TABLE OF CONTENTS be the same encryption key specified in the initiate multipart upload
request.
Quickstart SSECustomerKeyMD5 (string) --
(../../guide/quickstart.html) 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
A Sample Tutorial ensure the encryption key was transmitted without error.
(../../guide/sqs.html)

Code Examples
Please note that this parameter is automatically populated if it is not
(../../guide/examples.html)
provided. Including this parameter is not required
User Guides
(../../guide/index.html)
RequestPayer (string) -- Confirms that the requester knows that she or
Available Services (index.html) he will be charged for the request. Bucket owners need not specify this
parameter in their requests. Documentation on downloading objects
ACM (acm.html)
from requester pays buckets can be found at
ACMPCA (acm-pca.html) http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
AlexaForBusiness
(alexaforbusiness.html) Return type
dict
Amplify (amplify.html)
Returns
APIGateway
(apigateway.html) Response Syntax
ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'ServerSideEncryption': 'AES256'|'aws:kms',
../../index.html) 'ETag': 'string',
'SSECustomerAlgorithm': 'string',
'SSECustomerKeyMD5': 'string',
TABLE OF CONTENTS
'SSEKMSKeyId': 'string',
'RequestCharged': 'requester'
Quickstart
}
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html) Response Structure

Code Examples (dict) --


(../../guide/examples.html) ServerSideEncryption (string) --
User Guides The Server-side encryption algorithm used when storing this object in
(../../guide/index.html) S3 (e.g., AES256, aws:kms).

Available Services (index.html) ETag (string) --

ACM (acm.html) Entity tag for the uploaded object.

ACMPCA (acm-pca.html) SSECustomerAlgorithm (string) --

AlexaForBusiness If server-side encryption with a customer-provided encryption key was


(alexaforbusiness.html) requested, the response will include this header confirming the
encryption algorithm used.
Amplify (amplify.html)
SSECustomerKeyMD5 (string) --
APIGateway
(apigateway.html) If server-side encryption with a customer-provided encryption key was
requested, the response will include this header to provide round trip
ApiGatewayManagement
message integrity verification of the customer-provided encryption key.
Api
(apigatewaymanagement SSEKMSKeyId (string) --
api.html)
If present, specifies the ID of the AWS Key Management Service (KMS)
Boto 3 Docs 1.9.249
master encryption key that was used for the object.
documentation (
RequestCharged (string) --
../../index.html)
If present, indicates that the requester was successfully charged for the
TABLE OF CONTENTS request.

Quickstart
Sub-resources
(../../guide/quickstart.html)
Sub-resources are methods that create a new instance of a child resource. This
A Sample Tutorial resource's identifiers get passed along to the child. For more information about
(../../guide/sqs.html) sub-resources refer to the Resources Introduction Guide
Code Examples
(../../guide/resources.html#subresources-intro).
(../../guide/examples.html) MultipartUpload ()
User Guides Creates a MultipartUpload resource.:
(../../guide/index.html)

Available Services (index.html) multipart_upload = multipart_upload_part.MultipartUpload()

ACM (acm.html)
Return type
ACMPCA (acm-pca.html)
S3.MultipartUpload
AlexaForBusiness
Returns
(alexaforbusiness.html)
A MultipartUpload resource
Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Object
Api
(apigatewaymanagement class S3. Object (bucket_name, key)
api.html) A resource representing an Amazon Simple Storage Service (S3) Object:
Boto 3 Docs 1.9.249 import boto3
documentation (
../../index.html) s3 = boto3.resource('s3')
object = s3.Object('bucket_name','key')

TABLE OF CONTENTS
Parameters
Quickstart bucket_name (string) -- The Object's bucket_name identifier. This must be
(../../guide/quickstart.html) set.
A Sample Tutorial key (string) -- The Object's key identifier. This must be set.
(../../guide/sqs.html)
These are the resource's available identifiers:
Code Examples
bucket_name
(../../guide/examples.html)
key
User Guides
These are the resource's available attributes:
(../../guide/index.html)
accept_ranges
Available Services (index.html)
cache_control
ACM (acm.html) content_disposition
content_encoding
ACMPCA (acm-pca.html)
content_language
AlexaForBusiness content_length
(alexaforbusiness.html) content_type
Amplify (amplify.html) delete_marker
e_tag
APIGateway
expiration
(apigateway.html)
expires
ApiGatewayManagement last_modified
Api metadata
(apigatewaymanagement missing_meta
api.html) object_lock_legal_hold_status
object_lock_mode
Boto 3 Docs 1.9.249
object_lock_retain_until_date
documentation ( parts_count
../../index.html) replication_status
request_charged
TABLE OF CONTENTS restore
server_side_encryption
Quickstart sse_customer_algorithm
(../../guide/quickstart.html) sse_customer_key_md5
ssekms_key_id
A Sample Tutorial
(../../guide/sqs.html) storage_class
version_id
Code Examples website_redirect_location
(../../guide/examples.html)
These are the resource's available actions:
User Guides
copy()
(../../guide/index.html)
copy_from()
Available Services (index.html) delete()
ACM (acm.html) download_file()
download_fileobj()
ACMPCA (acm-pca.html) get()
AlexaForBusiness get_available_subresources()
(alexaforbusiness.html) initiate_multipart_upload()
load()
Amplify (amplify.html)
put()
APIGateway reload()
(apigateway.html) restore_object()
ApiGatewayManagement upload_file()
Api upload_fileobj()
(apigatewaymanagement
These are the resource's available sub-resources:
api.html)
Acl()
Boto 3 Docs 1.9.249
Bucket()
documentation ( MultipartUpload()
../../index.html) Version()

These are the resource's available waiters:


TABLE OF CONTENTS
wait_until_exists()
Quickstart wait_until_not_exists()
(../../guide/quickstart.html) Identifiers
A Sample Tutorial Identifiers are properties of a resource that are set upon instantation of the
(../../guide/sqs.html) resource. For more information about identifiers refer to the Resources
Introduction Guide (../../guide/resources.html#identifiers-attributes-intro).
Code Examples
(../../guide/examples.html) bucket_name
(string) The Object's bucket_name identifier. This must be set.
User Guides
(../../guide/index.html)
key
Available Services (index.html) (string) The Object's key identifier. This must be set.

ACM (acm.html)
Attributes
ACMPCA (acm-pca.html) Attributes provide access to the properties of a resource. Attributes are lazy-loaded
the first time one is accessed via the load() method. For more information about
AlexaForBusiness
attributes refer to the Resources Introduction Guide
(alexaforbusiness.html)
(../../guide/resources.html#identifiers-attributes-intro).
Amplify (amplify.html)
accept_ranges
APIGateway
(string) --
(apigateway.html)

ApiGatewayManagement cache_control
Api (string) --
(apigatewaymanagement
Specifies caching behavior along the request/reply chain.
api.html)
content_disposition
Boto 3 Docs 1.9.249
(string) --
documentation (
../../index.html) Specifies presentational information for the object.

content_encoding
TABLE OF CONTENTS
(string) --

Quickstart Specifies what content encodings have been applied to the object and
(../../guide/quickstart.html) thus what decoding mechanisms must be applied to obtain the media-
type referenced by the Content-Type header field.
A Sample Tutorial
(../../guide/sqs.html) content_language
Code Examples (string) --
(../../guide/examples.html)
The language the content is in.
User Guides
(../../guide/index.html) content_length
(integer) --
Available Services (index.html)
Size of the body in bytes.
ACM (acm.html)

ACMPCA (acm-pca.html) content_type


(string) --
AlexaForBusiness
(alexaforbusiness.html) A standard MIME type describing the format of the object data.

Amplify (amplify.html)
delete_marker
APIGateway (boolean) --
(apigateway.html)
Specifies whether the object retrieved was (true) or was not (false) a
ApiGatewayManagement Delete Marker. If false, this response header does not appear in the
Api response.
(apigatewaymanagement
api.html) e_tag
(string) --
Boto 3 Docs 1.9.249
documentation ( An ETag is an opaque identifier assigned by a web server to a specific
version of a resource found at a URL
../../index.html)
expiration
TABLE OF CONTENTS
(string) --

Quickstart If the object expiration is configured (see PUT Bucket lifecycle), the
(../../guide/quickstart.html) response includes this header. It includes the expiry-date and rule-id key
value pairs providing object expiration information. The value of the rule-
A Sample Tutorial id is URL encoded.
(../../guide/sqs.html)

Code Examples expires


(../../guide/examples.html) (datetime) --

User Guides The date and time at which the object is no longer cacheable.
(../../guide/index.html)
last_modified
Available Services (index.html) (datetime) --
ACM (acm.html) Last modified date of the object
ACMPCA (acm-pca.html)
metadata
AlexaForBusiness (dict) --
(alexaforbusiness.html)
A map of metadata to store with the object in S3.
Amplify (amplify.html)
(string) --
APIGateway (string) --
(apigateway.html)

ApiGatewayManagement missing_meta
Api (integer) --
(apigatewaymanagement
api.html)
This is set to the number of metadata entries not returned in x-amz-meta
Boto 3 Docs 1.9.249
headers. This can happen if you create metadata using an API like SOAP
documentation ( that supports more flexible metadata than the REST API. For example,
../../index.html) using SOAP, you can create metadata whose values are not legal HTTP
headers.
TABLE OF CONTENTS
object_lock_legal_hold_status

Quickstart (string) --
(../../guide/quickstart.html) The Legal Hold status for the specified object.
A Sample Tutorial
(../../guide/sqs.html) object_lock_mode
(string) --
Code Examples
(../../guide/examples.html) The object lock mode currently in place for this object.

User Guides object_lock_retain_until_date


(../../guide/index.html) (datetime) --
Available Services (index.html) The date and time when this object's object lock expires.
ACM (acm.html)
parts_count
ACMPCA (acm-pca.html) (integer) --
AlexaForBusiness The count of parts this object has.
(alexaforbusiness.html)

Amplify (amplify.html) replication_status


(string) --
APIGateway
(apigateway.html)
request_charged
ApiGatewayManagement (string) --
Api
If present, indicates that the requester was successfully charged for the
(apigatewaymanagement
request.
api.html)
restore
Boto 3 Docs 1.9.249
(string) --
documentation (
../../index.html) Provides information about object restoration operation and expiration
time of the restored object copy.

TABLE OF CONTENTS
server_side_encryption
(string) --
Quickstart
(../../guide/quickstart.html) The Server-side encryption algorithm used when storing this object in S3
(e.g., AES256, aws:kms).
A Sample Tutorial
(../../guide/sqs.html) sse_customer_algorithm
Code Examples (string) --
(../../guide/examples.html)
If server-side encryption with a customer-provided encryption key was
User Guides requested, the response will include this header confirming the encryption
(../../guide/index.html) algorithm used.

Available Services (index.html) sse_customer_key_md5


ACM (acm.html) (string) --

ACMPCA (acm-pca.html) If server-side encryption with a customer-provided encryption key was


requested, the response will include this header to provide round trip
AlexaForBusiness
message integrity verification of the customer-provided encryption key.
(alexaforbusiness.html)

Amplify (amplify.html) ssekms_key_id


(string) --
APIGateway
(apigateway.html) If present, specifies the ID of the AWS Key Management Service (KMS)
master encryption key that was used for the object.
ApiGatewayManagement
Api
storage_class
(apigatewaymanagement
api.html) (string) --
version_id
Boto 3 Docs 1.9.249
(string) --
documentation (
../../index.html) Version of the object.

website_redirect_location
TABLE OF CONTENTS
(string) --

Quickstart If the bucket is configured as a website, redirects requests for this object
(../../guide/quickstart.html) to another object in the same bucket or to an external URL. Amazon S3
stores the value of this header in the object metadata.
A Sample Tutorial
(../../guide/sqs.html) Actions
Code Examples Actions call operations on resources. They may automatically handle the passing in
(../../guide/examples.html) of arguments set from identifiers and some attributes. For more information about
actions refer to the Resources Introduction Guide
User Guides (../../guide/resources.html#actions-intro).
(../../guide/index.html)
copy (CopySource, ExtraArgs=None, Callback=None, SourceClient=None,
Available Services (index.html)
Config=None)
ACM (acm.html) Copy an object from one S3 location to this object.
ACMPCA (acm-pca.html) This is a managed transfer which will perform a multipart copy in multiple
AlexaForBusiness threads if necessary.
(alexaforbusiness.html) Usage:
Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 import boto3
documentation ( s3 = boto3.resource('s3')
../../index.html) copy_source = {
'Bucket': 'mybucket',
'Key': 'mykey'
TABLE OF CONTENTS
}
bucket = s3.Bucket('otherbucket')
Quickstart
obj = bucket.Object('otherkey')
(../../guide/quickstart.html)
obj.copy(copy_source)
A Sample Tutorial
(../../guide/sqs.html)
Parameters
Code Examples
CopySource (dict) -- The name of the source bucket, key name of the
(../../guide/examples.html)
source object, and optional version ID of the source object. The dictionary
User Guides format is: {'Bucket': 'bucket', 'Key': 'key', 'VersionId': 'id'} .
(../../guide/index.html) Note that the VersionId key is optional and may be omitted.
ExtraArgs (dict) -- Extra arguments that may be passed to the client
Available Services (index.html) operation
ACM (acm.html) Callback (function) -- A method which takes a number of bytes
transferred to be periodically called during the copy.
ACMPCA (acm-pca.html)
SourceClient (botocore or boto3 Client) -- The client to be used for
AlexaForBusiness operation that may happen at the source object. For example, this client
(alexaforbusiness.html) is used for the head_object that determines the size of the copy. If no
client is provided, the current client is used as the client for the source
Amplify (amplify.html)
object.
APIGateway Config (boto3.s3.transfer.TransferConfig
(apigateway.html) (../customizations/s3.html#boto3.s3.transfer.TransferConfig)) -- The
transfer configuration to be used when performing the copy.
ApiGatewayManagement
Api
(apigatewaymanagement
copy_from (**kwargs)
api.html)
Creates a copy of an object that is already stored in Amazon S3.
Boto 3 Docs 1.9.249
documentation ( See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CopyObject)
../../index.html)
Request Syntax
TABLE OF CONTENTS

Quickstart
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = object.copy_from(
documentation ( ACL='private'|'public-read'|'public-read-write'|'authenticated-rea
../../index.html) CacheControl='string',
ContentDisposition='string',
ContentEncoding='string',
TABLE OF CONTENTS
ContentLanguage='string',
ContentType='string',
Quickstart
CopySource='string' or {'Bucket': 'string', 'Key': 'string', 'Vers
(../../guide/quickstart.html)
CopySourceIfMatch='string',
A Sample Tutorial CopySourceIfModifiedSince=datetime(2015, 1, 1),
(../../guide/sqs.html) CopySourceIfNoneMatch='string',
Code Examples CopySourceIfUnmodifiedSince=datetime(2015, 1, 1),
(../../guide/examples.html) Expires=datetime(2015, 1, 1),
GrantFullControl='string',
User Guides
GrantRead='string',
(../../guide/index.html)
GrantReadACP='string',
Available Services (index.html) GrantWriteACP='string',
Metadata={
ACM (acm.html)
'string': 'string'
ACMPCA (acm-pca.html) },
MetadataDirective='COPY'|'REPLACE',
AlexaForBusiness
(alexaforbusiness.html) TaggingDirective='COPY'|'REPLACE',
ServerSideEncryption='AES256'|'aws:kms',
Amplify (amplify.html) StorageClass='STANDARD'|'REDUCED_REDUNDANCY'|'STANDARD_IA'|'ONEZON
APIGateway WebsiteRedirectLocation='string',
(apigateway.html) SSECustomerAlgorithm='string',
SSECustomerKey='string',
ApiGatewayManagement
SSEKMSKeyId='string',
Api
SSEKMSEncryptionContext='string',
(apigatewaymanagement
api.html) CopySourceSSECustomerAlgorithm='string',
CopySourceSSECustomerKey='string',
Boto 3 Docs 1.9.249
RequestPayer='requester',
documentation ( Tagging='string',
../../index.html) ObjectLockMode='GOVERNANCE'|'COMPLIANCE',
ObjectLockRetainUntilDate=datetime(2015, 1, 1),
TABLE OF CONTENTS ObjectLockLegalHoldStatus='ON'|'OFF'
)
Quickstart
(../../guide/quickstart.html)

A Sample Tutorial Parameters


(../../guide/sqs.html) ACL (string) -- The canned ACL to apply to the object.
CacheControl (string) -- Specifies caching behavior along the
Code Examples
request/reply chain.
(../../guide/examples.html)
ContentDisposition (string) -- Specifies presentational information for
User Guides the object.
(../../guide/index.html) ContentEncoding (string) -- Specifies what content encodings have been
applied to the object and thus what decoding mechanisms must be
Available Services (index.html) applied to obtain the media-type referenced by the Content-Type header
ACM (acm.html) field.
ContentLanguage (string) -- The language the content is in.
ACMPCA (acm-pca.html)
ContentType (string) -- A standard MIME type describing the format of
AlexaForBusiness the object data.
(alexaforbusiness.html) CopySource (str or dict) -- [REQUIRED] The name of the source bucket,
key name of the source object, and optional version ID of the source
Amplify (amplify.html)
object. You can either provide this value as a string or a dictionary. The
APIGateway string form is {bucket}/{key} or {bucket}/{key}?versionId={versionId} if
(apigateway.html) you want to copy a specific version. You can also provide this value as a
dictionary. The dictionary format is recommended over the string format
ApiGatewayManagement
because it is more explicit. The dictionary format is: {'Bucket': 'bucket',
Api
'Key': 'key', 'VersionId': 'id'}. Note that the VersionId key is optional and
(apigatewaymanagement
may be omitted.
api.html)
CopySourceIfMatch (string) -- Copies the object if its entity tag (ETag)
Boto 3 Docs 1.9.249
matches the specified tag.
documentation ( CopySourceIfModifiedSince (datetime) -- Copies the object if it has been
../../index.html) modified since the specified time.
CopySourceIfNoneMatch (string) -- Copies the object if its entity tag
TABLE OF CONTENTS (ETag) is different than the specified ETag.
CopySourceIfUnmodifiedSince (datetime) -- Copies the object if it hasn't
Quickstart been modified since the specified time.
(../../guide/quickstart.html) Expires (datetime) -- The date and time at which the object is no longer
cacheable.
A Sample Tutorial GrantFullControl (string) -- Gives the grantee READ, READ_ACP, and
(../../guide/sqs.html) WRITE_ACP permissions on the object.
Code Examples GrantRead (string) -- Allows grantee to read the object data and its
(../../guide/examples.html) metadata.
GrantReadACP (string) -- Allows grantee to read the object ACL.
User Guides GrantWriteACP (string) -- Allows grantee to write the ACL for the
(../../guide/index.html) applicable object.
Metadata (dict) --
Available Services (index.html)
A map of metadata to store with the object in S3.
ACM (acm.html)
(string) --
ACMPCA (acm-pca.html) (string) --
MetadataDirective (string) -- Specifies whether the metadata is copied
AlexaForBusiness
from the source object or replaced with metadata provided in the
(alexaforbusiness.html)
request.
Amplify (amplify.html) TaggingDirective (string) -- Specifies whether the object tag-set are
APIGateway copied from the source object or replaced with tag-set provided in the
(apigateway.html) request.
ServerSideEncryption (string) -- The Server-side encryption algorithm
ApiGatewayManagement used when storing this object in S3 (e.g., AES256, aws:kms).
Api StorageClass (string) -- The type of storage to use for the object. Defaults
(apigatewaymanagement to 'STANDARD'.
api.html)
WebsiteRedirectLocation (string) -- If the bucket is configured as a
Boto 3 Docs 1.9.249
website, redirects requests for this object to another object in the same
documentation ( bucket or to an external URL. Amazon S3 stores the value of this header
../../index.html) in the object metadata.
SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
TABLE OF CONTENTS encrypting the object (e.g., AES256).
SSECustomerKey (string) -- Specifies the customer-provided encryption
Quickstart key for Amazon S3 to use in encrypting data. This value is used to store
(../../guide/quickstart.html) the object and then it is discarded; Amazon does not store the encryption
key. The key must be appropriate for use with the algorithm specified in
A Sample Tutorial the x-amz-server-side-encryption-customer-algorithm header.
(../../guide/sqs.html) SSECustomerKeyMD5 (string) --
Code Examples Specifies the 128-bit MD5 digest of the encryption key according to RFC
(../../guide/examples.html) 1321. Amazon S3 uses this header for a message integrity check to
ensure the encryption key was transmitted without error.
User Guides
(../../guide/index.html)
Please note that this parameter is automatically populated if it is not
Available Services (index.html) provided. Including this parameter is not required
ACM (acm.html)

ACMPCA (acm-pca.html) SSEKMSKeyId (string) -- Specifies the AWS KMS key ID to use for object
encryption. All GET and PUT requests for an object protected by AWS KMS
AlexaForBusiness
will fail if not made via SSL or using SigV4. Documentation on configuring
(alexaforbusiness.html)
any of the officially supported AWS SDKs and CLI can be found at
Amplify (amplify.html) http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-
signature-version
APIGateway
(http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify
(apigateway.html)
signature-version)
ApiGatewayManagement SSEKMSEncryptionContext (string) -- Specifies the AWS KMS Encryption
Api Context to use for object encryption. The value of this header is a base64-
(apigatewaymanagement encoded UTF-8 string holding JSON with the encryption context key-value
api.html) pairs.
CopySourceSSECustomerAlgorithm (string) -- Specifies the algorithm to
Boto 3 Docs 1.9.249
use when decrypting the source object (e.g., AES256).
documentation ( CopySourceSSECustomerKey (string) -- Specifies the customer-provided
../../index.html) 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
TABLE OF CONTENTS the source object was created.
CopySourceSSECustomerKeyMD5 (string) --
Quickstart Specifies the 128-bit MD5 digest of the encryption key according to RFC
(../../guide/quickstart.html) 1321. Amazon S3 uses this header for a message integrity check to
ensure the encryption key was transmitted without error.
A Sample Tutorial
(../../guide/sqs.html)
Please note that this parameter is automatically populated if it is not
Code Examples
provided. Including this parameter is not required
(../../guide/examples.html)

User Guides
RequestPayer (string) -- Confirms that the requester knows that she or
(../../guide/index.html)
he will be charged for the request. Bucket owners need not specify this
Available Services (index.html) parameter in their requests. Documentation on downloading objects
from requester pays buckets can be found at
ACM (acm.html)
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
ACMPCA (acm-pca.html) (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Tagging (string) -- The tag-set for the object destination object this value
AlexaForBusiness
must be used in conjunction with the TaggingDirective. The tag-set must
(alexaforbusiness.html)
be encoded as URL Query parameters
Amplify (amplify.html) ObjectLockMode (string) -- The object lock mode that you want to apply
to the copied object.
APIGateway
ObjectLockRetainUntilDate (datetime) -- The date and time when you
(apigateway.html)
want the copied object's object lock to expire.
ApiGatewayManagement ObjectLockLegalHoldStatus (string) -- Specifies whether you want to
Api apply a Legal Hold to the copied object.
(apigatewaymanagement
Return type
api.html)
dict
Boto 3 Docs 1.9.249
documentation ( Returns

../../index.html) Response Syntax

TABLE OF CONTENTS {
'CopyObjectResult': {
Quickstart 'ETag': 'string',
(../../guide/quickstart.html) 'LastModified': datetime(2015, 1, 1)
A Sample Tutorial },
(../../guide/sqs.html) 'Expiration': 'string',
'CopySourceVersionId': 'string',
Code Examples
'VersionId': 'string',
(../../guide/examples.html)
'ServerSideEncryption': 'AES256'|'aws:kms',
User Guides 'SSECustomerAlgorithm': 'string',
(../../guide/index.html) 'SSECustomerKeyMD5': 'string',
'SSEKMSKeyId': 'string',
Available Services (index.html)
'SSEKMSEncryptionContext': 'string',
ACM (acm.html) 'RequestCharged': 'requester'
}
ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html) Response Structure

Amplify (amplify.html) (dict) --

APIGateway CopyObjectResult (dict) --


(apigateway.html) ETag (string) --
ApiGatewayManagement LastModified (datetime) --
Api Expiration (string) --
(apigatewaymanagement If the object expiration is configured, the response includes this
api.html) header.
CopySourceVersionId (string) --
Boto 3 Docs 1.9.249
documentation ( VersionId (string) --

../../index.html) Version ID of the newly created copy.

ServerSideEncryption (string) --
TABLE OF CONTENTS
The Server-side encryption algorithm used when storing this object in
S3 (e.g., AES256, aws:kms).
Quickstart
(../../guide/quickstart.html) SSECustomerAlgorithm (string) --

A Sample Tutorial If server-side encryption with a customer-provided encryption key was


(../../guide/sqs.html) requested, the response will include this header confirming the
encryption algorithm used.
Code Examples
(../../guide/examples.html) SSECustomerKeyMD5 (string) --

User Guides If server-side encryption with a customer-provided encryption key was


(../../guide/index.html) requested, the response will include this header to provide round trip
message integrity verification of the customer-provided encryption key.
Available Services (index.html)
SSEKMSKeyId (string) --
ACM (acm.html)
If present, specifies the ID of the AWS Key Management Service (KMS)
ACMPCA (acm-pca.html) master encryption key that was used for the object.
AlexaForBusiness SSEKMSEncryptionContext (string) --
(alexaforbusiness.html)
If present, specifies the AWS KMS Encryption Context to use for object
Amplify (amplify.html) encryption. The value of this header is a base64-encoded UTF-8 string
APIGateway holding JSON with the encryption context key-value pairs.
(apigateway.html) RequestCharged (string) --
ApiGatewayManagement If present, indicates that the requester was successfully charged for the
Api request.
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 delete (**kwargs)
Removes the null version (if there is one) of an object and inserts a delete
documentation (
marker, which becomes the latest version of the object. If there isn't a null
../../index.html) version, Amazon S3 does not remove any objects.

See also: AWS API Documentation


TABLE OF CONTENTS
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObject)

Quickstart Request Syntax


(../../guide/quickstart.html)

A Sample Tutorial response = object.delete(


(../../guide/sqs.html) MFA='string',
VersionId='string',
Code Examples
(../../guide/examples.html) RequestPayer='requester',
BypassGovernanceRetention=True|False
User Guides )
(../../guide/index.html)

Available Services (index.html) Parameters


ACM (acm.html) MFA (string) -- The concatenation of the authentication device's serial
number, a space, and the value that is displayed on your authentication
ACMPCA (acm-pca.html)
device.
AlexaForBusiness VersionId (string) -- VersionId used to reference a specific version of the
(alexaforbusiness.html) object.
RequestPayer (string) -- Confirms that the requester knows that she or
Amplify (amplify.html)
he will be charged for the request. Bucket owners need not specify this
APIGateway parameter in their requests. Documentation on downloading objects
(apigateway.html) from requester pays buckets can be found at
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
ApiGatewayManagement
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Api
BypassGovernanceRetention (boolean) -- Indicates whether Amazon S3
(apigatewaymanagement
object lock should bypass governance-mode restrictions to process this
api.html)
operation.
Boto 3 Docs 1.9.249
documentation ( Return type
dict
../../index.html)
Returns
TABLE OF CONTENTS Response Syntax

Quickstart
(../../guide/quickstart.html) {
'DeleteMarker': True|False,
A Sample Tutorial 'VersionId': 'string',
(../../guide/sqs.html)
'RequestCharged': 'requester'
Code Examples }
(../../guide/examples.html)

User Guides Response Structure


(../../guide/index.html)
(dict) --
Available Services (index.html) DeleteMarker (boolean) --
ACM (acm.html) Specifies whether the versioned object that was permanently deleted
ACMPCA (acm-pca.html) was (true) or was not (false) a delete marker.

AlexaForBusiness VersionId (string) --


(alexaforbusiness.html) Returns the version ID of the delete marker created as a result of the
Amplify (amplify.html) DELETE operation.

APIGateway RequestCharged (string) --


(apigateway.html) If present, indicates that the requester was successfully charged for the
ApiGatewayManagement request.
Api
(apigatewaymanagement
api.html) download_file (Filename, ExtraArgs=None, Callback=None, Config=None)
Download an S3 object to a file.
Boto 3 Docs 1.9.249
documentation ( Usage:

../../index.html)
import boto3
TABLE OF CONTENTS s3 = boto3.resource('s3')
s3.Object('mybucket', 'hello.txt').download_file('/tmp/hello.txt')
Quickstart
(../../guide/quickstart.html)
Similar behavior as S3Transfer's download_file() method, except that
A Sample Tutorial parameters are capitalized. Detailed examples can be found at S3Transfer's
(../../guide/sqs.html) Usage.

Code Examples Parameters


(../../guide/examples.html) Filename (str) -- The path to the file to download to.
ExtraArgs (dict) -- Extra arguments that may be passed to the client
User Guides
operation.
(../../guide/index.html)
Callback (function) -- A method which takes a number of bytes
Available Services (index.html) transferred to be periodically called during the download.
Config (boto3.s3.transfer.TransferConfig
ACM (acm.html) (../customizations/s3.html#boto3.s3.transfer.TransferConfig)) -- The
ACMPCA (acm-pca.html) transfer configuration to be used when performing the transfer.

AlexaForBusiness
(alexaforbusiness.html)
download_fileobj (Fileobj, ExtraArgs=None, Callback=None, Config=None)
Amplify (amplify.html) Download this object from S3 to a file-like object.
APIGateway The file-like object must be in binary mode.
(apigateway.html)
This is a managed transfer which will perform a multipart download in multiple
ApiGatewayManagement threads if necessary.
Api
(apigatewaymanagement
Usage:
api.html)
Boto 3 Docs 1.9.249 import boto3
documentation ( s3 = boto3.resource('s3')
../../index.html) bucket = s3.Bucket('mybucket')
obj = bucket.Object('mykey')

TABLE OF CONTENTS
with open('filename', 'wb') as data:
obj.download_fileobj(data)
Quickstart
(../../guide/quickstart.html)

A Sample Tutorial Parameters


(../../guide/sqs.html) Fileobj (a file-like object) -- A file-like object to download into. At a
minimum, it must implement the write method and must accept bytes.
Code Examples
ExtraArgs (dict) -- Extra arguments that may be passed to the client
(../../guide/examples.html)
operation.
User Guides Callback (function) -- A method which takes a number of bytes
(../../guide/index.html) transferred to be periodically called during the download.
Config (boto3.s3.transfer.TransferConfig
Available Services (index.html) (../customizations/s3.html#boto3.s3.transfer.TransferConfig)) -- The
ACM (acm.html) transfer configuration to be used when performing the download.

ACMPCA (acm-pca.html)

AlexaForBusiness get (**kwargs)


(alexaforbusiness.html) Retrieves objects from Amazon S3.
Amplify (amplify.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObject)
APIGateway
(apigateway.html) Request Syntax
ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = object.get(
documentation ( IfMatch='string',
../../index.html) IfModifiedSince=datetime(2015, 1, 1),
IfNoneMatch='string',
IfUnmodifiedSince=datetime(2015, 1, 1),
TABLE OF CONTENTS
Range='string',
ResponseCacheControl='string',
Quickstart
ResponseContentDisposition='string',
(../../guide/quickstart.html)
ResponseContentEncoding='string',
A Sample Tutorial ResponseContentLanguage='string',
(../../guide/sqs.html) ResponseContentType='string',
Code Examples ResponseExpires=datetime(2015, 1, 1),
(../../guide/examples.html) VersionId='string',
SSECustomerAlgorithm='string',
User Guides
SSECustomerKey='string',
(../../guide/index.html)
RequestPayer='requester',
Available Services (index.html) PartNumber=123
)
ACM (acm.html)

ACMPCA (acm-pca.html)
Parameters
AlexaForBusiness IfMatch (string) -- Return the object only if its entity tag (ETag) is the same
(alexaforbusiness.html) as the one specified, otherwise return a 412 (precondition failed).
Amplify (amplify.html) IfModifiedSince (datetime) -- Return the object only if it has been
modified since the specified time, otherwise return a 304 (not modified).
APIGateway
IfNoneMatch (string) -- Return the object only if its entity tag (ETag) is
(apigateway.html)
different from the one specified, otherwise return a 304 (not modified).
ApiGatewayManagement IfUnmodifiedSince (datetime) -- Return the object only if it has not been
Api modified since the specified time, otherwise return a 412 (precondition
(apigatewaymanagement failed).
api.html)
Range (string) -- Downloads the specified range bytes of an object. For
Boto 3 Docs 1.9.249
more information about the HTTP Range header, go to
documentation ( http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
../../index.html) (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35).
ResponseCacheControl (string) -- Sets the Cache-Control header of the
TABLE OF CONTENTS response.
ResponseContentDisposition (string) -- Sets the Content-Disposition
Quickstart header of the response
(../../guide/quickstart.html) ResponseContentEncoding (string) -- Sets the Content-Encoding header
of the response.
A Sample Tutorial ResponseContentLanguage (string) -- Sets the Content-Language header
(../../guide/sqs.html) of the response.
Code Examples ResponseContentType (string) -- Sets the Content-Type header of the
(../../guide/examples.html) response.
ResponseExpires (datetime) -- Sets the Expires header of the response.
User Guides VersionId (string) -- VersionId used to reference a specific version of the
(../../guide/index.html) object.
SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
Available Services (index.html)
encrypting the object (e.g., AES256).
ACM (acm.html) SSECustomerKey (string) -- Specifies the customer-provided encryption
key for Amazon S3 to use in encrypting data. This value is used to store
ACMPCA (acm-pca.html)
the object and then it is discarded; Amazon does not store the encryption
AlexaForBusiness key. The key must be appropriate for use with the algorithm specified in
(alexaforbusiness.html) the x-amz-server-side-encryption-customer-algorithm header.
Amplify (amplify.html) SSECustomerKeyMD5 (string) --
Specifies the 128-bit MD5 digest of the encryption key according to RFC
APIGateway 1321. Amazon S3 uses this header for a message integrity check to
(apigateway.html) ensure the encryption key was transmitted without error.
ApiGatewayManagement
Api
Please note that this parameter is automatically populated if it is not
(apigatewaymanagement
provided. Including this parameter is not required
api.html)
RequestPayer (string) -- Confirms that the requester knows that she or
Boto 3 Docs 1.9.249
he will be charged for the request. Bucket owners need not specify this
documentation ( parameter in their requests. Documentation on downloading objects
../../index.html) from requester pays buckets can be found at
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
TABLE OF CONTENTS (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
PartNumber (integer) -- Part number of the object being read. This is a
Quickstart positive integer between 1 and 10,000. Effectively performs a 'ranged'
(../../guide/quickstart.html) GET request for the part specified. Useful for downloading just a part of
an object.
A Sample Tutorial
(../../guide/sqs.html) Return type
dict
Code Examples
(../../guide/examples.html) Returns

Response Syntax
User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'Body': StreamingBody(),
../../index.html) 'DeleteMarker': True|False,
'AcceptRanges': 'string',
'Expiration': 'string',
TABLE OF CONTENTS
'Restore': 'string',
'LastModified': datetime(2015, 1, 1),
Quickstart
'ContentLength': 123,
(../../guide/quickstart.html)
'ETag': 'string',
A Sample Tutorial 'MissingMeta': 123,
(../../guide/sqs.html) 'VersionId': 'string',
Code Examples 'CacheControl': 'string',
(../../guide/examples.html) 'ContentDisposition': 'string',
'ContentEncoding': 'string',
User Guides
'ContentLanguage': 'string',
(../../guide/index.html)
'ContentRange': 'string',
Available Services (index.html) 'ContentType': 'string',
'Expires': datetime(2015, 1, 1),
ACM (acm.html)
'WebsiteRedirectLocation': 'string',
ACMPCA (acm-pca.html) 'ServerSideEncryption': 'AES256'|'aws:kms',
'Metadata': {
AlexaForBusiness
(alexaforbusiness.html) 'string': 'string'
},
Amplify (amplify.html) 'SSECustomerAlgorithm': 'string',
APIGateway 'SSECustomerKeyMD5': 'string',
(apigateway.html) 'SSEKMSKeyId': 'string',
'StorageClass': 'STANDARD'|'REDUCED_REDUNDANCY'|'STANDARD_IA'|
ApiGatewayManagement
'RequestCharged': 'requester',
Api
'ReplicationStatus': 'COMPLETE'|'PENDING'|'FAILED'|'REPLICA',
(apigatewaymanagement
api.html) 'PartsCount': 123,
'TagCount': 123,
Boto 3 Docs 1.9.249
'ObjectLockMode': 'GOVERNANCE'|'COMPLIANCE',
documentation ( 'ObjectLockRetainUntilDate': datetime(2015, 1, 1),
../../index.html) 'ObjectLockLegalHoldStatus': 'ON'|'OFF'
}
TABLE OF CONTENTS

Quickstart Response Structure


(../../guide/quickstart.html)
(dict) --
A Sample Tutorial
(../../guide/sqs.html) Body ( StreamingBody ) --

Code Examples Object data.


(../../guide/examples.html) DeleteMarker (boolean) --
User Guides Specifies whether the object retrieved was (true) or was not (false) a
(../../guide/index.html) Delete Marker. If false, this response header does not appear in the
response.
Available Services (index.html)
AcceptRanges (string) --
ACM (acm.html)
Expiration (string) --
ACMPCA (acm-pca.html)
If the object expiration is configured (see PUT Bucket lifecycle), the
AlexaForBusiness
response includes this header. It includes the expiry-date and rule-id
(alexaforbusiness.html)
key value pairs providing object expiration information. The value of
Amplify (amplify.html) the rule-id is URL encoded.

APIGateway Restore (string) --


(apigateway.html)
Provides information about object restoration operation and expiration
ApiGatewayManagement time of the restored object copy.
Api
LastModified (datetime) --
(apigatewaymanagement
api.html) Last modified date of the object
ContentLength (integer) --
Boto 3 Docs 1.9.249
documentation ( Size of the body in bytes.

../../index.html) ETag (string) --

An ETag is an opaque identifier assigned by a web server to a specific


TABLE OF CONTENTS version of a resource found at a URL

MissingMeta (integer) --
Quickstart
(../../guide/quickstart.html) This is set to the number of metadata entries not returned in x-amz-
meta headers. This can happen if you create metadata using an API like
A Sample Tutorial
SOAP that supports more flexible metadata than the REST API. For
(../../guide/sqs.html)
example, using SOAP, you can create metadata whose values are not
Code Examples legal HTTP headers.
(../../guide/examples.html)
VersionId (string) --
User Guides Version of the object.
(../../guide/index.html)
CacheControl (string) --
Available Services (index.html)
Specifies caching behavior along the request/reply chain.
ACM (acm.html)
ContentDisposition (string) --
ACMPCA (acm-pca.html)
Specifies presentational information for the object.
AlexaForBusiness
ContentEncoding (string) --
(alexaforbusiness.html)
Specifies what content encodings have been applied to the object and
Amplify (amplify.html)
thus what decoding mechanisms must be applied to obtain the media-
APIGateway type referenced by the Content-Type header field.
(apigateway.html)
ContentLanguage (string) --
ApiGatewayManagement
The language the content is in.
Api
(apigatewaymanagement ContentRange (string) --
api.html)
The portion of the object returned in the response.
Boto 3 Docs 1.9.249
documentation ( ContentType (string) --

../../index.html) A standard MIME type describing the format of the object data.

Expires (datetime) --
TABLE OF CONTENTS
The date and time at which the object is no longer cacheable.

Quickstart WebsiteRedirectLocation (string) --


(../../guide/quickstart.html)
If the bucket is configured as a website, redirects requests for this
A Sample Tutorial object to another object in the same bucket or to an external URL.
(../../guide/sqs.html) Amazon S3 stores the value of this header in the object metadata.

Code Examples ServerSideEncryption (string) --


(../../guide/examples.html)
The Server-side encryption algorithm used when storing this object in
User Guides S3 (e.g., AES256, aws:kms).
(../../guide/index.html) Metadata (dict) --
Available Services (index.html) A map of metadata to store with the object in S3.
ACM (acm.html) (string) --
(string) --
ACMPCA (acm-pca.html)
SSECustomerAlgorithm (string) --
AlexaForBusiness
If server-side encryption with a customer-provided encryption key was
(alexaforbusiness.html)
requested, the response will include this header confirming the
Amplify (amplify.html) encryption algorithm used.
APIGateway SSECustomerKeyMD5 (string) --
(apigateway.html)
If server-side encryption with a customer-provided encryption key was
ApiGatewayManagement requested, the response will include this header to provide round trip
Api message integrity verification of the customer-provided encryption key.
(apigatewaymanagement
SSEKMSKeyId (string) --
api.html)
If present, specifies the ID of the AWS Key Management Service (KMS)
Boto 3 Docs 1.9.249
master encryption key that was used for the object.
documentation (
StorageClass (string) --
../../index.html)
RequestCharged (string) --
TABLE OF CONTENTS If present, indicates that the requester was successfully charged for the
request.
Quickstart
ReplicationStatus (string) --
(../../guide/quickstart.html)
PartsCount (integer) --
A Sample Tutorial
(../../guide/sqs.html) The count of parts this object has.

Code Examples TagCount (integer) --


(../../guide/examples.html)
The number of tags, if any, on the object.
User Guides ObjectLockMode (string) --
(../../guide/index.html)
The object lock mode currently in place for this object.
Available Services (index.html)
ObjectLockRetainUntilDate (datetime) --
ACM (acm.html)
The date and time when this object's object lock will expire.
ACMPCA (acm-pca.html)
ObjectLockLegalHoldStatus (string) --
AlexaForBusiness
Indicates whether this object has an active legal hold. This field is only
(alexaforbusiness.html)
returned if you have permission to view an object's legal hold status.
Amplify (amplify.html)

APIGateway
get_available_subresources ()
(apigateway.html)
Returns a list of all the available sub-resources for this Resource.
ApiGatewayManagement
Api Returns
(apigatewaymanagement A list containing the name of each sub-resource for this resource
api.html)
Return type
Boto 3 Docs 1.9.249
list of str
documentation (
../../index.html)
initiate_multipart_upload (**kwargs)
TABLE OF CONTENTS Initiates a multipart upload and returns an upload ID.

Quickstart
(../../guide/quickstart.html) Note: After you initiate multipart upload and upload one or more parts,
you must either complete or abort multipart upload in order to stop
A Sample Tutorial getting charged for storage of the uploaded parts. Only after you either
(../../guide/sqs.html) complete or abort multipart upload, Amazon S3 frees up the parts storage
Code Examples and stops charging you for the parts storage.
(../../guide/examples.html)

User Guides See also: AWS API Documentation


(../../guide/index.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
01/CreateMultipartUpload)
Available Services (index.html)
Request Syntax
ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 multipart_upload = object.initiate_multipart_upload(
documentation ( ACL='private'|'public-read'|'public-read-write'|'authenticated-rea
../../index.html) CacheControl='string',
ContentDisposition='string',
ContentEncoding='string',
TABLE OF CONTENTS
ContentLanguage='string',
ContentType='string',
Quickstart
Expires=datetime(2015, 1, 1),
(../../guide/quickstart.html)
GrantFullControl='string',
A Sample Tutorial GrantRead='string',
(../../guide/sqs.html) GrantReadACP='string',
Code Examples GrantWriteACP='string',
(../../guide/examples.html) Metadata={
'string': 'string'
User Guides
},
(../../guide/index.html)
ServerSideEncryption='AES256'|'aws:kms',
Available Services (index.html) StorageClass='STANDARD'|'REDUCED_REDUNDANCY'|'STANDARD_IA'|'ONEZON
WebsiteRedirectLocation='string',
ACM (acm.html)
SSECustomerAlgorithm='string',
ACMPCA (acm-pca.html) SSECustomerKey='string',
SSEKMSKeyId='string',
AlexaForBusiness
(alexaforbusiness.html) SSEKMSEncryptionContext='string',
RequestPayer='requester',
Amplify (amplify.html) Tagging='string',
APIGateway ObjectLockMode='GOVERNANCE'|'COMPLIANCE',
(apigateway.html) ObjectLockRetainUntilDate=datetime(2015, 1, 1),
ObjectLockLegalHoldStatus='ON'|'OFF'
ApiGatewayManagement
)
Api
(apigatewaymanagement
api.html)
Parameters
Boto 3 Docs 1.9.249
ACL (string) -- The canned ACL to apply to the object.
documentation ( CacheControl (string) -- Specifies caching behavior along the
../../index.html) request/reply chain.
ContentDisposition (string) -- Specifies presentational information for
TABLE OF CONTENTS the object.
ContentEncoding (string) -- Specifies what content encodings have been
Quickstart applied to the object and thus what decoding mechanisms must be
(../../guide/quickstart.html) applied to obtain the media-type referenced by the Content-Type header
field.
A Sample Tutorial
ContentLanguage (string) -- The language the content is in.
(../../guide/sqs.html)
ContentType (string) -- A standard MIME type describing the format of
Code Examples the object data.
(../../guide/examples.html) Expires (datetime) -- The date and time at which the object is no longer
cacheable.
User Guides GrantFullControl (string) -- Gives the grantee READ, READ_ACP, and
(../../guide/index.html) WRITE_ACP permissions on the object.
GrantRead (string) -- Allows grantee to read the object data and its
Available Services (index.html)
metadata.
ACM (acm.html) GrantReadACP (string) -- Allows grantee to read the object ACL.
ACMPCA (acm-pca.html) GrantWriteACP (string) -- Allows grantee to write the ACL for the
applicable object.
AlexaForBusiness Metadata (dict) --
(alexaforbusiness.html) A map of metadata to store with the object in S3.
Amplify (amplify.html) (string) --
APIGateway (string) --
(apigateway.html) ServerSideEncryption (string) -- The Server-side encryption algorithm
used when storing this object in S3 (e.g., AES256, aws:kms).
ApiGatewayManagement
StorageClass (string) -- The type of storage to use for the object. Defaults
Api
to 'STANDARD'.
(apigatewaymanagement
WebsiteRedirectLocation (string) -- If the bucket is configured as a
api.html)
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
Boto 3 Docs 1.9.249
in the object metadata.
documentation ( SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
../../index.html) encrypting the object (e.g., AES256).
SSECustomerKey (string) -- Specifies the customer-provided encryption
TABLE OF CONTENTS key for Amazon S3 to use in encrypting data. This value is used to store
the object and then it is discarded; Amazon does not store the encryption
Quickstart key. The key must be appropriate for use with the algorithm specified in
(../../guide/quickstart.html) the x-amz-server-side-encryption-customer-algorithm header.
SSECustomerKeyMD5 (string) --
A Sample Tutorial Specifies the 128-bit MD5 digest of the encryption key according to RFC
(../../guide/sqs.html) 1321. Amazon S3 uses this header for a message integrity check to
Code Examples ensure the encryption key was transmitted without error.
(../../guide/examples.html)

User Guides Please note that this parameter is automatically populated if it is not
(../../guide/index.html) provided. Including this parameter is not required

Available Services (index.html)


SSEKMSKeyId (string) -- Specifies the AWS KMS key ID to use for object
ACM (acm.html)
encryption. All GET and PUT requests for an object protected by AWS KMS
ACMPCA (acm-pca.html) will fail if not made via SSL or using SigV4. Documentation on configuring
any of the officially supported AWS SDKs and CLI can be found at
AlexaForBusiness
http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-
(alexaforbusiness.html)
signature-version
Amplify (amplify.html) (http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify
signature-version)
APIGateway
SSEKMSEncryptionContext (string) -- Specifies the AWS KMS Encryption
(apigateway.html)
Context to use for object encryption. The value of this header is a base64-
ApiGatewayManagement encoded UTF-8 string holding JSON with the encryption context key-value
Api pairs.
(apigatewaymanagement RequestPayer (string) -- Confirms that the requester knows that she or
api.html) he will be charged for the request. Bucket owners need not specify this
parameter in their requests. Documentation on downloading objects
Boto 3 Docs 1.9.249
from requester pays buckets can be found at
documentation ( http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
../../index.html) (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Tagging (string) -- The tag-set for the object. The tag-set must be encoded
TABLE OF CONTENTS as URL Query parameters
ObjectLockMode (string) -- Specifies the object lock mode that you want
Quickstart to apply to the uploaded object.
(../../guide/quickstart.html) ObjectLockRetainUntilDate (datetime) -- Specifies the date and time
when you want the object lock to expire.
A Sample Tutorial ObjectLockLegalHoldStatus (string) -- Specifies whether you want to
(../../guide/sqs.html) apply a Legal Hold to the uploaded object.
Code Examples Return type
(../../guide/examples.html) s3.MultipartUpload
User Guides Returns
(../../guide/index.html) MultipartUpload resource
Available Services (index.html)

ACM (acm.html) load ()


ACMPCA (acm-pca.html) Calls S3.Client.head_object() to update the attributes of the Object resource.
Note that the load and reload methods are the same method and can be used
AlexaForBusiness
interchangeably.
(alexaforbusiness.html)
See also: AWS API Documentation
Amplify (amplify.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
APIGateway
Request Syntax
(apigateway.html)

ApiGatewayManagement
object.load()
Api
(apigatewaymanagement
api.html) Returns
None
Boto 3 Docs 1.9.249
documentation (
../../index.html) put (**kwargs)
Adds an object to a bucket.
TABLE OF CONTENTS
See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObject)
Quickstart
(../../guide/quickstart.html) Request Syntax

A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = object.put(
documentation ( ACL='private'|'public-read'|'public-read-write'|'authenticated-rea
../../index.html) Body=b'bytes'|file,
CacheControl='string',
ContentDisposition='string',
TABLE OF CONTENTS
ContentEncoding='string',
ContentLanguage='string',
Quickstart
ContentLength=123,
(../../guide/quickstart.html)
ContentMD5='string',
A Sample Tutorial ContentType='string',
(../../guide/sqs.html) Expires=datetime(2015, 1, 1),
Code Examples GrantFullControl='string',
(../../guide/examples.html) GrantRead='string',
GrantReadACP='string',
User Guides
GrantWriteACP='string',
(../../guide/index.html)
Metadata={
Available Services (index.html) 'string': 'string'
},
ACM (acm.html)
ServerSideEncryption='AES256'|'aws:kms',
ACMPCA (acm-pca.html) StorageClass='STANDARD'|'REDUCED_REDUNDANCY'|'STANDARD_IA'|'ONEZON
WebsiteRedirectLocation='string',
AlexaForBusiness
(alexaforbusiness.html) SSECustomerAlgorithm='string',
SSECustomerKey='string',
Amplify (amplify.html) SSEKMSKeyId='string',
APIGateway SSEKMSEncryptionContext='string',
(apigateway.html) RequestPayer='requester',
Tagging='string',
ApiGatewayManagement
ObjectLockMode='GOVERNANCE'|'COMPLIANCE',
Api
ObjectLockRetainUntilDate=datetime(2015, 1, 1),
(apigatewaymanagement
api.html)
ObjectLockLegalHoldStatus='ON'|'OFF'
Boto 3 Docs 1.9.249
)
documentation (
../../index.html)
Parameters
TABLE OF CONTENTS
ACL (string) -- The canned ACL to apply to the object.
Body (bytes or seekable file-like object) -- Object data.
Quickstart CacheControl (string) -- Specifies caching behavior along the
(../../guide/quickstart.html) request/reply chain.
A Sample Tutorial ContentDisposition (string) -- Specifies presentational information for
(../../guide/sqs.html) the object.
ContentEncoding (string) -- Specifies what content encodings have been
Code Examples applied to the object and thus what decoding mechanisms must be
(../../guide/examples.html) applied to obtain the media-type referenced by the Content-Type header
User Guides field.
(../../guide/index.html) ContentLanguage (string) -- The language the content is in.
ContentLength (integer) -- Size of the body in bytes. This parameter is
Available Services (index.html) useful when the size of the body cannot be determined automatically.
ContentMD5 (string) -- The base64-encoded 128-bit MD5 digest of the
ACM (acm.html)
part data. This parameter is auto-populated when using the command
ACMPCA (acm-pca.html) from the CLI. This parameted is required if object lock parameters are
AlexaForBusiness specified.
(alexaforbusiness.html) ContentType (string) -- A standard MIME type describing the format of
the object data.
Amplify (amplify.html) Expires (datetime) -- The date and time at which the object is no longer
APIGateway cacheable.
(apigateway.html) GrantFullControl (string) -- Gives the grantee READ, READ_ACP, and
WRITE_ACP permissions on the object.
ApiGatewayManagement GrantRead (string) -- Allows grantee to read the object data and its
Api metadata.
(apigatewaymanagement GrantReadACP (string) -- Allows grantee to read the object ACL.
api.html)
GrantWriteACP (string) -- Allows grantee to write the ACL for the
Boto 3 Docs 1.9.249
applicable object.
documentation ( Metadata (dict) --
../../index.html) A map of metadata to store with the object in S3.
(string) --
TABLE OF CONTENTS (string) --
ServerSideEncryption (string) -- The Server-side encryption algorithm
Quickstart used when storing this object in S3 (e.g., AES256, aws:kms).
(../../guide/quickstart.html) StorageClass (string) -- The type of storage to use for the object. Defaults
A Sample Tutorial to 'STANDARD'.
(../../guide/sqs.html) WebsiteRedirectLocation (string) -- If the bucket is configured as a
website, redirects requests for this object to another object in the same
Code Examples bucket or to an external URL. Amazon S3 stores the value of this header
(../../guide/examples.html) in the object metadata.
SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
User Guides
encrypting the object (e.g., AES256).
(../../guide/index.html)
SSECustomerKey (string) -- Specifies the customer-provided encryption
Available Services (index.html) key for Amazon S3 to use in encrypting data. This value is used to store
the object and then it is discarded; Amazon does not store the encryption
ACM (acm.html)
key. The key must be appropriate for use with the algorithm specified in
ACMPCA (acm-pca.html) the x-amz-server-side-encryption-customer-algorithm header.
SSECustomerKeyMD5 (string) --
AlexaForBusiness
Specifies the 128-bit MD5 digest of the encryption key according to RFC
(alexaforbusiness.html)
1321. Amazon S3 uses this header for a message integrity check to
Amplify (amplify.html) ensure the encryption key was transmitted without error.
APIGateway
(apigateway.html)
Please note that this parameter is automatically populated if it is not
ApiGatewayManagement provided. Including this parameter is not required
Api
(apigatewaymanagement
api.html)
SSEKMSKeyId (string) -- Specifies the AWS KMS key ID to use for object
Boto 3 Docs 1.9.249
encryption. All GET and PUT requests for an object protected by AWS KMS
documentation ( will fail if not made via SSL or using SigV4. Documentation on configuring
../../index.html) any of the officially supported AWS SDKs and CLI can be found at
http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-
TABLE OF CONTENTS signature-version
(http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify
Quickstart signature-version)
(../../guide/quickstart.html) SSEKMSEncryptionContext (string) -- Specifies the AWS KMS Encryption
Context to use for object encryption. The value of this header is a base64-
A Sample Tutorial encoded UTF-8 string holding JSON with the encryption context key-value
(../../guide/sqs.html) pairs.
Code Examples RequestPayer (string) -- Confirms that the requester knows that she or
(../../guide/examples.html) he will be charged for the request. Bucket owners need not specify this
parameter in their requests. Documentation on downloading objects
User Guides from requester pays buckets can be found at
(../../guide/index.html) http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Available Services (index.html)
Tagging (string) -- The tag-set for the object. The tag-set must be encoded
ACM (acm.html) as URL Query parameters. (For example, "Key1=Value1")
ObjectLockMode (string) -- The object lock mode that you want to apply
ACMPCA (acm-pca.html)
to this object.
AlexaForBusiness ObjectLockRetainUntilDate (datetime) -- The date and time when you
(alexaforbusiness.html) want this object's object lock to expire.
Amplify (amplify.html) ObjectLockLegalHoldStatus (string) -- The Legal Hold status that you
want to apply to the specified object.
APIGateway
(apigateway.html) Return type
dict
ApiGatewayManagement
Api Returns
(apigatewaymanagement Response Syntax
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'Expiration': 'string',
../../index.html) 'ETag': 'string',
'ServerSideEncryption': 'AES256'|'aws:kms',
'VersionId': 'string',
TABLE OF CONTENTS
'SSECustomerAlgorithm': 'string',
'SSECustomerKeyMD5': 'string',
Quickstart
'SSEKMSKeyId': 'string',
(../../guide/quickstart.html)
'SSEKMSEncryptionContext': 'string',
A Sample Tutorial 'RequestCharged': 'requester'
(../../guide/sqs.html) }
Code Examples
(../../guide/examples.html)
Response Structure
User Guides (dict) --
(../../guide/index.html)
Expiration (string) --
Available Services (index.html)
If the object expiration is configured, this will contain the expiration
ACM (acm.html) date (expiry-date) and rule ID (rule-id). The value of rule-id is URL
ACMPCA (acm-pca.html)
encoded.

AlexaForBusiness
ETag (string) --
(alexaforbusiness.html) Entity tag for the uploaded object.
Amplify (amplify.html) ServerSideEncryption (string) --
APIGateway The Server-side encryption algorithm used when storing this object in
(apigateway.html) S3 (e.g., AES256, aws:kms).
ApiGatewayManagement VersionId (string) --
Api
Version of the object.
(apigatewaymanagement
api.html) SSECustomerAlgorithm (string) --
If server-side encryption with a customer-provided encryption key was
Boto 3 Docs 1.9.249
requested, the response will include this header confirming the
documentation ( encryption algorithm used.
../../index.html)
SSECustomerKeyMD5 (string) --

TABLE OF CONTENTS If server-side encryption with a customer-provided encryption key was


requested, the response will include this header to provide round trip
message integrity verification of the customer-provided encryption key.
Quickstart
(../../guide/quickstart.html) SSEKMSKeyId (string) --
A Sample Tutorial If present, specifies the ID of the AWS Key Management Service (KMS)
(../../guide/sqs.html) master encryption key that was used for the object.
Code Examples SSEKMSEncryptionContext (string) --
(../../guide/examples.html)
If present, specifies the AWS KMS Encryption Context to use for object
User Guides encryption. The value of this header is a base64-encoded UTF-8 string
(../../guide/index.html) holding JSON with the encryption context key-value pairs.

Available Services (index.html) RequestCharged (string) --

ACM (acm.html) If present, indicates that the requester was successfully charged for the
request.
ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html) reload ()
Calls S3.Client.head_object() to update the attributes of the Object resource.
Amplify (amplify.html)
Note that the load and reload methods are the same method and can be used
APIGateway interchangeably.
(apigateway.html)
See also: AWS API Documentation
ApiGatewayManagement (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
Api
Request Syntax
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 object.reload()
documentation (
../../index.html) Returns
None
TABLE OF CONTENTS

Quickstart restore_object (**kwargs)


(../../guide/quickstart.html) Restores an archived copy of an object back into Amazon S3
A Sample Tutorial See also: AWS API Documentation
(../../guide/sqs.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RestoreObject)
Code Examples Request Syntax
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = object.restore_object(
documentation ( VersionId='string',
../../index.html) RestoreRequest={
'Days': 123,
'GlacierJobParameters': {
TABLE OF CONTENTS
'Tier': 'Standard'|'Bulk'|'Expedited'
},
Quickstart
'Type': 'SELECT',
(../../guide/quickstart.html)
'Tier': 'Standard'|'Bulk'|'Expedited',
A Sample Tutorial 'Description': 'string',
(../../guide/sqs.html) 'SelectParameters': {
Code Examples 'InputSerialization': {
(../../guide/examples.html) 'CSV': {
'FileHeaderInfo': 'USE'|'IGNORE'|'NONE',
User Guides
'Comments': 'string',
(../../guide/index.html)
'QuoteEscapeCharacter': 'string',
Available Services (index.html) 'RecordDelimiter': 'string',
'FieldDelimiter': 'string',
ACM (acm.html)
'QuoteCharacter': 'string',
ACMPCA (acm-pca.html) 'AllowQuotedRecordDelimiter': True|False
},
AlexaForBusiness
(alexaforbusiness.html) 'CompressionType': 'NONE'|'GZIP'|'BZIP2',
'JSON': {
Amplify (amplify.html) 'Type': 'DOCUMENT'|'LINES'
APIGateway },
(apigateway.html) 'Parquet': {}

ApiGatewayManagement
},
Api
'ExpressionType': 'SQL',
(apigatewaymanagement
api.html) 'Expression': 'string',
'OutputSerialization': {
Boto 3 Docs 1.9.249
'CSV': {
documentation ( 'QuoteFields': 'ALWAYS'|'ASNEEDED',
../../index.html) 'QuoteEscapeCharacter': 'string',
'RecordDelimiter': 'string',
TABLE OF CONTENTS 'FieldDelimiter': 'string',
'QuoteCharacter': 'string'
Quickstart },
(../../guide/quickstart.html) 'JSON': {
'RecordDelimiter': 'string'
A Sample Tutorial
}
(../../guide/sqs.html)
}
Code Examples },
(../../guide/examples.html) 'OutputLocation': {
User Guides 'S3': {
(../../guide/index.html) 'BucketName': 'string',
'Prefix': 'string',
Available Services (index.html) 'Encryption': {
ACM (acm.html) 'EncryptionType': 'AES256'|'aws:kms',
'KMSKeyId': 'string',
ACMPCA (acm-pca.html)
'KMSContext': 'string'
AlexaForBusiness },
(alexaforbusiness.html) 'CannedACL': 'private'|'public-read'|'public-read-writ
Amplify (amplify.html) 'AccessControlList': [
{
APIGateway 'Grantee': {
(apigateway.html)
'DisplayName': 'string',
ApiGatewayManagement 'EmailAddress': 'string',
Api 'ID': 'string',
(apigatewaymanagement 'Type': 'CanonicalUser'|'AmazonCustomerByE
api.html) 'URI': 'string'
},
Boto 3 Docs 1.9.249
'Permission': 'FULL_CONTROL'|'WRITE'|'WRITE_AC
documentation ( },
../../index.html) ],
'Tagging': {
TABLE OF CONTENTS 'TagSet': [
{
Quickstart 'Key': 'string',
(../../guide/quickstart.html) 'Value': 'string'
},
A Sample Tutorial
]
(../../guide/sqs.html)
},
Code Examples 'UserMetadata': [
(../../guide/examples.html) {
User Guides 'Name': 'string',
(../../guide/index.html) 'Value': 'string'
},
Available Services (index.html) ],
ACM (acm.html) 'StorageClass': 'STANDARD'|'REDUCED_REDUNDANCY'|'STAND
}
ACMPCA (acm-pca.html)
}
AlexaForBusiness },
(alexaforbusiness.html) RequestPayer='requester'
Amplify (amplify.html) )

APIGateway
(apigateway.html)
Parameters
ApiGatewayManagement VersionId (string) --
Api RestoreRequest (dict) --
(apigatewaymanagement Days (integer) --
api.html)
Lifetime of the active copy in days. Do not use with restores that specify
Boto 3 Docs 1.9.249
OutputLocation.
documentation (
GlacierJobParameters (dict) --
../../index.html)
Glacier related parameters pertaining to this job. Do not use with
restores that specify OutputLocation.
TABLE OF CONTENTS
Tier (string) -- [REQUIRED]
Glacier retrieval tier at which the restore will be processed.
Quickstart
(../../guide/quickstart.html) Type (string) --
Type of restore request.
A Sample Tutorial
(../../guide/sqs.html) Tier (string) --
Glacier retrieval tier at which the restore will be processed.
Code Examples
(../../guide/examples.html) Description (string) --
The optional description for the job.
User Guides
(../../guide/index.html) SelectParameters (dict) --
Describes the parameters for Select job types.
Available Services (index.html)
InputSerialization (dict) -- [REQUIRED]
ACM (acm.html) Describes the serialization format of the object.
ACMPCA (acm-pca.html) CSV (dict) --
AlexaForBusiness Describes the serialization of a CSV-encoded object.
(alexaforbusiness.html) FileHeaderInfo (string) --
Amplify (amplify.html) Describes the first line of input. Valid values: None, Ignore, Use.

APIGateway Comments (string) --


(apigateway.html) The single character used to indicate a row should be ignored
when present at the start of a row.
ApiGatewayManagement
Api QuoteEscapeCharacter (string) --
(apigatewaymanagement The single character used for escaping the quote character
api.html) inside an already escaped value.
RecordDelimiter (string) --
Boto 3 Docs 1.9.249
The value used to separate individual records.
documentation (
FieldDelimiter (string) --
../../index.html)
The value used to separate individual fields in a record.

TABLE OF CONTENTS QuoteCharacter (string) --


Value used for escaping where the field delimiter is part of the
value.
Quickstart
(../../guide/quickstart.html) AllowQuotedRecordDelimiter (boolean) --
Specifies that CSV field values may contain quoted record
A Sample Tutorial
delimiters and such records should be allowed. Default value is
(../../guide/sqs.html)
FALSE. Setting this value to TRUE may lower performance.
Code Examples
CompressionType (string) --
(../../guide/examples.html)
Specifies object's compression format. Valid values: NONE, GZIP,
User Guides BZIP2. Default Value: NONE.
(../../guide/index.html)
JSON (dict) --
Available Services (index.html) Specifies JSON as object's input serialization format.

ACM (acm.html) Type (string) --


The type of JSON. Valid values: Document, Lines.
ACMPCA (acm-pca.html)
Parquet (dict) --
AlexaForBusiness Specifies Parquet as object's input serialization format.
(alexaforbusiness.html)
ExpressionType (string) -- [REQUIRED]
Amplify (amplify.html) The type of the provided expression (e.g., SQL).
APIGateway Expression (string) -- [REQUIRED]
(apigateway.html) The expression that is used to query the object.
ApiGatewayManagement OutputSerialization (dict) -- [REQUIRED]
Api Describes how the results of the Select job are serialized.
(apigatewaymanagement
api.html) CSV (dict) --
Describes the serialization of CSV-encoded Select results.
Boto 3 Docs 1.9.249
documentation ( QuoteFields (string) --
Indicates whether or not all output fields should be quoted.
../../index.html)
QuoteEscapeCharacter (string) --
TABLE OF CONTENTS Th single character used for escaping the quote character inside
an already escaped value.
Quickstart RecordDelimiter (string) --
(../../guide/quickstart.html) The value used to separate individual records.
A Sample Tutorial FieldDelimiter (string) --
(../../guide/sqs.html) The value used to separate individual fields in a record.
Code Examples QuoteCharacter (string) --
(../../guide/examples.html) The value used for escaping where the field delimiter is part of
the value.
User Guides
(../../guide/index.html) JSON (dict) --
Specifies JSON as request's output serialization format.
Available Services (index.html)
RecordDelimiter (string) --
ACM (acm.html) The value used to separate individual records in the output.
ACMPCA (acm-pca.html) OutputLocation (dict) --
AlexaForBusiness Describes the location where the restore job's output is stored.
(alexaforbusiness.html) S3 (dict) --
Amplify (amplify.html) Describes an S3 location that will receive the results of the restore
request.
APIGateway
(apigateway.html) BucketName (string) -- [REQUIRED]
The name of the bucket where the restore results will be placed.
ApiGatewayManagement
Api Prefix (string) -- [REQUIRED]
(apigatewaymanagement The prefix that is prepended to the restore results for this request.
api.html) Encryption (dict) --
EncryptionType (string) -- [REQUIRED]
Boto 3 Docs 1.9.249
The server-side encryption algorithm used when storing job
documentation ( results in Amazon S3 (e.g., AES256, aws:kms).
../../index.html)
KMSKeyId (string) --
If the encryption type is aws:kms, this optional value specifies
TABLE OF CONTENTS the AWS KMS key ID to use for encryption of job results.
KMSContext (string) --
Quickstart
If the encryption type is aws:kms, this optional value can be used
(../../guide/quickstart.html)
to specify the encryption context for the restore results.
A Sample Tutorial
CannedACL (string) --
(../../guide/sqs.html)
The canned ACL to apply to the restore results.
Code Examples
AccessControlList (list) --
(../../guide/examples.html)
A list of grants that control access to the staged results.
User Guides
(dict) --
(../../guide/index.html)
Grantee (dict) --
Available Services (index.html) DisplayName (string) --
Screen name of the grantee.
ACM (acm.html)
EmailAddress (string) --
ACMPCA (acm-pca.html) Email address of the grantee.
AlexaForBusiness ID (string) --
(alexaforbusiness.html) The canonical user ID of the grantee.
Amplify (amplify.html) Type (string) -- [REQUIRED]
APIGateway Type of grantee
(apigateway.html) URI (string) --
ApiGatewayManagement URI of the grantee group.
Api Permission (string) --
(apigatewaymanagement Specifies the permission given to the grantee.
api.html)
Tagging (dict) --
Boto 3 Docs 1.9.249
The tag-set that is applied to the restore results.
documentation (
TagSet (list) -- [REQUIRED]
../../index.html)
(dict) --
Key (string) -- [REQUIRED]
TABLE OF CONTENTS Name of the tag.
Value (string) -- [REQUIRED]
Quickstart
Value of the tag.
(../../guide/quickstart.html)
UserMetadata (list) --
A Sample Tutorial
A list of metadata to store with the restore results in S3.
(../../guide/sqs.html)
(dict) --
Code Examples
A metadata key-value pair to store with an object.
(../../guide/examples.html)
Name (string) --
User Guides
Value (string) --
(../../guide/index.html)
StorageClass (string) --
Available Services (index.html) The class of storage used to store the restore results.

ACM (acm.html) RequestPayer (string) -- Confirms that the requester knows that she or
he will be charged for the request. Bucket owners need not specify this
ACMPCA (acm-pca.html) parameter in their requests. Documentation on downloading objects
AlexaForBusiness from requester pays buckets can be found at
(alexaforbusiness.html) http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Amplify (amplify.html)
Return type
APIGateway
dict
(apigateway.html)
Returns
ApiGatewayManagement
Api Response Syntax
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'RequestCharged': 'requester',
../../index.html) 'RestoreOutputPath': 'string'
}

TABLE OF CONTENTS
Response Structure
Quickstart
(dict) --
(../../guide/quickstart.html)
RequestCharged (string) --
A Sample Tutorial
(../../guide/sqs.html) If present, indicates that the requester was successfully charged for the
request.
Code Examples
(../../guide/examples.html) RestoreOutputPath (string) --

User Guides Indicates the path in the provided S3 output location where Select
(../../guide/index.html) results will be restored to.

Available Services (index.html)

ACM (acm.html) upload_file (Filename, ExtraArgs=None, Callback=None, Config=None)


Upload a file to an S3 object.
ACMPCA (acm-pca.html)
Usage:
AlexaForBusiness
(alexaforbusiness.html)
import boto3
Amplify (amplify.html)
s3 = boto3.resource('s3')
APIGateway s3.Object('mybucket', 'hello.txt').upload_file('/tmp/hello.txt')
(apigateway.html)

ApiGatewayManagement Similar behavior as S3Transfer's upload_file() method, except that parameters


Api are capitalized. Detailed examples can be found at S3Transfer's Usage.
(apigatewaymanagement
api.html) Parameters
Filename (str) -- The path to the file to upload.
Boto 3 Docs 1.9.249
ExtraArgs (dict) -- Extra arguments that may be passed to the client
documentation ( operation.
../../index.html) Callback (function) -- A method which takes a number of bytes
transferred to be periodically called during the upload.
TABLE OF CONTENTS Config (boto3.s3.transfer.TransferConfig
(../customizations/s3.html#boto3.s3.transfer.TransferConfig)) -- The
Quickstart transfer configuration to be used when performing the transfer.
(../../guide/quickstart.html)

A Sample Tutorial upload_fileobj (Fileobj, ExtraArgs=None, Callback=None, Config=None)


(../../guide/sqs.html)
Upload a file-like object to this object.
Code Examples
The file-like object must be in binary mode.
(../../guide/examples.html)
This is a managed transfer which will perform a multipart upload in multiple
User Guides threads if necessary.
(../../guide/index.html)
Usage:
Available Services (index.html)

ACM (acm.html) import boto3


ACMPCA (acm-pca.html) s3 = boto3.resource('s3')
bucket = s3.Bucket('mybucket')
AlexaForBusiness
obj = bucket.Object('mykey')
(alexaforbusiness.html)

Amplify (amplify.html) with open('filename', 'rb') as data:


obj.upload_fileobj(data)
APIGateway
(apigateway.html)

ApiGatewayManagement Parameters
Api Fileobj (a file-like object) -- A file-like object to upload. At a minimum, it
(apigatewaymanagement must implement the read method, and must return bytes.
api.html)
ExtraArgs (dict) -- Extra arguments that may be passed to the client
Boto 3 Docs 1.9.249
operation.
documentation ( Callback (function) -- A method which takes a number of bytes
../../index.html) transferred to be periodically called during the upload.
Config (boto3.s3.transfer.TransferConfig
TABLE OF CONTENTS (../customizations/s3.html#boto3.s3.transfer.TransferConfig)) -- The
transfer configuration to be used when performing the upload.
Quickstart
(../../guide/quickstart.html)
Sub-resources
A Sample Tutorial Sub-resources are methods that create a new instance of a child resource. This
(../../guide/sqs.html) resource's identifiers get passed along to the child. For more information about
Code Examples sub-resources refer to the Resources Introduction Guide
(../../guide/examples.html) (../../guide/resources.html#subresources-intro).

User Guides Acl ()


(../../guide/index.html) Creates a ObjectAcl resource.:

Available Services (index.html)


object_acl = object.Acl()
ACM (acm.html)

ACMPCA (acm-pca.html)
Return type
AlexaForBusiness S3.ObjectAcl
(alexaforbusiness.html)
Returns
Amplify (amplify.html)
A ObjectAcl resource
APIGateway
(apigateway.html)
Bucket ()
ApiGatewayManagement
Api Creates a Bucket resource.:
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 bucket = object.Bucket()
documentation (
../../index.html) Return type
S3.Bucket
TABLE OF CONTENTS
Returns
Quickstart A Bucket resource
(../../guide/quickstart.html)

A Sample Tutorial MultipartUpload (id)


(../../guide/sqs.html)
Creates a MultipartUpload resource.:
Code Examples
(../../guide/examples.html)
multipart_upload = object.MultipartUpload('id')
User Guides
(../../guide/index.html)
Parameters
Available Services (index.html) id (string) -- The MultipartUpload's id identifier. This must be set.
ACM (acm.html) Return type
ACMPCA (acm-pca.html) S3.MultipartUpload

AlexaForBusiness Returns
(alexaforbusiness.html) A MultipartUpload resource

Amplify (amplify.html)

APIGateway Version (id)


(apigateway.html) Creates a ObjectVersion resource.:
ApiGatewayManagement
Api object_version = object.Version('id')
(apigatewaymanagement
api.html)
Parameters
Boto 3 Docs 1.9.249
id (string) -- The Version's id identifier. This must be set.
documentation (
../../index.html) Return type
S3.ObjectVersion

TABLE OF CONTENTS Returns


A ObjectVersion resource
Quickstart
(../../guide/quickstart.html)
Waiters
A Sample Tutorial
Waiters provide an interface to wait for a resource to reach a specific state. For
(../../guide/sqs.html)
more information about waiters refer to the Resources Introduction Guide
Code Examples (../../guide/resources.html#waiters-intro).
(../../guide/examples.html)
wait_until_exists (**kwargs)
User Guides Waits until this Object is exists. This method calls
(../../guide/index.html) S3.Waiter.object_exists.wait() which polls. S3.Client.head_object() every
Available Services (index.html) 5 seconds until a successful state is reached. An error is returned after 20 failed
checks.
ACM (acm.html)
See also: AWS API Documentation
ACMPCA (acm-pca.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObject)
AlexaForBusiness Request Syntax
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 object.wait_until_exists(
documentation ( IfMatch='string',
../../index.html) IfModifiedSince=datetime(2015, 1, 1),
IfNoneMatch='string',
IfUnmodifiedSince=datetime(2015, 1, 1),
TABLE OF CONTENTS
Range='string',
VersionId='string',
Quickstart
SSECustomerAlgorithm='string',
(../../guide/quickstart.html)
SSECustomerKey='string',
A Sample Tutorial RequestPayer='requester',
(../../guide/sqs.html) PartNumber=123
Code Examples )
(../../guide/examples.html)

User Guides Parameters


(../../guide/index.html) IfMatch (string) -- Return the object only if its entity tag (ETag) is the same
as the one specified, otherwise return a 412 (precondition failed).
Available Services (index.html)
IfModifiedSince (datetime) -- Return the object only if it has been
ACM (acm.html) modified since the specified time, otherwise return a 304 (not modified).
IfNoneMatch (string) -- Return the object only if its entity tag (ETag) is
ACMPCA (acm-pca.html)
different from the one specified, otherwise return a 304 (not modified).
AlexaForBusiness IfUnmodifiedSince (datetime) -- Return the object only if it has not been
(alexaforbusiness.html) modified since the specified time, otherwise return a 412 (precondition
failed).
Amplify (amplify.html)
Range (string) -- Downloads the specified range bytes of an object. For
APIGateway more information about the HTTP Range header, go to
(apigateway.html) http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35).
ApiGatewayManagement
VersionId (string) -- VersionId used to reference a specific version of the
Api
object.
(apigatewaymanagement
api.html)
SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
Boto 3 Docs 1.9.249
encrypting the object (e.g., AES256).
documentation ( SSECustomerKey (string) -- Specifies the customer-provided encryption
../../index.html) key for Amazon S3 to use in encrypting data. This value is used to store
the object and then it is discarded; Amazon does not store the encryption
TABLE OF CONTENTS key. The key must be appropriate for use with the algorithm specified in
the x-amz-server-side-encryption-customer-algorithm header.
Quickstart SSECustomerKeyMD5 (string) --
(../../guide/quickstart.html) 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
A Sample Tutorial ensure the encryption key was transmitted without error.
(../../guide/sqs.html)

Code Examples
Please note that this parameter is automatically populated if it is not
(../../guide/examples.html)
provided. Including this parameter is not required
User Guides
(../../guide/index.html)
RequestPayer (string) -- Confirms that the requester knows that she or
Available Services (index.html) he will be charged for the request. Bucket owners need not specify this
parameter in their requests. Documentation on downloading objects
ACM (acm.html)
from requester pays buckets can be found at
ACMPCA (acm-pca.html) http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
AlexaForBusiness
PartNumber (integer) -- Part number of the object being read. This is a
(alexaforbusiness.html)
positive integer between 1 and 10,000. Effectively performs a 'ranged'
Amplify (amplify.html) HEAD request for the part specified. Useful querying about the size of the
part and the number of parts in this object.
APIGateway
(apigateway.html) Returns

ApiGatewayManagement None
Api
(apigatewaymanagement
api.html) wait_until_not_exists (**kwargs)
Waits until this Object is not exists. This method calls
Boto 3 Docs 1.9.249
S3.Waiter.object_not_exists.wait() which polls. S3.Client.head_object()
documentation ( every 5 seconds until a successful state is reached. An error is returned after 20
../../index.html) failed checks.
See also: AWS API Documentation
TABLE OF CONTENTS (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObject)
Request Syntax
Quickstart
(../../guide/quickstart.html)

A Sample Tutorial object.wait_until_not_exists(


(../../guide/sqs.html) IfMatch='string',
IfModifiedSince=datetime(2015, 1, 1),
Code Examples
IfNoneMatch='string',
(../../guide/examples.html)
IfUnmodifiedSince=datetime(2015, 1, 1),
User Guides Range='string',
(../../guide/index.html) VersionId='string',
SSECustomerAlgorithm='string',
Available Services (index.html) SSECustomerKey='string',
ACM (acm.html) RequestPayer='requester',
PartNumber=123
ACMPCA (acm-pca.html)
)
AlexaForBusiness
(alexaforbusiness.html)
Parameters
Amplify (amplify.html)
IfMatch (string) -- Return the object only if its entity tag (ETag) is the same
APIGateway as the one specified, otherwise return a 412 (precondition failed).
(apigateway.html) IfModifiedSince (datetime) -- Return the object only if it has been
modified since the specified time, otherwise return a 304 (not modified).
ApiGatewayManagement
IfNoneMatch (string) -- Return the object only if its entity tag (ETag) is
Api
different from the one specified, otherwise return a 304 (not modified).
(apigatewaymanagement
api.html)
IfUnmodifiedSince (datetime) -- Return the object only if it has not been
Boto 3 Docs 1.9.249
modified since the specified time, otherwise return a 412 (precondition
documentation ( failed).
../../index.html) Range (string) -- Downloads the specified range bytes of an object. For
more information about the HTTP Range header, go to
TABLE OF CONTENTS http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35).
Quickstart VersionId (string) -- VersionId used to reference a specific version of the
(../../guide/quickstart.html) object.
SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
A Sample Tutorial encrypting the object (e.g., AES256).
(../../guide/sqs.html) SSECustomerKey (string) -- Specifies the customer-provided encryption
Code Examples key for Amazon S3 to use in encrypting data. This value is used to store
(../../guide/examples.html) the object and then it is discarded; Amazon does not store the encryption
key. The key must be appropriate for use with the algorithm specified in
User Guides the x-amz-server-side-encryption-customer-algorithm header.
(../../guide/index.html) SSECustomerKeyMD5 (string) --
Specifies the 128-bit MD5 digest of the encryption key according to RFC
Available Services (index.html)
1321. Amazon S3 uses this header for a message integrity check to
ACM (acm.html) ensure the encryption key was transmitted without error.
ACMPCA (acm-pca.html)

AlexaForBusiness Please note that this parameter is automatically populated if it is not


(alexaforbusiness.html) provided. Including this parameter is not required

Amplify (amplify.html)
RequestPayer (string) -- Confirms that the requester knows that she or
APIGateway
he will be charged for the request. Bucket owners need not specify this
(apigateway.html)
parameter in their requests. Documentation on downloading objects
ApiGatewayManagement from requester pays buckets can be found at
Api http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(apigatewaymanagement (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
api.html)
PartNumber (integer) -- Part number of the object being read. This is a
Boto 3 Docs 1.9.249
positive integer between 1 and 10,000. Effectively performs a 'ranged'
documentation ( HEAD request for the part specified. Useful querying about the size of the
../../index.html) part and the number of parts in this object.
Returns
TABLE OF CONTENTS
None

Quickstart
(../../guide/quickstart.html)

A Sample Tutorial ObjectAcl


(../../guide/sqs.html)

Code Examples class S3. ObjectAcl (bucket_name, object_key)


(../../guide/examples.html) A resource representing an Amazon Simple Storage Service (S3) ObjectAcl:
User Guides
(../../guide/index.html) import boto3

Available Services (index.html)


s3 = boto3.resource('s3')
ACM (acm.html) object_acl = s3.ObjectAcl('bucket_name','object_key')
ACMPCA (acm-pca.html)

AlexaForBusiness Parameters
(alexaforbusiness.html) bucket_name (string) -- The ObjectAcl's bucket_name identifier. This must be
Amplify (amplify.html)
set.
object_key (string) -- The ObjectAcl's object_key identifier. This must be set.
APIGateway
(apigateway.html) These are the resource's available identifiers:
ApiGatewayManagement bucket_name
Api object_key
(apigatewaymanagement
api.html)
These are the resource's available attributes:
grants
Boto 3 Docs 1.9.249
owner
documentation ( request_charged
../../index.html)
These are the resource's available actions:

TABLE OF CONTENTS get_available_subresources()


load()
Quickstart put()
(../../guide/quickstart.html) reload()

A Sample Tutorial These are the resource's available sub-resources:


(../../guide/sqs.html)
Object()
Code Examples
Identifiers
(../../guide/examples.html)
Identifiers are properties of a resource that are set upon instantation of the
User Guides resource. For more information about identifiers refer to the Resources
(../../guide/index.html) Introduction Guide (../../guide/resources.html#identifiers-attributes-intro).

Available Services (index.html) bucket_name


(string) The ObjectAcl's bucket_name identifier. This must be set.
ACM (acm.html)

ACMPCA (acm-pca.html) object_key


(string) The ObjectAcl's object_key identifier. This must be set.
AlexaForBusiness
(alexaforbusiness.html)
Attributes
Amplify (amplify.html) Attributes provide access to the properties of a resource. Attributes are lazy-loaded
APIGateway the first time one is accessed via the load() method. For more information about
(apigateway.html) attributes refer to the Resources Introduction Guide
(../../guide/resources.html#identifiers-attributes-intro).
ApiGatewayManagement
Api grants
(apigatewaymanagement (list) --
api.html)
A list of grants.
(dict) --
Boto 3 Docs 1.9.249
documentation ( Grantee (dict) --

../../index.html) DisplayName (string) --

Screen name of the grantee.


TABLE OF CONTENTS
EmailAddress (string) --

Quickstart Email address of the grantee.


(../../guide/quickstart.html)
ID (string) --
A Sample Tutorial
The canonical user ID of the grantee.
(../../guide/sqs.html)
Type (string) --
Code Examples
(../../guide/examples.html) Type of grantee

User Guides URI (string) --


(../../guide/index.html) URI of the grantee group.

Available Services (index.html) Permission (string) --

ACM (acm.html) Specifies the permission given to the grantee.

ACMPCA (acm-pca.html)
owner
AlexaForBusiness (dict) --
(alexaforbusiness.html) DisplayName (string) --
Amplify (amplify.html) ID (string) --

APIGateway request_charged
(apigateway.html) (string) --
ApiGatewayManagement If present, indicates that the requester was successfully charged for the
Api request.
(apigatewaymanagement
api.html) Actions
Actions call operations on resources. They may automatically handle the passing in
Boto 3 Docs 1.9.249
of arguments set from identifiers and some attributes. For more information about
documentation ( actions refer to the Resources Introduction Guide
../../index.html) (../../guide/resources.html#actions-intro).

get_available_subresources ()
TABLE OF CONTENTS
Returns a list of all the available sub-resources for this Resource.

Quickstart Returns
(../../guide/quickstart.html) A list containing the name of each sub-resource for this resource
A Sample Tutorial Return type
(../../guide/sqs.html) list of str
Code Examples
(../../guide/examples.html)
load ()
User Guides
Calls S3.Client.get_object_acl() to update the attributes of the ObjectAcl
(../../guide/index.html)
resource. Note that the load and reload methods are the same method and can
Available Services (index.html) be used interchangeably.

ACM (acm.html) See also: AWS API Documentation


(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
ACMPCA (acm-pca.html)
Request Syntax
AlexaForBusiness
(alexaforbusiness.html)
object_acl.load()
Amplify (amplify.html)

APIGateway
Returns
(apigateway.html)
None
ApiGatewayManagement
Api
(apigatewaymanagement put (**kwargs)
api.html)
uses the acl subresource to set the access control list (ACL) permissions for an
Boto 3 Docs 1.9.249
object that already exists in a bucket
documentation (
See also: AWS API Documentation
../../index.html)
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectAcl)

TABLE OF CONTENTS Request Syntax

Quickstart
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = object_acl.put(
documentation ( ACL='private'|'public-read'|'public-read-write'|'authenticated-rea
../../index.html) AccessControlPolicy={
'Grants': [
{
TABLE OF CONTENTS
'Grantee': {
'DisplayName': 'string',
Quickstart
'EmailAddress': 'string',
(../../guide/quickstart.html)
'ID': 'string',
A Sample Tutorial 'Type': 'CanonicalUser'|'AmazonCustomerByEmail'|'G
(../../guide/sqs.html) 'URI': 'string'
Code Examples },
(../../guide/examples.html) 'Permission': 'FULL_CONTROL'|'WRITE'|'WRITE_ACP'|'READ
},
User Guides
],
(../../guide/index.html)
'Owner': {
Available Services (index.html) 'DisplayName': 'string',
'ID': 'string'
ACM (acm.html)
}
ACMPCA (acm-pca.html) },
GrantFullControl='string',
AlexaForBusiness
(alexaforbusiness.html) GrantRead='string',
GrantReadACP='string',
Amplify (amplify.html) GrantWrite='string',
APIGateway GrantWriteACP='string',
(apigateway.html) RequestPayer='requester',
VersionId='string'
ApiGatewayManagement
)
Api
(apigatewaymanagement
api.html)
Parameters
Boto 3 Docs 1.9.249
ACL (string) -- The canned ACL to apply to the object.
documentation (
AccessControlPolicy (dict) --
../../index.html) Contains the elements that set the ACL permissions for an object per
grantee.
TABLE OF CONTENTS
Grants (list) --
A list of grants.
Quickstart
(../../guide/quickstart.html) (dict) --
Grantee (dict) --
A Sample Tutorial DisplayName (string) --
(../../guide/sqs.html) Screen name of the grantee.
Code Examples EmailAddress (string) --
(../../guide/examples.html) Email address of the grantee.
User Guides ID (string) --
(../../guide/index.html) The canonical user ID of the grantee.

Available Services (index.html) Type (string) -- [REQUIRED]


Type of grantee
ACM (acm.html)
URI (string) --
ACMPCA (acm-pca.html)
URI of the grantee group.
AlexaForBusiness
Permission (string) --
(alexaforbusiness.html)
Specifies the permission given to the grantee.
Amplify (amplify.html)
Owner (dict) --
APIGateway Container for the bucket owner's display name and ID.
(apigateway.html)
DisplayName (string) --
ApiGatewayManagement ID (string) --
Api GrantFullControl (string) -- Allows grantee the read, write, read ACP, and
(apigatewaymanagement write ACP permissions on the bucket.
api.html) GrantRead (string) -- Allows grantee to list the objects in the bucket.
GrantReadACP (string) -- Allows grantee to read the bucket ACL.
Boto 3 Docs 1.9.249
GrantWrite (string) -- Allows grantee to create, overwrite, and delete any
documentation ( object in the bucket.
../../index.html) GrantWriteACP (string) -- Allows grantee to write the ACL for the
applicable bucket.
TABLE OF CONTENTS RequestPayer (string) -- Confirms that the requester knows that she or
he will be charged for the request. Bucket owners need not specify this
Quickstart parameter in their requests. Documentation on downloading objects
(../../guide/quickstart.html) from requester pays buckets can be found at
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
A Sample Tutorial (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(../../guide/sqs.html) VersionId (string) -- VersionId used to reference a specific version of the
Code Examples object.
(../../guide/examples.html) Return type
User Guides dict
(../../guide/index.html) Returns
Available Services (index.html) Response Syntax
ACM (acm.html)
{
ACMPCA (acm-pca.html)
'RequestCharged': 'requester'
AlexaForBusiness }
(alexaforbusiness.html)

Amplify (amplify.html)
Response Structure
APIGateway
(dict) --
(apigateway.html)
RequestCharged (string) --
ApiGatewayManagement
Api If present, indicates that the requester was successfully charged for the
(apigatewaymanagement request.
api.html)
Boto 3 Docs 1.9.249 reload ()

documentation ( Calls S3.Client.get_object_acl() to update the attributes of the ObjectAcl


resource. Note that the load and reload methods are the same method and can
../../index.html)
be used interchangeably.

TABLE OF CONTENTS See also: AWS API Documentation


(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/None)
Quickstart Request Syntax
(../../guide/quickstart.html)

A Sample Tutorial object_acl.reload()


(../../guide/sqs.html)

Code Examples Returns


(../../guide/examples.html)
None
User Guides
(../../guide/index.html)
Sub-resources
Available Services (index.html) Sub-resources are methods that create a new instance of a child resource. This
resource's identifiers get passed along to the child. For more information about
ACM (acm.html)
sub-resources refer to the Resources Introduction Guide
ACMPCA (acm-pca.html) (../../guide/resources.html#subresources-intro).
AlexaForBusiness Object ()
(alexaforbusiness.html)
Creates a Object resource.:
Amplify (amplify.html)

APIGateway object = object_acl.Object()


(apigateway.html)

ApiGatewayManagement Return type


Api
S3.Object
(apigatewaymanagement
api.html) Returns
A Object resource
Boto 3 Docs 1.9.249
documentation (
../../index.html)
ObjectSummary
TABLE OF CONTENTS

class S3. ObjectSummary (bucket_name, key)


Quickstart
A resource representing an Amazon Simple Storage Service (S3) ObjectSummary:
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html) import boto3

Code Examples s3 = boto3.resource('s3')


(../../guide/examples.html)
object_summary = s3.ObjectSummary('bucket_name','key')
User Guides
(../../guide/index.html)
Parameters
Available Services (index.html) bucket_name (string) -- The ObjectSummary's bucket_name identifier. This
must be set.
ACM (acm.html)
key (string) -- The ObjectSummary's key identifier. This must be set.
ACMPCA (acm-pca.html)
These are the resource's available identifiers:
AlexaForBusiness
(alexaforbusiness.html) bucket_name
key
Amplify (amplify.html)
These are the resource's available attributes:
APIGateway
(apigateway.html) e_tag
last_modified
ApiGatewayManagement
owner
Api
size
(apigatewaymanagement
api.html) storage_class
These are the resource's available actions:
Boto 3 Docs 1.9.249
documentation ( copy_from()
delete()
../../index.html)
get()
get_available_subresources()
TABLE OF CONTENTS
initiate_multipart_upload()
load()
Quickstart
put()
(../../guide/quickstart.html)
restore_object()
A Sample Tutorial
These are the resource's available sub-resources:
(../../guide/sqs.html)
Acl()
Code Examples
Bucket()
(../../guide/examples.html)
MultipartUpload()
User Guides Object()
(../../guide/index.html) Version()

Available Services (index.html) These are the resource's available waiters:

ACM (acm.html) wait_until_exists()


wait_until_not_exists()
ACMPCA (acm-pca.html)
Identifiers
AlexaForBusiness
Identifiers are properties of a resource that are set upon instantation of the
(alexaforbusiness.html)
resource. For more information about identifiers refer to the Resources
Amplify (amplify.html) Introduction Guide (../../guide/resources.html#identifiers-attributes-intro).
APIGateway bucket_name
(apigateway.html)
(string) The ObjectSummary's bucket_name identifier. This must be set.
ApiGatewayManagement
Api key
(apigatewaymanagement (string) The ObjectSummary's key identifier. This must be set.
api.html)
Attributes
Boto 3 Docs 1.9.249
Attributes provide access to the properties of a resource. Attributes are lazy-loaded
documentation ( the first time one is accessed via the load() method. For more information about
../../index.html) attributes refer to the Resources Introduction Guide
(../../guide/resources.html#identifiers-attributes-intro).
TABLE OF CONTENTS
e_tag
(string) --
Quickstart
(../../guide/quickstart.html)
last_modified
A Sample Tutorial (datetime) --
(../../guide/sqs.html)
owner
Code Examples
(../../guide/examples.html) (dict) --
DisplayName (string) --
User Guides ID (string) --
(../../guide/index.html)
size
Available Services (index.html)
(integer) --
ACM (acm.html)
storage_class
ACMPCA (acm-pca.html)
(string) --
AlexaForBusiness
(alexaforbusiness.html) The class of storage used to store the object.

Amplify (amplify.html) Actions


APIGateway Actions call operations on resources. They may automatically handle the passing in
(apigateway.html) of arguments set from identifiers and some attributes. For more information about
actions refer to the Resources Introduction Guide
ApiGatewayManagement
(../../guide/resources.html#actions-intro).
Api
(apigatewaymanagement copy_from (**kwargs)
api.html) Creates a copy of an object that is already stored in Amazon S3.
See also: AWS API Documentation
Boto 3 Docs 1.9.249
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CopyObject)
documentation (
Request Syntax
../../index.html)

TABLE OF CONTENTS

Quickstart
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = object_summary.copy_from(
documentation ( ACL='private'|'public-read'|'public-read-write'|'authenticated-rea
../../index.html) CacheControl='string',
ContentDisposition='string',
ContentEncoding='string',
TABLE OF CONTENTS
ContentLanguage='string',
ContentType='string',
Quickstart
CopySource='string' or {'Bucket': 'string', 'Key': 'string', 'Vers
(../../guide/quickstart.html)
CopySourceIfMatch='string',
A Sample Tutorial CopySourceIfModifiedSince=datetime(2015, 1, 1),
(../../guide/sqs.html) CopySourceIfNoneMatch='string',
Code Examples CopySourceIfUnmodifiedSince=datetime(2015, 1, 1),
(../../guide/examples.html) Expires=datetime(2015, 1, 1),
GrantFullControl='string',
User Guides
GrantRead='string',
(../../guide/index.html)
GrantReadACP='string',
Available Services (index.html) GrantWriteACP='string',
Metadata={
ACM (acm.html)
'string': 'string'
ACMPCA (acm-pca.html) },
MetadataDirective='COPY'|'REPLACE',
AlexaForBusiness
(alexaforbusiness.html) TaggingDirective='COPY'|'REPLACE',
ServerSideEncryption='AES256'|'aws:kms',
Amplify (amplify.html) StorageClass='STANDARD'|'REDUCED_REDUNDANCY'|'STANDARD_IA'|'ONEZON
APIGateway WebsiteRedirectLocation='string',
(apigateway.html) SSECustomerAlgorithm='string',
SSECustomerKey='string',
ApiGatewayManagement
SSEKMSKeyId='string',
Api
SSEKMSEncryptionContext='string',
(apigatewaymanagement
api.html) CopySourceSSECustomerAlgorithm='string',
CopySourceSSECustomerKey='string',
Boto 3 Docs 1.9.249
RequestPayer='requester',
documentation ( Tagging='string',
../../index.html) ObjectLockMode='GOVERNANCE'|'COMPLIANCE',
ObjectLockRetainUntilDate=datetime(2015, 1, 1),
TABLE OF CONTENTS ObjectLockLegalHoldStatus='ON'|'OFF'
)
Quickstart
(../../guide/quickstart.html)

A Sample Tutorial Parameters


(../../guide/sqs.html) ACL (string) -- The canned ACL to apply to the object.
CacheControl (string) -- Specifies caching behavior along the
Code Examples
request/reply chain.
(../../guide/examples.html)
ContentDisposition (string) -- Specifies presentational information for
User Guides the object.
(../../guide/index.html) ContentEncoding (string) -- Specifies what content encodings have been
applied to the object and thus what decoding mechanisms must be
Available Services (index.html) applied to obtain the media-type referenced by the Content-Type header
ACM (acm.html) field.
ContentLanguage (string) -- The language the content is in.
ACMPCA (acm-pca.html)
ContentType (string) -- A standard MIME type describing the format of
AlexaForBusiness the object data.
(alexaforbusiness.html) CopySource (str or dict) -- [REQUIRED] The name of the source bucket,
key name of the source object, and optional version ID of the source
Amplify (amplify.html)
object. You can either provide this value as a string or a dictionary. The
APIGateway string form is {bucket}/{key} or {bucket}/{key}?versionId={versionId} if
(apigateway.html) you want to copy a specific version. You can also provide this value as a
dictionary. The dictionary format is recommended over the string format
ApiGatewayManagement
because it is more explicit. The dictionary format is: {'Bucket': 'bucket',
Api
'Key': 'key', 'VersionId': 'id'}. Note that the VersionId key is optional and
(apigatewaymanagement
may be omitted.
api.html)
CopySourceIfMatch (string) -- Copies the object if its entity tag (ETag)
Boto 3 Docs 1.9.249
matches the specified tag.
documentation ( CopySourceIfModifiedSince (datetime) -- Copies the object if it has been
../../index.html) modified since the specified time.
CopySourceIfNoneMatch (string) -- Copies the object if its entity tag
TABLE OF CONTENTS (ETag) is different than the specified ETag.
CopySourceIfUnmodifiedSince (datetime) -- Copies the object if it hasn't
Quickstart been modified since the specified time.
(../../guide/quickstart.html) Expires (datetime) -- The date and time at which the object is no longer
cacheable.
A Sample Tutorial GrantFullControl (string) -- Gives the grantee READ, READ_ACP, and
(../../guide/sqs.html) WRITE_ACP permissions on the object.
Code Examples GrantRead (string) -- Allows grantee to read the object data and its
(../../guide/examples.html) metadata.
GrantReadACP (string) -- Allows grantee to read the object ACL.
User Guides GrantWriteACP (string) -- Allows grantee to write the ACL for the
(../../guide/index.html) applicable object.
Metadata (dict) --
Available Services (index.html)
A map of metadata to store with the object in S3.
ACM (acm.html)
(string) --
ACMPCA (acm-pca.html) (string) --
MetadataDirective (string) -- Specifies whether the metadata is copied
AlexaForBusiness
from the source object or replaced with metadata provided in the
(alexaforbusiness.html)
request.
Amplify (amplify.html) TaggingDirective (string) -- Specifies whether the object tag-set are
APIGateway copied from the source object or replaced with tag-set provided in the
(apigateway.html) request.
ServerSideEncryption (string) -- The Server-side encryption algorithm
ApiGatewayManagement used when storing this object in S3 (e.g., AES256, aws:kms).
Api StorageClass (string) -- The type of storage to use for the object. Defaults
(apigatewaymanagement to 'STANDARD'.
api.html)
WebsiteRedirectLocation (string) -- If the bucket is configured as a
Boto 3 Docs 1.9.249
website, redirects requests for this object to another object in the same
documentation ( bucket or to an external URL. Amazon S3 stores the value of this header
../../index.html) in the object metadata.
SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
TABLE OF CONTENTS encrypting the object (e.g., AES256).
SSECustomerKey (string) -- Specifies the customer-provided encryption
Quickstart key for Amazon S3 to use in encrypting data. This value is used to store
(../../guide/quickstart.html) the object and then it is discarded; Amazon does not store the encryption
key. The key must be appropriate for use with the algorithm specified in
A Sample Tutorial the x-amz-server-side-encryption-customer-algorithm header.
(../../guide/sqs.html) SSECustomerKeyMD5 (string) --
Code Examples Specifies the 128-bit MD5 digest of the encryption key according to RFC
(../../guide/examples.html) 1321. Amazon S3 uses this header for a message integrity check to
ensure the encryption key was transmitted without error.
User Guides
(../../guide/index.html)
Please note that this parameter is automatically populated if it is not
Available Services (index.html) provided. Including this parameter is not required
ACM (acm.html)

ACMPCA (acm-pca.html) SSEKMSKeyId (string) -- Specifies the AWS KMS key ID to use for object
encryption. All GET and PUT requests for an object protected by AWS KMS
AlexaForBusiness
will fail if not made via SSL or using SigV4. Documentation on configuring
(alexaforbusiness.html)
any of the officially supported AWS SDKs and CLI can be found at
Amplify (amplify.html) http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-
signature-version
APIGateway
(http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify
(apigateway.html)
signature-version)
ApiGatewayManagement SSEKMSEncryptionContext (string) -- Specifies the AWS KMS Encryption
Api Context to use for object encryption. The value of this header is a base64-
(apigatewaymanagement encoded UTF-8 string holding JSON with the encryption context key-value
api.html) pairs.
CopySourceSSECustomerAlgorithm (string) -- Specifies the algorithm to
Boto 3 Docs 1.9.249
use when decrypting the source object (e.g., AES256).
documentation ( CopySourceSSECustomerKey (string) -- Specifies the customer-provided
../../index.html) 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
TABLE OF CONTENTS the source object was created.
CopySourceSSECustomerKeyMD5 (string) --
Quickstart Specifies the 128-bit MD5 digest of the encryption key according to RFC
(../../guide/quickstart.html) 1321. Amazon S3 uses this header for a message integrity check to
ensure the encryption key was transmitted without error.
A Sample Tutorial
(../../guide/sqs.html)
Please note that this parameter is automatically populated if it is not
Code Examples
provided. Including this parameter is not required
(../../guide/examples.html)

User Guides
RequestPayer (string) -- Confirms that the requester knows that she or
(../../guide/index.html)
he will be charged for the request. Bucket owners need not specify this
Available Services (index.html) parameter in their requests. Documentation on downloading objects
from requester pays buckets can be found at
ACM (acm.html)
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
ACMPCA (acm-pca.html) (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Tagging (string) -- The tag-set for the object destination object this value
AlexaForBusiness
must be used in conjunction with the TaggingDirective. The tag-set must
(alexaforbusiness.html)
be encoded as URL Query parameters
Amplify (amplify.html) ObjectLockMode (string) -- The object lock mode that you want to apply
to the copied object.
APIGateway
ObjectLockRetainUntilDate (datetime) -- The date and time when you
(apigateway.html)
want the copied object's object lock to expire.
ApiGatewayManagement ObjectLockLegalHoldStatus (string) -- Specifies whether you want to
Api apply a Legal Hold to the copied object.
(apigatewaymanagement
Return type
api.html)
dict
Boto 3 Docs 1.9.249
documentation ( Returns

../../index.html) Response Syntax

TABLE OF CONTENTS {
'CopyObjectResult': {
Quickstart 'ETag': 'string',
(../../guide/quickstart.html) 'LastModified': datetime(2015, 1, 1)
A Sample Tutorial },
(../../guide/sqs.html) 'Expiration': 'string',
'CopySourceVersionId': 'string',
Code Examples
'VersionId': 'string',
(../../guide/examples.html)
'ServerSideEncryption': 'AES256'|'aws:kms',
User Guides 'SSECustomerAlgorithm': 'string',
(../../guide/index.html) 'SSECustomerKeyMD5': 'string',
'SSEKMSKeyId': 'string',
Available Services (index.html)
'SSEKMSEncryptionContext': 'string',
ACM (acm.html) 'RequestCharged': 'requester'
}
ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html) Response Structure

Amplify (amplify.html) (dict) --

APIGateway CopyObjectResult (dict) --


(apigateway.html) ETag (string) --
ApiGatewayManagement LastModified (datetime) --
Api Expiration (string) --
(apigatewaymanagement If the object expiration is configured, the response includes this
api.html) header.
CopySourceVersionId (string) --
Boto 3 Docs 1.9.249
documentation ( VersionId (string) --

../../index.html) Version ID of the newly created copy.

ServerSideEncryption (string) --
TABLE OF CONTENTS
The Server-side encryption algorithm used when storing this object in
S3 (e.g., AES256, aws:kms).
Quickstart
(../../guide/quickstart.html) SSECustomerAlgorithm (string) --

A Sample Tutorial If server-side encryption with a customer-provided encryption key was


(../../guide/sqs.html) requested, the response will include this header confirming the
encryption algorithm used.
Code Examples
(../../guide/examples.html) SSECustomerKeyMD5 (string) --

User Guides If server-side encryption with a customer-provided encryption key was


(../../guide/index.html) requested, the response will include this header to provide round trip
message integrity verification of the customer-provided encryption key.
Available Services (index.html)
SSEKMSKeyId (string) --
ACM (acm.html)
If present, specifies the ID of the AWS Key Management Service (KMS)
ACMPCA (acm-pca.html) master encryption key that was used for the object.
AlexaForBusiness SSEKMSEncryptionContext (string) --
(alexaforbusiness.html)
If present, specifies the AWS KMS Encryption Context to use for object
Amplify (amplify.html) encryption. The value of this header is a base64-encoded UTF-8 string
APIGateway holding JSON with the encryption context key-value pairs.
(apigateway.html) RequestCharged (string) --
ApiGatewayManagement If present, indicates that the requester was successfully charged for the
Api request.
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 delete (**kwargs)

documentation ( 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
../../index.html)
version, Amazon S3 does not remove any objects.

TABLE OF CONTENTS
See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObject)

Quickstart Request Syntax


(../../guide/quickstart.html)

A Sample Tutorial response = object_summary.delete(


(../../guide/sqs.html) MFA='string',
VersionId='string',
Code Examples
(../../guide/examples.html) RequestPayer='requester',
BypassGovernanceRetention=True|False
User Guides )
(../../guide/index.html)

Available Services (index.html) Parameters


ACM (acm.html) MFA (string) -- The concatenation of the authentication device's serial
number, a space, and the value that is displayed on your authentication
ACMPCA (acm-pca.html)
device.
AlexaForBusiness VersionId (string) -- VersionId used to reference a specific version of the
(alexaforbusiness.html) object.
RequestPayer (string) -- Confirms that the requester knows that she or
Amplify (amplify.html)
he will be charged for the request. Bucket owners need not specify this
APIGateway parameter in their requests. Documentation on downloading objects
(apigateway.html) from requester pays buckets can be found at
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
ApiGatewayManagement
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Api
BypassGovernanceRetention (boolean) -- Indicates whether Amazon S3
(apigatewaymanagement
object lock should bypass governance-mode restrictions to process this
api.html)
operation.
Boto 3 Docs 1.9.249
documentation ( Return type

../../index.html) dict

Returns
TABLE OF CONTENTS
Response Syntax

Quickstart
(../../guide/quickstart.html) {
'DeleteMarker': True|False,
A Sample Tutorial 'VersionId': 'string',
(../../guide/sqs.html)
'RequestCharged': 'requester'
Code Examples }
(../../guide/examples.html)

User Guides Response Structure


(../../guide/index.html)
(dict) --
Available Services (index.html) DeleteMarker (boolean) --
ACM (acm.html) Specifies whether the versioned object that was permanently deleted
ACMPCA (acm-pca.html) was (true) or was not (false) a delete marker.

AlexaForBusiness VersionId (string) --


(alexaforbusiness.html) Returns the version ID of the delete marker created as a result of the
Amplify (amplify.html) DELETE operation.

APIGateway RequestCharged (string) --


(apigateway.html) If present, indicates that the requester was successfully charged for the
ApiGatewayManagement request.
Api
(apigatewaymanagement
api.html) get (**kwargs)
Retrieves objects from Amazon S3.
Boto 3 Docs 1.9.249
documentation ( See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObject)
../../index.html)
Request Syntax
TABLE OF CONTENTS
response = object_summary.get(
Quickstart IfMatch='string',
(../../guide/quickstart.html) IfModifiedSince=datetime(2015, 1, 1),
A Sample Tutorial IfNoneMatch='string',
(../../guide/sqs.html) IfUnmodifiedSince=datetime(2015, 1, 1),
Range='string',
Code Examples
ResponseCacheControl='string',
(../../guide/examples.html)
ResponseContentDisposition='string',
User Guides ResponseContentEncoding='string',
(../../guide/index.html) ResponseContentLanguage='string',
ResponseContentType='string',
Available Services (index.html)
ResponseExpires=datetime(2015, 1, 1),
ACM (acm.html) VersionId='string',
SSECustomerAlgorithm='string',
ACMPCA (acm-pca.html)
SSECustomerKey='string',
AlexaForBusiness RequestPayer='requester',
(alexaforbusiness.html) PartNumber=123
Amplify (amplify.html) )

APIGateway
(apigateway.html) Parameters
ApiGatewayManagement IfMatch (string) -- Return the object only if its entity tag (ETag) is the same
Api as the one specified, otherwise return a 412 (precondition failed).
(apigatewaymanagement IfModifiedSince (datetime) -- Return the object only if it has been
api.html) modified since the specified time, otherwise return a 304 (not modified).
IfNoneMatch (string) -- Return the object only if its entity tag (ETag) is
Boto 3 Docs 1.9.249
different from the one specified, otherwise return a 304 (not modified).
documentation ( IfUnmodifiedSince (datetime) -- Return the object only if it has not been
../../index.html) modified since the specified time, otherwise return a 412 (precondition
failed).
TABLE OF CONTENTS Range (string) -- Downloads the specified range bytes of an object. For
more information about the HTTP Range header, go to
Quickstart http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
(../../guide/quickstart.html) (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35).
ResponseCacheControl (string) -- Sets the Cache-Control header of the
A Sample Tutorial response.
(../../guide/sqs.html) ResponseContentDisposition (string) -- Sets the Content-Disposition
Code Examples header of the response
(../../guide/examples.html) ResponseContentEncoding (string) -- Sets the Content-Encoding header
of the response.
User Guides ResponseContentLanguage (string) -- Sets the Content-Language header
(../../guide/index.html) of the response.
ResponseContentType (string) -- Sets the Content-Type header of the
Available Services (index.html)
response.
ACM (acm.html) ResponseExpires (datetime) -- Sets the Expires header of the response.
VersionId (string) -- VersionId used to reference a specific version of the
ACMPCA (acm-pca.html)
object.
AlexaForBusiness SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
(alexaforbusiness.html) encrypting the object (e.g., AES256).
Amplify (amplify.html) SSECustomerKey (string) -- Specifies the customer-provided encryption
key for Amazon S3 to use in encrypting data. This value is used to store
APIGateway the object and then it is discarded; Amazon does not store the encryption
(apigateway.html) key. The key must be appropriate for use with the algorithm specified in
ApiGatewayManagement the x-amz-server-side-encryption-customer-algorithm header.
Api SSECustomerKeyMD5 (string) --
(apigatewaymanagement
api.html)
Specifies the 128-bit MD5 digest of the encryption key according to RFC
Boto 3 Docs 1.9.249
1321. Amazon S3 uses this header for a message integrity check to
documentation ( ensure the encryption key was transmitted without error.
../../index.html)

Please note that this parameter is automatically populated if it is not


TABLE OF CONTENTS
provided. Including this parameter is not required

Quickstart
(../../guide/quickstart.html) RequestPayer (string) -- Confirms that the requester knows that she or
he will be charged for the request. Bucket owners need not specify this
A Sample Tutorial
parameter in their requests. Documentation on downloading objects
(../../guide/sqs.html)
from requester pays buckets can be found at
Code Examples http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(../../guide/examples.html) (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
PartNumber (integer) -- Part number of the object being read. This is a
User Guides
positive integer between 1 and 10,000. Effectively performs a 'ranged'
(../../guide/index.html)
GET request for the part specified. Useful for downloading just a part of
Available Services (index.html) an object.

ACM (acm.html) Return type


dict
ACMPCA (acm-pca.html)
Returns
AlexaForBusiness
(alexaforbusiness.html) Response Syntax

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'Body': StreamingBody(),
../../index.html) 'DeleteMarker': True|False,
'AcceptRanges': 'string',
'Expiration': 'string',
TABLE OF CONTENTS
'Restore': 'string',
'LastModified': datetime(2015, 1, 1),
Quickstart
'ContentLength': 123,
(../../guide/quickstart.html)
'ETag': 'string',
A Sample Tutorial 'MissingMeta': 123,
(../../guide/sqs.html) 'VersionId': 'string',
Code Examples 'CacheControl': 'string',
(../../guide/examples.html) 'ContentDisposition': 'string',
'ContentEncoding': 'string',
User Guides
'ContentLanguage': 'string',
(../../guide/index.html)
'ContentRange': 'string',
Available Services (index.html) 'ContentType': 'string',
'Expires': datetime(2015, 1, 1),
ACM (acm.html)
'WebsiteRedirectLocation': 'string',
ACMPCA (acm-pca.html) 'ServerSideEncryption': 'AES256'|'aws:kms',
'Metadata': {
AlexaForBusiness
(alexaforbusiness.html) 'string': 'string'
},
Amplify (amplify.html) 'SSECustomerAlgorithm': 'string',
APIGateway 'SSECustomerKeyMD5': 'string',
(apigateway.html) 'SSEKMSKeyId': 'string',
'StorageClass': 'STANDARD'|'REDUCED_REDUNDANCY'|'STANDARD_IA'|
ApiGatewayManagement
'RequestCharged': 'requester',
Api
'ReplicationStatus': 'COMPLETE'|'PENDING'|'FAILED'|'REPLICA',
(apigatewaymanagement
api.html) 'PartsCount': 123,
'TagCount': 123,
Boto 3 Docs 1.9.249
'ObjectLockMode': 'GOVERNANCE'|'COMPLIANCE',
documentation ( 'ObjectLockRetainUntilDate': datetime(2015, 1, 1),
../../index.html) 'ObjectLockLegalHoldStatus': 'ON'|'OFF'
}
TABLE OF CONTENTS

Quickstart Response Structure


(../../guide/quickstart.html)
(dict) --
A Sample Tutorial
(../../guide/sqs.html) Body ( StreamingBody ) --

Code Examples Object data.


(../../guide/examples.html) DeleteMarker (boolean) --
User Guides Specifies whether the object retrieved was (true) or was not (false) a
(../../guide/index.html) Delete Marker. If false, this response header does not appear in the
response.
Available Services (index.html)
AcceptRanges (string) --
ACM (acm.html)
Expiration (string) --
ACMPCA (acm-pca.html)
If the object expiration is configured (see PUT Bucket lifecycle), the
AlexaForBusiness
response includes this header. It includes the expiry-date and rule-id
(alexaforbusiness.html)
key value pairs providing object expiration information. The value of
Amplify (amplify.html) the rule-id is URL encoded.

APIGateway Restore (string) --


(apigateway.html)
Provides information about object restoration operation and expiration
ApiGatewayManagement time of the restored object copy.
Api
LastModified (datetime) --
(apigatewaymanagement
api.html) Last modified date of the object
ContentLength (integer) --
Boto 3 Docs 1.9.249
documentation ( Size of the body in bytes.

../../index.html) ETag (string) --


An ETag is an opaque identifier assigned by a web server to a specific
TABLE OF CONTENTS version of a resource found at a URL
MissingMeta (integer) --
Quickstart
(../../guide/quickstart.html) This is set to the number of metadata entries not returned in x-amz-
meta headers. This can happen if you create metadata using an API like
A Sample Tutorial
SOAP that supports more flexible metadata than the REST API. For
(../../guide/sqs.html)
example, using SOAP, you can create metadata whose values are not
Code Examples legal HTTP headers.
(../../guide/examples.html)
VersionId (string) --
User Guides Version of the object.
(../../guide/index.html)
CacheControl (string) --
Available Services (index.html)
Specifies caching behavior along the request/reply chain.
ACM (acm.html)
ContentDisposition (string) --
ACMPCA (acm-pca.html)
Specifies presentational information for the object.
AlexaForBusiness
ContentEncoding (string) --
(alexaforbusiness.html)
Specifies what content encodings have been applied to the object and
Amplify (amplify.html)
thus what decoding mechanisms must be applied to obtain the media-
APIGateway type referenced by the Content-Type header field.
(apigateway.html)
ContentLanguage (string) --
ApiGatewayManagement
The language the content is in.
Api
(apigatewaymanagement ContentRange (string) --
api.html)
The portion of the object returned in the response.
Boto 3 Docs 1.9.249
documentation ( ContentType (string) --

../../index.html) A standard MIME type describing the format of the object data.
Expires (datetime) --
TABLE OF CONTENTS
The date and time at which the object is no longer cacheable.

Quickstart WebsiteRedirectLocation (string) --


(../../guide/quickstart.html)
If the bucket is configured as a website, redirects requests for this
A Sample Tutorial object to another object in the same bucket or to an external URL.
(../../guide/sqs.html) Amazon S3 stores the value of this header in the object metadata.

Code Examples ServerSideEncryption (string) --


(../../guide/examples.html)
The Server-side encryption algorithm used when storing this object in
User Guides S3 (e.g., AES256, aws:kms).
(../../guide/index.html) Metadata (dict) --
Available Services (index.html) A map of metadata to store with the object in S3.
ACM (acm.html) (string) --
(string) --
ACMPCA (acm-pca.html)
SSECustomerAlgorithm (string) --
AlexaForBusiness
If server-side encryption with a customer-provided encryption key was
(alexaforbusiness.html)
requested, the response will include this header confirming the
Amplify (amplify.html) encryption algorithm used.
APIGateway SSECustomerKeyMD5 (string) --
(apigateway.html)
If server-side encryption with a customer-provided encryption key was
ApiGatewayManagement requested, the response will include this header to provide round trip
Api message integrity verification of the customer-provided encryption key.
(apigatewaymanagement
SSEKMSKeyId (string) --
api.html)
If present, specifies the ID of the AWS Key Management Service (KMS)
Boto 3 Docs 1.9.249
master encryption key that was used for the object.
documentation (
StorageClass (string) --
../../index.html)
RequestCharged (string) --
TABLE OF CONTENTS If present, indicates that the requester was successfully charged for the
request.
Quickstart
ReplicationStatus (string) --
(../../guide/quickstart.html)
PartsCount (integer) --
A Sample Tutorial
(../../guide/sqs.html) The count of parts this object has.

Code Examples TagCount (integer) --


(../../guide/examples.html)
The number of tags, if any, on the object.
User Guides ObjectLockMode (string) --
(../../guide/index.html)
The object lock mode currently in place for this object.
Available Services (index.html)
ObjectLockRetainUntilDate (datetime) --
ACM (acm.html)
The date and time when this object's object lock will expire.
ACMPCA (acm-pca.html)
ObjectLockLegalHoldStatus (string) --
AlexaForBusiness
Indicates whether this object has an active legal hold. This field is only
(alexaforbusiness.html)
returned if you have permission to view an object's legal hold status.
Amplify (amplify.html)

APIGateway
get_available_subresources ()
(apigateway.html)
Returns a list of all the available sub-resources for this Resource.
ApiGatewayManagement
Api Returns
(apigatewaymanagement A list containing the name of each sub-resource for this resource
api.html)
Return type
Boto 3 Docs 1.9.249
list of str
documentation (
../../index.html)
initiate_multipart_upload (**kwargs)
TABLE OF CONTENTS Initiates a multipart upload and returns an upload ID.

Quickstart
(../../guide/quickstart.html) Note: After you initiate multipart upload and upload one or more parts,
you must either complete or abort multipart upload in order to stop
A Sample Tutorial getting charged for storage of the uploaded parts. Only after you either
(../../guide/sqs.html) complete or abort multipart upload, Amazon S3 frees up the parts storage
Code Examples and stops charging you for the parts storage.
(../../guide/examples.html)

User Guides See also: AWS API Documentation


(../../guide/index.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-
01/CreateMultipartUpload)
Available Services (index.html)
Request Syntax
ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 multipart_upload = object_summary.initiate_multipart_upload(
documentation ( ACL='private'|'public-read'|'public-read-write'|'authenticated-rea
../../index.html) CacheControl='string',
ContentDisposition='string',
ContentEncoding='string',
TABLE OF CONTENTS
ContentLanguage='string',
ContentType='string',
Quickstart
Expires=datetime(2015, 1, 1),
(../../guide/quickstart.html)
GrantFullControl='string',
A Sample Tutorial GrantRead='string',
(../../guide/sqs.html) GrantReadACP='string',
Code Examples GrantWriteACP='string',
(../../guide/examples.html) Metadata={
'string': 'string'
User Guides
},
(../../guide/index.html)
ServerSideEncryption='AES256'|'aws:kms',
Available Services (index.html) StorageClass='STANDARD'|'REDUCED_REDUNDANCY'|'STANDARD_IA'|'ONEZON
WebsiteRedirectLocation='string',
ACM (acm.html)
SSECustomerAlgorithm='string',
ACMPCA (acm-pca.html) SSECustomerKey='string',
SSEKMSKeyId='string',
AlexaForBusiness
(alexaforbusiness.html) SSEKMSEncryptionContext='string',
RequestPayer='requester',
Amplify (amplify.html) Tagging='string',
APIGateway ObjectLockMode='GOVERNANCE'|'COMPLIANCE',
(apigateway.html) ObjectLockRetainUntilDate=datetime(2015, 1, 1),
ObjectLockLegalHoldStatus='ON'|'OFF'
ApiGatewayManagement
)
Api
(apigatewaymanagement
api.html)
Parameters
Boto 3 Docs 1.9.249
ACL (string) -- The canned ACL to apply to the object.
documentation ( CacheControl (string) -- Specifies caching behavior along the
../../index.html) request/reply chain.
ContentDisposition (string) -- Specifies presentational information for
TABLE OF CONTENTS the object.
ContentEncoding (string) -- Specifies what content encodings have been
Quickstart applied to the object and thus what decoding mechanisms must be
(../../guide/quickstart.html) applied to obtain the media-type referenced by the Content-Type header
field.
A Sample Tutorial
ContentLanguage (string) -- The language the content is in.
(../../guide/sqs.html)
ContentType (string) -- A standard MIME type describing the format of
Code Examples the object data.
(../../guide/examples.html) Expires (datetime) -- The date and time at which the object is no longer
cacheable.
User Guides GrantFullControl (string) -- Gives the grantee READ, READ_ACP, and
(../../guide/index.html) WRITE_ACP permissions on the object.
GrantRead (string) -- Allows grantee to read the object data and its
Available Services (index.html)
metadata.
ACM (acm.html) GrantReadACP (string) -- Allows grantee to read the object ACL.
ACMPCA (acm-pca.html) GrantWriteACP (string) -- Allows grantee to write the ACL for the
applicable object.
AlexaForBusiness Metadata (dict) --
(alexaforbusiness.html) A map of metadata to store with the object in S3.
Amplify (amplify.html) (string) --
APIGateway (string) --
(apigateway.html) ServerSideEncryption (string) -- The Server-side encryption algorithm
used when storing this object in S3 (e.g., AES256, aws:kms).
ApiGatewayManagement
StorageClass (string) -- The type of storage to use for the object. Defaults
Api
to 'STANDARD'.
(apigatewaymanagement
WebsiteRedirectLocation (string) -- If the bucket is configured as a
api.html)
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
Boto 3 Docs 1.9.249
in the object metadata.
documentation ( SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
../../index.html) encrypting the object (e.g., AES256).
SSECustomerKey (string) -- Specifies the customer-provided encryption
TABLE OF CONTENTS key for Amazon S3 to use in encrypting data. This value is used to store
the object and then it is discarded; Amazon does not store the encryption
Quickstart key. The key must be appropriate for use with the algorithm specified in
(../../guide/quickstart.html) the x-amz-server-side-encryption-customer-algorithm header.
SSECustomerKeyMD5 (string) --
A Sample Tutorial Specifies the 128-bit MD5 digest of the encryption key according to RFC
(../../guide/sqs.html) 1321. Amazon S3 uses this header for a message integrity check to
Code Examples ensure the encryption key was transmitted without error.
(../../guide/examples.html)

User Guides Please note that this parameter is automatically populated if it is not
(../../guide/index.html) provided. Including this parameter is not required

Available Services (index.html)


SSEKMSKeyId (string) -- Specifies the AWS KMS key ID to use for object
ACM (acm.html)
encryption. All GET and PUT requests for an object protected by AWS KMS
ACMPCA (acm-pca.html) will fail if not made via SSL or using SigV4. Documentation on configuring
any of the officially supported AWS SDKs and CLI can be found at
AlexaForBusiness
http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-
(alexaforbusiness.html)
signature-version
Amplify (amplify.html) (http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify
signature-version)
APIGateway
SSEKMSEncryptionContext (string) -- Specifies the AWS KMS Encryption
(apigateway.html)
Context to use for object encryption. The value of this header is a base64-
ApiGatewayManagement encoded UTF-8 string holding JSON with the encryption context key-value
Api pairs.
(apigatewaymanagement RequestPayer (string) -- Confirms that the requester knows that she or
api.html) he will be charged for the request. Bucket owners need not specify this
parameter in their requests. Documentation on downloading objects
Boto 3 Docs 1.9.249
from requester pays buckets can be found at
documentation ( http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
../../index.html) (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Tagging (string) -- The tag-set for the object. The tag-set must be encoded
TABLE OF CONTENTS as URL Query parameters
ObjectLockMode (string) -- Specifies the object lock mode that you want
Quickstart to apply to the uploaded object.
(../../guide/quickstart.html) ObjectLockRetainUntilDate (datetime) -- Specifies the date and time
when you want the object lock to expire.
A Sample Tutorial ObjectLockLegalHoldStatus (string) -- Specifies whether you want to
(../../guide/sqs.html) apply a Legal Hold to the uploaded object.
Code Examples Return type
(../../guide/examples.html) s3.MultipartUpload
User Guides Returns
(../../guide/index.html) MultipartUpload resource
Available Services (index.html)

ACM (acm.html) load (*args, **kwargs)


ACMPCA (acm-pca.html) Calls s3.Client.head_object to update the attributes of the ObjectSummary
resource.
AlexaForBusiness
(alexaforbusiness.html)
put (**kwargs)
Amplify (amplify.html)
Adds an object to a bucket.
APIGateway
(apigateway.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObject)
ApiGatewayManagement
Api Request Syntax
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = object_summary.put(
documentation ( ACL='private'|'public-read'|'public-read-write'|'authenticated-rea
../../index.html) Body=b'bytes'|file,
CacheControl='string',
ContentDisposition='string',
TABLE OF CONTENTS
ContentEncoding='string',
ContentLanguage='string',
Quickstart
ContentLength=123,
(../../guide/quickstart.html)
ContentMD5='string',
A Sample Tutorial ContentType='string',
(../../guide/sqs.html) Expires=datetime(2015, 1, 1),
Code Examples GrantFullControl='string',
(../../guide/examples.html) GrantRead='string',
GrantReadACP='string',
User Guides
GrantWriteACP='string',
(../../guide/index.html)
Metadata={
Available Services (index.html) 'string': 'string'
},
ACM (acm.html)
ServerSideEncryption='AES256'|'aws:kms',
ACMPCA (acm-pca.html) StorageClass='STANDARD'|'REDUCED_REDUNDANCY'|'STANDARD_IA'|'ONEZON
WebsiteRedirectLocation='string',
AlexaForBusiness
(alexaforbusiness.html) SSECustomerAlgorithm='string',
SSECustomerKey='string',
Amplify (amplify.html) SSEKMSKeyId='string',
APIGateway SSEKMSEncryptionContext='string',
(apigateway.html) RequestPayer='requester',
Tagging='string',
ApiGatewayManagement
ObjectLockMode='GOVERNANCE'|'COMPLIANCE',
Api
ObjectLockRetainUntilDate=datetime(2015, 1, 1),
(apigatewaymanagement
api.html)
ObjectLockLegalHoldStatus='ON'|'OFF'
Boto 3 Docs 1.9.249
)
documentation (
../../index.html)
Parameters
TABLE OF CONTENTS
ACL (string) -- The canned ACL to apply to the object.
Body (bytes or seekable file-like object) -- Object data.
Quickstart CacheControl (string) -- Specifies caching behavior along the
(../../guide/quickstart.html) request/reply chain.
A Sample Tutorial ContentDisposition (string) -- Specifies presentational information for
(../../guide/sqs.html) the object.
ContentEncoding (string) -- Specifies what content encodings have been
Code Examples applied to the object and thus what decoding mechanisms must be
(../../guide/examples.html) applied to obtain the media-type referenced by the Content-Type header
User Guides field.
(../../guide/index.html) ContentLanguage (string) -- The language the content is in.
ContentLength (integer) -- Size of the body in bytes. This parameter is
Available Services (index.html) useful when the size of the body cannot be determined automatically.
ContentMD5 (string) -- The base64-encoded 128-bit MD5 digest of the
ACM (acm.html)
part data. This parameter is auto-populated when using the command
ACMPCA (acm-pca.html) from the CLI. This parameted is required if object lock parameters are
AlexaForBusiness specified.
(alexaforbusiness.html) ContentType (string) -- A standard MIME type describing the format of
the object data.
Amplify (amplify.html) Expires (datetime) -- The date and time at which the object is no longer
APIGateway cacheable.
(apigateway.html) GrantFullControl (string) -- Gives the grantee READ, READ_ACP, and
WRITE_ACP permissions on the object.
ApiGatewayManagement GrantRead (string) -- Allows grantee to read the object data and its
Api metadata.
(apigatewaymanagement GrantReadACP (string) -- Allows grantee to read the object ACL.
api.html)
GrantWriteACP (string) -- Allows grantee to write the ACL for the
Boto 3 Docs 1.9.249
applicable object.
documentation ( Metadata (dict) --
../../index.html) A map of metadata to store with the object in S3.

(string) --
TABLE OF CONTENTS (string) --
ServerSideEncryption (string) -- The Server-side encryption algorithm
Quickstart used when storing this object in S3 (e.g., AES256, aws:kms).
(../../guide/quickstart.html) StorageClass (string) -- The type of storage to use for the object. Defaults
A Sample Tutorial to 'STANDARD'.
(../../guide/sqs.html) WebsiteRedirectLocation (string) -- If the bucket is configured as a
website, redirects requests for this object to another object in the same
Code Examples bucket or to an external URL. Amazon S3 stores the value of this header
(../../guide/examples.html) in the object metadata.
SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
User Guides
encrypting the object (e.g., AES256).
(../../guide/index.html)
SSECustomerKey (string) -- Specifies the customer-provided encryption
Available Services (index.html) key for Amazon S3 to use in encrypting data. This value is used to store
the object and then it is discarded; Amazon does not store the encryption
ACM (acm.html)
key. The key must be appropriate for use with the algorithm specified in
ACMPCA (acm-pca.html) the x-amz-server-side-encryption-customer-algorithm header.
SSECustomerKeyMD5 (string) --
AlexaForBusiness
Specifies the 128-bit MD5 digest of the encryption key according to RFC
(alexaforbusiness.html)
1321. Amazon S3 uses this header for a message integrity check to
Amplify (amplify.html) ensure the encryption key was transmitted without error.
APIGateway
(apigateway.html)
Please note that this parameter is automatically populated if it is not
ApiGatewayManagement provided. Including this parameter is not required
Api
(apigatewaymanagement
api.html)
SSEKMSKeyId (string) -- Specifies the AWS KMS key ID to use for object
Boto 3 Docs 1.9.249
encryption. All GET and PUT requests for an object protected by AWS KMS
documentation ( will fail if not made via SSL or using SigV4. Documentation on configuring
../../index.html) any of the officially supported AWS SDKs and CLI can be found at
http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-
TABLE OF CONTENTS signature-version
(http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify
Quickstart signature-version)
(../../guide/quickstart.html) SSEKMSEncryptionContext (string) -- Specifies the AWS KMS Encryption
Context to use for object encryption. The value of this header is a base64-
A Sample Tutorial encoded UTF-8 string holding JSON with the encryption context key-value
(../../guide/sqs.html) pairs.
Code Examples RequestPayer (string) -- Confirms that the requester knows that she or
(../../guide/examples.html) he will be charged for the request. Bucket owners need not specify this
parameter in their requests. Documentation on downloading objects
User Guides from requester pays buckets can be found at
(../../guide/index.html) http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Available Services (index.html)
Tagging (string) -- The tag-set for the object. The tag-set must be encoded
ACM (acm.html) as URL Query parameters. (For example, "Key1=Value1")
ObjectLockMode (string) -- The object lock mode that you want to apply
ACMPCA (acm-pca.html)
to this object.
AlexaForBusiness ObjectLockRetainUntilDate (datetime) -- The date and time when you
(alexaforbusiness.html) want this object's object lock to expire.
Amplify (amplify.html) ObjectLockLegalHoldStatus (string) -- The Legal Hold status that you
want to apply to the specified object.
APIGateway
(apigateway.html) Return type
dict
ApiGatewayManagement
Api Returns
(apigatewaymanagement Response Syntax
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'Expiration': 'string',
../../index.html) 'ETag': 'string',
'ServerSideEncryption': 'AES256'|'aws:kms',
'VersionId': 'string',
TABLE OF CONTENTS
'SSECustomerAlgorithm': 'string',
'SSECustomerKeyMD5': 'string',
Quickstart
'SSEKMSKeyId': 'string',
(../../guide/quickstart.html)
'SSEKMSEncryptionContext': 'string',
A Sample Tutorial 'RequestCharged': 'requester'
(../../guide/sqs.html) }
Code Examples
(../../guide/examples.html)
Response Structure
User Guides (dict) --
(../../guide/index.html)
Expiration (string) --
Available Services (index.html)
If the object expiration is configured, this will contain the expiration
ACM (acm.html) date (expiry-date) and rule ID (rule-id). The value of rule-id is URL
ACMPCA (acm-pca.html)
encoded.

AlexaForBusiness
ETag (string) --
(alexaforbusiness.html) Entity tag for the uploaded object.
Amplify (amplify.html) ServerSideEncryption (string) --
APIGateway The Server-side encryption algorithm used when storing this object in
(apigateway.html) S3 (e.g., AES256, aws:kms).
ApiGatewayManagement VersionId (string) --
Api
Version of the object.
(apigatewaymanagement
api.html) SSECustomerAlgorithm (string) --
If server-side encryption with a customer-provided encryption key was
Boto 3 Docs 1.9.249
requested, the response will include this header confirming the
documentation ( encryption algorithm used.
../../index.html)
SSECustomerKeyMD5 (string) --

TABLE OF CONTENTS If server-side encryption with a customer-provided encryption key was


requested, the response will include this header to provide round trip
message integrity verification of the customer-provided encryption key.
Quickstart
(../../guide/quickstart.html) SSEKMSKeyId (string) --
A Sample Tutorial If present, specifies the ID of the AWS Key Management Service (KMS)
(../../guide/sqs.html) master encryption key that was used for the object.
Code Examples SSEKMSEncryptionContext (string) --
(../../guide/examples.html)
If present, specifies the AWS KMS Encryption Context to use for object
User Guides encryption. The value of this header is a base64-encoded UTF-8 string
(../../guide/index.html) holding JSON with the encryption context key-value pairs.

Available Services (index.html) RequestCharged (string) --

ACM (acm.html) If present, indicates that the requester was successfully charged for the
request.
ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html) restore_object (**kwargs)
Restores an archived copy of an object back into Amazon S3
Amplify (amplify.html)
See also: AWS API Documentation
APIGateway
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RestoreObject)
(apigateway.html)
Request Syntax
ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = object_summary.restore_object(
documentation ( VersionId='string',
../../index.html) RestoreRequest={
'Days': 123,
'GlacierJobParameters': {
TABLE OF CONTENTS
'Tier': 'Standard'|'Bulk'|'Expedited'
},
Quickstart
'Type': 'SELECT',
(../../guide/quickstart.html)
'Tier': 'Standard'|'Bulk'|'Expedited',
A Sample Tutorial 'Description': 'string',
(../../guide/sqs.html) 'SelectParameters': {
Code Examples 'InputSerialization': {
(../../guide/examples.html) 'CSV': {
'FileHeaderInfo': 'USE'|'IGNORE'|'NONE',
User Guides
'Comments': 'string',
(../../guide/index.html)
'QuoteEscapeCharacter': 'string',
Available Services (index.html) 'RecordDelimiter': 'string',
'FieldDelimiter': 'string',
ACM (acm.html)
'QuoteCharacter': 'string',
ACMPCA (acm-pca.html) 'AllowQuotedRecordDelimiter': True|False
},
AlexaForBusiness
(alexaforbusiness.html) 'CompressionType': 'NONE'|'GZIP'|'BZIP2',
'JSON': {
Amplify (amplify.html) 'Type': 'DOCUMENT'|'LINES'
APIGateway },
(apigateway.html) 'Parquet': {}

ApiGatewayManagement
},
Api
'ExpressionType': 'SQL',
(apigatewaymanagement
api.html) 'Expression': 'string',
'OutputSerialization': {
Boto 3 Docs 1.9.249
'CSV': {
documentation ( 'QuoteFields': 'ALWAYS'|'ASNEEDED',
../../index.html) 'QuoteEscapeCharacter': 'string',
'RecordDelimiter': 'string',
TABLE OF CONTENTS 'FieldDelimiter': 'string',
'QuoteCharacter': 'string'
Quickstart },
(../../guide/quickstart.html) 'JSON': {
'RecordDelimiter': 'string'
A Sample Tutorial
}
(../../guide/sqs.html)
}
Code Examples },
(../../guide/examples.html) 'OutputLocation': {
User Guides 'S3': {
(../../guide/index.html) 'BucketName': 'string',
'Prefix': 'string',
Available Services (index.html) 'Encryption': {
ACM (acm.html) 'EncryptionType': 'AES256'|'aws:kms',
'KMSKeyId': 'string',
ACMPCA (acm-pca.html)
'KMSContext': 'string'
AlexaForBusiness },
(alexaforbusiness.html) 'CannedACL': 'private'|'public-read'|'public-read-writ

Amplify (amplify.html) 'AccessControlList': [


{
APIGateway 'Grantee': {
(apigateway.html)
'DisplayName': 'string',
ApiGatewayManagement 'EmailAddress': 'string',
Api 'ID': 'string',
(apigatewaymanagement 'Type': 'CanonicalUser'|'AmazonCustomerByE
api.html) 'URI': 'string'
},
Boto 3 Docs 1.9.249
'Permission': 'FULL_CONTROL'|'WRITE'|'WRITE_AC
documentation ( },
../../index.html) ],
'Tagging': {
TABLE OF CONTENTS 'TagSet': [
{
Quickstart 'Key': 'string',
(../../guide/quickstart.html) 'Value': 'string'
},
A Sample Tutorial
]
(../../guide/sqs.html)
},
Code Examples 'UserMetadata': [
(../../guide/examples.html) {
User Guides 'Name': 'string',
(../../guide/index.html) 'Value': 'string'
},
Available Services (index.html) ],
ACM (acm.html) 'StorageClass': 'STANDARD'|'REDUCED_REDUNDANCY'|'STAND
}
ACMPCA (acm-pca.html)
}
AlexaForBusiness },
(alexaforbusiness.html) RequestPayer='requester'

Amplify (amplify.html) )

APIGateway
(apigateway.html)
Parameters
ApiGatewayManagement VersionId (string) --
Api RestoreRequest (dict) --
(apigatewaymanagement Days (integer) --
api.html)
Lifetime of the active copy in days. Do not use with restores that specify
Boto 3 Docs 1.9.249
OutputLocation.
documentation (
GlacierJobParameters (dict) --
../../index.html)
Glacier related parameters pertaining to this job. Do not use with
restores that specify OutputLocation.
TABLE OF CONTENTS
Tier (string) -- [REQUIRED]
Glacier retrieval tier at which the restore will be processed.
Quickstart
(../../guide/quickstart.html) Type (string) --
Type of restore request.
A Sample Tutorial
(../../guide/sqs.html) Tier (string) --
Glacier retrieval tier at which the restore will be processed.
Code Examples
(../../guide/examples.html) Description (string) --
The optional description for the job.
User Guides
(../../guide/index.html) SelectParameters (dict) --
Describes the parameters for Select job types.
Available Services (index.html)
InputSerialization (dict) -- [REQUIRED]
ACM (acm.html) Describes the serialization format of the object.
ACMPCA (acm-pca.html) CSV (dict) --
AlexaForBusiness Describes the serialization of a CSV-encoded object.
(alexaforbusiness.html) FileHeaderInfo (string) --
Amplify (amplify.html) Describes the first line of input. Valid values: None, Ignore, Use.

APIGateway Comments (string) --


(apigateway.html) The single character used to indicate a row should be ignored
when present at the start of a row.
ApiGatewayManagement
Api QuoteEscapeCharacter (string) --
(apigatewaymanagement The single character used for escaping the quote character
api.html) inside an already escaped value.
RecordDelimiter (string) --
Boto 3 Docs 1.9.249
The value used to separate individual records.
documentation (
FieldDelimiter (string) --
../../index.html)
The value used to separate individual fields in a record.

TABLE OF CONTENTS QuoteCharacter (string) --


Value used for escaping where the field delimiter is part of the
value.
Quickstart
(../../guide/quickstart.html) AllowQuotedRecordDelimiter (boolean) --
Specifies that CSV field values may contain quoted record
A Sample Tutorial
delimiters and such records should be allowed. Default value is
(../../guide/sqs.html)
FALSE. Setting this value to TRUE may lower performance.
Code Examples
CompressionType (string) --
(../../guide/examples.html)
Specifies object's compression format. Valid values: NONE, GZIP,
User Guides BZIP2. Default Value: NONE.
(../../guide/index.html)
JSON (dict) --
Available Services (index.html) Specifies JSON as object's input serialization format.

ACM (acm.html) Type (string) --


The type of JSON. Valid values: Document, Lines.
ACMPCA (acm-pca.html)
Parquet (dict) --
AlexaForBusiness Specifies Parquet as object's input serialization format.
(alexaforbusiness.html)
ExpressionType (string) -- [REQUIRED]
Amplify (amplify.html) The type of the provided expression (e.g., SQL).
APIGateway Expression (string) -- [REQUIRED]
(apigateway.html) The expression that is used to query the object.
ApiGatewayManagement OutputSerialization (dict) -- [REQUIRED]
Api Describes how the results of the Select job are serialized.
(apigatewaymanagement
api.html) CSV (dict) --
Describes the serialization of CSV-encoded Select results.
Boto 3 Docs 1.9.249
documentation ( QuoteFields (string) --
Indicates whether or not all output fields should be quoted.
../../index.html)
QuoteEscapeCharacter (string) --
TABLE OF CONTENTS Th single character used for escaping the quote character inside
an already escaped value.
Quickstart RecordDelimiter (string) --
(../../guide/quickstart.html) The value used to separate individual records.
A Sample Tutorial FieldDelimiter (string) --
(../../guide/sqs.html) The value used to separate individual fields in a record.
Code Examples QuoteCharacter (string) --
(../../guide/examples.html) The value used for escaping where the field delimiter is part of
the value.
User Guides
(../../guide/index.html) JSON (dict) --
Specifies JSON as request's output serialization format.
Available Services (index.html)
RecordDelimiter (string) --
ACM (acm.html) The value used to separate individual records in the output.
ACMPCA (acm-pca.html) OutputLocation (dict) --
AlexaForBusiness Describes the location where the restore job's output is stored.
(alexaforbusiness.html) S3 (dict) --
Amplify (amplify.html) Describes an S3 location that will receive the results of the restore
request.
APIGateway
(apigateway.html) BucketName (string) -- [REQUIRED]
The name of the bucket where the restore results will be placed.
ApiGatewayManagement
Api Prefix (string) -- [REQUIRED]
(apigatewaymanagement The prefix that is prepended to the restore results for this request.
api.html) Encryption (dict) --
EncryptionType (string) -- [REQUIRED]
Boto 3 Docs 1.9.249
The server-side encryption algorithm used when storing job
documentation ( results in Amazon S3 (e.g., AES256, aws:kms).
../../index.html)
KMSKeyId (string) --
If the encryption type is aws:kms, this optional value specifies
TABLE OF CONTENTS the AWS KMS key ID to use for encryption of job results.

KMSContext (string) --
Quickstart
If the encryption type is aws:kms, this optional value can be used
(../../guide/quickstart.html)
to specify the encryption context for the restore results.
A Sample Tutorial
CannedACL (string) --
(../../guide/sqs.html)
The canned ACL to apply to the restore results.
Code Examples
AccessControlList (list) --
(../../guide/examples.html)
A list of grants that control access to the staged results.
User Guides
(dict) --
(../../guide/index.html)
Grantee (dict) --
Available Services (index.html) DisplayName (string) --
Screen name of the grantee.
ACM (acm.html)
EmailAddress (string) --
ACMPCA (acm-pca.html) Email address of the grantee.
AlexaForBusiness ID (string) --
(alexaforbusiness.html) The canonical user ID of the grantee.
Amplify (amplify.html) Type (string) -- [REQUIRED]
APIGateway Type of grantee
(apigateway.html) URI (string) --
ApiGatewayManagement URI of the grantee group.
Api Permission (string) --
(apigatewaymanagement Specifies the permission given to the grantee.
api.html)
Tagging (dict) --
Boto 3 Docs 1.9.249
The tag-set that is applied to the restore results.
documentation (
TagSet (list) -- [REQUIRED]
../../index.html)
(dict) --
Key (string) -- [REQUIRED]
TABLE OF CONTENTS Name of the tag.

Value (string) -- [REQUIRED]


Quickstart
Value of the tag.
(../../guide/quickstart.html)
UserMetadata (list) --
A Sample Tutorial
A list of metadata to store with the restore results in S3.
(../../guide/sqs.html)
(dict) --
Code Examples
A metadata key-value pair to store with an object.
(../../guide/examples.html)
Name (string) --
User Guides
Value (string) --
(../../guide/index.html)
StorageClass (string) --
Available Services (index.html) The class of storage used to store the restore results.

ACM (acm.html) RequestPayer (string) -- Confirms that the requester knows that she or
he will be charged for the request. Bucket owners need not specify this
ACMPCA (acm-pca.html) parameter in their requests. Documentation on downloading objects
AlexaForBusiness from requester pays buckets can be found at
(alexaforbusiness.html) http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
Amplify (amplify.html)
Return type
APIGateway
dict
(apigateway.html)
Returns
ApiGatewayManagement
Api Response Syntax
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'RequestCharged': 'requester',
../../index.html) 'RestoreOutputPath': 'string'
}

TABLE OF CONTENTS
Response Structure
Quickstart
(dict) --
(../../guide/quickstart.html)
RequestCharged (string) --
A Sample Tutorial
(../../guide/sqs.html) If present, indicates that the requester was successfully charged for the
request.
Code Examples
(../../guide/examples.html) RestoreOutputPath (string) --

User Guides Indicates the path in the provided S3 output location where Select
(../../guide/index.html) results will be restored to.

Available Services (index.html)


Sub-resources
ACM (acm.html)
Sub-resources are methods that create a new instance of a child resource. This
ACMPCA (acm-pca.html) resource's identifiers get passed along to the child. For more information about
AlexaForBusiness sub-resources refer to the Resources Introduction Guide
(alexaforbusiness.html) (../../guide/resources.html#subresources-intro).

Amplify (amplify.html) Acl ()


Creates a ObjectAcl resource.:
APIGateway
(apigateway.html)

ApiGatewayManagement object_acl = object_summary.Acl()


Api
(apigatewaymanagement Return type
api.html)
S3.ObjectAcl
Boto 3 Docs 1.9.249
documentation ( Returns

../../index.html) A ObjectAcl resource

TABLE OF CONTENTS
Bucket ()
Creates a Bucket resource.:
Quickstart
(../../guide/quickstart.html)
bucket = object_summary.Bucket()
A Sample Tutorial
(../../guide/sqs.html)

Code Examples Return type


(../../guide/examples.html) S3.Bucket

User Guides Returns


(../../guide/index.html) A Bucket resource

Available Services (index.html)

ACM (acm.html) MultipartUpload (id)


Creates a MultipartUpload resource.:
ACMPCA (acm-pca.html)

AlexaForBusiness
multipart_upload = object_summary.MultipartUpload('id')
(alexaforbusiness.html)

Amplify (amplify.html)
Parameters
APIGateway
id (string) -- The MultipartUpload's id identifier. This must be set.
(apigateway.html)
Return type
ApiGatewayManagement
S3.MultipartUpload
Api
(apigatewaymanagement Returns
api.html) A MultipartUpload resource
Boto 3 Docs 1.9.249
documentation ( Object ()
../../index.html) Creates a Object resource.:

TABLE OF CONTENTS
object = object_summary.Object()

Quickstart
(../../guide/quickstart.html) Return type
S3.Object
A Sample Tutorial
(../../guide/sqs.html) Returns
Code Examples A Object resource
(../../guide/examples.html)

User Guides Version (id)


(../../guide/index.html)
Creates a ObjectVersion resource.:
Available Services (index.html)

ACM (acm.html) object_version = object_summary.Version('id')

ACMPCA (acm-pca.html)
Parameters
AlexaForBusiness
(alexaforbusiness.html) id (string) -- The Version's id identifier. This must be set.

Amplify (amplify.html) Return type


S3.ObjectVersion
APIGateway
(apigateway.html) Returns
A ObjectVersion resource
ApiGatewayManagement
Api
(apigatewaymanagement
Waiters
api.html)
Waiters provide an interface to wait for a resource to reach a specific state. For
Boto 3 Docs 1.9.249
more information about waiters refer to the Resources Introduction Guide
documentation ( (../../guide/resources.html#waiters-intro).
../../index.html)
wait_until_exists (**kwargs)
Waits until this ObjectSummary is exists. This method calls
TABLE OF CONTENTS
S3.Waiter.object_exists.wait() which polls. S3.Client.head_object() every
5 seconds until a successful state is reached. An error is returned after 20 failed
Quickstart
checks.
(../../guide/quickstart.html)
See also: AWS API Documentation
A Sample Tutorial
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObject)
(../../guide/sqs.html)
Request Syntax
Code Examples
(../../guide/examples.html)
object_summary.wait_until_exists(
User Guides
IfMatch='string',
(../../guide/index.html)
IfModifiedSince=datetime(2015, 1, 1),
Available Services (index.html) IfNoneMatch='string',
IfUnmodifiedSince=datetime(2015, 1, 1),
ACM (acm.html)
Range='string',
ACMPCA (acm-pca.html) VersionId='string',
AlexaForBusiness SSECustomerAlgorithm='string',
(alexaforbusiness.html) SSECustomerKey='string',
RequestPayer='requester',
Amplify (amplify.html)
PartNumber=123
APIGateway )
(apigateway.html)

ApiGatewayManagement Parameters
Api IfMatch (string) -- Return the object only if its entity tag (ETag) is the same
(apigatewaymanagement as the one specified, otherwise return a 412 (precondition failed).
api.html)
IfModifiedSince (datetime) -- Return the object only if it has been
Boto 3 Docs 1.9.249
modified since the specified time, otherwise return a 304 (not modified).
documentation ( IfNoneMatch (string) -- Return the object only if its entity tag (ETag) is
../../index.html) different from the one specified, otherwise return a 304 (not modified).
IfUnmodifiedSince (datetime) -- Return the object only if it has not been
TABLE OF CONTENTS modified since the specified time, otherwise return a 412 (precondition
failed).
Quickstart Range (string) -- Downloads the specified range bytes of an object. For
(../../guide/quickstart.html) more information about the HTTP Range header, go to
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
A Sample Tutorial (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35).
(../../guide/sqs.html) VersionId (string) -- VersionId used to reference a specific version of the
Code Examples object.
(../../guide/examples.html) SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
encrypting the object (e.g., AES256).
User Guides SSECustomerKey (string) -- Specifies the customer-provided encryption
(../../guide/index.html) key for Amazon S3 to use in encrypting data. This value is used to store
the object and then it is discarded; Amazon does not store the encryption
Available Services (index.html)
key. The key must be appropriate for use with the algorithm specified in
ACM (acm.html) the x-amz-server-side-encryption-customer-algorithm header.
SSECustomerKeyMD5 (string) --
ACMPCA (acm-pca.html)
Specifies the 128-bit MD5 digest of the encryption key according to RFC
AlexaForBusiness 1321. Amazon S3 uses this header for a message integrity check to
(alexaforbusiness.html) ensure the encryption key was transmitted without error.
Amplify (amplify.html)

APIGateway Please note that this parameter is automatically populated if it is not


(apigateway.html) provided. Including this parameter is not required

ApiGatewayManagement
Api RequestPayer (string) -- Confirms that the requester knows that she or
(apigatewaymanagement he will be charged for the request. Bucket owners need not specify this
api.html) parameter in their requests. Documentation on downloading objects
from requester pays buckets can be found at
Boto 3 Docs 1.9.249
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
documentation ( (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
../../index.html) PartNumber (integer) -- Part number of the object being read. This is a
positive integer between 1 and 10,000. Effectively performs a 'ranged'
TABLE OF CONTENTS HEAD request for the part specified. Useful querying about the size of the
part and the number of parts in this object.
Quickstart Returns
(../../guide/quickstart.html) None
A Sample Tutorial
(../../guide/sqs.html)
wait_until_not_exists (**kwargs)
Code Examples
Waits until this ObjectSummary is not exists. This method calls
(../../guide/examples.html)
S3.Waiter.object_not_exists.wait() which polls. S3.Client.head_object()
User Guides every 5 seconds until a successful state is reached. An error is returned after 20
(../../guide/index.html) failed checks.

Available Services (index.html) See also: AWS API Documentation


(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObject)
ACM (acm.html)
Request Syntax
ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 object_summary.wait_until_not_exists(
documentation ( IfMatch='string',
../../index.html) IfModifiedSince=datetime(2015, 1, 1),
IfNoneMatch='string',
IfUnmodifiedSince=datetime(2015, 1, 1),
TABLE OF CONTENTS
Range='string',
VersionId='string',
Quickstart
SSECustomerAlgorithm='string',
(../../guide/quickstart.html)
SSECustomerKey='string',
A Sample Tutorial RequestPayer='requester',
(../../guide/sqs.html) PartNumber=123
Code Examples )
(../../guide/examples.html)

User Guides Parameters


(../../guide/index.html) IfMatch (string) -- Return the object only if its entity tag (ETag) is the same
as the one specified, otherwise return a 412 (precondition failed).
Available Services (index.html)
IfModifiedSince (datetime) -- Return the object only if it has been
ACM (acm.html) modified since the specified time, otherwise return a 304 (not modified).
IfNoneMatch (string) -- Return the object only if its entity tag (ETag) is
ACMPCA (acm-pca.html)
different from the one specified, otherwise return a 304 (not modified).
AlexaForBusiness IfUnmodifiedSince (datetime) -- Return the object only if it has not been
(alexaforbusiness.html) modified since the specified time, otherwise return a 412 (precondition
failed).
Amplify (amplify.html)
Range (string) -- Downloads the specified range bytes of an object. For
APIGateway more information about the HTTP Range header, go to
(apigateway.html) http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
ApiGatewayManagement
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35).
Api
VersionId (string) -- VersionId used to reference a specific version of the
(apigatewaymanagement
object.
api.html)
SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
Boto 3 Docs 1.9.249
encrypting the object (e.g., AES256).
documentation ( SSECustomerKey (string) -- Specifies the customer-provided encryption
../../index.html) key for Amazon S3 to use in encrypting data. This value is used to store
the object and then it is discarded; Amazon does not store the encryption
TABLE OF CONTENTS key. The key must be appropriate for use with the algorithm specified in
the x-amz-server-side-encryption-customer-algorithm header.
Quickstart SSECustomerKeyMD5 (string) --
(../../guide/quickstart.html) 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
A Sample Tutorial ensure the encryption key was transmitted without error.
(../../guide/sqs.html)

Code Examples
Please note that this parameter is automatically populated if it is not
(../../guide/examples.html)
provided. Including this parameter is not required
User Guides
(../../guide/index.html)
RequestPayer (string) -- Confirms that the requester knows that she or
Available Services (index.html) he will be charged for the request. Bucket owners need not specify this
parameter in their requests. Documentation on downloading objects
ACM (acm.html)
from requester pays buckets can be found at
ACMPCA (acm-pca.html) http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
AlexaForBusiness
PartNumber (integer) -- Part number of the object being read. This is a
(alexaforbusiness.html)
positive integer between 1 and 10,000. Effectively performs a 'ranged'
Amplify (amplify.html) HEAD request for the part specified. Useful querying about the size of the
part and the number of parts in this object.
APIGateway
(apigateway.html) Returns

ApiGatewayManagement None
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249
documentation (
ObjectVersion
../../index.html)
class S3. ObjectVersion (bucket_name, object_key, id)
A resource representing an Amazon Simple Storage Service (S3) ObjectVersion:
TABLE OF CONTENTS

Quickstart import boto3


(../../guide/quickstart.html)
s3 = boto3.resource('s3')
A Sample Tutorial
object_version = s3.ObjectVersion('bucket_name','object_key','id')
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html) Parameters
bucket_name (string) -- The ObjectVersion's bucket_name identifier. This
User Guides must be set.
(../../guide/index.html) object_key (string) -- The ObjectVersion's object_key identifier. This must be
set.
Available Services (index.html)
id (string) -- The ObjectVersion's id identifier. This must be set.
ACM (acm.html)
These are the resource's available identifiers:
ACMPCA (acm-pca.html)
bucket_name
AlexaForBusiness
object_key
(alexaforbusiness.html)
id
Amplify (amplify.html)
These are the resource's available attributes:
APIGateway
(apigateway.html) e_tag
is_latest
ApiGatewayManagement key
Api
last_modified
(apigatewaymanagement
owner
api.html)
size
Boto 3 Docs 1.9.249
storage_class
documentation ( version_id
../../index.html)
These are the resource's available actions:

TABLE OF CONTENTS delete()


get()
Quickstart get_available_subresources()
(../../guide/quickstart.html) head()

A Sample Tutorial These are the resource's available sub-resources:


(../../guide/sqs.html)
Object()
Code Examples
Identifiers
(../../guide/examples.html)
Identifiers are properties of a resource that are set upon instantation of the
User Guides resource. For more information about identifiers refer to the Resources
(../../guide/index.html) Introduction Guide (../../guide/resources.html#identifiers-attributes-intro).

Available Services (index.html) bucket_name


(string) The ObjectVersion's bucket_name identifier. This must be set.
ACM (acm.html)

ACMPCA (acm-pca.html) object_key


(string) The ObjectVersion's object_key identifier. This must be set.
AlexaForBusiness
(alexaforbusiness.html)
id
Amplify (amplify.html) (string) The ObjectVersion's id identifier. This must be set.
APIGateway
(apigateway.html)
Attributes
Attributes provide access to the properties of a resource. Attributes are lazy-loaded
ApiGatewayManagement the first time one is accessed via the load() method. For more information about
Api
attributes refer to the Resources Introduction Guide
(apigatewaymanagement
(../../guide/resources.html#identifiers-attributes-intro).
api.html)
e_tag
Boto 3 Docs 1.9.249
(string) --
documentation (
../../index.html) is_latest
(boolean) --
TABLE OF CONTENTS
Specifies whether the object is (true) or is not (false) the latest version of
an object.
Quickstart
(../../guide/quickstart.html) key
A Sample Tutorial (string) --
(../../guide/sqs.html)
The object key.
Code Examples
(../../guide/examples.html) last_modified
(datetime) --
User Guides
(../../guide/index.html) Date and time the object was last modified.

Available Services (index.html) owner


ACM (acm.html) (dict) --
DisplayName (string) --
ACMPCA (acm-pca.html)
ID (string) --
AlexaForBusiness
(alexaforbusiness.html) size

Amplify (amplify.html) (integer) --

APIGateway Size in bytes of the object.


(apigateway.html)
storage_class
ApiGatewayManagement (string) --
Api
(apigatewaymanagement The class of storage used to store the object.
api.html)
version_id
Boto 3 Docs 1.9.249
(string) --
documentation (
../../index.html) Version ID of an object.

Actions
TABLE OF CONTENTS
Actions call operations on resources. They may automatically handle the passing in
of arguments set from identifiers and some attributes. For more information about
Quickstart actions refer to the Resources Introduction Guide
(../../guide/quickstart.html) (../../guide/resources.html#actions-intro).
A Sample Tutorial
delete (**kwargs)
(../../guide/sqs.html)
Removes the null version (if there is one) of an object and inserts a delete
Code Examples marker, which becomes the latest version of the object. If there isn't a null
(../../guide/examples.html) version, Amazon S3 does not remove any objects.
User Guides See also: AWS API Documentation
(../../guide/index.html) (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObject)

Available Services (index.html) Request Syntax

ACM (acm.html)
response = object_version.delete(
ACMPCA (acm-pca.html)
MFA='string',
AlexaForBusiness RequestPayer='requester',
(alexaforbusiness.html) BypassGovernanceRetention=True|False
Amplify (amplify.html) )

APIGateway
(apigateway.html) Parameters
MFA (string) -- The concatenation of the authentication device's serial
ApiGatewayManagement
number, a space, and the value that is displayed on your authentication
Api
device.
(apigatewaymanagement
api.html)
RequestPayer (string) -- Confirms that the requester knows that she or
Boto 3 Docs 1.9.249
he will be charged for the request. Bucket owners need not specify this
documentation ( parameter in their requests. Documentation on downloading objects
../../index.html) from requester pays buckets can be found at
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
TABLE OF CONTENTS (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
BypassGovernanceRetention (boolean) -- Indicates whether Amazon S3
Quickstart object lock should bypass governance-mode restrictions to process this
(../../guide/quickstart.html) operation.

A Sample Tutorial Return type


(../../guide/sqs.html) dict

Code Examples Returns


(../../guide/examples.html) Response Syntax
User Guides
(../../guide/index.html) {
'DeleteMarker': True|False,
Available Services (index.html)
'VersionId': 'string',
ACM (acm.html) 'RequestCharged': 'requester'
ACMPCA (acm-pca.html) }

AlexaForBusiness
(alexaforbusiness.html) Response Structure

Amplify (amplify.html) (dict) --

APIGateway DeleteMarker (boolean) --


(apigateway.html)
Specifies whether the versioned object that was permanently deleted
ApiGatewayManagement was (true) or was not (false) a delete marker.
Api
VersionId (string) --
(apigatewaymanagement
api.html)
Returns the version ID of the delete marker created as a result of the
Boto 3 Docs 1.9.249
DELETE operation.
documentation (
RequestCharged (string) --
../../index.html)
If present, indicates that the requester was successfully charged for the
TABLE OF CONTENTS request.

Quickstart
get (**kwargs)
(../../guide/quickstart.html)
Retrieves objects from Amazon S3.
A Sample Tutorial
(../../guide/sqs.html) See also: AWS API Documentation
(https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObject)
Code Examples
(../../guide/examples.html) Request Syntax

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = object_version.get(
documentation ( IfMatch='string',
../../index.html) IfModifiedSince=datetime(2015, 1, 1),
IfNoneMatch='string',
IfUnmodifiedSince=datetime(2015, 1, 1),
TABLE OF CONTENTS
Range='string',
ResponseCacheControl='string',
Quickstart
ResponseContentDisposition='string',
(../../guide/quickstart.html)
ResponseContentEncoding='string',
A Sample Tutorial ResponseContentLanguage='string',
(../../guide/sqs.html) ResponseContentType='string',
Code Examples ResponseExpires=datetime(2015, 1, 1),
(../../guide/examples.html) SSECustomerAlgorithm='string',
SSECustomerKey='string',
User Guides
RequestPayer='requester',
(../../guide/index.html)
PartNumber=123
Available Services (index.html) )

ACM (acm.html)
Parameters
ACMPCA (acm-pca.html)
IfMatch (string) -- Return the object only if its entity tag (ETag) is the same
AlexaForBusiness as the one specified, otherwise return a 412 (precondition failed).
(alexaforbusiness.html) IfModifiedSince (datetime) -- Return the object only if it has been
Amplify (amplify.html) modified since the specified time, otherwise return a 304 (not modified).
IfNoneMatch (string) -- Return the object only if its entity tag (ETag) is
APIGateway different from the one specified, otherwise return a 304 (not modified).
(apigateway.html) IfUnmodifiedSince (datetime) -- Return the object only if it has not been
ApiGatewayManagement modified since the specified time, otherwise return a 412 (precondition
Api failed).
(apigatewaymanagement Range (string) -- Downloads the specified range bytes of an object. For
api.html) more information about the HTTP Range header, go to
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
Boto 3 Docs 1.9.249
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35).
documentation ( ResponseCacheControl (string) -- Sets the Cache-Control header of the
../../index.html) response.
ResponseContentDisposition (string) -- Sets the Content-Disposition
TABLE OF CONTENTS header of the response
ResponseContentEncoding (string) -- Sets the Content-Encoding header
Quickstart of the response.
(../../guide/quickstart.html) ResponseContentLanguage (string) -- Sets the Content-Language header
of the response.
A Sample Tutorial ResponseContentType (string) -- Sets the Content-Type header of the
(../../guide/sqs.html) response.
Code Examples ResponseExpires (datetime) -- Sets the Expires header of the response.
(../../guide/examples.html) SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
encrypting the object (e.g., AES256).
User Guides SSECustomerKey (string) -- Specifies the customer-provided encryption
(../../guide/index.html) key for Amazon S3 to use in encrypting data. This value is used to store
the object and then it is discarded; Amazon does not store the encryption
Available Services (index.html)
key. The key must be appropriate for use with the algorithm specified in
ACM (acm.html) the x-amz-server-side-encryption-customer-algorithm header.
SSECustomerKeyMD5 (string) --
ACMPCA (acm-pca.html)
Specifies the 128-bit MD5 digest of the encryption key according to RFC
AlexaForBusiness 1321. Amazon S3 uses this header for a message integrity check to
(alexaforbusiness.html) ensure the encryption key was transmitted without error.
Amplify (amplify.html)

APIGateway Please note that this parameter is automatically populated if it is not


(apigateway.html) provided. Including this parameter is not required

ApiGatewayManagement
Api RequestPayer (string) -- Confirms that the requester knows that she or
(apigatewaymanagement he will be charged for the request. Bucket owners need not specify this
api.html) parameter in their requests. Documentation on downloading objects
from requester pays buckets can be found at
Boto 3 Docs 1.9.249
http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
documentation ( (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
../../index.html) PartNumber (integer) -- Part number of the object being read. This is a
positive integer between 1 and 10,000. Effectively performs a 'ranged'
TABLE OF CONTENTS GET request for the part specified. Useful for downloading just a part of
an object.
Quickstart Return type
(../../guide/quickstart.html) dict
A Sample Tutorial Returns
(../../guide/sqs.html)
Response Syntax
Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'Body': StreamingBody(),
../../index.html) 'DeleteMarker': True|False,
'AcceptRanges': 'string',
'Expiration': 'string',
TABLE OF CONTENTS
'Restore': 'string',
'LastModified': datetime(2015, 1, 1),
Quickstart
'ContentLength': 123,
(../../guide/quickstart.html)
'ETag': 'string',
A Sample Tutorial 'MissingMeta': 123,
(../../guide/sqs.html) 'VersionId': 'string',
Code Examples 'CacheControl': 'string',
(../../guide/examples.html) 'ContentDisposition': 'string',
'ContentEncoding': 'string',
User Guides
'ContentLanguage': 'string',
(../../guide/index.html)
'ContentRange': 'string',
Available Services (index.html) 'ContentType': 'string',
'Expires': datetime(2015, 1, 1),
ACM (acm.html)
'WebsiteRedirectLocation': 'string',
ACMPCA (acm-pca.html) 'ServerSideEncryption': 'AES256'|'aws:kms',
'Metadata': {
AlexaForBusiness
(alexaforbusiness.html) 'string': 'string'
},
Amplify (amplify.html) 'SSECustomerAlgorithm': 'string',
APIGateway 'SSECustomerKeyMD5': 'string',
(apigateway.html) 'SSEKMSKeyId': 'string',
'StorageClass': 'STANDARD'|'REDUCED_REDUNDANCY'|'STANDARD_IA'|
ApiGatewayManagement
'RequestCharged': 'requester',
Api
'ReplicationStatus': 'COMPLETE'|'PENDING'|'FAILED'|'REPLICA',
(apigatewaymanagement
api.html) 'PartsCount': 123,
'TagCount': 123,
Boto 3 Docs 1.9.249
'ObjectLockMode': 'GOVERNANCE'|'COMPLIANCE',
documentation ( 'ObjectLockRetainUntilDate': datetime(2015, 1, 1),
../../index.html) 'ObjectLockLegalHoldStatus': 'ON'|'OFF'
}
TABLE OF CONTENTS

Quickstart Response Structure


(../../guide/quickstart.html)
(dict) --
A Sample Tutorial
(../../guide/sqs.html) Body ( StreamingBody ) --

Code Examples Object data.


(../../guide/examples.html) DeleteMarker (boolean) --
User Guides Specifies whether the object retrieved was (true) or was not (false) a
(../../guide/index.html) Delete Marker. If false, this response header does not appear in the
response.
Available Services (index.html)
AcceptRanges (string) --
ACM (acm.html)
Expiration (string) --
ACMPCA (acm-pca.html)
If the object expiration is configured (see PUT Bucket lifecycle), the
AlexaForBusiness
response includes this header. It includes the expiry-date and rule-id
(alexaforbusiness.html)
key value pairs providing object expiration information. The value of
Amplify (amplify.html) the rule-id is URL encoded.

APIGateway Restore (string) --


(apigateway.html)
Provides information about object restoration operation and expiration
ApiGatewayManagement time of the restored object copy.
Api
LastModified (datetime) --
(apigatewaymanagement
api.html) Last modified date of the object
ContentLength (integer) --
Boto 3 Docs 1.9.249
documentation ( Size of the body in bytes.

../../index.html) ETag (string) --

An ETag is an opaque identifier assigned by a web server to a specific


TABLE OF CONTENTS version of a resource found at a URL

MissingMeta (integer) --
Quickstart
(../../guide/quickstart.html) This is set to the number of metadata entries not returned in x-amz-
meta headers. This can happen if you create metadata using an API like
A Sample Tutorial
SOAP that supports more flexible metadata than the REST API. For
(../../guide/sqs.html)
example, using SOAP, you can create metadata whose values are not
Code Examples legal HTTP headers.
(../../guide/examples.html)
VersionId (string) --
User Guides Version of the object.
(../../guide/index.html)
CacheControl (string) --
Available Services (index.html)
Specifies caching behavior along the request/reply chain.
ACM (acm.html)
ContentDisposition (string) --
ACMPCA (acm-pca.html)
Specifies presentational information for the object.
AlexaForBusiness
ContentEncoding (string) --
(alexaforbusiness.html)
Specifies what content encodings have been applied to the object and
Amplify (amplify.html)
thus what decoding mechanisms must be applied to obtain the media-
APIGateway type referenced by the Content-Type header field.
(apigateway.html)
ContentLanguage (string) --
ApiGatewayManagement
The language the content is in.
Api
(apigatewaymanagement ContentRange (string) --
api.html)
The portion of the object returned in the response.
Boto 3 Docs 1.9.249
documentation ( ContentType (string) --

../../index.html) A standard MIME type describing the format of the object data.

Expires (datetime) --
TABLE OF CONTENTS
The date and time at which the object is no longer cacheable.

Quickstart WebsiteRedirectLocation (string) --


(../../guide/quickstart.html)
If the bucket is configured as a website, redirects requests for this
A Sample Tutorial object to another object in the same bucket or to an external URL.
(../../guide/sqs.html) Amazon S3 stores the value of this header in the object metadata.

Code Examples ServerSideEncryption (string) --


(../../guide/examples.html)
The Server-side encryption algorithm used when storing this object in
User Guides S3 (e.g., AES256, aws:kms).
(../../guide/index.html) Metadata (dict) --
Available Services (index.html) A map of metadata to store with the object in S3.
ACM (acm.html) (string) --
(string) --
ACMPCA (acm-pca.html)
SSECustomerAlgorithm (string) --
AlexaForBusiness
If server-side encryption with a customer-provided encryption key was
(alexaforbusiness.html)
requested, the response will include this header confirming the
Amplify (amplify.html) encryption algorithm used.
APIGateway SSECustomerKeyMD5 (string) --
(apigateway.html)
If server-side encryption with a customer-provided encryption key was
ApiGatewayManagement requested, the response will include this header to provide round trip
Api message integrity verification of the customer-provided encryption key.
(apigatewaymanagement
SSEKMSKeyId (string) --
api.html)
If present, specifies the ID of the AWS Key Management Service (KMS)
Boto 3 Docs 1.9.249
master encryption key that was used for the object.
documentation (
StorageClass (string) --
../../index.html)
RequestCharged (string) --
TABLE OF CONTENTS If present, indicates that the requester was successfully charged for the
request.
Quickstart
ReplicationStatus (string) --
(../../guide/quickstart.html)
PartsCount (integer) --
A Sample Tutorial
(../../guide/sqs.html) The count of parts this object has.

Code Examples TagCount (integer) --


(../../guide/examples.html)
The number of tags, if any, on the object.
User Guides ObjectLockMode (string) --
(../../guide/index.html)
The object lock mode currently in place for this object.
Available Services (index.html)
ObjectLockRetainUntilDate (datetime) --
ACM (acm.html)
The date and time when this object's object lock will expire.
ACMPCA (acm-pca.html)
ObjectLockLegalHoldStatus (string) --
AlexaForBusiness
Indicates whether this object has an active legal hold. This field is only
(alexaforbusiness.html)
returned if you have permission to view an object's legal hold status.
Amplify (amplify.html)

APIGateway
get_available_subresources ()
(apigateway.html)
Returns a list of all the available sub-resources for this Resource.
ApiGatewayManagement
Api Returns
(apigatewaymanagement A list containing the name of each sub-resource for this resource
api.html)
Return type
Boto 3 Docs 1.9.249
list of str
documentation (
../../index.html)
head (**kwargs)
TABLE OF CONTENTS 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
Quickstart metadata. To use HEAD, you must have READ access to the object.
(../../guide/quickstart.html)
See also: AWS API Documentation
A Sample Tutorial (https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObject)
(../../guide/sqs.html)
Request Syntax
Code Examples
(../../guide/examples.html)
response = object_version.head(
User Guides IfMatch='string',
(../../guide/index.html) IfModifiedSince=datetime(2015, 1, 1),
IfNoneMatch='string',
Available Services (index.html)
IfUnmodifiedSince=datetime(2015, 1, 1),
ACM (acm.html) Range='string',
SSECustomerAlgorithm='string',
ACMPCA (acm-pca.html)
SSECustomerKey='string',
AlexaForBusiness RequestPayer='requester',
(alexaforbusiness.html) PartNumber=123
Amplify (amplify.html) )

APIGateway
(apigateway.html) Parameters
ApiGatewayManagement IfMatch (string) -- Return the object only if its entity tag (ETag) is the same
Api as the one specified, otherwise return a 412 (precondition failed).
(apigatewaymanagement IfModifiedSince (datetime) -- Return the object only if it has been
api.html) modified since the specified time, otherwise return a 304 (not modified).
IfNoneMatch (string) -- Return the object only if its entity tag (ETag) is
Boto 3 Docs 1.9.249
different from the one specified, otherwise return a 304 (not modified).
documentation ( IfUnmodifiedSince (datetime) -- Return the object only if it has not been
../../index.html) modified since the specified time, otherwise return a 412 (precondition
failed).
TABLE OF CONTENTS Range (string) -- Downloads the specified range bytes of an object. For
more information about the HTTP Range header, go to
Quickstart http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
(../../guide/quickstart.html) (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35).
SSECustomerAlgorithm (string) -- Specifies the algorithm to use to when
A Sample Tutorial encrypting the object (e.g., AES256).
(../../guide/sqs.html) SSECustomerKey (string) -- Specifies the customer-provided encryption
Code Examples key for Amazon S3 to use in encrypting data. This value is used to store
(../../guide/examples.html) the object and then it is discarded; Amazon does not store the encryption
key. The key must be appropriate for use with the algorithm specified in
User Guides the x-amz-server-side-encryption-customer-algorithm header.
(../../guide/index.html) SSECustomerKeyMD5 (string) --
Specifies the 128-bit MD5 digest of the encryption key according to RFC
Available Services (index.html)
1321. Amazon S3 uses this header for a message integrity check to
ACM (acm.html) ensure the encryption key was transmitted without error.
ACMPCA (acm-pca.html)

AlexaForBusiness Please note that this parameter is automatically populated if it is not


(alexaforbusiness.html) provided. Including this parameter is not required

Amplify (amplify.html)
RequestPayer (string) -- Confirms that the requester knows that she or
APIGateway
he will be charged for the request. Bucket owners need not specify this
(apigateway.html)
parameter in their requests. Documentation on downloading objects
ApiGatewayManagement from requester pays buckets can be found at
Api http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
(apigatewaymanagement (http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuc
api.html)
PartNumber (integer) -- Part number of the object being read. This is a
Boto 3 Docs 1.9.249
positive integer between 1 and 10,000. Effectively performs a 'ranged'
documentation ( HEAD request for the part specified. Useful querying about the size of the
../../index.html) part and the number of parts in this object.

Return type
TABLE OF CONTENTS
dict

Quickstart Returns
(../../guide/quickstart.html) Response Syntax
A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 {
documentation ( 'DeleteMarker': True|False,
../../index.html) 'AcceptRanges': 'string',
'Expiration': 'string',
'Restore': 'string',
TABLE OF CONTENTS
'LastModified': datetime(2015, 1, 1),
'ContentLength': 123,
Quickstart
'ETag': 'string',
(../../guide/quickstart.html)
'MissingMeta': 123,
A Sample Tutorial 'VersionId': 'string',
(../../guide/sqs.html) 'CacheControl': 'string',
Code Examples 'ContentDisposition': 'string',
(../../guide/examples.html) 'ContentEncoding': 'string',
'ContentLanguage': 'string',
User Guides
'ContentType': 'string',
(../../guide/index.html)
'Expires': datetime(2015, 1, 1),
Available Services (index.html) 'WebsiteRedirectLocation': 'string',
'ServerSideEncryption': 'AES256'|'aws:kms',
ACM (acm.html)
'Metadata': {
ACMPCA (acm-pca.html) 'string': 'string'
},
AlexaForBusiness
(alexaforbusiness.html) 'SSECustomerAlgorithm': 'string',
'SSECustomerKeyMD5': 'string',
Amplify (amplify.html) 'SSEKMSKeyId': 'string',
APIGateway 'StorageClass': 'STANDARD'|'REDUCED_REDUNDANCY'|'STANDARD_IA'|
(apigateway.html) 'RequestCharged': 'requester',
'ReplicationStatus': 'COMPLETE'|'PENDING'|'FAILED'|'REPLICA',
ApiGatewayManagement
'PartsCount': 123,
Api
'ObjectLockMode': 'GOVERNANCE'|'COMPLIANCE',
(apigatewaymanagement
api.html) 'ObjectLockRetainUntilDate': datetime(2015, 1, 1),
'ObjectLockLegalHoldStatus': 'ON'|'OFF'
Boto 3 Docs 1.9.249
}
documentation (
../../index.html)
Response Structure
TABLE OF CONTENTS
(dict) --
Quickstart DeleteMarker (boolean) --
(../../guide/quickstart.html)
Specifies whether the object retrieved was (true) or was not (false) a
A Sample Tutorial Delete Marker. If false, this response header does not appear in the
(../../guide/sqs.html) response.
Code Examples AcceptRanges (string) --
(../../guide/examples.html)
Expiration (string) --
User Guides If the object expiration is configured (see PUT Bucket lifecycle), the
(../../guide/index.html) response includes this header. It includes the expiry-date and rule-id
Available Services (index.html)
key value pairs providing object expiration information. The value of
the rule-id is URL encoded.
ACM (acm.html)
Restore (string) --
ACMPCA (acm-pca.html)
Provides information about object restoration operation and expiration
AlexaForBusiness time of the restored object copy.
(alexaforbusiness.html)
LastModified (datetime) --
Amplify (amplify.html)
Last modified date of the object
APIGateway
(apigateway.html)
ContentLength (integer) --

ApiGatewayManagement
Size of the body in bytes.
Api ETag (string) --
(apigatewaymanagement
api.html)
An ETag is an opaque identifier assigned by a web server to a specific
Boto 3 Docs 1.9.249
version of a resource found at a URL
documentation (
MissingMeta (integer) --
../../index.html)
This is set to the number of metadata entries not returned in x-amz-
TABLE OF CONTENTS meta headers. This can happen if you create metadata using an API like
SOAP that supports more flexible metadata than the REST API. For
example, using SOAP, you can create metadata whose values are not
Quickstart
legal HTTP headers.
(../../guide/quickstart.html)
VersionId (string) --
A Sample Tutorial
(../../guide/sqs.html) Version of the object.
Code Examples CacheControl (string) --
(../../guide/examples.html)
Specifies caching behavior along the request/reply chain.
User Guides ContentDisposition (string) --
(../../guide/index.html)
Specifies presentational information for the object.
Available Services (index.html)
ContentEncoding (string) --
ACM (acm.html)
Specifies what content encodings have been applied to the object and
ACMPCA (acm-pca.html) thus what decoding mechanisms must be applied to obtain the media-
AlexaForBusiness type referenced by the Content-Type header field.
(alexaforbusiness.html) ContentLanguage (string) --
Amplify (amplify.html) The language the content is in.
APIGateway ContentType (string) --
(apigateway.html)
A standard MIME type describing the format of the object data.
ApiGatewayManagement
Expires (datetime) --
Api
(apigatewaymanagement The date and time at which the object is no longer cacheable.
api.html)
WebsiteRedirectLocation (string) --
Boto 3 Docs 1.9.249
documentation ( 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.
../../index.html)
Amazon S3 stores the value of this header in the object metadata.

TABLE OF CONTENTS ServerSideEncryption (string) --


The Server-side encryption algorithm used when storing this object in
Quickstart S3 (e.g., AES256, aws:kms).
(../../guide/quickstart.html)
Metadata (dict) --
A Sample Tutorial
A map of metadata to store with the object in S3.
(../../guide/sqs.html)
(string) --
Code Examples
(string) --
(../../guide/examples.html)
SSECustomerAlgorithm (string) --
User Guides If server-side encryption with a customer-provided encryption key was
(../../guide/index.html) requested, the response will include this header confirming the
Available Services (index.html) encryption algorithm used.

ACM (acm.html) SSECustomerKeyMD5 (string) --

ACMPCA (acm-pca.html) If server-side encryption with a customer-provided encryption key was


requested, the response will include this header to provide round trip
AlexaForBusiness message integrity verification of the customer-provided encryption key.
(alexaforbusiness.html)
SSEKMSKeyId (string) --
Amplify (amplify.html)
If present, specifies the ID of the AWS Key Management Service (KMS)
APIGateway master encryption key that was used for the object.
(apigateway.html)
StorageClass (string) --
ApiGatewayManagement
Api RequestCharged (string) --
(apigatewaymanagement If present, indicates that the requester was successfully charged for the
api.html) request.
ReplicationStatus (string) --
Boto 3 Docs 1.9.249
documentation ( PartsCount (integer) --

../../index.html) The count of parts this object has.

ObjectLockMode (string) --
TABLE OF CONTENTS
The object lock mode currently in place for this object.

Quickstart ObjectLockRetainUntilDate (datetime) --


(../../guide/quickstart.html)
The date and time when this object's object lock expires.
A Sample Tutorial
ObjectLockLegalHoldStatus (string) --
(../../guide/sqs.html)
The Legal Hold status for the specified object.
Code Examples
(../../guide/examples.html)
Sub-resources
User Guides
(../../guide/index.html) Sub-resources are methods that create a new instance of a child resource. This
resource's identifiers get passed along to the child. For more information about
Available Services (index.html) sub-resources refer to the Resources Introduction Guide
(../../guide/resources.html#subresources-intro).
ACM (acm.html)

ACMPCA (acm-pca.html) Object ()


Creates a Object resource.:
AlexaForBusiness
(alexaforbusiness.html)
object = object_version.Object()
Amplify (amplify.html)

APIGateway
(apigateway.html) Return type
S3.Object
ApiGatewayManagement
Api Returns
(apigatewaymanagement A Object resource
api.html)
Boto 3 Docs 1.9.249
documentation (
Examples
../../index.html)

TABLE OF CONTENTS List objects in an Amazon S3 bucket


List top-level common prefixes in Amazon S3 bucket
Quickstart Restore Glacier objects in an Amazon S3 bucket
(../../guide/quickstart.html) Uploading/downloading files using SSE KMS
Uploading/downloading files using SSE Customer Keys
A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)
List objects in an Amazon S3 bucket
User Guides
(../../guide/index.html) The following example shows how to use an Amazon S3 bucket resource to list the
objects in the bucket.
Available Services (index.html)

ACM (acm.html)
import boto3
ACMPCA (acm-pca.html)

AlexaForBusiness s3 = boto3.resource('s3')
(alexaforbusiness.html) bucket = s3.Bucket('my-bucket')
for obj in bucket.objects.all():
Amplify (amplify.html)
print(obj.key)
APIGateway
(apigateway.html)

ApiGatewayManagement List top-level common prefixes in Amazon S3


Api
(apigatewaymanagement
bucket
api.html)
This example shows how to list all of the top-level common prefixes in an Amazon S3
Boto 3 Docs 1.9.249
bucket:
documentation (
../../index.html)
import boto3

TABLE OF CONTENTS
client = boto3.client('s3')
paginator = client.get_paginator('list_objects')
Quickstart
result = paginator.paginate(Bucket='my-bucket', Delimiter='/')
(../../guide/quickstart.html)
for prefix in result.search('CommonPrefixes'):
A Sample Tutorial print(prefix.get('Prefix'))
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html) Restore Glacier objects in an Amazon S3 bucket
User Guides
(../../guide/index.html) The following example shows how to initiate restoration of glacier objects in an Amazon
S3 bucket, determine if a restoration is on-going, and determine if a restoration is
Available Services (index.html) finished.
ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 import boto3
documentation (
../../index.html) s3 = boto3.resource('s3')
bucket = s3.Bucket('glacier-bucket')
for obj_sum in bucket.objects.all():
TABLE OF CONTENTS
obj = s3.Object(obj_sum.bucket_name, obj_sum.key)
if obj.storage_class == 'GLACIER':
Quickstart
# Try to restore the object if the storage class is glacier and
(../../guide/quickstart.html)
# the object does not have a completed or ongoing restoration
A Sample Tutorial # request.
(../../guide/sqs.html) if obj.restore is None:
Code Examples print('Submitting restoration request: %s' % obj.key)
(../../guide/examples.html) obj.restore_object(RestoreRequest={'Days': 1})
# Print out objects whose restoration is on-going
User Guides
elif 'ongoing-request="true"' in obj.restore:
(../../guide/index.html)
print('Restoration in-progress: %s' % obj.key)
Available Services (index.html) # Print out objects whose restoration is complete
elif 'ongoing-request="false"' in obj.restore:
ACM (acm.html)
print('Restoration complete: %s' % obj.key)
ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html) Uploading/downloading files using SSE KMS
Amplify (amplify.html)
This example shows how to use SSE-KMS to upload objects using server side encryption
APIGateway
with a key managed by KMS.
(apigateway.html)
We can either use the default KMS master key, or create a custom key in AWS and use it
ApiGatewayManagement
to encrypt the object by passing in its key id.
Api
(apigatewaymanagement With KMS, nothing else needs to be provided for getting the object; S3 already knows
api.html) how to decrypt the object.
Boto 3 Docs 1.9.249 import boto3
documentation ( import os
../../index.html)
BUCKET = 'your-bucket-name'
s3 = boto3.client('s3')
TABLE OF CONTENTS
keyid = '<the key id>'

Quickstart
print("Uploading S3 object with SSE-KMS")
(../../guide/quickstart.html)
s3.put_object(Bucket=BUCKET,
A Sample Tutorial Key='encrypt-key',
(../../guide/sqs.html) Body=b'foobar',
Code Examples ServerSideEncryption='aws:kms',
(../../guide/examples.html) # Optional: SSEKMSKeyId
SSEKMSKeyId=keyid)
User Guides
print("Done")
(../../guide/index.html)

Available Services (index.html) # Getting the object:


print("Getting S3 object...")
ACM (acm.html)
response = s3.get_object(Bucket=BUCKET,
ACMPCA (acm-pca.html) Key='encrypt-key')
print("Done, response body:")
AlexaForBusiness
(alexaforbusiness.html) print(response['Body'].read())

Amplify (amplify.html)

APIGateway
Uploading/downloading files using SSE Customer
(apigateway.html)

ApiGatewayManagement
Keys
Api This example shows how to use SSE-C to upload objects using server side encryption
(apigatewaymanagement
with a customer provided key.
api.html)
First, we'll need a 32 byte key. For this example, we'll randomly generate a key but you
Boto 3 Docs 1.9.249
can use any 32 byte key you want. Remember, you must the same key to download the
documentation (
object. If you lose the encryption key, you lose the object.
../../index.html)
Also note how we don't have to provide the SSECustomerKeyMD5. Boto3 will
TABLE OF CONTENTS
automatically compute this value for us.

Quickstart
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 import boto3
documentation ( import os
../../index.html)
BUCKET = 'your-bucket-name'
KEY = os.urandom(32)
TABLE OF CONTENTS
s3 = boto3.client('s3')

Quickstart
print("Uploading S3 object with SSE-C")
(../../guide/quickstart.html)
s3.put_object(Bucket=BUCKET,
A Sample Tutorial Key='encrypt-key',
(../../guide/sqs.html) Body=b'foobar',
Code Examples SSECustomerKey=KEY,
(../../guide/examples.html) SSECustomerAlgorithm='AES256')
print("Done")
User Guides
(../../guide/index.html)
# Getting the object:
Available Services (index.html) print("Getting S3 object...")
# Note how we're using the same ``KEY`` we
ACM (acm.html)
# created earlier.
ACMPCA (acm-pca.html) response = s3.get_object(Bucket=BUCKET,
Key='encrypt-key',
AlexaForBusiness
(alexaforbusiness.html) SSECustomerKey=KEY,
SSECustomerAlgorithm='AES256')
Amplify (amplify.html) print("Done, response body:")
APIGateway print(response['Body'].read())
(apigateway.html)

ApiGatewayManagement
Api
Route53Resolver (route53resolver.html) S3Control (s3control.html)
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249
© Copyright 2019, Amazon Web Services, Inc. Created using Sphinx (http://sphinx.pocoo.org/).
documentation (
../../index.html)

TABLE OF CONTENTS

Quickstart
(../../guide/quickstart.html)

A Sample Tutorial
(../../guide/sqs.html)

Code Examples
(../../guide/examples.html)

User Guides
(../../guide/index.html)

Available Services (index.html)

ACM (acm.html)

ACMPCA (acm-pca.html)

AlexaForBusiness
(alexaforbusiness.html)

Amplify (amplify.html)

APIGateway
(apigateway.html)

ApiGatewayManagement
Api
(apigatewaymanagement
api.html)

You might also like