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 associated assets.
You can use this operation to do the following:
- List child assets associated to a parent asset by a hierarchy that you specify.
- List an asset's parent asset.
This operation returns paginated results.
Synopsis
- data ListAssociatedAssets = ListAssociatedAssets' {}
- newListAssociatedAssets :: Text -> ListAssociatedAssets
- listAssociatedAssets_hierarchyId :: Lens' ListAssociatedAssets (Maybe Text)
- listAssociatedAssets_traversalDirection :: Lens' ListAssociatedAssets (Maybe TraversalDirection)
- listAssociatedAssets_nextToken :: Lens' ListAssociatedAssets (Maybe Text)
- listAssociatedAssets_maxResults :: Lens' ListAssociatedAssets (Maybe Natural)
- listAssociatedAssets_assetId :: Lens' ListAssociatedAssets Text
- data ListAssociatedAssetsResponse = ListAssociatedAssetsResponse' {}
- newListAssociatedAssetsResponse :: Int -> ListAssociatedAssetsResponse
- listAssociatedAssetsResponse_nextToken :: Lens' ListAssociatedAssetsResponse (Maybe Text)
- listAssociatedAssetsResponse_httpStatus :: Lens' ListAssociatedAssetsResponse Int
- listAssociatedAssetsResponse_assetSummaries :: Lens' ListAssociatedAssetsResponse [AssociatedAssetsSummary]
Creating a Request
data ListAssociatedAssets Source #
See: newListAssociatedAssets
smart constructor.
ListAssociatedAssets' | |
|
Instances
newListAssociatedAssets Source #
Create a value of ListAssociatedAssets
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:hierarchyId:ListAssociatedAssets'
, listAssociatedAssets_hierarchyId
- The ID of the hierarchy by which child assets are associated to the
asset. To find a hierarchy ID, use the
DescribeAsset
or
DescribeAssetModel
operations. This parameter is required if you choose CHILD
for
traversalDirection
.
For more information, see Asset hierarchies in the IoT SiteWise User Guide.
$sel:traversalDirection:ListAssociatedAssets'
, listAssociatedAssets_traversalDirection
- The direction to list associated assets. Choose one of the following
options:
CHILD
– The list includes all child assets associated to the asset. ThehierarchyId
parameter is required if you chooseCHILD
.PARENT
– The list includes the asset's parent asset.
Default: CHILD
$sel:nextToken:ListAssociatedAssets'
, listAssociatedAssets_nextToken
- The token to be used for the next set of paginated results.
$sel:maxResults:ListAssociatedAssets'
, listAssociatedAssets_maxResults
- The maximum number of results to return for each paginated request.
Default: 50
$sel:assetId:ListAssociatedAssets'
, listAssociatedAssets_assetId
- The ID of the asset to query.
Request Lenses
listAssociatedAssets_hierarchyId :: Lens' ListAssociatedAssets (Maybe Text) Source #
The ID of the hierarchy by which child assets are associated to the
asset. To find a hierarchy ID, use the
DescribeAsset
or
DescribeAssetModel
operations. This parameter is required if you choose CHILD
for
traversalDirection
.
For more information, see Asset hierarchies in the IoT SiteWise User Guide.
listAssociatedAssets_traversalDirection :: Lens' ListAssociatedAssets (Maybe TraversalDirection) Source #
The direction to list associated assets. Choose one of the following options:
CHILD
– The list includes all child assets associated to the asset. ThehierarchyId
parameter is required if you chooseCHILD
.PARENT
– The list includes the asset's parent asset.
Default: CHILD
listAssociatedAssets_nextToken :: Lens' ListAssociatedAssets (Maybe Text) Source #
The token to be used for the next set of paginated results.
listAssociatedAssets_maxResults :: Lens' ListAssociatedAssets (Maybe Natural) Source #
The maximum number of results to return for each paginated request.
Default: 50
listAssociatedAssets_assetId :: Lens' ListAssociatedAssets Text Source #
The ID of the asset to query.
Destructuring the Response
data ListAssociatedAssetsResponse Source #
See: newListAssociatedAssetsResponse
smart constructor.
ListAssociatedAssetsResponse' | |
|
Instances
newListAssociatedAssetsResponse Source #
Create a value of ListAssociatedAssetsResponse
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:ListAssociatedAssets'
, listAssociatedAssetsResponse_nextToken
- The token for the next set of results, or null if there are no
additional results.
$sel:httpStatus:ListAssociatedAssetsResponse'
, listAssociatedAssetsResponse_httpStatus
- The response's http status code.
$sel:assetSummaries:ListAssociatedAssetsResponse'
, listAssociatedAssetsResponse_assetSummaries
- A list that summarizes the associated assets.
Response Lenses
listAssociatedAssetsResponse_nextToken :: Lens' ListAssociatedAssetsResponse (Maybe Text) Source #
The token for the next set of results, or null if there are no additional results.
listAssociatedAssetsResponse_httpStatus :: Lens' ListAssociatedAssetsResponse Int Source #
The response's http status code.
listAssociatedAssetsResponse_assetSummaries :: Lens' ListAssociatedAssetsResponse [AssociatedAssetsSummary] Source #
A list that summarizes the associated assets.