| 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 |
Amazonka.TimeStreamWrite.ListDatabases
Description
Returns a list of your Timestream databases. Service quotas apply. See code sample for details.
Synopsis
- data ListDatabases = ListDatabases' {}
- newListDatabases :: ListDatabases
- listDatabases_maxResults :: Lens' ListDatabases (Maybe Natural)
- listDatabases_nextToken :: Lens' ListDatabases (Maybe Text)
- data ListDatabasesResponse = ListDatabasesResponse' {}
- newListDatabasesResponse :: Int -> ListDatabasesResponse
- listDatabasesResponse_databases :: Lens' ListDatabasesResponse (Maybe [Database])
- listDatabasesResponse_nextToken :: Lens' ListDatabasesResponse (Maybe Text)
- listDatabasesResponse_httpStatus :: Lens' ListDatabasesResponse Int
Creating a Request
data ListDatabases Source #
See: newListDatabases smart constructor.
Constructors
| ListDatabases' | |
Fields
| |
Instances
newListDatabases :: ListDatabases Source #
Create a value of ListDatabases 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:ListDatabases', listDatabases_maxResults - The total number of items to return in the output. If the total number
of items available is more than the value specified, a NextToken is
provided in the output. To resume pagination, provide the NextToken
value as argument of a subsequent API invocation.
ListDatabases, listDatabases_nextToken - The pagination token. To resume pagination, provide the NextToken value
as argument of a subsequent API invocation.
Request Lenses
listDatabases_maxResults :: Lens' ListDatabases (Maybe Natural) Source #
The total number of items to return in the output. If the total number of items available is more than the value specified, a NextToken is provided in the output. To resume pagination, provide the NextToken value as argument of a subsequent API invocation.
listDatabases_nextToken :: Lens' ListDatabases (Maybe Text) Source #
The pagination token. To resume pagination, provide the NextToken value as argument of a subsequent API invocation.
Destructuring the Response
data ListDatabasesResponse Source #
See: newListDatabasesResponse smart constructor.
Constructors
| ListDatabasesResponse' | |
Instances
newListDatabasesResponse Source #
Create a value of ListDatabasesResponse 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:databases:ListDatabasesResponse', listDatabasesResponse_databases - A list of database names.
ListDatabases, listDatabasesResponse_nextToken - The pagination token. This parameter is returned when the response is
truncated.
$sel:httpStatus:ListDatabasesResponse', listDatabasesResponse_httpStatus - The response's http status code.
Response Lenses
listDatabasesResponse_databases :: Lens' ListDatabasesResponse (Maybe [Database]) Source #
A list of database names.
listDatabasesResponse_nextToken :: Lens' ListDatabasesResponse (Maybe Text) Source #
The pagination token. This parameter is returned when the response is truncated.
listDatabasesResponse_httpStatus :: Lens' ListDatabasesResponse Int Source #
The response's http status code.