libZSservicesZSamazonka-ecr-publicZSamazonka-ecr-public
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ECRPublic.GetRepositoryPolicy

Description

Retrieves the repository policy for the specified repository.

Synopsis

Creating a Request

data GetRepositoryPolicy Source #

See: newGetRepositoryPolicy smart constructor.

Constructors

GetRepositoryPolicy' 

Fields

  • registryId :: Maybe Text

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

  • repositoryName :: Text

    The name of the repository with the policy to retrieve.

Instances

Instances details
Eq GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

Read GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

Show GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

Generic GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

Associated Types

type Rep GetRepositoryPolicy :: Type -> Type #

NFData GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

Methods

rnf :: GetRepositoryPolicy -> () #

Hashable GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

ToJSON GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

AWSRequest GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

Associated Types

type AWSResponse GetRepositoryPolicy #

ToHeaders GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

ToPath GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

ToQuery GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

type Rep GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

type Rep GetRepositoryPolicy = D1 ('MetaData "GetRepositoryPolicy" "Amazonka.ECRPublic.GetRepositoryPolicy" "libZSservicesZSamazonka-ecr-publicZSamazonka-ecr-public" 'False) (C1 ('MetaCons "GetRepositoryPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "registryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

newGetRepositoryPolicy Source #

Create a value of GetRepositoryPolicy with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:registryId:GetRepositoryPolicy', getRepositoryPolicy_registryId - The AWS account ID associated with the public registry that contains the repository. If you do not specify a registry, the default public registry is assumed.

$sel:repositoryName:GetRepositoryPolicy', getRepositoryPolicy_repositoryName - The name of the repository with the policy to retrieve.

Request Lenses

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

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

getRepositoryPolicy_repositoryName :: Lens' GetRepositoryPolicy Text Source #

The name of the repository with the policy to retrieve.

Destructuring the Response

data GetRepositoryPolicyResponse Source #

See: newGetRepositoryPolicyResponse smart constructor.

Constructors

GetRepositoryPolicyResponse' 

Fields

Instances

Instances details
Eq GetRepositoryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

Read GetRepositoryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

Show GetRepositoryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

Generic GetRepositoryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

Associated Types

type Rep GetRepositoryPolicyResponse :: Type -> Type #

NFData GetRepositoryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

type Rep GetRepositoryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

type Rep GetRepositoryPolicyResponse = D1 ('MetaData "GetRepositoryPolicyResponse" "Amazonka.ECRPublic.GetRepositoryPolicy" "libZSservicesZSamazonka-ecr-publicZSamazonka-ecr-public" 'False) (C1 ('MetaCons "GetRepositoryPolicyResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "registryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "policyText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetRepositoryPolicyResponse Source #

Create a value of GetRepositoryPolicyResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:registryId:GetRepositoryPolicy', getRepositoryPolicyResponse_registryId - The registry ID associated with the request.

$sel:repositoryName:GetRepositoryPolicy', getRepositoryPolicyResponse_repositoryName - The repository name associated with the request.

$sel:policyText:GetRepositoryPolicyResponse', getRepositoryPolicyResponse_policyText - The repository policy text associated with the repository. The policy text will be in JSON format.

$sel:httpStatus:GetRepositoryPolicyResponse', getRepositoryPolicyResponse_httpStatus - The response's http status code.

Response Lenses

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

The repository policy text associated with the repository. The policy text will be in JSON format.