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 |
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_maxResults :: Lens' ListDatasets (Maybe Natural)
- listDatasets_nextToken :: Lens' ListDatasets (Maybe Text)
- data ListDatasetsResponse = ListDatasetsResponse' {
- datasets :: Maybe [DatasetSummary]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListDatasetsResponse :: Int -> ListDatasetsResponse
- listDatasetsResponse_datasets :: Lens' ListDatasetsResponse (Maybe [DatasetSummary])
- listDatasetsResponse_nextToken :: Lens' ListDatasetsResponse (Maybe Text)
- 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:maxResults:ListDatasets'
, listDatasets_maxResults
- The number of items to return in the response.
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.
Request Lenses
listDatasets_maxResults :: Lens' ListDatasets (Maybe Natural) Source #
The number of items to return in the response.
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.
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:datasets:ListDatasetsResponse'
, listDatasetsResponse_datasets
- An array of objects that summarize each dataset's properties.
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:httpStatus:ListDatasetsResponse'
, listDatasetsResponse_httpStatus
- The response's http status code.
Response Lenses
listDatasetsResponse_datasets :: Lens' ListDatasetsResponse (Maybe [DatasetSummary]) Source #
An array of objects that summarize each dataset's properties.
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_httpStatus :: Lens' ListDatasetsResponse Int Source #
The response's http status code.