Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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.
UpdateInstanceCustomHealthStatus
, updateInstanceCustomHealthStatus_instanceId
- The ID of the instance that you want to change the health status for.
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
Generic UpdateInstanceCustomHealthStatusResponse Source # | |
Read UpdateInstanceCustomHealthStatusResponse Source # | |
Show UpdateInstanceCustomHealthStatusResponse Source # | |
NFData UpdateInstanceCustomHealthStatusResponse Source # | |
Eq UpdateInstanceCustomHealthStatusResponse Source # | |
type Rep UpdateInstanceCustomHealthStatusResponse Source # | |
Defined in Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus type Rep UpdateInstanceCustomHealthStatusResponse = D1 ('MetaData "UpdateInstanceCustomHealthStatusResponse" "Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus" "amazonka-route53-autonaming-2.0-98MlwjLW1enGruUXoTOCqp" '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.