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 |
List service instances with summary data. This action lists service instances of all services in the Amazon Web Services account.
This operation returns paginated results.
Synopsis
- data ListServiceInstances = ListServiceInstances' {}
- newListServiceInstances :: ListServiceInstances
- listServiceInstances_filters :: Lens' ListServiceInstances (Maybe [ListServiceInstancesFilter])
- listServiceInstances_maxResults :: Lens' ListServiceInstances (Maybe Natural)
- listServiceInstances_nextToken :: Lens' ListServiceInstances (Maybe Text)
- listServiceInstances_serviceName :: Lens' ListServiceInstances (Maybe Text)
- listServiceInstances_sortBy :: Lens' ListServiceInstances (Maybe ListServiceInstancesSortBy)
- listServiceInstances_sortOrder :: Lens' ListServiceInstances (Maybe SortOrder)
- data ListServiceInstancesResponse = ListServiceInstancesResponse' {}
- newListServiceInstancesResponse :: Int -> ListServiceInstancesResponse
- listServiceInstancesResponse_nextToken :: Lens' ListServiceInstancesResponse (Maybe Text)
- listServiceInstancesResponse_httpStatus :: Lens' ListServiceInstancesResponse Int
- listServiceInstancesResponse_serviceInstances :: Lens' ListServiceInstancesResponse [ServiceInstanceSummary]
Creating a Request
data ListServiceInstances Source #
See: newListServiceInstances
smart constructor.
ListServiceInstances' | |
|
Instances
newListServiceInstances :: ListServiceInstances Source #
Create a value of ListServiceInstances
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:ListServiceInstances'
, listServiceInstances_filters
- An array of filtering criteria that scope down the result list. By
default, all service instances in the Amazon Web Services account are
returned.
$sel:maxResults:ListServiceInstances'
, listServiceInstances_maxResults
- The maximum number of service instances to list.
ListServiceInstances
, listServiceInstances_nextToken
- A token that indicates the location of the next service in the array of
service instances, after the list of service instances that was
previously requested.
ListServiceInstances
, listServiceInstances_serviceName
- The name of the service that the service instance belongs to.
$sel:sortBy:ListServiceInstances'
, listServiceInstances_sortBy
- The field that the result list is sorted by.
When you choose to sort by serviceName
, service instances within each
service are sorted by service instance name.
Default: serviceName
$sel:sortOrder:ListServiceInstances'
, listServiceInstances_sortOrder
- Result list sort order.
Default: ASCENDING
Request Lenses
listServiceInstances_filters :: Lens' ListServiceInstances (Maybe [ListServiceInstancesFilter]) Source #
An array of filtering criteria that scope down the result list. By default, all service instances in the Amazon Web Services account are returned.
listServiceInstances_maxResults :: Lens' ListServiceInstances (Maybe Natural) Source #
The maximum number of service instances to list.
listServiceInstances_nextToken :: Lens' ListServiceInstances (Maybe Text) Source #
A token that indicates the location of the next service in the array of service instances, after the list of service instances that was previously requested.
listServiceInstances_serviceName :: Lens' ListServiceInstances (Maybe Text) Source #
The name of the service that the service instance belongs to.
listServiceInstances_sortBy :: Lens' ListServiceInstances (Maybe ListServiceInstancesSortBy) Source #
The field that the result list is sorted by.
When you choose to sort by serviceName
, service instances within each
service are sorted by service instance name.
Default: serviceName
listServiceInstances_sortOrder :: Lens' ListServiceInstances (Maybe SortOrder) Source #
Result list sort order.
Default: ASCENDING
Destructuring the Response
data ListServiceInstancesResponse Source #
See: newListServiceInstancesResponse
smart constructor.
ListServiceInstancesResponse' | |
|
Instances
newListServiceInstancesResponse Source #
Create a value of ListServiceInstancesResponse
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:
ListServiceInstances
, listServiceInstancesResponse_nextToken
- A token that indicates the location of the next service instance in the
array of service instances, after the current requested list of service
instances.
$sel:httpStatus:ListServiceInstancesResponse'
, listServiceInstancesResponse_httpStatus
- The response's http status code.
$sel:serviceInstances:ListServiceInstancesResponse'
, listServiceInstancesResponse_serviceInstances
- An array of service instances with summary data.
Response Lenses
listServiceInstancesResponse_nextToken :: Lens' ListServiceInstancesResponse (Maybe Text) Source #
A token that indicates the location of the next service instance in the array of service instances, after the current requested list of service instances.
listServiceInstancesResponse_httpStatus :: Lens' ListServiceInstancesResponse Int Source #
The response's http status code.
listServiceInstancesResponse_serviceInstances :: Lens' ListServiceInstancesResponse [ServiceInstanceSummary] Source #
An array of service instances with summary data.