amazonka-ecr-1.4.4: Amazon EC2 Container Registry SDK.

Copyright(c) 2013-2016 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.ECR.GetRepositoryPolicy

Contents

Description

Retrieves the repository policy for a specified repository.

Synopsis

Creating a Request

getRepositoryPolicy Source #

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

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

data GetRepositoryPolicy Source #

See: getRepositoryPolicy smart constructor.

Instances

Eq GetRepositoryPolicy Source # 
Data GetRepositoryPolicy Source # 

Methods

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

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

toConstr :: GetRepositoryPolicy -> Constr #

dataTypeOf :: GetRepositoryPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetRepositoryPolicy Source # 
Show GetRepositoryPolicy Source # 
Generic GetRepositoryPolicy Source # 
Hashable GetRepositoryPolicy Source # 
NFData GetRepositoryPolicy Source # 

Methods

rnf :: GetRepositoryPolicy -> () #

AWSRequest GetRepositoryPolicy Source # 
ToPath GetRepositoryPolicy Source # 
ToHeaders GetRepositoryPolicy Source # 
ToQuery GetRepositoryPolicy Source # 
ToJSON GetRepositoryPolicy Source # 
type Rep GetRepositoryPolicy Source # 
type Rep GetRepositoryPolicy = D1 (MetaData "GetRepositoryPolicy" "Network.AWS.ECR.GetRepositoryPolicy" "amazonka-ecr-1.4.4-A4Pky1aCrQ8Q8zCT22L20" False) (C1 (MetaCons "GetRepositoryPolicy'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_grpRegistryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_grpRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs GetRepositoryPolicy Source # 

Request Lenses

grpRegistryId :: Lens' GetRepositoryPolicy (Maybe Text) Source #

The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.

grpRepositoryName :: Lens' GetRepositoryPolicy Text Source #

The name of the repository whose policy you want to retrieve.

Destructuring the Response

getRepositoryPolicyResponse Source #

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

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

data GetRepositoryPolicyResponse Source #

See: getRepositoryPolicyResponse smart constructor.

Instances

Eq GetRepositoryPolicyResponse Source # 
Data GetRepositoryPolicyResponse Source # 

Methods

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

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

toConstr :: GetRepositoryPolicyResponse -> Constr #

dataTypeOf :: GetRepositoryPolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetRepositoryPolicyResponse Source # 
Show GetRepositoryPolicyResponse Source # 
Generic GetRepositoryPolicyResponse Source # 
NFData GetRepositoryPolicyResponse Source # 
type Rep GetRepositoryPolicyResponse Source # 
type Rep GetRepositoryPolicyResponse = D1 (MetaData "GetRepositoryPolicyResponse" "Network.AWS.ECR.GetRepositoryPolicy" "amazonka-ecr-1.4.4-A4Pky1aCrQ8Q8zCT22L20" False) (C1 (MetaCons "GetRepositoryPolicyResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_grprsRegistryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_grprsRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_grprsPolicyText") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_grprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

grprsRegistryId :: Lens' GetRepositoryPolicyResponse (Maybe Text) Source #

The registry ID associated with the request.

grprsRepositoryName :: Lens' GetRepositoryPolicyResponse (Maybe Text) Source #

The repository name associated with the request.

grprsPolicyText :: Lens' GetRepositoryPolicyResponse (Maybe Text) Source #

The JSON repository policy text associated with the repository.