amazonka-ecr-1.6.0: Amazon EC2 Container Registry SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.ECR.GetLifecyclePolicy

Contents

Description

Retrieves the specified lifecycle policy.

Synopsis

Creating a Request

getLifecyclePolicy Source #

Creates a value of GetLifecyclePolicy with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • glpRegistryId - The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.
  • glpRepositoryName - The name of the repository.

data GetLifecyclePolicy Source #

See: getLifecyclePolicy smart constructor.

Instances

Eq GetLifecyclePolicy Source # 
Data GetLifecyclePolicy Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetLifecyclePolicy -> c GetLifecyclePolicy #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetLifecyclePolicy #

toConstr :: GetLifecyclePolicy -> Constr #

dataTypeOf :: GetLifecyclePolicy -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetLifecyclePolicy) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetLifecyclePolicy) #

gmapT :: (forall b. Data b => b -> b) -> GetLifecyclePolicy -> GetLifecyclePolicy #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetLifecyclePolicy -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetLifecyclePolicy -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetLifecyclePolicy -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetLifecyclePolicy -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetLifecyclePolicy -> m GetLifecyclePolicy #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetLifecyclePolicy -> m GetLifecyclePolicy #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetLifecyclePolicy -> m GetLifecyclePolicy #

Read GetLifecyclePolicy Source # 
Show GetLifecyclePolicy Source # 
Generic GetLifecyclePolicy Source # 
Hashable GetLifecyclePolicy Source # 
ToJSON GetLifecyclePolicy Source # 
NFData GetLifecyclePolicy Source # 

Methods

rnf :: GetLifecyclePolicy -> () #

AWSRequest GetLifecyclePolicy Source # 
ToHeaders GetLifecyclePolicy Source # 
ToPath GetLifecyclePolicy Source # 
ToQuery GetLifecyclePolicy Source # 
type Rep GetLifecyclePolicy Source # 
type Rep GetLifecyclePolicy = D1 * (MetaData "GetLifecyclePolicy" "Network.AWS.ECR.GetLifecyclePolicy" "amazonka-ecr-1.6.0-3Z9tWPZJrvhHtKQOsCutbq" False) (C1 * (MetaCons "GetLifecyclePolicy'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_glpRegistryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_glpRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs GetLifecyclePolicy Source # 

Request Lenses

glpRegistryId :: Lens' GetLifecyclePolicy (Maybe Text) Source #

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

glpRepositoryName :: Lens' GetLifecyclePolicy Text Source #

The name of the repository.

Destructuring the Response

getLifecyclePolicyResponse Source #

Creates a value of GetLifecyclePolicyResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetLifecyclePolicyResponse Source #

See: getLifecyclePolicyResponse smart constructor.

Instances

Eq GetLifecyclePolicyResponse Source # 
Data GetLifecyclePolicyResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetLifecyclePolicyResponse -> c GetLifecyclePolicyResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetLifecyclePolicyResponse #

toConstr :: GetLifecyclePolicyResponse -> Constr #

dataTypeOf :: GetLifecyclePolicyResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetLifecyclePolicyResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetLifecyclePolicyResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetLifecyclePolicyResponse -> GetLifecyclePolicyResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetLifecyclePolicyResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetLifecyclePolicyResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetLifecyclePolicyResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetLifecyclePolicyResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetLifecyclePolicyResponse -> m GetLifecyclePolicyResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetLifecyclePolicyResponse -> m GetLifecyclePolicyResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetLifecyclePolicyResponse -> m GetLifecyclePolicyResponse #

Read GetLifecyclePolicyResponse Source # 
Show GetLifecyclePolicyResponse Source # 
Generic GetLifecyclePolicyResponse Source # 
NFData GetLifecyclePolicyResponse Source # 
type Rep GetLifecyclePolicyResponse Source # 
type Rep GetLifecyclePolicyResponse = D1 * (MetaData "GetLifecyclePolicyResponse" "Network.AWS.ECR.GetLifecyclePolicy" "amazonka-ecr-1.6.0-3Z9tWPZJrvhHtKQOsCutbq" False) (C1 * (MetaCons "GetLifecyclePolicyResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_glprsRegistryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_glprsLastEvaluatedAt") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe POSIX)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_glprsLifecyclePolicyText") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_glprsRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_glprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))))

Response Lenses

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

The registry ID associated with the request.

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

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

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

The repository name associated with the request.