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 |
Retrieves a paginated list of Greengrass core devices.
This operation returns paginated results.
Synopsis
- data ListCoreDevices = ListCoreDevices' {}
- newListCoreDevices :: ListCoreDevices
- listCoreDevices_status :: Lens' ListCoreDevices (Maybe CoreDeviceStatus)
- listCoreDevices_thingGroupArn :: Lens' ListCoreDevices (Maybe Text)
- listCoreDevices_nextToken :: Lens' ListCoreDevices (Maybe Text)
- listCoreDevices_maxResults :: Lens' ListCoreDevices (Maybe Natural)
- data ListCoreDevicesResponse = ListCoreDevicesResponse' {
- nextToken :: Maybe Text
- coreDevices :: Maybe [CoreDevice]
- httpStatus :: Int
- newListCoreDevicesResponse :: Int -> ListCoreDevicesResponse
- listCoreDevicesResponse_nextToken :: Lens' ListCoreDevicesResponse (Maybe Text)
- listCoreDevicesResponse_coreDevices :: Lens' ListCoreDevicesResponse (Maybe [CoreDevice])
- listCoreDevicesResponse_httpStatus :: Lens' ListCoreDevicesResponse Int
Creating a Request
data ListCoreDevices Source #
See: newListCoreDevices
smart constructor.
ListCoreDevices' | |
|
Instances
newListCoreDevices :: ListCoreDevices Source #
Create a value of ListCoreDevices
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:status:ListCoreDevices'
, listCoreDevices_status
- The core device status by which to filter. If you specify this
parameter, the list includes only core devices that have this status.
Choose one of the following options:
HEALTHY
– The IoT Greengrass Core software and all components run on the core device without issue.UNHEALTHY
– The IoT Greengrass Core software or a component is in a failed state on the core device.
$sel:thingGroupArn:ListCoreDevices'
, listCoreDevices_thingGroupArn
- The
ARN
of the IoT thing group by which to filter. If you specify this
parameter, the list includes only core devices that are members of this
thing group.
$sel:nextToken:ListCoreDevices'
, listCoreDevices_nextToken
- The token to be used for the next set of paginated results.
$sel:maxResults:ListCoreDevices'
, listCoreDevices_maxResults
- The maximum number of results to be returned per paginated request.
Request Lenses
listCoreDevices_status :: Lens' ListCoreDevices (Maybe CoreDeviceStatus) Source #
The core device status by which to filter. If you specify this parameter, the list includes only core devices that have this status. Choose one of the following options:
HEALTHY
– The IoT Greengrass Core software and all components run on the core device without issue.UNHEALTHY
– The IoT Greengrass Core software or a component is in a failed state on the core device.
listCoreDevices_thingGroupArn :: Lens' ListCoreDevices (Maybe Text) Source #
The ARN of the IoT thing group by which to filter. If you specify this parameter, the list includes only core devices that are members of this thing group.
listCoreDevices_nextToken :: Lens' ListCoreDevices (Maybe Text) Source #
The token to be used for the next set of paginated results.
listCoreDevices_maxResults :: Lens' ListCoreDevices (Maybe Natural) Source #
The maximum number of results to be returned per paginated request.
Destructuring the Response
data ListCoreDevicesResponse Source #
See: newListCoreDevicesResponse
smart constructor.
ListCoreDevicesResponse' | |
|
Instances
newListCoreDevicesResponse Source #
Create a value of ListCoreDevicesResponse
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:ListCoreDevices'
, listCoreDevicesResponse_nextToken
- The token for the next set of results, or null if there are no
additional results.
$sel:coreDevices:ListCoreDevicesResponse'
, listCoreDevicesResponse_coreDevices
- A list that summarizes each core device.
$sel:httpStatus:ListCoreDevicesResponse'
, listCoreDevicesResponse_httpStatus
- The response's http status code.
Response Lenses
listCoreDevicesResponse_nextToken :: Lens' ListCoreDevicesResponse (Maybe Text) Source #
The token for the next set of results, or null if there are no additional results.
listCoreDevicesResponse_coreDevices :: Lens' ListCoreDevicesResponse (Maybe [CoreDevice]) Source #
A list that summarizes each core device.
listCoreDevicesResponse_httpStatus :: Lens' ListCoreDevicesResponse Int Source #
The response's http status code.