| 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 |
Amazonka.Route53AutoNaming.ListInstances
Description
Lists summary information about the instances that you registered by using a specified service.
This operation returns paginated results.
Synopsis
- data ListInstances = ListInstances' {}
- newListInstances :: Text -> ListInstances
- listInstances_nextToken :: Lens' ListInstances (Maybe Text)
- listInstances_maxResults :: Lens' ListInstances (Maybe Natural)
- listInstances_serviceId :: Lens' ListInstances Text
- data ListInstancesResponse = ListInstancesResponse' {
- nextToken :: Maybe Text
- instances :: Maybe [InstanceSummary]
- httpStatus :: Int
- newListInstancesResponse :: Int -> ListInstancesResponse
- listInstancesResponse_nextToken :: Lens' ListInstancesResponse (Maybe Text)
- listInstancesResponse_instances :: Lens' ListInstancesResponse (Maybe [InstanceSummary])
- listInstancesResponse_httpStatus :: Lens' ListInstancesResponse Int
Creating a Request
data ListInstances Source #
See: newListInstances smart constructor.
Constructors
| ListInstances' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ListInstances |
Create a value of ListInstances 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:ListInstances', listInstances_nextToken - For the first ListInstances request, omit this value.
If more than MaxResults instances match the specified criteria, you
can submit another ListInstances request to get the next group of
results. Specify the value of NextToken from the previous response in
the next request.
$sel:maxResults:ListInstances', listInstances_maxResults - The maximum number of instances that you want Cloud Map to return in the
response to a ListInstances request. If you don't specify a value for
MaxResults, Cloud Map returns up to 100 instances.
$sel:serviceId:ListInstances', listInstances_serviceId - The ID of the service that you want to list instances for.
Request Lenses
listInstances_nextToken :: Lens' ListInstances (Maybe Text) Source #
For the first ListInstances request, omit this value.
If more than MaxResults instances match the specified criteria, you
can submit another ListInstances request to get the next group of
results. Specify the value of NextToken from the previous response in
the next request.
listInstances_maxResults :: Lens' ListInstances (Maybe Natural) Source #
The maximum number of instances that you want Cloud Map to return in the
response to a ListInstances request. If you don't specify a value for
MaxResults, Cloud Map returns up to 100 instances.
listInstances_serviceId :: Lens' ListInstances Text Source #
The ID of the service that you want to list instances for.
Destructuring the Response
data ListInstancesResponse Source #
See: newListInstancesResponse smart constructor.
Constructors
| ListInstancesResponse' | |
Fields
| |
Instances
newListInstancesResponse Source #
Create a value of ListInstancesResponse 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:ListInstances', listInstancesResponse_nextToken - If more than MaxResults instances match the specified criteria, you
can submit another ListInstances request to get the next group of
results. Specify the value of NextToken from the previous response in
the next request.
$sel:instances:ListInstancesResponse', listInstancesResponse_instances - Summary information about the instances that are associated with the
specified service.
$sel:httpStatus:ListInstancesResponse', listInstancesResponse_httpStatus - The response's http status code.
Response Lenses
listInstancesResponse_nextToken :: Lens' ListInstancesResponse (Maybe Text) Source #
If more than MaxResults instances match the specified criteria, you
can submit another ListInstances request to get the next group of
results. Specify the value of NextToken from the previous response in
the next request.
listInstancesResponse_instances :: Lens' ListInstancesResponse (Maybe [InstanceSummary]) Source #
Summary information about the instances that are associated with the specified service.
listInstancesResponse_httpStatus :: Lens' ListInstancesResponse Int Source #
The response's http status code.