amazonka-s3-1.3.4: Amazon Simple Storage Service SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.S3.PutBucketPolicy

Contents

Description

Replaces a policy on a bucket. If the bucket already has a policy, the one in this request completely replaces it.

See: AWS API Reference for PutBucketPolicy.

Synopsis

Creating a Request

putBucketPolicy Source

Creates a value of PutBucketPolicy with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

pbpPolicy :: Lens' PutBucketPolicy (HashMap Text Value) Source

The bucket policy as a JSON document.

Destructuring the Response

putBucketPolicyResponse :: PutBucketPolicyResponse Source

Creates a value of PutBucketPolicyResponse with the minimum fields required to make a request.