| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.ECR.GetLifecyclePolicyPreview
Description
Retrieves the results of the lifecycle policy preview request for the specified repository.
This operation returns paginated results.
Synopsis
- data GetLifecyclePolicyPreview = GetLifecyclePolicyPreview' {}
- newGetLifecyclePolicyPreview :: Text -> GetLifecyclePolicyPreview
- getLifecyclePolicyPreview_filter :: Lens' GetLifecyclePolicyPreview (Maybe LifecyclePolicyPreviewFilter)
- getLifecyclePolicyPreview_imageIds :: Lens' GetLifecyclePolicyPreview (Maybe [ImageIdentifier])
- getLifecyclePolicyPreview_maxResults :: Lens' GetLifecyclePolicyPreview (Maybe Natural)
- getLifecyclePolicyPreview_nextToken :: Lens' GetLifecyclePolicyPreview (Maybe Text)
- getLifecyclePolicyPreview_registryId :: Lens' GetLifecyclePolicyPreview (Maybe Text)
- getLifecyclePolicyPreview_repositoryName :: Lens' GetLifecyclePolicyPreview Text
- data GetLifecyclePolicyPreviewResponse = GetLifecyclePolicyPreviewResponse' {}
- newGetLifecyclePolicyPreviewResponse :: Int -> GetLifecyclePolicyPreviewResponse
- getLifecyclePolicyPreviewResponse_lifecyclePolicyText :: Lens' GetLifecyclePolicyPreviewResponse (Maybe Text)
- getLifecyclePolicyPreviewResponse_nextToken :: Lens' GetLifecyclePolicyPreviewResponse (Maybe Text)
- getLifecyclePolicyPreviewResponse_previewResults :: Lens' GetLifecyclePolicyPreviewResponse (Maybe [LifecyclePolicyPreviewResult])
- getLifecyclePolicyPreviewResponse_registryId :: Lens' GetLifecyclePolicyPreviewResponse (Maybe Text)
- getLifecyclePolicyPreviewResponse_repositoryName :: Lens' GetLifecyclePolicyPreviewResponse (Maybe Text)
- getLifecyclePolicyPreviewResponse_status :: Lens' GetLifecyclePolicyPreviewResponse (Maybe LifecyclePolicyPreviewStatus)
- getLifecyclePolicyPreviewResponse_summary :: Lens' GetLifecyclePolicyPreviewResponse (Maybe LifecyclePolicyPreviewSummary)
- getLifecyclePolicyPreviewResponse_httpStatus :: Lens' GetLifecyclePolicyPreviewResponse Int
Creating a Request
data GetLifecyclePolicyPreview Source #
See: newGetLifecyclePolicyPreview smart constructor.
Constructors
| GetLifecyclePolicyPreview' | |
Fields
| |
Instances
newGetLifecyclePolicyPreview Source #
Arguments
| :: Text | |
| -> GetLifecyclePolicyPreview |
Create a value of GetLifecyclePolicyPreview 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:
GetLifecyclePolicyPreview, getLifecyclePolicyPreview_filter - An optional parameter that filters results based on image tag status and
all tags, if tagged.
$sel:imageIds:GetLifecyclePolicyPreview', getLifecyclePolicyPreview_imageIds - The list of imageIDs to be included.
$sel:maxResults:GetLifecyclePolicyPreview', getLifecyclePolicyPreview_maxResults - 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 1000. 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.
GetLifecyclePolicyPreview, getLifecyclePolicyPreview_nextToken - 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.
GetLifecyclePolicyPreview, getLifecyclePolicyPreview_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.
GetLifecyclePolicyPreview, getLifecyclePolicyPreview_repositoryName - The name of the repository.
Request Lenses
getLifecyclePolicyPreview_filter :: Lens' GetLifecyclePolicyPreview (Maybe LifecyclePolicyPreviewFilter) Source #
An optional parameter that filters results based on image tag status and all tags, if tagged.
getLifecyclePolicyPreview_imageIds :: Lens' GetLifecyclePolicyPreview (Maybe [ImageIdentifier]) Source #
The list of imageIDs to be included.
getLifecyclePolicyPreview_maxResults :: 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 1000. 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.
getLifecyclePolicyPreview_nextToken :: 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.
getLifecyclePolicyPreview_registryId :: Lens' GetLifecyclePolicyPreview (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.
getLifecyclePolicyPreview_repositoryName :: Lens' GetLifecyclePolicyPreview Text Source #
The name of the repository.
Destructuring the Response
data GetLifecyclePolicyPreviewResponse Source #
See: newGetLifecyclePolicyPreviewResponse smart constructor.
Constructors
| GetLifecyclePolicyPreviewResponse' | |
Fields
| |
Instances
newGetLifecyclePolicyPreviewResponse Source #
Arguments
| :: Int | |
| -> GetLifecyclePolicyPreviewResponse |
Create a value of GetLifecyclePolicyPreviewResponse 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:lifecyclePolicyText:GetLifecyclePolicyPreviewResponse', getLifecyclePolicyPreviewResponse_lifecyclePolicyText - The JSON lifecycle policy text.
GetLifecyclePolicyPreview, getLifecyclePolicyPreviewResponse_nextToken - 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.
$sel:previewResults:GetLifecyclePolicyPreviewResponse', getLifecyclePolicyPreviewResponse_previewResults - The results of the lifecycle policy preview request.
GetLifecyclePolicyPreview, getLifecyclePolicyPreviewResponse_registryId - The registry ID associated with the request.
GetLifecyclePolicyPreview, getLifecyclePolicyPreviewResponse_repositoryName - The repository name associated with the request.
GetLifecyclePolicyPreviewResponse, getLifecyclePolicyPreviewResponse_status - The status of the lifecycle policy preview request.
$sel:summary:GetLifecyclePolicyPreviewResponse', getLifecyclePolicyPreviewResponse_summary - The list of images that is returned as a result of the action.
$sel:httpStatus:GetLifecyclePolicyPreviewResponse', getLifecyclePolicyPreviewResponse_httpStatus - The response's http status code.
Response Lenses
getLifecyclePolicyPreviewResponse_lifecyclePolicyText :: Lens' GetLifecyclePolicyPreviewResponse (Maybe Text) Source #
The JSON lifecycle policy text.
getLifecyclePolicyPreviewResponse_nextToken :: 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.
getLifecyclePolicyPreviewResponse_previewResults :: Lens' GetLifecyclePolicyPreviewResponse (Maybe [LifecyclePolicyPreviewResult]) Source #
The results of the lifecycle policy preview request.
getLifecyclePolicyPreviewResponse_registryId :: Lens' GetLifecyclePolicyPreviewResponse (Maybe Text) Source #
The registry ID associated with the request.
getLifecyclePolicyPreviewResponse_repositoryName :: Lens' GetLifecyclePolicyPreviewResponse (Maybe Text) Source #
The repository name associated with the request.
getLifecyclePolicyPreviewResponse_status :: Lens' GetLifecyclePolicyPreviewResponse (Maybe LifecyclePolicyPreviewStatus) Source #
The status of the lifecycle policy preview request.
getLifecyclePolicyPreviewResponse_summary :: Lens' GetLifecyclePolicyPreviewResponse (Maybe LifecyclePolicyPreviewSummary) Source #
The list of images that is returned as a result of the action.
getLifecyclePolicyPreviewResponse_httpStatus :: Lens' GetLifecyclePolicyPreviewResponse Int Source #
The response's http status code.