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 |
Returns a list of services. You can filter the results by cluster, launch type, and scheduling strategy.
This operation returns paginated results.
Synopsis
- data ListServices = ListServices' {}
- newListServices :: ListServices
- listServices_cluster :: Lens' ListServices (Maybe Text)
- listServices_nextToken :: Lens' ListServices (Maybe Text)
- listServices_launchType :: Lens' ListServices (Maybe LaunchType)
- listServices_schedulingStrategy :: Lens' ListServices (Maybe SchedulingStrategy)
- listServices_maxResults :: Lens' ListServices (Maybe Int)
- data ListServicesResponse = ListServicesResponse' {
- serviceArns :: Maybe [Text]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListServicesResponse :: Int -> ListServicesResponse
- listServicesResponse_serviceArns :: Lens' ListServicesResponse (Maybe [Text])
- listServicesResponse_nextToken :: Lens' ListServicesResponse (Maybe Text)
- 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:cluster:ListServices'
, listServices_cluster
- The short name or full Amazon Resource Name (ARN) of the cluster to use
when filtering the ListServices
results. If you do not specify a
cluster, the default cluster is assumed.
$sel:nextToken:ListServices'
, listServices_nextToken
- The nextToken
value returned from a ListServices
request indicating
that more results are available to fulfill the request and further calls
will be needed. If maxResults
was provided, it is possible the number
of results to be fewer than maxResults
.
This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
$sel:launchType:ListServices'
, listServices_launchType
- The launch type to use when filtering the ListServices
results.
$sel:schedulingStrategy:ListServices'
, listServices_schedulingStrategy
- The scheduling strategy to use when filtering the ListServices
results.
$sel:maxResults:ListServices'
, listServices_maxResults
- The maximum number of service results returned by ListServices
in
paginated output. When this parameter is used, ListServices
only
returns maxResults
results in a single page along with a nextToken
response element. The remaining results of the initial request can be
seen by sending another ListServices
request with the returned
nextToken
value. This value can be between 1 and 100. If this
parameter is not used, then ListServices
returns up to 10 results and
a nextToken
value if applicable.
Request Lenses
listServices_cluster :: Lens' ListServices (Maybe Text) Source #
The short name or full Amazon Resource Name (ARN) of the cluster to use
when filtering the ListServices
results. If you do not specify a
cluster, the default cluster is assumed.
listServices_nextToken :: Lens' ListServices (Maybe Text) Source #
The nextToken
value returned from a ListServices
request indicating
that more results are available to fulfill the request and further calls
will be needed. If maxResults
was provided, it is possible the number
of results to be fewer than maxResults
.
This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
listServices_launchType :: Lens' ListServices (Maybe LaunchType) Source #
The launch type to use when filtering the ListServices
results.
listServices_schedulingStrategy :: Lens' ListServices (Maybe SchedulingStrategy) Source #
The scheduling strategy to use when filtering the ListServices
results.
listServices_maxResults :: Lens' ListServices (Maybe Int) Source #
The maximum number of service results returned by ListServices
in
paginated output. When this parameter is used, ListServices
only
returns maxResults
results in a single page along with a nextToken
response element. The remaining results of the initial request can be
seen by sending another ListServices
request with the returned
nextToken
value. This value can be between 1 and 100. If this
parameter is not used, then ListServices
returns up to 10 results and
a nextToken
value if applicable.
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:serviceArns:ListServicesResponse'
, listServicesResponse_serviceArns
- The list of full ARN entries for each service associated with the
specified cluster.
$sel:nextToken:ListServices'
, listServicesResponse_nextToken
- The nextToken
value to include in a future ListServices
request.
When the results of a ListServices
request exceed maxResults
, this
value can be used to retrieve the next page of results. This value is
null
when there are no more results to return.
$sel:httpStatus:ListServicesResponse'
, listServicesResponse_httpStatus
- The response's http status code.
Response Lenses
listServicesResponse_serviceArns :: Lens' ListServicesResponse (Maybe [Text]) Source #
The list of full ARN entries for each service associated with the specified cluster.
listServicesResponse_nextToken :: Lens' ListServicesResponse (Maybe Text) Source #
The nextToken
value to include in a future ListServices
request.
When the results of a ListServices
request exceed maxResults
, this
value can be used to retrieve the next page of results. This value is
null
when there are no more results to return.
listServicesResponse_httpStatus :: Lens' ListServicesResponse Int Source #
The response's http status code.