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.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
Eq PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

Read PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

Show PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

Generic PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

Associated Types

type Rep PutLifecyclePolicy :: Type -> Type #

NFData PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

Methods

rnf :: PutLifecyclePolicy -> () #

Hashable PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

ToJSON PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

AWSRequest PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

Associated Types

type AWSResponse 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

type Rep PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

type Rep PutLifecyclePolicy = D1 ('MetaData "PutLifecyclePolicy" "Amazonka.ECR.PutLifecyclePolicy" "libZSservicesZSamazonka-ecrZSamazonka-ecr" '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))))
type AWSResponse PutLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

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:

$sel:registryId: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.

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

$sel:lifecyclePolicyText: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
Eq PutLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

Read PutLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

Show PutLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

Generic PutLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.PutLifecyclePolicy

Associated Types

type Rep PutLifecyclePolicyResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-ecrZSamazonka-ecr" 'False) (C1 ('MetaCons "PutLifecyclePolicyResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "registryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lifecyclePolicyText") '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:

$sel:registryId:PutLifecyclePolicy', putLifecyclePolicyResponse_registryId - The registry ID associated with the request.

$sel:lifecyclePolicyText:PutLifecyclePolicy', putLifecyclePolicyResponse_lifecyclePolicyText - The JSON repository policy text.

$sel:repositoryName: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.