Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Lists all the image IDs for the specified repository.
You can filter images based on whether or not they are tagged by using
the tagStatus
filter and specifying either TAGGED
, UNTAGGED
or
ANY
. For example, you can filter your results to return only
UNTAGGED
images and then pipe that result to a BatchDeleteImage
operation to delete them. Or, you can filter your results to return only
TAGGED
images to list all of the tags in your repository.
This operation returns paginated results.
Synopsis
- data ListImages = ListImages' {}
- newListImages :: Text -> ListImages
- listImages_registryId :: Lens' ListImages (Maybe Text)
- listImages_nextToken :: Lens' ListImages (Maybe Text)
- listImages_filter :: Lens' ListImages (Maybe ListImagesFilter)
- listImages_maxResults :: Lens' ListImages (Maybe Natural)
- listImages_repositoryName :: Lens' ListImages Text
- data ListImagesResponse = ListImagesResponse' {
- imageIds :: Maybe [ImageIdentifier]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListImagesResponse :: Int -> ListImagesResponse
- listImagesResponse_imageIds :: Lens' ListImagesResponse (Maybe [ImageIdentifier])
- listImagesResponse_nextToken :: Lens' ListImagesResponse (Maybe Text)
- listImagesResponse_httpStatus :: Lens' ListImagesResponse Int
Creating a Request
data ListImages Source #
See: newListImages
smart constructor.
ListImages' | |
|
Instances
Create a value of ListImages
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:ListImages'
, listImages_registryId
- The Amazon Web Services account ID associated with the registry that
contains the repository in which to list images. If you do not specify a
registry, the default registry is assumed.
$sel:nextToken:ListImages'
, listImages_nextToken
- The nextToken
value returned from a previous paginated ListImages
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 token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
$sel:filter':ListImages'
, listImages_filter
- The filter key and value with which to filter your ListImages
results.
$sel:maxResults:ListImages'
, listImages_maxResults
- The maximum number of image results returned by ListImages
in
paginated output. When this parameter is used, ListImages
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 ListImages
request with the returned nextToken
value. This value can be between 1 and 1000. If this parameter is not
used, then ListImages
returns up to 100 results and a nextToken
value, if applicable.
$sel:repositoryName:ListImages'
, listImages_repositoryName
- The repository with image IDs to be listed.
Request Lenses
listImages_registryId :: Lens' ListImages (Maybe Text) Source #
The Amazon Web Services account ID associated with the registry that contains the repository in which to list images. If you do not specify a registry, the default registry is assumed.
listImages_nextToken :: Lens' ListImages (Maybe Text) Source #
The nextToken
value returned from a previous paginated ListImages
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 token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
listImages_filter :: Lens' ListImages (Maybe ListImagesFilter) Source #
The filter key and value with which to filter your ListImages
results.
listImages_maxResults :: Lens' ListImages (Maybe Natural) Source #
The maximum number of image results returned by ListImages
in
paginated output. When this parameter is used, ListImages
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 ListImages
request with the returned nextToken
value. This value can be between 1 and 1000. If this parameter is not
used, then ListImages
returns up to 100 results and a nextToken
value, if applicable.
listImages_repositoryName :: Lens' ListImages Text Source #
The repository with image IDs to be listed.
Destructuring the Response
data ListImagesResponse Source #
See: newListImagesResponse
smart constructor.
ListImagesResponse' | |
|
Instances
newListImagesResponse Source #
Create a value of ListImagesResponse
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:imageIds:ListImagesResponse'
, listImagesResponse_imageIds
- The list of image IDs for the requested repository.
$sel:nextToken:ListImages'
, listImagesResponse_nextToken
- The nextToken
value to include in a future ListImages
request. When
the results of a ListImages
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:httpStatus:ListImagesResponse'
, listImagesResponse_httpStatus
- The response's http status code.
Response Lenses
listImagesResponse_imageIds :: Lens' ListImagesResponse (Maybe [ImageIdentifier]) Source #
The list of image IDs for the requested repository.
listImagesResponse_nextToken :: Lens' ListImagesResponse (Maybe Text) Source #
The nextToken
value to include in a future ListImages
request. When
the results of a ListImages
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.
listImagesResponse_httpStatus :: Lens' ListImagesResponse Int Source #
The response's http status code.