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

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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.

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:

data PutBucketPolicy Source #

See: putBucketPolicy smart constructor.

Instances
Eq PutBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.PutBucketPolicy

Data PutBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.PutBucketPolicy

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutBucketPolicy -> c PutBucketPolicy #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutBucketPolicy #

toConstr :: PutBucketPolicy -> Constr #

dataTypeOf :: PutBucketPolicy -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PutBucketPolicy) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutBucketPolicy) #

gmapT :: (forall b. Data b => b -> b) -> PutBucketPolicy -> PutBucketPolicy #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutBucketPolicy -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutBucketPolicy -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutBucketPolicy -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutBucketPolicy -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutBucketPolicy -> m PutBucketPolicy #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutBucketPolicy -> m PutBucketPolicy #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutBucketPolicy -> m PutBucketPolicy #

Show PutBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.PutBucketPolicy

Generic PutBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.PutBucketPolicy

Associated Types

type Rep PutBucketPolicy :: Type -> Type #

Hashable PutBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.PutBucketPolicy

AWSRequest PutBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.PutBucketPolicy

Associated Types

type Rs PutBucketPolicy :: Type #

ToBody PutBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.PutBucketPolicy

ToHeaders PutBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.PutBucketPolicy

ToPath PutBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.PutBucketPolicy

ToQuery PutBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.PutBucketPolicy

NFData PutBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.PutBucketPolicy

Methods

rnf :: PutBucketPolicy -> () #

type Rep PutBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.PutBucketPolicy

type Rep PutBucketPolicy = D1 (MetaData "PutBucketPolicy" "Network.AWS.S3.PutBucketPolicy" "amazonka-s3-1.6.1-I7VsiKive605KPmKsVgrUz" False) (C1 (MetaCons "PutBucketPolicy'" PrefixI True) ((S1 (MetaSel (Just "_pbpConfirmRemoveSelfBucketAccess") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_pbpContentMD5") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pbpBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 BucketName) :*: S1 (MetaSel (Just "_pbpPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ByteString))))
type Rs PutBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.PutBucketPolicy

Request Lenses

pbpConfirmRemoveSelfBucketAccess :: Lens' PutBucketPolicy (Maybe Bool) Source #

Set this parameter to true to confirm that you want to remove your permissions to change this bucket policy in the future.

pbpPolicy :: Lens' PutBucketPolicy ByteString 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.

data PutBucketPolicyResponse Source #

See: putBucketPolicyResponse smart constructor.

Instances
Eq PutBucketPolicyResponse Source # 
Instance details

Defined in Network.AWS.S3.PutBucketPolicy

Data PutBucketPolicyResponse Source # 
Instance details

Defined in Network.AWS.S3.PutBucketPolicy

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutBucketPolicyResponse -> c PutBucketPolicyResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutBucketPolicyResponse #

toConstr :: PutBucketPolicyResponse -> Constr #

dataTypeOf :: PutBucketPolicyResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PutBucketPolicyResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutBucketPolicyResponse) #

gmapT :: (forall b. Data b => b -> b) -> PutBucketPolicyResponse -> PutBucketPolicyResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutBucketPolicyResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutBucketPolicyResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutBucketPolicyResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutBucketPolicyResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutBucketPolicyResponse -> m PutBucketPolicyResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutBucketPolicyResponse -> m PutBucketPolicyResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutBucketPolicyResponse -> m PutBucketPolicyResponse #

Read PutBucketPolicyResponse Source # 
Instance details

Defined in Network.AWS.S3.PutBucketPolicy

Show PutBucketPolicyResponse Source # 
Instance details

Defined in Network.AWS.S3.PutBucketPolicy

Generic PutBucketPolicyResponse Source # 
Instance details

Defined in Network.AWS.S3.PutBucketPolicy

Associated Types

type Rep PutBucketPolicyResponse :: Type -> Type #

NFData PutBucketPolicyResponse Source # 
Instance details

Defined in Network.AWS.S3.PutBucketPolicy

Methods

rnf :: PutBucketPolicyResponse -> () #

type Rep PutBucketPolicyResponse Source # 
Instance details

Defined in Network.AWS.S3.PutBucketPolicy

type Rep PutBucketPolicyResponse = D1 (MetaData "PutBucketPolicyResponse" "Network.AWS.S3.PutBucketPolicy" "amazonka-s3-1.6.1-I7VsiKive605KPmKsVgrUz" False) (C1 (MetaCons "PutBucketPolicyResponse'" PrefixI False) (U1 :: Type -> Type))