amazonka-ecr-2.0: Amazon EC2 Container Registry 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.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
ToJSON PutRegistryPolicy Source # 
Instance details

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

AWSRequest PutRegistryPolicy Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

Associated Types

type AWSResponse PutRegistryPolicy #

Generic PutRegistryPolicy Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

Associated Types

type Rep PutRegistryPolicy :: Type -> Type #

Read PutRegistryPolicy Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

Show PutRegistryPolicy Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

NFData PutRegistryPolicy Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

Methods

rnf :: PutRegistryPolicy -> () #

Eq PutRegistryPolicy Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

Hashable PutRegistryPolicy Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

type AWSResponse 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" "amazonka-ecr-2.0-BqgZWPod2JCFn2nq69DCrJ" 'False) (C1 ('MetaCons "PutRegistryPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policyText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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:

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

Defined in Amazonka.ECR.PutRegistryPolicy

Associated Types

type Rep PutRegistryPolicyResponse :: Type -> Type #

Read PutRegistryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

Show PutRegistryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

NFData PutRegistryPolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.PutRegistryPolicy

Eq 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" "amazonka-ecr-2.0-BqgZWPod2JCFn2nq69DCrJ" 'False) (C1 ('MetaCons "PutRegistryPolicyResponse'" '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 "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:

PutRegistryPolicy, putRegistryPolicyResponse_policyText - The JSON policy text for your registry.

PutRegistryPolicyResponse, putRegistryPolicyResponse_registryId - The registry ID.

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

Response Lenses