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 |
Gets the current health status (Healthy
, Unhealthy
, or Unknown
) of
one or more instances that are associated with a specified service.
There's a brief delay between when you register an instance and when the health status for the instance is available.
Synopsis
- data GetInstancesHealthStatus = GetInstancesHealthStatus' {}
- newGetInstancesHealthStatus :: Text -> GetInstancesHealthStatus
- getInstancesHealthStatus_nextToken :: Lens' GetInstancesHealthStatus (Maybe Text)
- getInstancesHealthStatus_instances :: Lens' GetInstancesHealthStatus (Maybe (NonEmpty Text))
- getInstancesHealthStatus_maxResults :: Lens' GetInstancesHealthStatus (Maybe Natural)
- getInstancesHealthStatus_serviceId :: Lens' GetInstancesHealthStatus Text
- data GetInstancesHealthStatusResponse = GetInstancesHealthStatusResponse' {
- status :: Maybe (HashMap Text HealthStatus)
- nextToken :: Maybe Text
- httpStatus :: Int
- newGetInstancesHealthStatusResponse :: Int -> GetInstancesHealthStatusResponse
- getInstancesHealthStatusResponse_status :: Lens' GetInstancesHealthStatusResponse (Maybe (HashMap Text HealthStatus))
- getInstancesHealthStatusResponse_nextToken :: Lens' GetInstancesHealthStatusResponse (Maybe Text)
- getInstancesHealthStatusResponse_httpStatus :: Lens' GetInstancesHealthStatusResponse Int
Creating a Request
data GetInstancesHealthStatus Source #
See: newGetInstancesHealthStatus
smart constructor.
GetInstancesHealthStatus' | |
|
Instances
newGetInstancesHealthStatus Source #
Create a value of GetInstancesHealthStatus
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:GetInstancesHealthStatus'
, getInstancesHealthStatus_nextToken
- For the first GetInstancesHealthStatus
request, omit this value.
If more than MaxResults
instances match the specified criteria, you
can submit another GetInstancesHealthStatus
request to get the next
group of results. Specify the value of NextToken
from the previous
response in the next request.
$sel:instances:GetInstancesHealthStatus'
, getInstancesHealthStatus_instances
- An array that contains the IDs of all the instances that you want to get
the health status for.
If you omit Instances
, Cloud Map returns the health status for all the
instances that are associated with the specified service.
To get the IDs for the instances that you've registered by using a specified service, submit a ListInstances request.
$sel:maxResults:GetInstancesHealthStatus'
, getInstancesHealthStatus_maxResults
- The maximum number of instances that you want Cloud Map to return in the
response to a GetInstancesHealthStatus
request. If you don't specify
a value for MaxResults
, Cloud Map returns up to 100 instances.
$sel:serviceId:GetInstancesHealthStatus'
, getInstancesHealthStatus_serviceId
- The ID of the service that the instance is associated with.
Request Lenses
getInstancesHealthStatus_nextToken :: Lens' GetInstancesHealthStatus (Maybe Text) Source #
For the first GetInstancesHealthStatus
request, omit this value.
If more than MaxResults
instances match the specified criteria, you
can submit another GetInstancesHealthStatus
request to get the next
group of results. Specify the value of NextToken
from the previous
response in the next request.
getInstancesHealthStatus_instances :: Lens' GetInstancesHealthStatus (Maybe (NonEmpty Text)) Source #
An array that contains the IDs of all the instances that you want to get the health status for.
If you omit Instances
, Cloud Map returns the health status for all the
instances that are associated with the specified service.
To get the IDs for the instances that you've registered by using a specified service, submit a ListInstances request.
getInstancesHealthStatus_maxResults :: Lens' GetInstancesHealthStatus (Maybe Natural) Source #
The maximum number of instances that you want Cloud Map to return in the
response to a GetInstancesHealthStatus
request. If you don't specify
a value for MaxResults
, Cloud Map returns up to 100 instances.
getInstancesHealthStatus_serviceId :: Lens' GetInstancesHealthStatus Text Source #
The ID of the service that the instance is associated with.
Destructuring the Response
data GetInstancesHealthStatusResponse Source #
See: newGetInstancesHealthStatusResponse
smart constructor.
GetInstancesHealthStatusResponse' | |
|
Instances
newGetInstancesHealthStatusResponse Source #
Create a value of GetInstancesHealthStatusResponse
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:status:GetInstancesHealthStatusResponse'
, getInstancesHealthStatusResponse_status
- A complex type that contains the IDs and the health status of the
instances that you specified in the GetInstancesHealthStatus
request.
$sel:nextToken:GetInstancesHealthStatus'
, getInstancesHealthStatusResponse_nextToken
- If more than MaxResults
instances match the specified criteria, you
can submit another GetInstancesHealthStatus
request to get the next
group of results. Specify the value of NextToken
from the previous
response in the next request.
$sel:httpStatus:GetInstancesHealthStatusResponse'
, getInstancesHealthStatusResponse_httpStatus
- The response's http status code.
Response Lenses
getInstancesHealthStatusResponse_status :: Lens' GetInstancesHealthStatusResponse (Maybe (HashMap Text HealthStatus)) Source #
A complex type that contains the IDs and the health status of the
instances that you specified in the GetInstancesHealthStatus
request.
getInstancesHealthStatusResponse_nextToken :: Lens' GetInstancesHealthStatusResponse (Maybe Text) Source #
If more than MaxResults
instances match the specified criteria, you
can submit another GetInstancesHealthStatus
request to get the next
group of results. Specify the value of NextToken
from the previous
response in the next request.
getInstancesHealthStatusResponse_httpStatus :: Lens' GetInstancesHealthStatusResponse Int Source #
The response's http status code.