| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.Route53.ListHealthChecks
Description
Retrieve a list of the health checks that are associated with the current AWS account.
This operation returns paginated results.
Synopsis
- listHealthChecks :: ListHealthChecks
- data ListHealthChecks
- lhcMarker :: Lens' ListHealthChecks (Maybe Text)
- lhcMaxItems :: Lens' ListHealthChecks (Maybe Text)
- listHealthChecksResponse :: Int -> Text -> Bool -> Text -> ListHealthChecksResponse
- data ListHealthChecksResponse
- lhcrsNextMarker :: Lens' ListHealthChecksResponse (Maybe Text)
- lhcrsResponseStatus :: Lens' ListHealthChecksResponse Int
- lhcrsHealthChecks :: Lens' ListHealthChecksResponse [HealthCheck]
- lhcrsMarker :: Lens' ListHealthChecksResponse Text
- lhcrsIsTruncated :: Lens' ListHealthChecksResponse Bool
- lhcrsMaxItems :: Lens' ListHealthChecksResponse Text
Creating a Request
listHealthChecks :: ListHealthChecks Source #
Creates a value of ListHealthChecks with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lhcMarker- If the value ofIsTruncatedin the previous response wastrue, you have more health checks. To get another group, submit anotherListHealthChecksrequest. For the value ofmarker, specify the value ofNextMarkerfrom the previous response, which is the ID of the first health check that Amazon Route 53 will return if you submit another request. If the value ofIsTruncatedin the previous response wasfalse, there are no more health checks to get.lhcMaxItems- The maximum number of health checks that you wantListHealthChecksto return in response to the current request. Amazon Route 53 returns a maximum of 100 items. If you setMaxItemsto a value greater than 100, Amazon Route 53 returns only the first 100 health checks.
data ListHealthChecks Source #
A request to retrieve a list of the health checks that are associated with the current AWS account.
See: listHealthChecks smart constructor.
Instances
Request Lenses
lhcMarker :: Lens' ListHealthChecks (Maybe Text) Source #
If the value of IsTruncated in the previous response was true , you have more health checks. To get another group, submit another ListHealthChecks request. For the value of marker , specify the value of NextMarker from the previous response, which is the ID of the first health check that Amazon Route 53 will return if you submit another request. If the value of IsTruncated in the previous response was false , there are no more health checks to get.
lhcMaxItems :: Lens' ListHealthChecks (Maybe Text) Source #
The maximum number of health checks that you want ListHealthChecks to return in response to the current request. Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a value greater than 100, Amazon Route 53 returns only the first 100 health checks.
Destructuring the Response
listHealthChecksResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> Bool | |
| -> Text | |
| -> ListHealthChecksResponse |
Creates a value of ListHealthChecksResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lhcrsNextMarker- IfIsTruncatedistrue, the value ofNextMarkeridentifies the first health check that Amazon Route 53 returns if you submit anotherListHealthChecksrequest and specify the value ofNextMarkerin themarkerparameter.lhcrsResponseStatus- -- | The response status code.lhcrsHealthChecks- A complex type that contains oneHealthCheckelement for each health check that is associated with the current AWS account.lhcrsMarker- For the second and subsequent calls toListHealthChecks,Markeris the value that you specified for themarkerparameter in the previous request.lhcrsIsTruncated- A flag that indicates whether there are more health checks to be listed. If the response was truncated, you can get the next group of health checks by submitting anotherListHealthChecksrequest and specifying the value ofNextMarkerin themarkerparameter.lhcrsMaxItems- The value that you specified for themaxitemsparameter in the call toListHealthChecksthat produced the current response.
data ListHealthChecksResponse Source #
A complex type that contains the response to a ListHealthChecks request.
See: listHealthChecksResponse smart constructor.
Instances
Response Lenses
lhcrsNextMarker :: Lens' ListHealthChecksResponse (Maybe Text) Source #
If IsTruncated is true , the value of NextMarker identifies the first health check that Amazon Route 53 returns if you submit another ListHealthChecks request and specify the value of NextMarker in the marker parameter.
lhcrsResponseStatus :: Lens' ListHealthChecksResponse Int Source #
- - | The response status code.
lhcrsHealthChecks :: Lens' ListHealthChecksResponse [HealthCheck] Source #
A complex type that contains one HealthCheck element for each health check that is associated with the current AWS account.
lhcrsMarker :: Lens' ListHealthChecksResponse Text Source #
For the second and subsequent calls to ListHealthChecks , Marker is the value that you specified for the marker parameter in the previous request.
lhcrsIsTruncated :: Lens' ListHealthChecksResponse Bool Source #
A flag that indicates whether there are more health checks to be listed. If the response was truncated, you can get the next group of health checks by submitting another ListHealthChecks request and specifying the value of NextMarker in the marker parameter.
lhcrsMaxItems :: Lens' ListHealthChecksResponse Text Source #
The value that you specified for the maxitems parameter in the call to ListHealthChecks that produced the current response.