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

Description

Retrieves the lifecycle policy for the specified repository.

Synopsis

Creating a Request

data GetLifecyclePolicy Source #

See: newGetLifecyclePolicy smart constructor.

Constructors

GetLifecyclePolicy' 

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.

Instances

Instances details
Eq GetLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.GetLifecyclePolicy

Read GetLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.GetLifecyclePolicy

Show GetLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.GetLifecyclePolicy

Generic GetLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.GetLifecyclePolicy

Associated Types

type Rep GetLifecyclePolicy :: Type -> Type #

NFData GetLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.GetLifecyclePolicy

Methods

rnf :: GetLifecyclePolicy -> () #

Hashable GetLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.GetLifecyclePolicy

ToJSON GetLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.GetLifecyclePolicy

AWSRequest GetLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.GetLifecyclePolicy

Associated Types

type AWSResponse GetLifecyclePolicy #

ToHeaders GetLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.GetLifecyclePolicy

ToPath GetLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.GetLifecyclePolicy

ToQuery GetLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.GetLifecyclePolicy

type Rep GetLifecyclePolicy Source # 
Instance details

Defined in Amazonka.ECR.GetLifecyclePolicy

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

Defined in Amazonka.ECR.GetLifecyclePolicy

newGetLifecyclePolicy Source #

Create a value of GetLifecyclePolicy 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:GetLifecyclePolicy', getLifecyclePolicy_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:GetLifecyclePolicy', getLifecyclePolicy_repositoryName - The name of the repository.

Request Lenses

getLifecyclePolicy_registryId :: Lens' GetLifecyclePolicy (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.

Destructuring the Response

data GetLifecyclePolicyResponse Source #

See: newGetLifecyclePolicyResponse smart constructor.

Constructors

GetLifecyclePolicyResponse' 

Fields

Instances

Instances details
Eq GetLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.GetLifecyclePolicy

Read GetLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.GetLifecyclePolicy

Show GetLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.GetLifecyclePolicy

Generic GetLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.GetLifecyclePolicy

Associated Types

type Rep GetLifecyclePolicyResponse :: Type -> Type #

NFData GetLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.GetLifecyclePolicy

type Rep GetLifecyclePolicyResponse Source # 
Instance details

Defined in Amazonka.ECR.GetLifecyclePolicy

type Rep GetLifecyclePolicyResponse = D1 ('MetaData "GetLifecyclePolicyResponse" "Amazonka.ECR.GetLifecyclePolicy" "libZSservicesZSamazonka-ecrZSamazonka-ecr" 'False) (C1 ('MetaCons "GetLifecyclePolicyResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "registryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lastEvaluatedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (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)))))

newGetLifecyclePolicyResponse Source #

Create a value of GetLifecyclePolicyResponse 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:GetLifecyclePolicy', getLifecyclePolicyResponse_registryId - The registry ID associated with the request.

$sel:lastEvaluatedAt:GetLifecyclePolicyResponse', getLifecyclePolicyResponse_lastEvaluatedAt - The time stamp of the last time that the lifecycle policy was run.

$sel:lifecyclePolicyText:GetLifecyclePolicyResponse', getLifecyclePolicyResponse_lifecyclePolicyText - The JSON lifecycle policy text.

$sel:repositoryName:GetLifecyclePolicy', getLifecyclePolicyResponse_repositoryName - The repository name associated with the request.

$sel:httpStatus:GetLifecyclePolicyResponse', getLifecyclePolicyResponse_httpStatus - The response's http status code.

Response Lenses

getLifecyclePolicyResponse_lastEvaluatedAt :: Lens' GetLifecyclePolicyResponse (Maybe UTCTime) Source #

The time stamp of the last time that the lifecycle policy was run.

getLifecyclePolicyResponse_repositoryName :: Lens' GetLifecyclePolicyResponse (Maybe Text) Source #

The repository name associated with the request.