Professional Documents
Culture Documents
S3 - Boto 3 Docs 1.9.249 Documentation PDF
S3 - Boto 3 Docs 1.9.249 Documentation PDF
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)
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.
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.
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) --
A Sample Tutorial
(../../guide/sqs.html)
Code Examples
(../../guide/examples.html)
User Guides
(../../guide/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
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',
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.
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) --
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)
../../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)
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.
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
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.
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.
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)
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)
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.
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)
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]
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)
ApiGatewayManagement
Api
(apigatewaymanagement
api.html)
Boto 3 Docs 1.9.249 response = client.delete_bucket_website(
documentation ( Bucket='string'
../../index.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) --
A Sample Tutorial {
(../../guide/sqs.html) 'VersionId': 'string'
Code Examples }
(../../guide/examples.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)
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)
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.
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)
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
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)
AlexaForBusiness
(alexaforbusiness.html) Parameters
Amplify (amplify.html) Bucket (string) --
[REQUIRED]
APIGateway
(apigateway.html) Name of the bucket for which the accelerate configuration is retrieved.
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)
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',
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)
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.
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) )
User Guides
(../../guide/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)
ACMPCA (acm-pca.html)
(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.
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]
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.
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.
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.
AlexaForBusiness The prefix that an object must have to be included in the inventory
(alexaforbusiness.html) 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)
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.
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)
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)
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)
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)
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)
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).
../../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)
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)
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.
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.
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.
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(
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.
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)
../../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)
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.
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 .
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)
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)
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) )
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.
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.
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
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.
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.
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
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
AlexaForBusiness If present, indicates that the requester was successfully charged for the
(alexaforbusiness.html) request.
Amplify (amplify.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
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.
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) --
Quickstart Parameters
(../../guide/quickstart.html) Bucket (string) -- [REQUIRED]
A Sample Tutorial Key (string) -- [REQUIRED]
(../../guide/sqs.html) VersionId (string) --
../../index.html) (dict) --
Key (string) --
TABLE OF CONTENTS
Name of the tag.
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
AlexaForBusiness If present, indicates that the requester was successfully charged for the
(alexaforbusiness.html) request.
Amplify (amplify.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)
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.
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)
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)
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)
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
Response Syntax
Quickstart
(../../guide/quickstart.html)
A Sample Tutorial
(../../guide/sqs.html)
Code Examples
(../../guide/examples.html)
User Guides
(../../guide/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.
ObjectLockMode (string) --
TABLE OF CONTENTS
The object lock mode currently in place for this object.
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.
Code Examples
(../../guide/examples.html)
User Guides
(../../guide/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.
ACMPCA (acm-pca.html) The ContinuationToken that represents where this request began.
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) --
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
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
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.
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.
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) --
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)
Amplify (amplify.html) The name of the bucket containing the metrics configurations to retrieve.
TABLE OF CONTENTS
Quickstart
(../../guide/quickstart.html)
A Sample Tutorial
(../../guide/sqs.html)
Code Examples
(../../guide/examples.html)
User Guides
(../../guide/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.
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) --
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.
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)
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
Code Examples
(../../guide/examples.html)
User Guides
(../../guide/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)
(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)
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) --
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)
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) --
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) --
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]
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)
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) --
../../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
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)
User Guides
(../../guide/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) --
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) --
../../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.
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)
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)
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.
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)
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.
A Sample Tutorial
(../../guide/sqs.html)
Code Examples
(../../guide/examples.html)
User Guides
(../../guide/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)
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.
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.
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.
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)
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
Code Examples
(../../guide/examples.html)
User Guides
(../../guide/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.
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)
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.
User Guides
(../../guide/index.html) put_bucket_notification_configuration (**kwargs)
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',
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 .
Code Examples
(../../guide/examples.html)
User Guides
(../../guide/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.
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)
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)
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)
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)
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)
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)
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
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)
Quickstart
(../../guide/quickstart.html)
A Sample Tutorial
(../../guide/sqs.html)
Code Examples
(../../guide/examples.html)
User Guides
(../../guide/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
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)
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.
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)
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)
(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)
AlexaForBusiness
(alexaforbusiness.html) Response Structure
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.
ACMPCA (acm-pca.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.
A Sample Tutorial
(../../guide/sqs.html)
Code Examples
(../../guide/examples.html)
User Guides
(../../guide/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.
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.
APIGateway ID (string) --
(apigateway.html) The canonical user ID of the grantee.
Quickstart
(../../guide/quickstart.html) Response Structure
TABLE OF CONTENTS
Quickstart
(../../guide/quickstart.html)
A Sample Tutorial
(../../guide/sqs.html)
Code Examples
(../../guide/examples.html)
User Guides
(../../guide/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)
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).
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) The total number of bytes of records payload data returned.
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)
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)
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)
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)
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
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) --
Amplify (amplify.html)
APIGateway Paginators
(apigateway.html)
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)
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) --
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.
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)
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)
ApiGatewayManagement
VersionIdMarker (string) --
Api Versions (list) --
(apigatewaymanagement
(dict) --
api.html)
ETag (string) --
Boto 3 Docs 1.9.249
documentation ( Size (integer) --
StorageClass (string) --
TABLE OF CONTENTS
The class of storage used to store the object.
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.
LastModified (datetime) --
Quickstart
(../../guide/quickstart.html) Date and time the object was last modified.
(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)
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.
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) --
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) --
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.
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]
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) --
../../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
../../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.
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.
../../index.html)
TABLE OF CONTENTS
Waiters
Quickstart
(../../guide/quickstart.html) The available waiters are:
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)
AlexaForBusiness
(alexaforbusiness.html) class S3.Waiter. BucketNotExists
Amplify (amplify.html)
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',
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
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)
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)
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)
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).
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)
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)
Code Examples
(../../guide/examples.html)
BucketLifecycle (bucket_name)
User Guides Creates a BucketLifecycle resource.:
(../../guide/index.html)
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.:
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)
User Guides
(../../guide/index.html) BucketPolicy (bucket_name)
Creates a BucketPolicy resource.:
Available Services (index.html)
AlexaForBusiness Parameters
(alexaforbusiness.html) bucket_name (string) -- The BucketPolicy's bucket_name identifier. This
Amplify (amplify.html) must be set.
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)
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)
../../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)
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.
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)
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)
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).
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) }
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
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.
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)
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]
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 ()
../../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)
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)
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)
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) )
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)
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)
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)
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.
ACM (acm.html)
list( s3.ObjectVersion )
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)
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
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.
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.
ACM (acm.html)
list( s3.ObjectSummary )
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)
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)
User Guides
(../../guide/index.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
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) --
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)
AlexaForBusiness Returns
(alexaforbusiness.html) None
Amplify (amplify.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.
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
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)
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
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.
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 .
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.
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)
Request Syntax
User Guides
(../../guide/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)
../../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) --
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 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 .
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)
TABLE OF CONTENTS
Quickstart
(../../guide/quickstart.html)
A Sample Tutorial
(../../guide/sqs.html)
Code Examples
(../../guide/examples.html)
User Guides
(../../guide/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.
User Guides
(../../guide/index.html) reload ()
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)
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
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).
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.
Transitions (list) --
Quickstart
(../../guide/quickstart.html) (dict) --
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)
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)
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)
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
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)
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) --
Grantee (dict) --
Quickstart
DisplayName (string) --
(../../guide/quickstart.html)
Screen name of the grantee.
A Sample Tutorial
(../../guide/sqs.html) EmailAddress (string) --
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.
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.
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)
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)
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:
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) --
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.
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.
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 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)
../../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) --
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]
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)
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)
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)
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).
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 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)
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
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
../../index.html) (list) --
(dict) --
TABLE OF CONTENTS
Key (string) --
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)
AlexaForBusiness Returns
(alexaforbusiness.html) None
Amplify (amplify.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)
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).
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
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)
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)
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)
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).
User Guides
(../../guide/index.html) Return type
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:
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).
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) --
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) --
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.
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.
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.
APIGateway
(apigateway.html) 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).
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
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()
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) --
AlexaForBusiness (dict) --
(alexaforbusiness.html) DisplayName (string) --
ID (string) --
Amplify (amplify.html)
APIGateway storage_class
(apigateway.html) (string) --
ACM (acm.html)
response = multipart_upload.abort(
ACMPCA (acm-pca.html) RequestPayer='requester'
AlexaForBusiness )
(alexaforbusiness.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)
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.
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).
AlexaForBusiness
(alexaforbusiness.html) object = multipart_upload.Object()
Amplify (amplify.html)
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).
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)
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(
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)
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)
../../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)
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) --
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
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)
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
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
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)
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()
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)
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)
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.
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.
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)
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)
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
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
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) --
Quickstart
(../../guide/quickstart.html) {
'DeleteMarker': True|False,
A Sample Tutorial 'VersionId': 'string',
(../../guide/sqs.html)
'RequestCharged': 'requester'
Code Examples }
(../../guide/examples.html)
../../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.
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)
ACMPCA (acm-pca.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)
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
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.
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)
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
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)
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) --
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
User Guides
(../../guide/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.
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.
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).
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)
AlexaForBusiness Returns
(alexaforbusiness.html) A MultipartUpload resource
Amplify (amplify.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)
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)
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)
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:
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.
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)
Quickstart
(../../guide/quickstart.html)
A Sample Tutorial
(../../guide/sqs.html)
Code Examples
(../../guide/examples.html)
User Guides
(../../guide/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.
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 ()
A Sample Tutorial
(../../guide/sqs.html) import boto3
TABLE OF CONTENTS
Quickstart
(../../guide/quickstart.html)
A Sample Tutorial
(../../guide/sqs.html)
Code Examples
(../../guide/examples.html)
User Guides
(../../guide/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)
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
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
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) --
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)
../../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)
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)
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.
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
../../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.
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)
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
(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) --
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) )
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.
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.
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.
TABLE OF CONTENTS
Bucket ()
Creates a Bucket resource.:
Quickstart
(../../guide/quickstart.html)
bucket = object_summary.Bucket()
A Sample Tutorial
(../../guide/sqs.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)
ACMPCA (acm-pca.html)
Parameters
AlexaForBusiness
(alexaforbusiness.html) id (string) -- The Version's id identifier. This must be set.
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)
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.
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)
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
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:
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)
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.
AlexaForBusiness
(alexaforbusiness.html) Response Structure
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)
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)
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)
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
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.
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)
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)
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.
ObjectLockMode (string) --
TABLE OF CONTENTS
The object lock mode currently in place for this object.
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)
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)
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)
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)
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)
ACM (acm.html)
ACMPCA (acm-pca.html)
AlexaForBusiness
(alexaforbusiness.html)
Amplify (amplify.html)
APIGateway
(apigateway.html)
ApiGatewayManagement
Api
(apigatewaymanagement
api.html)