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

Copyright(c) 2013-2017 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.GetBucketPolicy

Contents

Description

Returns the policy of a specified bucket.

Synopsis

Creating a Request

getBucketPolicy Source #

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

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

data GetBucketPolicy Source #

See: getBucketPolicy smart constructor.

Instances

Eq GetBucketPolicy Source # 
Data GetBucketPolicy Source # 

Methods

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

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

toConstr :: GetBucketPolicy -> Constr #

dataTypeOf :: GetBucketPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetBucketPolicy Source # 
Show GetBucketPolicy Source # 
Generic GetBucketPolicy Source # 
Hashable GetBucketPolicy Source # 
NFData GetBucketPolicy Source # 

Methods

rnf :: GetBucketPolicy -> () #

AWSRequest GetBucketPolicy Source # 
ToQuery GetBucketPolicy Source # 
ToPath GetBucketPolicy Source # 
ToHeaders GetBucketPolicy Source # 
type Rep GetBucketPolicy Source # 
type Rep GetBucketPolicy = D1 (MetaData "GetBucketPolicy" "Network.AWS.S3.GetBucketPolicy" "amazonka-s3-1.5.0-4i2REsRgyXL98WvgynC9is" True) (C1 (MetaCons "GetBucketPolicy'" PrefixI True) (S1 (MetaSel (Just Symbol "_gbpBucket") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 BucketName)))
type Rs GetBucketPolicy Source # 

Request Lenses

Destructuring the Response

getBucketPolicyResponse Source #

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

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

data GetBucketPolicyResponse Source #

See: getBucketPolicyResponse smart constructor.

Instances

Eq GetBucketPolicyResponse Source # 
Data GetBucketPolicyResponse Source # 

Methods

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

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

toConstr :: GetBucketPolicyResponse -> Constr #

dataTypeOf :: GetBucketPolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show GetBucketPolicyResponse Source # 
Generic GetBucketPolicyResponse Source # 
NFData GetBucketPolicyResponse Source # 

Methods

rnf :: GetBucketPolicyResponse -> () #

type Rep GetBucketPolicyResponse Source # 
type Rep GetBucketPolicyResponse = D1 (MetaData "GetBucketPolicyResponse" "Network.AWS.S3.GetBucketPolicy" "amazonka-s3-1.5.0-4i2REsRgyXL98WvgynC9is" False) (C1 (MetaCons "GetBucketPolicyResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gbprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_gbprsPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (HashMap Text Value)))))

Response Lenses

gbprsPolicy :: Lens' GetBucketPolicyResponse (HashMap Text Value) Source #

The bucket policy as a JSON document.