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

Description

Applies a repository policy to the specified public repository to control access permissions. For more information, see Amazon ECR Repository Policies in the Amazon Elastic Container Registry User Guide.

Synopsis

Creating a Request

data SetRepositoryPolicy Source #

See: newSetRepositoryPolicy smart constructor.

Constructors

SetRepositoryPolicy' 

Fields

  • force :: Maybe Bool

    If the policy you are attempting to set on a repository policy would prevent you from setting another policy in the future, you must force the SetRepositoryPolicy operation. This is intended to prevent accidental repository lock outs.

  • registryId :: Maybe Text

    The AWS account ID associated with the 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 to receive the policy.

  • policyText :: Text

    The JSON repository policy text to apply to the repository. For more information, see Amazon ECR Repository Policies in the Amazon Elastic Container Registry User Guide.

Instances

Instances details
Eq SetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.SetRepositoryPolicy

Read SetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.SetRepositoryPolicy

Show SetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.SetRepositoryPolicy

Generic SetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.SetRepositoryPolicy

Associated Types

type Rep SetRepositoryPolicy :: Type -> Type #

NFData SetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.SetRepositoryPolicy

Methods

rnf :: SetRepositoryPolicy -> () #

Hashable SetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.SetRepositoryPolicy

ToJSON SetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.SetRepositoryPolicy

AWSRequest SetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.SetRepositoryPolicy

Associated Types

type AWSResponse SetRepositoryPolicy #

ToHeaders SetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.SetRepositoryPolicy

ToPath SetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.SetRepositoryPolicy

ToQuery SetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.SetRepositoryPolicy

type Rep SetRepositoryPolicy Source # 
Instance details

Defined in Amazonka.ECRPublic.SetRepositoryPolicy

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

Defined in Amazonka.ECRPublic.SetRepositoryPolicy

newSetRepositoryPolicy Source #

Create a value of SetRepositoryPolicy 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:force:SetRepositoryPolicy', setRepositoryPolicy_force - If the policy you are attempting to set on a repository policy would prevent you from setting another policy in the future, you must force the SetRepositoryPolicy operation. This is intended to prevent accidental repository lock outs.

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

$sel:repositoryName:SetRepositoryPolicy', setRepositoryPolicy_repositoryName - The name of the repository to receive the policy.

$sel:policyText:SetRepositoryPolicy', setRepositoryPolicy_policyText - The JSON repository policy text to apply to the repository. For more information, see Amazon ECR Repository Policies in the Amazon Elastic Container Registry User Guide.

Request Lenses

setRepositoryPolicy_force :: Lens' SetRepositoryPolicy (Maybe Bool) Source #

If the policy you are attempting to set on a repository policy would prevent you from setting another policy in the future, you must force the SetRepositoryPolicy operation. This is intended to prevent accidental repository lock outs.

setRepositoryPolicy_registryId :: Lens' SetRepositoryPolicy (Maybe Text) Source #

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

setRepositoryPolicy_repositoryName :: Lens' SetRepositoryPolicy Text Source #

The name of the repository to receive the policy.

setRepositoryPolicy_policyText :: Lens' SetRepositoryPolicy Text Source #

The JSON repository policy text to apply to the repository. For more information, see Amazon ECR Repository Policies in the Amazon Elastic Container Registry User Guide.

Destructuring the Response

data SetRepositoryPolicyResponse Source #

See: newSetRepositoryPolicyResponse smart constructor.

Constructors

SetRepositoryPolicyResponse' 

Fields

Instances

Instances details
Eq SetRepositoryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.SetRepositoryPolicy

Read SetRepositoryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.SetRepositoryPolicy

Show SetRepositoryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.SetRepositoryPolicy

Generic SetRepositoryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.SetRepositoryPolicy

Associated Types

type Rep SetRepositoryPolicyResponse :: Type -> Type #

NFData SetRepositoryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.SetRepositoryPolicy

type Rep SetRepositoryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.SetRepositoryPolicy

type Rep SetRepositoryPolicyResponse = D1 ('MetaData "SetRepositoryPolicyResponse" "Amazonka.ECRPublic.SetRepositoryPolicy" "libZSservicesZSamazonka-ecr-publicZSamazonka-ecr-public" 'False) (C1 ('MetaCons "SetRepositoryPolicyResponse'" '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))))

newSetRepositoryPolicyResponse Source #

Create a value of SetRepositoryPolicyResponse 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:SetRepositoryPolicy', setRepositoryPolicyResponse_registryId - The registry ID associated with the request.

$sel:repositoryName:SetRepositoryPolicy', setRepositoryPolicyResponse_repositoryName - The repository name associated with the request.

$sel:policyText:SetRepositoryPolicy', setRepositoryPolicyResponse_policyText - The JSON repository policy text applied to the repository.

$sel:httpStatus:SetRepositoryPolicyResponse', setRepositoryPolicyResponse_httpStatus - The response's http status code.

Response Lenses

setRepositoryPolicyResponse_policyText :: Lens' SetRepositoryPolicyResponse (Maybe Text) Source #

The JSON repository policy text applied to the repository.