amazonka-route53-autonaming-2.0: Amazon Cloud Map SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus

Description

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

Creating a Request

data UpdateInstanceCustomHealthStatus Source #

See: newUpdateInstanceCustomHealthStatus smart constructor.

Constructors

UpdateInstanceCustomHealthStatus' 

Fields

  • serviceId :: Text

    The ID of the service that includes the configuration for the custom health check that you want to change the status for.

  • instanceId :: Text

    The ID of the instance that you want to change the health status for.

  • status :: CustomHealthStatus

    The new status of the instance, HEALTHY or UNHEALTHY.

Instances

Instances details
ToJSON UpdateInstanceCustomHealthStatus Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus

ToHeaders UpdateInstanceCustomHealthStatus Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus

ToPath UpdateInstanceCustomHealthStatus Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus

ToQuery UpdateInstanceCustomHealthStatus Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus

AWSRequest UpdateInstanceCustomHealthStatus Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus

Generic UpdateInstanceCustomHealthStatus Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus

Associated Types

type Rep UpdateInstanceCustomHealthStatus :: Type -> Type #

Read UpdateInstanceCustomHealthStatus Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus

Show UpdateInstanceCustomHealthStatus Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus

NFData UpdateInstanceCustomHealthStatus Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus

Eq UpdateInstanceCustomHealthStatus Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus

Hashable UpdateInstanceCustomHealthStatus Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus

type AWSResponse UpdateInstanceCustomHealthStatus Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus

type Rep UpdateInstanceCustomHealthStatus Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus

type Rep UpdateInstanceCustomHealthStatus = D1 ('MetaData "UpdateInstanceCustomHealthStatus" "Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus" "amazonka-route53-autonaming-2.0-98MlwjLW1enGruUXoTOCqp" 'False) (C1 ('MetaCons "UpdateInstanceCustomHealthStatus'" 'PrefixI 'True) (S1 ('MetaSel ('Just "serviceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CustomHealthStatus))))

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.

Destructuring the Response

data UpdateInstanceCustomHealthStatusResponse Source #

Instances

Instances details
Generic UpdateInstanceCustomHealthStatusResponse Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus

Read UpdateInstanceCustomHealthStatusResponse Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus

Show UpdateInstanceCustomHealthStatusResponse Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus

NFData UpdateInstanceCustomHealthStatusResponse Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus

Eq UpdateInstanceCustomHealthStatusResponse Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.UpdateInstanceCustomHealthStatus

type Rep UpdateInstanceCustomHealthStatusResponse Source # 
Instance details

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.