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 |
Lists summary information about the namespaces that were created by the current account.
This operation returns paginated results.
Synopsis
- data ListNamespaces = ListNamespaces' {
- filters :: Maybe [NamespaceFilter]
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- newListNamespaces :: ListNamespaces
- listNamespaces_filters :: Lens' ListNamespaces (Maybe [NamespaceFilter])
- listNamespaces_nextToken :: Lens' ListNamespaces (Maybe Text)
- listNamespaces_maxResults :: Lens' ListNamespaces (Maybe Natural)
- data ListNamespacesResponse = ListNamespacesResponse' {
- namespaces :: Maybe [NamespaceSummary]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListNamespacesResponse :: Int -> ListNamespacesResponse
- listNamespacesResponse_namespaces :: Lens' ListNamespacesResponse (Maybe [NamespaceSummary])
- listNamespacesResponse_nextToken :: Lens' ListNamespacesResponse (Maybe Text)
- listNamespacesResponse_httpStatus :: Lens' ListNamespacesResponse Int
Creating a Request
data ListNamespaces Source #
See: newListNamespaces
smart constructor.
ListNamespaces' | |
|
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:filters:ListNamespaces'
, listNamespaces_filters
- A complex type that contains specifications for the namespaces that you
want to list.
If you specify more than one filter, a namespace must match all filters
to be returned by ListNamespaces
.
$sel:nextToken:ListNamespaces'
, listNamespaces_nextToken
- For the first ListNamespaces
request, omit this value.
If the response contains NextToken
, submit another ListNamespaces
request to get the next group of results. Specify the value of
NextToken
from the previous response in the next request.
Cloud Map gets MaxResults
namespaces and then filters them based on
the specified criteria. It's possible that no namespaces in the first
MaxResults
namespaces matched the specified criteria but that
subsequent groups of MaxResults
namespaces do contain namespaces that
match the criteria.
$sel:maxResults:ListNamespaces'
, listNamespaces_maxResults
- The maximum number of namespaces that you want Cloud Map to return in
the response to a ListNamespaces
request. If you don't specify a
value for MaxResults
, Cloud Map returns up to 100 namespaces.
Request Lenses
listNamespaces_filters :: Lens' ListNamespaces (Maybe [NamespaceFilter]) Source #
A complex type that contains specifications for the namespaces that you want to list.
If you specify more than one filter, a namespace must match all filters
to be returned by ListNamespaces
.
listNamespaces_nextToken :: Lens' ListNamespaces (Maybe Text) Source #
For the first ListNamespaces
request, omit this value.
If the response contains NextToken
, submit another ListNamespaces
request to get the next group of results. Specify the value of
NextToken
from the previous response in the next request.
Cloud Map gets MaxResults
namespaces and then filters them based on
the specified criteria. It's possible that no namespaces in the first
MaxResults
namespaces matched the specified criteria but that
subsequent groups of MaxResults
namespaces do contain namespaces that
match the criteria.
listNamespaces_maxResults :: Lens' ListNamespaces (Maybe Natural) Source #
The maximum number of namespaces that you want Cloud Map to return in
the response to a ListNamespaces
request. If you don't specify a
value for MaxResults
, Cloud Map returns up to 100 namespaces.
Destructuring the Response
data ListNamespacesResponse Source #
See: newListNamespacesResponse
smart constructor.
ListNamespacesResponse' | |
|
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:
$sel:namespaces:ListNamespacesResponse'
, listNamespacesResponse_namespaces
- An array that contains one NamespaceSummary
object for each namespace
that matches the specified filter criteria.
$sel:nextToken:ListNamespaces'
, listNamespacesResponse_nextToken
- If the response contains NextToken
, submit another ListNamespaces
request to get the next group of results. Specify the value of
NextToken
from the previous response in the next request.
Cloud Map gets MaxResults
namespaces and then filters them based on
the specified criteria. It's possible that no namespaces in the first
MaxResults
namespaces matched the specified criteria but that
subsequent groups of MaxResults
namespaces do contain namespaces that
match the criteria.
$sel:httpStatus:ListNamespacesResponse'
, listNamespacesResponse_httpStatus
- The response's http status code.
Response Lenses
listNamespacesResponse_namespaces :: Lens' ListNamespacesResponse (Maybe [NamespaceSummary]) Source #
An array that contains one NamespaceSummary
object for each namespace
that matches the specified filter criteria.
listNamespacesResponse_nextToken :: Lens' ListNamespacesResponse (Maybe Text) Source #
If the response contains NextToken
, submit another ListNamespaces
request to get the next group of results. Specify the value of
NextToken
from the previous response in the next request.
Cloud Map gets MaxResults
namespaces and then filters them based on
the specified criteria. It's possible that no namespaces in the first
MaxResults
namespaces matched the specified criteria but that
subsequent groups of MaxResults
namespaces do contain namespaces that
match the criteria.
listNamespacesResponse_httpStatus :: Lens' ListNamespacesResponse Int Source #
The response's http status code.