amazonka-ecr-1.4.0: 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:

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:

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.