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 datasets created using the CreateDataset operation. For each dataset, a summary of its properties, including its Amazon Resource Name (ARN), is returned. To retrieve the complete set of properties, use the ARN with the DescribeDataset operation.
This operation returns paginated results.
Synopsis
- data ListDatasets = ListDatasets' {}
- newListDatasets :: ListDatasets
- listDatasets_nextToken :: Lens' ListDatasets (Maybe Text)
- listDatasets_maxResults :: Lens' ListDatasets (Maybe Natural)
- data ListDatasetsResponse = ListDatasetsResponse' {
- nextToken :: Maybe Text
- datasets :: Maybe [DatasetSummary]
- httpStatus :: Int
- newListDatasetsResponse :: Int -> ListDatasetsResponse
- listDatasetsResponse_nextToken :: Lens' ListDatasetsResponse (Maybe Text)
- listDatasetsResponse_datasets :: Lens' ListDatasetsResponse (Maybe [DatasetSummary])
- listDatasetsResponse_httpStatus :: Lens' ListDatasetsResponse Int
Creating a Request
data ListDatasets Source #
See: newListDatasets
smart constructor.
Instances
newListDatasets :: ListDatasets Source #
Create a value of ListDatasets
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:ListDatasets'
, listDatasets_nextToken
- If the result of the previous request was truncated, the response
includes a NextToken
. To retrieve the next set of results, use the
token in the next request. Tokens expire after 24 hours.
$sel:maxResults:ListDatasets'
, listDatasets_maxResults
- The number of items to return in the response.
Request Lenses
listDatasets_nextToken :: Lens' ListDatasets (Maybe Text) Source #
If the result of the previous request was truncated, the response
includes a NextToken
. To retrieve the next set of results, use the
token in the next request. Tokens expire after 24 hours.
listDatasets_maxResults :: Lens' ListDatasets (Maybe Natural) Source #
The number of items to return in the response.
Destructuring the Response
data ListDatasetsResponse Source #
See: newListDatasetsResponse
smart constructor.
ListDatasetsResponse' | |
|
Instances
newListDatasetsResponse Source #
Create a value of ListDatasetsResponse
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:ListDatasets'
, listDatasetsResponse_nextToken
- If the response is truncated, Amazon Forecast returns this token. To
retrieve the next set of results, use the token in the next request.
$sel:datasets:ListDatasetsResponse'
, listDatasetsResponse_datasets
- An array of objects that summarize each dataset's properties.
$sel:httpStatus:ListDatasetsResponse'
, listDatasetsResponse_httpStatus
- The response's http status code.
Response Lenses
listDatasetsResponse_nextToken :: Lens' ListDatasetsResponse (Maybe Text) Source #
If the response is truncated, Amazon Forecast returns this token. To retrieve the next set of results, use the token in the next request.
listDatasetsResponse_datasets :: Lens' ListDatasetsResponse (Maybe [DatasetSummary]) Source #
An array of objects that summarize each dataset's properties.
listDatasetsResponse_httpStatus :: Lens' ListDatasetsResponse Int Source #
The response's http status code.