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

Description

Creates or updates the lifecycle policy for the specified repository. For more information, see Lifecycle policy template.

Synopsis

Creating a Request

data PutLifecyclePolicy Source #

See: newPutLifecyclePolicy smart constructor.

Constructors

PutLifecyclePolicy' 

Fields

  • registryId :: Maybe Text

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

  • repositoryName :: Text

    The name of the repository to receive the policy.

  • lifecyclePolicyText :: Text

    The JSON repository policy text to apply to the repository.

Instances

Instances details
ToJSON PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

ToHeaders PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

ToPath PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

ToQuery PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

AWSRequest PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

Associated Types

type AWSResponse PutLifecyclePolicy #

Generic PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

Associated Types

type Rep PutLifecyclePolicy :: Type -> Type #

Read PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

Show PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

NFData PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

Methods

rnf :: PutLifecyclePolicy -> () #

Eq PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

Hashable PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

type AWSResponse PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

type Rep PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

type Rep PutLifecyclePolicy = D1 ('MetaData "PutLifecyclePolicy" "Amazonka.ECR.PutLifecyclePolicy" "amazonka-ecr-2.0-BqgZWPod2JCFn2nq69DCrJ" 'False) (C1 ('MetaCons "PutLifecyclePolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "registryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "lifecyclePolicyText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newPutLifecyclePolicy Source #

Create a value of PutLifecyclePolicy 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:

PutLifecyclePolicy, putLifecyclePolicy_registryId - The Amazon Web Services account ID associated with the registry that contains the repository. If you do
 not specify a registry, the default registry is assumed.

PutLifecyclePolicy, putLifecyclePolicy_repositoryName - The name of the repository to receive the policy.

PutLifecyclePolicy, putLifecyclePolicy_lifecyclePolicyText - The JSON repository policy text to apply to the repository.

Request Lenses

putLifecyclePolicy_registryId :: Lens' PutLifecyclePolicy (Maybe Text) Source #

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

putLifecyclePolicy_repositoryName :: Lens' PutLifecyclePolicy Text Source #

The name of the repository to receive the policy.

putLifecyclePolicy_lifecyclePolicyText :: Lens' PutLifecyclePolicy Text Source #

The JSON repository policy text to apply to the repository.

Destructuring the Response

data PutLifecyclePolicyResponse Source #

See: newPutLifecyclePolicyResponse smart constructor.

Constructors

PutLifecyclePolicyResponse' 

Fields

Instances

Instances details
Generic PutLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

Associated Types

type Rep PutLifecyclePolicyResponse :: Type -> Type #

Read PutLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

Show PutLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

NFData PutLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

Eq PutLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

type Rep PutLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

type Rep PutLifecyclePolicyResponse = D1 ('MetaData "PutLifecyclePolicyResponse" "Amazonka.ECR.PutLifecyclePolicy" "amazonka-ecr-2.0-BqgZWPod2JCFn2nq69DCrJ" 'False) (C1 ('MetaCons "PutLifecyclePolicyResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "lifecyclePolicyText") '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))))

newPutLifecyclePolicyResponse Source #

Create a value of PutLifecyclePolicyResponse 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:

PutLifecyclePolicy, putLifecyclePolicyResponse_lifecyclePolicyText - The JSON repository policy text.

PutLifecyclePolicy, putLifecyclePolicyResponse_registryId - The registry ID associated with the request.

PutLifecyclePolicy, putLifecyclePolicyResponse_repositoryName - The repository name associated with the request.

$sel:httpStatus:PutLifecyclePolicyResponse', putLifecyclePolicyResponse_httpStatus - The response's http status code.

Response Lenses

putLifecyclePolicyResponse_repositoryName :: Lens' PutLifecyclePolicyResponse (Maybe Text) Source #

The repository name associated with the request.