Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
This action creates a new health check.
To create a new health check, send a POST
request to the
'2013-04-01\/healthcheck' resource. The request body must include an XML
document with a CreateHealthCheckRequest
element. The response returns
the CreateHealthCheckResponse
element that contains metadata about the
health check.
See: AWS API Reference for CreateHealthCheck.
- createHealthCheck :: Text -> HealthCheckConfig -> CreateHealthCheck
- data CreateHealthCheck
- chcCallerReference :: Lens' CreateHealthCheck Text
- chcHealthCheckConfig :: Lens' CreateHealthCheck HealthCheckConfig
- createHealthCheckResponse :: Int -> HealthCheck -> Text -> CreateHealthCheckResponse
- data CreateHealthCheckResponse
- chcrsStatus :: Lens' CreateHealthCheckResponse Int
- chcrsHealthCheck :: Lens' CreateHealthCheckResponse HealthCheck
- chcrsLocation :: Lens' CreateHealthCheckResponse Text
Creating a Request
Creates a value of CreateHealthCheck
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateHealthCheck Source
A complex type that contains information about the request to create a
health check.
See: createHealthCheck
smart constructor.
Request Lenses
chcCallerReference :: Lens' CreateHealthCheck Text Source
A unique string that identifies the request and that allows failed
CreateHealthCheck
requests to be retried without the risk of executing
the operation twice. You must use a unique CallerReference
string
every time you create a health check. CallerReference
can be any
unique string; you might choose to use a string that identifies your
project.
Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.
chcHealthCheckConfig :: Lens' CreateHealthCheck HealthCheckConfig Source
A complex type that contains health check configuration.
Destructuring the Response
createHealthCheckResponse Source
Creates a value of CreateHealthCheckResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateHealthCheckResponse Source
A complex type containing the response information for the new health check.
See: createHealthCheckResponse
smart constructor.
Response Lenses
chcrsStatus :: Lens' CreateHealthCheckResponse Int Source
The response status code.
chcrsHealthCheck :: Lens' CreateHealthCheckResponse HealthCheck Source
A complex type that contains identifying information about the health check.
chcrsLocation :: Lens' CreateHealthCheckResponse Text Source
The unique URL representing the new health check.