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

Contents

Description

Retrieves the results of the specified lifecycle policy preview request.

Synopsis

Creating a Request

getLifecyclePolicyPreview Source #

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

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

  • glppRegistryId - The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.
  • glppImageIds - The list of imageIDs to be included.
  • glppNextToken - The nextToken value returned from a previous paginated
 GetLifecyclePolicyPreviewRequest request where maxResults was used and the
 results exceeded the value of that parameter. Pagination continues from the end of the
 previous results that returned the nextToken value. This value is
 null when there are no more results to return. This option cannot be used when you specify images with imageIds .
  • glppFilter - An optional parameter that filters results based on image tag status and all tags, if tagged.
  • glppMaxResults - The maximum number of repository results returned by GetLifecyclePolicyPreviewRequest in
 paginated output. When this parameter is used, GetLifecyclePolicyPreviewRequest only returns
 maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending
 another GetLifecyclePolicyPreviewRequest request with the returned nextToken value. This value can be between 1 and 100. If this
 parameter is not used, then GetLifecyclePolicyPreviewRequest returns up to
 100 results and a nextToken value, if
 applicable. This option cannot be used when you specify images with imageIds .
  • glppRepositoryName - The name of the repository.

data GetLifecyclePolicyPreview Source #

See: getLifecyclePolicyPreview smart constructor.

Instances

Eq GetLifecyclePolicyPreview Source # 
Data GetLifecyclePolicyPreview Source # 

Methods

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

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

toConstr :: GetLifecyclePolicyPreview -> Constr #

dataTypeOf :: GetLifecyclePolicyPreview -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetLifecyclePolicyPreview Source # 
Show GetLifecyclePolicyPreview Source # 
Generic GetLifecyclePolicyPreview Source # 
Hashable GetLifecyclePolicyPreview Source # 
ToJSON GetLifecyclePolicyPreview Source # 
NFData GetLifecyclePolicyPreview Source # 
AWSRequest GetLifecyclePolicyPreview Source # 
ToHeaders GetLifecyclePolicyPreview Source # 
ToPath GetLifecyclePolicyPreview Source # 
ToQuery GetLifecyclePolicyPreview Source # 
type Rep GetLifecyclePolicyPreview Source # 
type Rep GetLifecyclePolicyPreview = D1 * (MetaData "GetLifecyclePolicyPreview" "Network.AWS.ECR.GetLifecyclePolicyPreview" "amazonka-ecr-1.6.0-3Z9tWPZJrvhHtKQOsCutbq" False) (C1 * (MetaCons "GetLifecyclePolicyPreview'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_glppRegistryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_glppImageIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [ImageIdentifier]))) (S1 * (MetaSel (Just Symbol "_glppNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * (S1 * (MetaSel (Just Symbol "_glppFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe LifecyclePolicyPreviewFilter))) ((:*:) * (S1 * (MetaSel (Just Symbol "_glppMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) (S1 * (MetaSel (Just Symbol "_glppRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))
type Rs GetLifecyclePolicyPreview Source # 

Request Lenses

glppRegistryId :: Lens' GetLifecyclePolicyPreview (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.

glppImageIds :: Lens' GetLifecyclePolicyPreview [ImageIdentifier] Source #

The list of imageIDs to be included.

glppNextToken :: Lens' GetLifecyclePolicyPreview (Maybe Text) Source #

The nextToken value returned from a previous paginated
 GetLifecyclePolicyPreviewRequest request where maxResults was used and the
 results exceeded the value of that parameter. Pagination continues from the end of the
 previous results that returned the nextToken value. This value is
 null when there are no more results to return. This option cannot be used when you specify images with imageIds .

glppFilter :: Lens' GetLifecyclePolicyPreview (Maybe LifecyclePolicyPreviewFilter) Source #

An optional parameter that filters results based on image tag status and all tags, if tagged.

glppMaxResults :: Lens' GetLifecyclePolicyPreview (Maybe Natural) Source #

The maximum number of repository results returned by GetLifecyclePolicyPreviewRequest in
 paginated output. When this parameter is used, GetLifecyclePolicyPreviewRequest only returns
 maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending
 another GetLifecyclePolicyPreviewRequest request with the returned nextToken value. This value can be between 1 and 100. If this
 parameter is not used, then GetLifecyclePolicyPreviewRequest returns up to
 100 results and a nextToken value, if
 applicable. This option cannot be used when you specify images with imageIds .

Destructuring the Response

getLifecyclePolicyPreviewResponse Source #

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

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

  • glpprsSummary - The list of images that is returned as a result of the action.
  • glpprsStatus - The status of the lifecycle policy preview request.
  • glpprsRegistryId - The registry ID associated with the request.
  • glpprsLifecyclePolicyText - The JSON lifecycle policy text.
  • glpprsNextToken - The nextToken value to include in a future GetLifecyclePolicyPreview request. When the results of a GetLifecyclePolicyPreview request exceed maxResults , this value can be used to retrieve the next page of results. This value is null when there are no more results to return.
  • glpprsRepositoryName - The repository name associated with the request.
  • glpprsPreviewResults - The results of the lifecycle policy preview request.
  • glpprsResponseStatus - -- | The response status code.

data GetLifecyclePolicyPreviewResponse Source #

See: getLifecyclePolicyPreviewResponse smart constructor.

Instances

Eq GetLifecyclePolicyPreviewResponse Source # 
Data GetLifecyclePolicyPreviewResponse Source # 

Methods

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

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

toConstr :: GetLifecyclePolicyPreviewResponse -> Constr #

dataTypeOf :: GetLifecyclePolicyPreviewResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetLifecyclePolicyPreviewResponse Source # 
Show GetLifecyclePolicyPreviewResponse Source # 
Generic GetLifecyclePolicyPreviewResponse Source # 
NFData GetLifecyclePolicyPreviewResponse Source # 
type Rep GetLifecyclePolicyPreviewResponse Source # 
type Rep GetLifecyclePolicyPreviewResponse = D1 * (MetaData "GetLifecyclePolicyPreviewResponse" "Network.AWS.ECR.GetLifecyclePolicyPreview" "amazonka-ecr-1.6.0-3Z9tWPZJrvhHtKQOsCutbq" False) (C1 * (MetaCons "GetLifecyclePolicyPreviewResponse'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_glpprsSummary") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe LifecyclePolicyPreviewSummary))) (S1 * (MetaSel (Just Symbol "_glpprsStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe LifecyclePolicyPreviewStatus)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_glpprsRegistryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_glpprsLifecyclePolicyText") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_glpprsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_glpprsRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_glpprsPreviewResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [LifecyclePolicyPreviewResult]))) (S1 * (MetaSel (Just Symbol "_glpprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))))

Response Lenses

glpprsSummary :: Lens' GetLifecyclePolicyPreviewResponse (Maybe LifecyclePolicyPreviewSummary) Source #

The list of images that is returned as a result of the action.

glpprsStatus :: Lens' GetLifecyclePolicyPreviewResponse (Maybe LifecyclePolicyPreviewStatus) Source #

The status of the lifecycle policy preview request.

glpprsRegistryId :: Lens' GetLifecyclePolicyPreviewResponse (Maybe Text) Source #

The registry ID associated with the request.

glpprsNextToken :: Lens' GetLifecyclePolicyPreviewResponse (Maybe Text) Source #

The nextToken value to include in a future GetLifecyclePolicyPreview request. When the results of a GetLifecyclePolicyPreview request exceed maxResults , this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

glpprsRepositoryName :: Lens' GetLifecyclePolicyPreviewResponse (Maybe Text) Source #

The repository name associated with the request.

glpprsPreviewResults :: Lens' GetLifecyclePolicyPreviewResponse [LifecyclePolicyPreviewResult] Source #

The results of the lifecycle policy preview request.