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 versions of a specified image and their properties. The list can be filtered by creation time or modified time.
This operation returns paginated results.
Synopsis
- data ListImageVersions = ListImageVersions' {}
- newListImageVersions :: Text -> ListImageVersions
- listImageVersions_lastModifiedTimeBefore :: Lens' ListImageVersions (Maybe UTCTime)
- listImageVersions_creationTimeAfter :: Lens' ListImageVersions (Maybe UTCTime)
- listImageVersions_nextToken :: Lens' ListImageVersions (Maybe Text)
- listImageVersions_sortOrder :: Lens' ListImageVersions (Maybe ImageVersionSortOrder)
- listImageVersions_lastModifiedTimeAfter :: Lens' ListImageVersions (Maybe UTCTime)
- listImageVersions_creationTimeBefore :: Lens' ListImageVersions (Maybe UTCTime)
- listImageVersions_maxResults :: Lens' ListImageVersions (Maybe Natural)
- listImageVersions_sortBy :: Lens' ListImageVersions (Maybe ImageVersionSortBy)
- listImageVersions_imageName :: Lens' ListImageVersions Text
- data ListImageVersionsResponse = ListImageVersionsResponse' {
- nextToken :: Maybe Text
- imageVersions :: Maybe [ImageVersion]
- httpStatus :: Int
- newListImageVersionsResponse :: Int -> ListImageVersionsResponse
- listImageVersionsResponse_nextToken :: Lens' ListImageVersionsResponse (Maybe Text)
- listImageVersionsResponse_imageVersions :: Lens' ListImageVersionsResponse (Maybe [ImageVersion])
- listImageVersionsResponse_httpStatus :: Lens' ListImageVersionsResponse Int
Creating a Request
data ListImageVersions Source #
See: newListImageVersions
smart constructor.
ListImageVersions' | |
|
Instances
Create a value of ListImageVersions
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:lastModifiedTimeBefore:ListImageVersions'
, listImageVersions_lastModifiedTimeBefore
- A filter that returns only versions modified on or before the specified
time.
$sel:creationTimeAfter:ListImageVersions'
, listImageVersions_creationTimeAfter
- A filter that returns only versions created on or after the specified
time.
$sel:nextToken:ListImageVersions'
, listImageVersions_nextToken
- If the previous call to ListImageVersions
didn't return the full set
of versions, the call returns a token for getting the next set of
versions.
$sel:sortOrder:ListImageVersions'
, listImageVersions_sortOrder
- The sort order. The default value is DESCENDING
.
$sel:lastModifiedTimeAfter:ListImageVersions'
, listImageVersions_lastModifiedTimeAfter
- A filter that returns only versions modified on or after the specified
time.
$sel:creationTimeBefore:ListImageVersions'
, listImageVersions_creationTimeBefore
- A filter that returns only versions created on or before the specified
time.
$sel:maxResults:ListImageVersions'
, listImageVersions_maxResults
- The maximum number of versions to return in the response. The default
value is 10.
$sel:sortBy:ListImageVersions'
, listImageVersions_sortBy
- The property used to sort results. The default value is CREATION_TIME
.
$sel:imageName:ListImageVersions'
, listImageVersions_imageName
- The name of the image to list the versions of.
Request Lenses
listImageVersions_lastModifiedTimeBefore :: Lens' ListImageVersions (Maybe UTCTime) Source #
A filter that returns only versions modified on or before the specified time.
listImageVersions_creationTimeAfter :: Lens' ListImageVersions (Maybe UTCTime) Source #
A filter that returns only versions created on or after the specified time.
listImageVersions_nextToken :: Lens' ListImageVersions (Maybe Text) Source #
If the previous call to ListImageVersions
didn't return the full set
of versions, the call returns a token for getting the next set of
versions.
listImageVersions_sortOrder :: Lens' ListImageVersions (Maybe ImageVersionSortOrder) Source #
The sort order. The default value is DESCENDING
.
listImageVersions_lastModifiedTimeAfter :: Lens' ListImageVersions (Maybe UTCTime) Source #
A filter that returns only versions modified on or after the specified time.
listImageVersions_creationTimeBefore :: Lens' ListImageVersions (Maybe UTCTime) Source #
A filter that returns only versions created on or before the specified time.
listImageVersions_maxResults :: Lens' ListImageVersions (Maybe Natural) Source #
The maximum number of versions to return in the response. The default value is 10.
listImageVersions_sortBy :: Lens' ListImageVersions (Maybe ImageVersionSortBy) Source #
The property used to sort results. The default value is CREATION_TIME
.
listImageVersions_imageName :: Lens' ListImageVersions Text Source #
The name of the image to list the versions of.
Destructuring the Response
data ListImageVersionsResponse Source #
See: newListImageVersionsResponse
smart constructor.
ListImageVersionsResponse' | |
|
Instances
newListImageVersionsResponse Source #
Create a value of ListImageVersionsResponse
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:nextToken:ListImageVersions'
, listImageVersionsResponse_nextToken
- A token for getting the next set of versions, if there are any.
$sel:imageVersions:ListImageVersionsResponse'
, listImageVersionsResponse_imageVersions
- A list of versions and their properties.
$sel:httpStatus:ListImageVersionsResponse'
, listImageVersionsResponse_httpStatus
- The response's http status code.
Response Lenses
listImageVersionsResponse_nextToken :: Lens' ListImageVersionsResponse (Maybe Text) Source #
A token for getting the next set of versions, if there are any.
listImageVersionsResponse_imageVersions :: Lens' ListImageVersionsResponse (Maybe [ImageVersion]) Source #
A list of versions and their properties.
listImageVersionsResponse_httpStatus :: Lens' ListImageVersionsResponse Int Source #
The response's http status code.