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 |
Submits a request to change the health status of a custom health check to healthy or unhealthy.
You can use UpdateInstanceCustomHealthStatus
to change the status only
for custom health checks, which you define using
HealthCheckCustomConfig
when you create a service. You can't use it
to change the status for Route 53 health checks, which you define using
HealthCheckConfig
.
For more information, see HealthCheckCustomConfig.
Synopsis
- data UpdateInstanceCustomHealthStatus = UpdateInstanceCustomHealthStatus' {}
- newUpdateInstanceCustomHealthStatus :: Text -> Text -> CustomHealthStatus -> UpdateInstanceCustomHealthStatus
- updateInstanceCustomHealthStatus_serviceId :: Lens' UpdateInstanceCustomHealthStatus Text
- updateInstanceCustomHealthStatus_instanceId :: Lens' UpdateInstanceCustomHealthStatus Text
- updateInstanceCustomHealthStatus_status :: Lens' UpdateInstanceCustomHealthStatus CustomHealthStatus
- data UpdateInstanceCustomHealthStatusResponse = UpdateInstanceCustomHealthStatusResponse' {
- newUpdateInstanceCustomHealthStatusResponse :: UpdateInstanceCustomHealthStatusResponse
Creating a Request
data UpdateInstanceCustomHealthStatus Source #
See: newUpdateInstanceCustomHealthStatus
smart constructor.
UpdateInstanceCustomHealthStatus' | |
|
Instances
newUpdateInstanceCustomHealthStatus Source #
Create a value of UpdateInstanceCustomHealthStatus
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:serviceId:UpdateInstanceCustomHealthStatus'
, updateInstanceCustomHealthStatus_serviceId
- The ID of the service that includes the configuration for the custom
health check that you want to change the status for.
$sel:instanceId:UpdateInstanceCustomHealthStatus'
, updateInstanceCustomHealthStatus_instanceId
- The ID of the instance that you want to change the health status for.
$sel:status:UpdateInstanceCustomHealthStatus'
, updateInstanceCustomHealthStatus_status
- The new status of the instance, HEALTHY
or UNHEALTHY
.
Request Lenses
updateInstanceCustomHealthStatus_serviceId :: Lens' UpdateInstanceCustomHealthStatus Text Source #
The ID of the service that includes the configuration for the custom health check that you want to change the status for.
updateInstanceCustomHealthStatus_instanceId :: Lens' UpdateInstanceCustomHealthStatus Text Source #
The ID of the instance that you want to change the health status for.
updateInstanceCustomHealthStatus_status :: Lens' UpdateInstanceCustomHealthStatus CustomHealthStatus Source #
The new status of the instance, HEALTHY
or UNHEALTHY
.
Destructuring the Response
data UpdateInstanceCustomHealthStatusResponse Source #
See: newUpdateInstanceCustomHealthStatusResponse
smart constructor.
Instances
Eq UpdateInstanceCustomHealthStatusResponse Source # | |
Read UpdateInstanceCustomHealthStatusResponse Source # | |
Show UpdateInstanceCustomHealthStatusResponse Source # | |
Generic UpdateInstanceCustomHealthStatusResponse Source # | |
NFData UpdateInstanceCustomHealthStatusResponse Source # | |
type Rep UpdateInstanceCustomHealthStatusResponse Source # | |
Defined in Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus type Rep UpdateInstanceCustomHealthStatusResponse = D1 ('MetaData "UpdateInstanceCustomHealthStatusResponse" "Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus" "libZSservicesZSamazonka-route53-autonamingZSamazonka-route53-autonaming" 'False) (C1 ('MetaCons "UpdateInstanceCustomHealthStatusResponse'" 'PrefixI 'False) (U1 :: Type -> Type)) |
newUpdateInstanceCustomHealthStatusResponse :: UpdateInstanceCustomHealthStatusResponse Source #
Create a value of UpdateInstanceCustomHealthStatusResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.