| 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.Greengrass.ListDeviceDefinitionVersions
Description
Lists the versions of a device definition.
This operation returns paginated results.
Synopsis
- data ListDeviceDefinitionVersions = ListDeviceDefinitionVersions' {}
- newListDeviceDefinitionVersions :: Text -> ListDeviceDefinitionVersions
- listDeviceDefinitionVersions_maxResults :: Lens' ListDeviceDefinitionVersions (Maybe Text)
- listDeviceDefinitionVersions_nextToken :: Lens' ListDeviceDefinitionVersions (Maybe Text)
- listDeviceDefinitionVersions_deviceDefinitionId :: Lens' ListDeviceDefinitionVersions Text
- data ListDeviceDefinitionVersionsResponse = ListDeviceDefinitionVersionsResponse' {
- nextToken :: Maybe Text
- versions :: Maybe [VersionInformation]
- httpStatus :: Int
- newListDeviceDefinitionVersionsResponse :: Int -> ListDeviceDefinitionVersionsResponse
- listDeviceDefinitionVersionsResponse_nextToken :: Lens' ListDeviceDefinitionVersionsResponse (Maybe Text)
- listDeviceDefinitionVersionsResponse_versions :: Lens' ListDeviceDefinitionVersionsResponse (Maybe [VersionInformation])
- listDeviceDefinitionVersionsResponse_httpStatus :: Lens' ListDeviceDefinitionVersionsResponse Int
Creating a Request
data ListDeviceDefinitionVersions Source #
See: newListDeviceDefinitionVersions smart constructor.
Constructors
| ListDeviceDefinitionVersions' | |
Fields
| |
Instances
newListDeviceDefinitionVersions Source #
Arguments
| :: Text | |
| -> ListDeviceDefinitionVersions |
Create a value of ListDeviceDefinitionVersions 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:ListDeviceDefinitionVersions', listDeviceDefinitionVersions_maxResults - The maximum number of results to be returned per request.
ListDeviceDefinitionVersions, listDeviceDefinitionVersions_nextToken - The token for the next set of results, or ''null'' if there are no
additional results.
$sel:deviceDefinitionId:ListDeviceDefinitionVersions', listDeviceDefinitionVersions_deviceDefinitionId - The ID of the device definition.
Request Lenses
listDeviceDefinitionVersions_maxResults :: Lens' ListDeviceDefinitionVersions (Maybe Text) Source #
The maximum number of results to be returned per request.
listDeviceDefinitionVersions_nextToken :: Lens' ListDeviceDefinitionVersions (Maybe Text) Source #
The token for the next set of results, or ''null'' if there are no additional results.
listDeviceDefinitionVersions_deviceDefinitionId :: Lens' ListDeviceDefinitionVersions Text Source #
The ID of the device definition.
Destructuring the Response
data ListDeviceDefinitionVersionsResponse Source #
See: newListDeviceDefinitionVersionsResponse smart constructor.
Constructors
| ListDeviceDefinitionVersionsResponse' | |
Fields
| |
Instances
newListDeviceDefinitionVersionsResponse Source #
Arguments
| :: Int | |
| -> ListDeviceDefinitionVersionsResponse |
Create a value of ListDeviceDefinitionVersionsResponse 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:
ListDeviceDefinitionVersions, listDeviceDefinitionVersionsResponse_nextToken - The token for the next set of results, or ''null'' if there are no
additional results.
$sel:versions:ListDeviceDefinitionVersionsResponse', listDeviceDefinitionVersionsResponse_versions - Information about a version.
$sel:httpStatus:ListDeviceDefinitionVersionsResponse', listDeviceDefinitionVersionsResponse_httpStatus - The response's http status code.
Response Lenses
listDeviceDefinitionVersionsResponse_nextToken :: Lens' ListDeviceDefinitionVersionsResponse (Maybe Text) Source #
The token for the next set of results, or ''null'' if there are no additional results.
listDeviceDefinitionVersionsResponse_versions :: Lens' ListDeviceDefinitionVersionsResponse (Maybe [VersionInformation]) Source #
Information about a version.
listDeviceDefinitionVersionsResponse_httpStatus :: Lens' ListDeviceDefinitionVersionsResponse Int Source #
The response's http status code.