Bucket / Sub-Resource / Policy

Policy#

S3.Bucket.Policy()#

Creates a BucketPolicy resource.:

bucket_policy = bucket.Policy()
Return type:

S3.BucketPolicy

Returns:

A BucketPolicy resource