2016/06/28 - Amazon Simple Storage Service - 2 updated api methods
{'CreateBucketConfiguration': {'LocationConstraint': ['ap-south-1']}}
Creates a new bucket.
Request Syntax
client.create_bucket( ACL='private'|'public-read'|'public-read-write'|'authenticated-read', Bucket='string', CreateBucketConfiguration={ 'LocationConstraint': 'EU'|'eu-west-1'|'us-west-1'|'us-west-2'|'ap-south-1'|'ap-southeast-1'|'ap-southeast-2'|'ap-northeast-1'|'sa-east-1'|'cn-north-1'|'eu-central-1' }, GrantFullControl='string', GrantRead='string', GrantReadACP='string', GrantWrite='string', GrantWriteACP='string' )
string
The canned ACL to apply to the bucket.
string
[REQUIRED]
dict
LocationConstraint (string) -- Specifies the region where the bucket will be created. If you don't specify a region, the bucket will be created in US Standard.
string
Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
string
Allows grantee to list the objects in the bucket.
string
Allows grantee to read the bucket ACL.
string
Allows grantee to create, overwrite, and delete any object in the bucket.
string
Allows grantee to write the ACL for the applicable bucket.
dict
Response Syntax
{ 'Location': 'string' }
Response Structure
(dict) --
Location (string) --
{'LocationConstraint': ['ap-south-1']}
Returns the region the bucket resides in.
Request Syntax
client.get_bucket_location( Bucket='string' )
string
[REQUIRED]
dict
Response Syntax
{ 'LocationConstraint': 'EU'|'eu-west-1'|'us-west-1'|'us-west-2'|'ap-south-1'|'ap-southeast-1'|'ap-southeast-2'|'ap-northeast-1'|'sa-east-1'|'cn-north-1'|'eu-central-1' }
Response Structure
(dict) --
LocationConstraint (string) --