| 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.RedshiftServerLess.ListNamespaces
Description
Returns information about a list of specified namespaces.
This operation returns paginated results.
Synopsis
- data ListNamespaces = ListNamespaces' {}
- newListNamespaces :: ListNamespaces
- listNamespaces_maxResults :: Lens' ListNamespaces (Maybe Natural)
- listNamespaces_nextToken :: Lens' ListNamespaces (Maybe Text)
- data ListNamespacesResponse = ListNamespacesResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- namespaces :: [Namespace]
- newListNamespacesResponse :: Int -> ListNamespacesResponse
- listNamespacesResponse_nextToken :: Lens' ListNamespacesResponse (Maybe Text)
- listNamespacesResponse_httpStatus :: Lens' ListNamespacesResponse Int
- listNamespacesResponse_namespaces :: Lens' ListNamespacesResponse [Namespace]
Creating a Request
data ListNamespaces Source #
See: newListNamespaces smart constructor.
Constructors
| ListNamespaces' | |
Fields
| |
Instances
newListNamespaces :: ListNamespaces Source #
Create a value of ListNamespaces 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:ListNamespaces', listNamespaces_maxResults - An optional parameter that specifies the maximum number of results to
return. You can use nextToken to display the next page of results.
ListNamespaces, listNamespaces_nextToken - If your initial ListNamespaces operation returns a nextToken, you
can include the returned nextToken in following ListNamespaces
operations, which returns results in the next page.
Request Lenses
listNamespaces_maxResults :: Lens' ListNamespaces (Maybe Natural) Source #
An optional parameter that specifies the maximum number of results to
return. You can use nextToken to display the next page of results.
listNamespaces_nextToken :: Lens' ListNamespaces (Maybe Text) Source #
If your initial ListNamespaces operation returns a nextToken, you
can include the returned nextToken in following ListNamespaces
operations, which returns results in the next page.
Destructuring the Response
data ListNamespacesResponse Source #
See: newListNamespacesResponse smart constructor.
Constructors
| ListNamespacesResponse' | |
Fields
| |
Instances
newListNamespacesResponse Source #
Create a value of ListNamespacesResponse 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:
ListNamespaces, listNamespacesResponse_nextToken - When nextToken is returned, there are more results available. The
value of nextToken is a unique pagination token for each page. Make
the call again using the returned token to retrieve the next page.
$sel:httpStatus:ListNamespacesResponse', listNamespacesResponse_httpStatus - The response's http status code.
$sel:namespaces:ListNamespacesResponse', listNamespacesResponse_namespaces - The list of returned namespaces.
Response Lenses
listNamespacesResponse_nextToken :: Lens' ListNamespacesResponse (Maybe Text) Source #
When nextToken is returned, there are more results available. The
value of nextToken is a unique pagination token for each page. Make
the call again using the returned token to retrieve the next page.
listNamespacesResponse_httpStatus :: Lens' ListNamespacesResponse Int Source #
The response's http status code.
listNamespacesResponse_namespaces :: Lens' ListNamespacesResponse [Namespace] Source #
The list of returned namespaces.