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 |
Retrieves a paginated list of asset relationships for an asset. You can use this operation to identify an asset's root asset and all associated assets between that asset and its root.
This operation returns paginated results.
Synopsis
- data ListAssetRelationships = ListAssetRelationships' {}
- newListAssetRelationships :: Text -> TraversalType -> ListAssetRelationships
- listAssetRelationships_maxResults :: Lens' ListAssetRelationships (Maybe Natural)
- listAssetRelationships_nextToken :: Lens' ListAssetRelationships (Maybe Text)
- listAssetRelationships_assetId :: Lens' ListAssetRelationships Text
- listAssetRelationships_traversalType :: Lens' ListAssetRelationships TraversalType
- data ListAssetRelationshipsResponse = ListAssetRelationshipsResponse' {}
- newListAssetRelationshipsResponse :: Int -> ListAssetRelationshipsResponse
- listAssetRelationshipsResponse_nextToken :: Lens' ListAssetRelationshipsResponse (Maybe Text)
- listAssetRelationshipsResponse_httpStatus :: Lens' ListAssetRelationshipsResponse Int
- listAssetRelationshipsResponse_assetRelationshipSummaries :: Lens' ListAssetRelationshipsResponse [AssetRelationshipSummary]
Creating a Request
data ListAssetRelationships Source #
See: newListAssetRelationships
smart constructor.
ListAssetRelationships' | |
|
Instances
newListAssetRelationships Source #
Create a value of ListAssetRelationships
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:ListAssetRelationships'
, listAssetRelationships_maxResults
- The maximum number of results to return for each paginated request.
ListAssetRelationships
, listAssetRelationships_nextToken
- The token to be used for the next set of paginated results.
ListAssetRelationships
, listAssetRelationships_assetId
- The ID of the asset.
$sel:traversalType:ListAssetRelationships'
, listAssetRelationships_traversalType
- The type of traversal to use to identify asset relationships. Choose the
following option:
PATH_TO_ROOT
– Identify the asset's parent assets up to the root asset. The asset that you specify inassetId
is the first result in the list ofassetRelationshipSummaries
, and the root asset is the last result.
Request Lenses
listAssetRelationships_maxResults :: Lens' ListAssetRelationships (Maybe Natural) Source #
The maximum number of results to return for each paginated request.
listAssetRelationships_nextToken :: Lens' ListAssetRelationships (Maybe Text) Source #
The token to be used for the next set of paginated results.
listAssetRelationships_assetId :: Lens' ListAssetRelationships Text Source #
The ID of the asset.
listAssetRelationships_traversalType :: Lens' ListAssetRelationships TraversalType Source #
The type of traversal to use to identify asset relationships. Choose the following option:
PATH_TO_ROOT
– Identify the asset's parent assets up to the root asset. The asset that you specify inassetId
is the first result in the list ofassetRelationshipSummaries
, and the root asset is the last result.
Destructuring the Response
data ListAssetRelationshipsResponse Source #
See: newListAssetRelationshipsResponse
smart constructor.
ListAssetRelationshipsResponse' | |
|
Instances
newListAssetRelationshipsResponse Source #
Create a value of ListAssetRelationshipsResponse
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:
ListAssetRelationships
, listAssetRelationshipsResponse_nextToken
- The token for the next set of results, or null if there are no
additional results.
$sel:httpStatus:ListAssetRelationshipsResponse'
, listAssetRelationshipsResponse_httpStatus
- The response's http status code.
$sel:assetRelationshipSummaries:ListAssetRelationshipsResponse'
, listAssetRelationshipsResponse_assetRelationshipSummaries
- A list that summarizes each asset relationship.
Response Lenses
listAssetRelationshipsResponse_nextToken :: Lens' ListAssetRelationshipsResponse (Maybe Text) Source #
The token for the next set of results, or null if there are no additional results.
listAssetRelationshipsResponse_httpStatus :: Lens' ListAssetRelationshipsResponse Int Source #
The response's http status code.
listAssetRelationshipsResponse_assetRelationshipSummaries :: Lens' ListAssetRelationshipsResponse [AssetRelationshipSummary] Source #
A list that summarizes each asset relationship.