libZSservicesZSamazonka-ecrZSamazonka-ecr
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.ECR.PutRegistryPolicy

Description

Creates or updates the permissions policy for your registry.

A registry policy is used to specify permissions for another Amazon Web Services account and is used when configuring cross-account replication. For more information, see Registry permissions in the Amazon Elastic Container Registry User Guide.

Synopsis

Creating a Request

data PutRegistryPolicy Source #

See: newPutRegistryPolicy smart constructor.

Constructors

PutRegistryPolicy' 

Fields

  • policyText :: Text

    The JSON policy text to apply to your registry. The policy text follows the same format as IAM policy text. For more information, see Registry permissions in the Amazon Elastic Container Registry User Guide.

Instances

Instances details
Eq PutRegistryPolicy Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

Read PutRegistryPolicy Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

Show PutRegistryPolicy Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

Generic PutRegistryPolicy Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

Associated Types

type Rep PutRegistryPolicy :: Type -> Type #

NFData PutRegistryPolicy Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

Methods

rnf :: PutRegistryPolicy -> () #

Hashable PutRegistryPolicy Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

ToJSON PutRegistryPolicy Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

AWSRequest PutRegistryPolicy Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

Associated Types

type AWSResponse PutRegistryPolicy #

ToHeaders PutRegistryPolicy Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

ToPath PutRegistryPolicy Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

ToQuery PutRegistryPolicy Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

type Rep PutRegistryPolicy Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

type Rep PutRegistryPolicy = D1 ('MetaData "PutRegistryPolicy" "Amazonka.ECR.PutRegistryPolicy" "libZSservicesZSamazonka-ecrZSamazonka-ecr" 'False) (C1 ('MetaCons "PutRegistryPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policyText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse PutRegistryPolicy Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

newPutRegistryPolicy Source #

Create a value of PutRegistryPolicy 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:PutRegistryPolicy', putRegistryPolicy_policyText - The JSON policy text to apply to your registry. The policy text follows the same format as IAM policy text. For more information, see Registry permissions in the Amazon Elastic Container Registry User Guide.

Request Lenses

putRegistryPolicy_policyText :: Lens' PutRegistryPolicy Text Source #

The JSON policy text to apply to your registry. The policy text follows the same format as IAM policy text. For more information, see Registry permissions in the Amazon Elastic Container Registry User Guide.

Destructuring the Response

data PutRegistryPolicyResponse Source #

See: newPutRegistryPolicyResponse smart constructor.

Constructors

PutRegistryPolicyResponse' 

Fields

Instances

Instances details
Eq PutRegistryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

Read PutRegistryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

Show PutRegistryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

Generic PutRegistryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

Associated Types

type Rep PutRegistryPolicyResponse :: Type -> Type #

NFData PutRegistryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

type Rep PutRegistryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

type Rep PutRegistryPolicyResponse = D1 ('MetaData "PutRegistryPolicyResponse" "Amazonka.ECR.PutRegistryPolicy" "libZSservicesZSamazonka-ecrZSamazonka-ecr" 'False) (C1 ('MetaCons "PutRegistryPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "registryId") '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))))

newPutRegistryPolicyResponse Source #

Create a value of PutRegistryPolicyResponse 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:PutRegistryPolicyResponse', putRegistryPolicyResponse_registryId - The registry ID.

$sel:policyText:PutRegistryPolicy', putRegistryPolicyResponse_policyText - The JSON policy text for your registry.

$sel:httpStatus:PutRegistryPolicyResponse', putRegistryPolicyResponse_httpStatus - The response's http status code.

Response Lenses