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 for all the services that are associated with one or more specified namespaces.
This operation returns paginated results.
Synopsis
- data ListServices = ListServices' {
- filters :: Maybe [ServiceFilter]
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- newListServices :: ListServices
- listServices_filters :: Lens' ListServices (Maybe [ServiceFilter])
- listServices_nextToken :: Lens' ListServices (Maybe Text)
- listServices_maxResults :: Lens' ListServices (Maybe Natural)
- data ListServicesResponse = ListServicesResponse' {
- nextToken :: Maybe Text
- services :: Maybe [ServiceSummary]
- httpStatus :: Int
- newListServicesResponse :: Int -> ListServicesResponse
- listServicesResponse_nextToken :: Lens' ListServicesResponse (Maybe Text)
- listServicesResponse_services :: Lens' ListServicesResponse (Maybe [ServiceSummary])
- listServicesResponse_httpStatus :: Lens' ListServicesResponse Int
Creating a Request
data ListServices Source #
See: newListServices
smart constructor.
ListServices' | |
|
Instances
newListServices :: ListServices Source #
Create a value of ListServices
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:ListServices'
, listServices_filters
- A complex type that contains specifications for the namespaces that you
want to list services for.
If you specify more than one filter, an operation must match all filters
to be returned by ListServices
.
$sel:nextToken:ListServices'
, listServices_nextToken
- For the first ListServices
request, omit this value.
If the response contains NextToken
, submit another ListServices
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
services and then filters them based on the
specified criteria. It's possible that no services in the first
MaxResults
services matched the specified criteria but that subsequent
groups of MaxResults
services do contain services that match the
criteria.
$sel:maxResults:ListServices'
, listServices_maxResults
- The maximum number of services that you want Cloud Map to return in the
response to a ListServices
request. If you don't specify a value for
MaxResults
, Cloud Map returns up to 100 services.
Request Lenses
listServices_filters :: Lens' ListServices (Maybe [ServiceFilter]) Source #
A complex type that contains specifications for the namespaces that you want to list services for.
If you specify more than one filter, an operation must match all filters
to be returned by ListServices
.
listServices_nextToken :: Lens' ListServices (Maybe Text) Source #
For the first ListServices
request, omit this value.
If the response contains NextToken
, submit another ListServices
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
services and then filters them based on the
specified criteria. It's possible that no services in the first
MaxResults
services matched the specified criteria but that subsequent
groups of MaxResults
services do contain services that match the
criteria.
listServices_maxResults :: Lens' ListServices (Maybe Natural) Source #
The maximum number of services that you want Cloud Map to return in the
response to a ListServices
request. If you don't specify a value for
MaxResults
, Cloud Map returns up to 100 services.
Destructuring the Response
data ListServicesResponse Source #
See: newListServicesResponse
smart constructor.
ListServicesResponse' | |
|
Instances
newListServicesResponse Source #
Create a value of ListServicesResponse
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:nextToken:ListServices'
, listServicesResponse_nextToken
- If the response contains NextToken
, submit another ListServices
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
services and then filters them based on the
specified criteria. It's possible that no services in the first
MaxResults
services matched the specified criteria but that subsequent
groups of MaxResults
services do contain services that match the
criteria.
$sel:services:ListServicesResponse'
, listServicesResponse_services
- An array that contains one ServiceSummary
object for each service that
matches the specified filter criteria.
$sel:httpStatus:ListServicesResponse'
, listServicesResponse_httpStatus
- The response's http status code.
Response Lenses
listServicesResponse_nextToken :: Lens' ListServicesResponse (Maybe Text) Source #
If the response contains NextToken
, submit another ListServices
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
services and then filters them based on the
specified criteria. It's possible that no services in the first
MaxResults
services matched the specified criteria but that subsequent
groups of MaxResults
services do contain services that match the
criteria.
listServicesResponse_services :: Lens' ListServicesResponse (Maybe [ServiceSummary]) Source #
An array that contains one ServiceSummary
object for each service that
matches the specified filter criteria.
listServicesResponse_httpStatus :: Lens' ListServicesResponse Int Source #
The response's http status code.