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 the images in your account and their properties. The list can be filtered by creation time or modified time, and whether the image name contains a specified string.
This operation returns paginated results.
Synopsis
- data ListImages = ListImages' {}
- newListImages :: ListImages
- listImages_nameContains :: Lens' ListImages (Maybe Text)
- listImages_lastModifiedTimeBefore :: Lens' ListImages (Maybe UTCTime)
- listImages_creationTimeAfter :: Lens' ListImages (Maybe UTCTime)
- listImages_nextToken :: Lens' ListImages (Maybe Text)
- listImages_sortOrder :: Lens' ListImages (Maybe ImageSortOrder)
- listImages_lastModifiedTimeAfter :: Lens' ListImages (Maybe UTCTime)
- listImages_creationTimeBefore :: Lens' ListImages (Maybe UTCTime)
- listImages_maxResults :: Lens' ListImages (Maybe Natural)
- listImages_sortBy :: Lens' ListImages (Maybe ImageSortBy)
- data ListImagesResponse = ListImagesResponse' {}
- newListImagesResponse :: Int -> ListImagesResponse
- listImagesResponse_images :: Lens' ListImagesResponse (Maybe [Image])
- listImagesResponse_nextToken :: Lens' ListImagesResponse (Maybe Text)
- listImagesResponse_httpStatus :: Lens' ListImagesResponse Int
Creating a Request
data ListImages Source #
See: newListImages
smart constructor.
ListImages' | |
|
Instances
newListImages :: ListImages Source #
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:nameContains:ListImages'
, listImages_nameContains
- A filter that returns only images whose name contains the specified
string.
$sel:lastModifiedTimeBefore:ListImages'
, listImages_lastModifiedTimeBefore
- A filter that returns only images modified on or before the specified
time.
$sel:creationTimeAfter:ListImages'
, listImages_creationTimeAfter
- A filter that returns only images created on or after the specified
time.
$sel:nextToken:ListImages'
, listImages_nextToken
- If the previous call to ListImages
didn't return the full set of
images, the call returns a token for getting the next set of images.
$sel:sortOrder:ListImages'
, listImages_sortOrder
- The sort order. The default value is DESCENDING
.
$sel:lastModifiedTimeAfter:ListImages'
, listImages_lastModifiedTimeAfter
- A filter that returns only images modified on or after the specified
time.
$sel:creationTimeBefore:ListImages'
, listImages_creationTimeBefore
- A filter that returns only images created on or before the specified
time.
$sel:maxResults:ListImages'
, listImages_maxResults
- The maximum number of images to return in the response. The default
value is 10.
$sel:sortBy:ListImages'
, listImages_sortBy
- The property used to sort results. The default value is CREATION_TIME
.
Request Lenses
listImages_nameContains :: Lens' ListImages (Maybe Text) Source #
A filter that returns only images whose name contains the specified string.
listImages_lastModifiedTimeBefore :: Lens' ListImages (Maybe UTCTime) Source #
A filter that returns only images modified on or before the specified time.
listImages_creationTimeAfter :: Lens' ListImages (Maybe UTCTime) Source #
A filter that returns only images created on or after the specified time.
listImages_nextToken :: Lens' ListImages (Maybe Text) Source #
If the previous call to ListImages
didn't return the full set of
images, the call returns a token for getting the next set of images.
listImages_sortOrder :: Lens' ListImages (Maybe ImageSortOrder) Source #
The sort order. The default value is DESCENDING
.
listImages_lastModifiedTimeAfter :: Lens' ListImages (Maybe UTCTime) Source #
A filter that returns only images modified on or after the specified time.
listImages_creationTimeBefore :: Lens' ListImages (Maybe UTCTime) Source #
A filter that returns only images created on or before the specified time.
listImages_maxResults :: Lens' ListImages (Maybe Natural) Source #
The maximum number of images to return in the response. The default value is 10.
listImages_sortBy :: Lens' ListImages (Maybe ImageSortBy) Source #
The property used to sort results. The default value is CREATION_TIME
.
Destructuring the Response
data ListImagesResponse Source #
See: newListImagesResponse
smart constructor.
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:images:ListImagesResponse'
, listImagesResponse_images
- A list of images and their properties.
$sel:nextToken:ListImages'
, listImagesResponse_nextToken
- A token for getting the next set of images, if there are any.
$sel:httpStatus:ListImagesResponse'
, listImagesResponse_httpStatus
- The response's http status code.
Response Lenses
listImagesResponse_images :: Lens' ListImagesResponse (Maybe [Image]) Source #
A list of images and their properties.
listImagesResponse_nextToken :: Lens' ListImagesResponse (Maybe Text) Source #
A token for getting the next set of images, if there are any.
listImagesResponse_httpStatus :: Lens' ListImagesResponse Int Source #
The response's http status code.