Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Lists summary information about the namespaces that were created by the current AWS account.
This operation returns paginated results.
- listNamespaces :: ListNamespaces
- data ListNamespaces
- lnFilters :: Lens' ListNamespaces [NamespaceFilter]
- lnNextToken :: Lens' ListNamespaces (Maybe Text)
- lnMaxResults :: Lens' ListNamespaces (Maybe Natural)
- listNamespacesResponse :: Int -> ListNamespacesResponse
- data ListNamespacesResponse
- lnrsNamespaces :: Lens' ListNamespacesResponse [NamespaceSummary]
- lnrsNextToken :: Lens' ListNamespacesResponse (Maybe Text)
- lnrsResponseStatus :: Lens' ListNamespacesResponse Int
Creating a Request
listNamespaces :: ListNamespaces Source #
Creates a value of ListNamespaces
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lnFilters
- 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 byListNamespaces
.lnNextToken
- For the firstListNamespaces
request, omit this value. If the response containsNextToken
, submit anotherListNamespaces
request to get the next group of results. Specify the value ofNextToken
from the previous response in the next request.lnMaxResults
- The maximum number of namespaces that you want Amazon Route 53 to return in the response to aListNamespaces
request. If you don't specify a value forMaxResults
, Route 53 returns up to 100 namespaces.
data ListNamespaces Source #
See: listNamespaces
smart constructor.
Request Lenses
lnFilters :: Lens' ListNamespaces [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
.
lnNextToken :: 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.
lnMaxResults :: Lens' ListNamespaces (Maybe Natural) Source #
The maximum number of namespaces that you want Amazon Route 53 to return in the response to a ListNamespaces
request. If you don't specify a value for MaxResults
, Route 53 returns up to 100 namespaces.
Destructuring the Response
listNamespacesResponse Source #
Creates a value of ListNamespacesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lnrsNamespaces
- An array that contains oneNamespaceSummary
object for each namespace that matches the specified filter criteria.lnrsNextToken
- If the response containsNextToken
, submit anotherListNamespaces
request to get the next group of results. Specify the value ofNextToken
from the previous response in the next request.lnrsResponseStatus
- -- | The response status code.
data ListNamespacesResponse Source #
See: listNamespacesResponse
smart constructor.
Response Lenses
lnrsNamespaces :: Lens' ListNamespacesResponse [NamespaceSummary] Source #
An array that contains one NamespaceSummary
object for each namespace that matches the specified filter criteria.
lnrsNextToken :: 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.
lnrsResponseStatus :: Lens' ListNamespacesResponse Int Source #
- - | The response status code.