| 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.SnowDeviceManagement.ListDeviceResources
Description
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_maxResults :: Lens' ListDeviceResources (Maybe Natural)
- listDeviceResources_nextToken :: Lens' ListDeviceResources (Maybe Text)
- listDeviceResources_type :: Lens' ListDeviceResources (Maybe Text)
- listDeviceResources_managedDeviceId :: Lens' ListDeviceResources Text
- data ListDeviceResourcesResponse = ListDeviceResourcesResponse' {
- nextToken :: Maybe Text
- resources :: Maybe [ResourceSummary]
- httpStatus :: Int
- newListDeviceResourcesResponse :: Int -> ListDeviceResourcesResponse
- listDeviceResourcesResponse_nextToken :: Lens' ListDeviceResourcesResponse (Maybe Text)
- listDeviceResourcesResponse_resources :: Lens' ListDeviceResourcesResponse (Maybe [ResourceSummary])
- listDeviceResourcesResponse_httpStatus :: Lens' ListDeviceResourcesResponse Int
Creating a Request
data ListDeviceResources Source #
See: newListDeviceResources smart constructor.
Constructors
| ListDeviceResources' | |
Fields
| |
Instances
newListDeviceResources Source #
Arguments
| :: Text | |
| -> ListDeviceResources |
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:maxResults:ListDeviceResources', listDeviceResources_maxResults - The maximum number of resources per page.
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.
ListDeviceResources, listDeviceResources_managedDeviceId - The ID of the managed device that you are listing the resources of.
Request Lenses
listDeviceResources_maxResults :: Lens' ListDeviceResources (Maybe Natural) Source #
The maximum number of resources per page.
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_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.
Constructors
| ListDeviceResourcesResponse' | |
Fields
| |
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:
ListDeviceResources, listDeviceResourcesResponse_nextToken - A pagination token to continue to the next page of results.
$sel:resources:ListDeviceResourcesResponse', listDeviceResourcesResponse_resources - A structure defining the resource's type, Amazon Resource Name (ARN),
and ID.
$sel:httpStatus:ListDeviceResourcesResponse', listDeviceResourcesResponse_httpStatus - The response's http status code.
Response Lenses
listDeviceResourcesResponse_nextToken :: Lens' ListDeviceResourcesResponse (Maybe Text) Source #
A pagination token to continue to the next page of results.
listDeviceResourcesResponse_resources :: Lens' ListDeviceResourcesResponse (Maybe [ResourceSummary]) Source #
A structure defining the resource's type, Amazon Resource Name (ARN), and ID.
listDeviceResourcesResponse_httpStatus :: Lens' ListDeviceResourcesResponse Int Source #
The response's http status code.