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 asset summaries.
You can use this operation to do the following:
- List assets based on a specific asset model.
- List top-level assets.
You can't use this operation to list all assets. To retrieve summaries for all of your assets, use ListAssetModels to get all of your asset model IDs. Then, use ListAssets to get all assets for each asset model.
This operation returns paginated results.
Synopsis
- data ListAssets = ListAssets' {}
- newListAssets :: ListAssets
- listAssets_assetModelId :: Lens' ListAssets (Maybe Text)
- listAssets_nextToken :: Lens' ListAssets (Maybe Text)
- listAssets_filter :: Lens' ListAssets (Maybe ListAssetsFilter)
- listAssets_maxResults :: Lens' ListAssets (Maybe Natural)
- data ListAssetsResponse = ListAssetsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- assetSummaries :: [AssetSummary]
- newListAssetsResponse :: Int -> ListAssetsResponse
- listAssetsResponse_nextToken :: Lens' ListAssetsResponse (Maybe Text)
- listAssetsResponse_httpStatus :: Lens' ListAssetsResponse Int
- listAssetsResponse_assetSummaries :: Lens' ListAssetsResponse [AssetSummary]
Creating a Request
data ListAssets Source #
See: newListAssets
smart constructor.
ListAssets' | |
|
Instances
newListAssets :: ListAssets Source #
Create a value of ListAssets
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:assetModelId:ListAssets'
, listAssets_assetModelId
- The ID of the asset model by which to filter the list of assets. This
parameter is required if you choose ALL
for filter
.
$sel:nextToken:ListAssets'
, listAssets_nextToken
- The token to be used for the next set of paginated results.
$sel:filter':ListAssets'
, listAssets_filter
- The filter for the requested list of assets. Choose one of the following
options:
ALL
– The list includes all assets for a given asset model ID. TheassetModelId
parameter is required if you filter byALL
.TOP_LEVEL
– The list includes only top-level assets in the asset hierarchy tree.
Default: ALL
$sel:maxResults:ListAssets'
, listAssets_maxResults
- The maximum number of results to return for each paginated request.
Default: 50
Request Lenses
listAssets_assetModelId :: Lens' ListAssets (Maybe Text) Source #
The ID of the asset model by which to filter the list of assets. This
parameter is required if you choose ALL
for filter
.
listAssets_nextToken :: Lens' ListAssets (Maybe Text) Source #
The token to be used for the next set of paginated results.
listAssets_filter :: Lens' ListAssets (Maybe ListAssetsFilter) Source #
The filter for the requested list of assets. Choose one of the following options:
ALL
– The list includes all assets for a given asset model ID. TheassetModelId
parameter is required if you filter byALL
.TOP_LEVEL
– The list includes only top-level assets in the asset hierarchy tree.
Default: ALL
listAssets_maxResults :: Lens' ListAssets (Maybe Natural) Source #
The maximum number of results to return for each paginated request.
Default: 50
Destructuring the Response
data ListAssetsResponse Source #
See: newListAssetsResponse
smart constructor.
ListAssetsResponse' | |
|
Instances
newListAssetsResponse Source #
Create a value of ListAssetsResponse
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:ListAssets'
, listAssetsResponse_nextToken
- The token for the next set of results, or null if there are no
additional results.
$sel:httpStatus:ListAssetsResponse'
, listAssetsResponse_httpStatus
- The response's http status code.
$sel:assetSummaries:ListAssetsResponse'
, listAssetsResponse_assetSummaries
- A list that summarizes each asset.
Response Lenses
listAssetsResponse_nextToken :: Lens' ListAssetsResponse (Maybe Text) Source #
The token for the next set of results, or null if there are no additional results.
listAssetsResponse_httpStatus :: Lens' ListAssetsResponse Int Source #
The response's http status code.
listAssetsResponse_assetSummaries :: Lens' ListAssetsResponse [AssetSummary] Source #
A list that summarizes each asset.