amazonka-ecr-public-2.0: Amazon Elastic Container Registry Public SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.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

AWSRequest GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

Associated Types

type AWSResponse GetRepositoryPolicy #

Generic GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

Associated Types

type Rep GetRepositoryPolicy :: Type -> Type #

Read GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

Show GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

NFData GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

Methods

rnf :: GetRepositoryPolicy -> () #

Eq GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

Hashable GetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

type AWSResponse 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" "amazonka-ecr-public-2.0-37SU5CHdiHw3VhMeSkOlop" '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)))

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:

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.

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
Generic GetRepositoryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

Associated Types

type Rep GetRepositoryPolicyResponse :: Type -> Type #

Read GetRepositoryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

Show GetRepositoryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

NFData GetRepositoryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.GetRepositoryPolicy

Eq 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" "amazonka-ecr-public-2.0-37SU5CHdiHw3VhMeSkOlop" 'False) (C1 ('MetaCons "GetRepositoryPolicyResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "policyText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "registryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "repositoryName") '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:policyText:GetRepositoryPolicyResponse', getRepositoryPolicyResponse_policyText - The repository policy text associated with the repository. The policy text will be in JSON format.

GetRepositoryPolicy, getRepositoryPolicyResponse_registryId - The registry ID associated with the request.

GetRepositoryPolicy, getRepositoryPolicyResponse_repositoryName - The repository name associated with the request.

$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.