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.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 # 
Instance details

Defined in Network.AWS.S3.GetBucketPolicy

Data GetBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.GetBucketPolicy

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 # 
Instance details

Defined in Network.AWS.S3.GetBucketPolicy

Show GetBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.GetBucketPolicy

Generic GetBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.GetBucketPolicy

Associated Types

type Rep GetBucketPolicy :: Type -> Type #

Hashable GetBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.GetBucketPolicy

AWSRequest GetBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.GetBucketPolicy

Associated Types

type Rs GetBucketPolicy :: Type #

ToHeaders GetBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.GetBucketPolicy

ToPath GetBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.GetBucketPolicy

ToQuery GetBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.GetBucketPolicy

NFData GetBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.GetBucketPolicy

Methods

rnf :: GetBucketPolicy -> () #

type Rep GetBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.GetBucketPolicy

type Rep GetBucketPolicy = D1 (MetaData "GetBucketPolicy" "Network.AWS.S3.GetBucketPolicy" "amazonka-s3-1.6.1-I7VsiKive605KPmKsVgrUz" True) (C1 (MetaCons "GetBucketPolicy'" PrefixI True) (S1 (MetaSel (Just "_gbpBucket") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 BucketName)))
type Rs GetBucketPolicy Source # 
Instance details

Defined in Network.AWS.S3.GetBucketPolicy

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 # 
Instance details

Defined in Network.AWS.S3.GetBucketPolicy

Data GetBucketPolicyResponse Source # 
Instance details

Defined in Network.AWS.S3.GetBucketPolicy

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 # 
Instance details

Defined in Network.AWS.S3.GetBucketPolicy

Generic GetBucketPolicyResponse Source # 
Instance details

Defined in Network.AWS.S3.GetBucketPolicy

Associated Types

type Rep GetBucketPolicyResponse :: Type -> Type #

NFData GetBucketPolicyResponse Source # 
Instance details

Defined in Network.AWS.S3.GetBucketPolicy

Methods

rnf :: GetBucketPolicyResponse -> () #

type Rep GetBucketPolicyResponse Source # 
Instance details

Defined in Network.AWS.S3.GetBucketPolicy

type Rep GetBucketPolicyResponse = D1 (MetaData "GetBucketPolicyResponse" "Network.AWS.S3.GetBucketPolicy" "amazonka-s3-1.6.1-I7VsiKive605KPmKsVgrUz" False) (C1 (MetaCons "GetBucketPolicyResponse'" PrefixI True) (S1 (MetaSel (Just "_gbprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_gbprsPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ByteString)))

Response Lenses

gbprsPolicy :: Lens' GetBucketPolicyResponse ByteString Source #

The bucket policy as a JSON document.