| 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.GreengrassV2.ListComponentVersions
Description
Retrieves a paginated list of all versions for a component. Greater versions are listed first.
This operation returns paginated results.
Synopsis
- data ListComponentVersions = ListComponentVersions' {}
- newListComponentVersions :: Text -> ListComponentVersions
- listComponentVersions_maxResults :: Lens' ListComponentVersions (Maybe Natural)
- listComponentVersions_nextToken :: Lens' ListComponentVersions (Maybe Text)
- listComponentVersions_arn :: Lens' ListComponentVersions Text
- data ListComponentVersionsResponse = ListComponentVersionsResponse' {}
- newListComponentVersionsResponse :: Int -> ListComponentVersionsResponse
- listComponentVersionsResponse_componentVersions :: Lens' ListComponentVersionsResponse (Maybe [ComponentVersionListItem])
- listComponentVersionsResponse_nextToken :: Lens' ListComponentVersionsResponse (Maybe Text)
- listComponentVersionsResponse_httpStatus :: Lens' ListComponentVersionsResponse Int
Creating a Request
data ListComponentVersions Source #
See: newListComponentVersions smart constructor.
Constructors
| ListComponentVersions' | |
Instances
newListComponentVersions Source #
Arguments
| :: Text | |
| -> ListComponentVersions |
Create a value of ListComponentVersions 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:maxResults:ListComponentVersions', listComponentVersions_maxResults - The maximum number of results to be returned per paginated request.
ListComponentVersions, listComponentVersions_nextToken - The token to be used for the next set of paginated results.
ListComponentVersions, listComponentVersions_arn - The
ARN
of the component.
Request Lenses
listComponentVersions_maxResults :: Lens' ListComponentVersions (Maybe Natural) Source #
The maximum number of results to be returned per paginated request.
listComponentVersions_nextToken :: Lens' ListComponentVersions (Maybe Text) Source #
The token to be used for the next set of paginated results.
listComponentVersions_arn :: Lens' ListComponentVersions Text Source #
The ARN of the component.
Destructuring the Response
data ListComponentVersionsResponse Source #
See: newListComponentVersionsResponse smart constructor.
Constructors
| ListComponentVersionsResponse' | |
Fields
| |
Instances
newListComponentVersionsResponse Source #
Create a value of ListComponentVersionsResponse 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:componentVersions:ListComponentVersionsResponse', listComponentVersionsResponse_componentVersions - A list of versions that exist for the component.
ListComponentVersions, listComponentVersionsResponse_nextToken - The token for the next set of results, or null if there are no
additional results.
$sel:httpStatus:ListComponentVersionsResponse', listComponentVersionsResponse_httpStatus - The response's http status code.
Response Lenses
listComponentVersionsResponse_componentVersions :: Lens' ListComponentVersionsResponse (Maybe [ComponentVersionListItem]) Source #
A list of versions that exist for the component.
listComponentVersionsResponse_nextToken :: Lens' ListComponentVersionsResponse (Maybe Text) Source #
The token for the next set of results, or null if there are no additional results.
listComponentVersionsResponse_httpStatus :: Lens' ListComponentVersionsResponse Int Source #
The response's http status code.