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 |
Returns a list of the Amazon Web Services resources available for a device. Currently, Amazon EC2 instances are the only supported resource type.
This operation returns paginated results.
Synopsis
- data ListDeviceResources = ListDeviceResources' {}
- newListDeviceResources :: Text -> ListDeviceResources
- listDeviceResources_nextToken :: Lens' ListDeviceResources (Maybe Text)
- listDeviceResources_type :: Lens' ListDeviceResources (Maybe Text)
- listDeviceResources_maxResults :: Lens' ListDeviceResources (Maybe Natural)
- listDeviceResources_managedDeviceId :: Lens' ListDeviceResources Text
- data ListDeviceResourcesResponse = ListDeviceResourcesResponse' {
- resources :: Maybe [ResourceSummary]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListDeviceResourcesResponse :: Int -> ListDeviceResourcesResponse
- listDeviceResourcesResponse_resources :: Lens' ListDeviceResourcesResponse (Maybe [ResourceSummary])
- listDeviceResourcesResponse_nextToken :: Lens' ListDeviceResourcesResponse (Maybe Text)
- listDeviceResourcesResponse_httpStatus :: Lens' ListDeviceResourcesResponse Int
Creating a Request
data ListDeviceResources Source #
See: newListDeviceResources
smart constructor.
ListDeviceResources' | |
|
Instances
newListDeviceResources Source #
Create a value of ListDeviceResources
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:ListDeviceResources'
, listDeviceResources_nextToken
- A pagination token to continue to the next page of results.
$sel:type':ListDeviceResources'
, listDeviceResources_type
- A structure used to filter the results by type of resource.
$sel:maxResults:ListDeviceResources'
, listDeviceResources_maxResults
- The maximum number of resources per page.
$sel:managedDeviceId:ListDeviceResources'
, listDeviceResources_managedDeviceId
- The ID of the managed device that you are listing the resources of.
Request Lenses
listDeviceResources_nextToken :: Lens' ListDeviceResources (Maybe Text) Source #
A pagination token to continue to the next page of results.
listDeviceResources_type :: Lens' ListDeviceResources (Maybe Text) Source #
A structure used to filter the results by type of resource.
listDeviceResources_maxResults :: Lens' ListDeviceResources (Maybe Natural) Source #
The maximum number of resources per page.
listDeviceResources_managedDeviceId :: Lens' ListDeviceResources Text Source #
The ID of the managed device that you are listing the resources of.
Destructuring the Response
data ListDeviceResourcesResponse Source #
See: newListDeviceResourcesResponse
smart constructor.
ListDeviceResourcesResponse' | |
|
Instances
newListDeviceResourcesResponse Source #
Create a value of ListDeviceResourcesResponse
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:resources:ListDeviceResourcesResponse'
, listDeviceResourcesResponse_resources
- A structure defining the resource's type, Amazon Resource Name (ARN),
and ID.
$sel:nextToken:ListDeviceResources'
, listDeviceResourcesResponse_nextToken
- A pagination token to continue to the next page of results.
$sel:httpStatus:ListDeviceResourcesResponse'
, listDeviceResourcesResponse_httpStatus
- The response's http status code.
Response Lenses
listDeviceResourcesResponse_resources :: Lens' ListDeviceResourcesResponse (Maybe [ResourceSummary]) Source #
A structure defining the resource's type, Amazon Resource Name (ARN), and ID.
listDeviceResourcesResponse_nextToken :: Lens' ListDeviceResourcesResponse (Maybe Text) Source #
A pagination token to continue to the next page of results.
listDeviceResourcesResponse_httpStatus :: Lens' ListDeviceResourcesResponse Int Source #
The response's http status code.