HealthCheckConfig

class aws_cdk.aws_servicediscovery.HealthCheckConfig(*, failure_threshold=None, resource_path=None, type=None)

Bases: object

__init__(*, failure_threshold=None, resource_path=None, type=None)

Settings for an optional Amazon Route 53 health check.

If you specify settings for a health check, AWS Cloud Map associates the health check with all the records that you specify in DnsConfig. Only valid with a PublicDnsNamespace.

Parameters
  • failure_threshold (Union[int, float, None]) – The number of consecutive health checks that an endpoint must pass or fail for Route 53 to change the current status of the endpoint from unhealthy to healthy or vice versa. Default: 1

  • resource_path (Optional[str]) – The path that you want Route 53 to request when performing health checks. Do not use when health check type is TCP. Default: ‘/’

  • type (Optional[HealthCheckType]) – The type of health check that you want to create, which indicates how Route 53 determines whether an endpoint is healthy. Cannot be modified once created. Supported values are HTTP, HTTPS, and TCP. Default: HTTP

Return type

None

Attributes

failure_threshold

The number of consecutive health checks that an endpoint must pass or fail for Route 53 to change the current status of the endpoint from unhealthy to healthy or vice versa.

default :default: 1

Return type

Union[int, float, None]

resource_path

The path that you want Route 53 to request when performing health checks.

Do not use when health check type is TCP.

default :default: ‘/’

Return type

Optional[str]

type

The type of health check that you want to create, which indicates how Route 53 determines whether an endpoint is healthy.

Cannot be modified once created. Supported values are HTTP, HTTPS, and TCP.

default :default: HTTP

Return type

Optional[HealthCheckType]