Skip to content
v2.278.0

CfnHealthCheckProps ​

Struct External

Properties for defining a CfnHealthCheck.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_route53 as route53 } from 'aws-cdk-lib';
const cfnHealthCheckProps: route53.CfnHealthCheckProps = {
  healthCheckConfig: {
    type: 'type',

    // the properties below are optional
    alarmIdentifier: {
      name: 'name',
      region: 'region',
    },
    childHealthChecks: ['childHealthChecks'],
    enableSni: false,
    failureThreshold: 123,
    fullyQualifiedDomainName: 'fullyQualifiedDomainName',
    healthThreshold: 123,
    insufficientDataHealthStatus: 'insufficientDataHealthStatus',
    inverted: false,
    ipAddress: 'ipAddress',
    measureLatency: false,
    port: 123,
    regions: ['regions'],
    requestInterval: 123,
    resourcePath: 'resourcePath',
    routingControlArn: 'routingControlArn',
    searchString: 'searchString',
  },

  // the properties below are optional
  healthCheckTags: [{
    key: 'key',
    value: 'value',
  }],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_route53 as route53

cfn_health_check_props = route53.CfnHealthCheckProps(
    health_check_config=route53.CfnHealthCheck.HealthCheckConfigProperty(
        type="type",

        # the properties below are optional
        alarm_identifier=route53.CfnHealthCheck.AlarmIdentifierProperty(
            name="name",
            region="region"
        ),
        child_health_checks=["childHealthChecks"],
        enable_sni=False,
        failure_threshold=123,
        fully_qualified_domain_name="fullyQualifiedDomainName",
        health_threshold=123,
        insufficient_data_health_status="insufficientDataHealthStatus",
        inverted=False,
        ip_address="ipAddress",
        measure_latency=False,
        port=123,
        regions=["regions"],
        request_interval=123,
        resource_path="resourcePath",
        routing_control_arn="routingControlArn",
        search_string="searchString"
    ),

    # the properties below are optional
    health_check_tags=[route53.CfnHealthCheck.HealthCheckTagProperty(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.route53.*;

CfnHealthCheckProps cfnHealthCheckProps = CfnHealthCheckProps.builder()
        .healthCheckConfig(HealthCheckConfigProperty.builder()
                .type("type")

                // the properties below are optional
                .alarmIdentifier(AlarmIdentifierProperty.builder()
                        .name("name")
                        .region("region")
                        .build())
                .childHealthChecks(List.of("childHealthChecks"))
                .enableSni(false)
                .failureThreshold(123)
                .fullyQualifiedDomainName("fullyQualifiedDomainName")
                .healthThreshold(123)
                .insufficientDataHealthStatus("insufficientDataHealthStatus")
                .inverted(false)
                .ipAddress("ipAddress")
                .measureLatency(false)
                .port(123)
                .regions(List.of("regions"))
                .requestInterval(123)
                .resourcePath("resourcePath")
                .routingControlArn("routingControlArn")
                .searchString("searchString")
                .build())

        // the properties below are optional
        .healthCheckTags(List.of(HealthCheckTagProperty.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Route53;

var cfnHealthCheckProps = new CfnHealthCheckProps {
    HealthCheckConfig = new HealthCheckConfigProperty {
        Type = "type",

        // the properties below are optional
        AlarmIdentifier = new AlarmIdentifierProperty {
            Name = "name",
            Region = "region"
        },
        ChildHealthChecks = new [] { "childHealthChecks" },
        EnableSni = false,
        FailureThreshold = 123,
        FullyQualifiedDomainName = "fullyQualifiedDomainName",
        HealthThreshold = 123,
        InsufficientDataHealthStatus = "insufficientDataHealthStatus",
        Inverted = false,
        IpAddress = "ipAddress",
        MeasureLatency = false,
        Port = 123,
        Regions = new [] { "regions" },
        RequestInterval = 123,
        ResourcePath = "resourcePath",
        RoutingControlArn = "routingControlArn",
        SearchString = "searchString"
    },

    // the properties below are optional
    HealthCheckTags = new [] { new HealthCheckTagProperty {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnHealthCheckProps := &CfnHealthCheckProps{
	HealthCheckConfig: &HealthCheckConfigProperty{
		Type: jsii.String("type"),

		// the properties below are optional
		AlarmIdentifier: &AlarmIdentifierProperty{
			Name: jsii.String("name"),
			Region: jsii.String("region"),
		},
		ChildHealthChecks: []*string{
			jsii.String("childHealthChecks"),
		},
		EnableSni: jsii.Boolean(false),
		FailureThreshold: jsii.Number(123),
		FullyQualifiedDomainName: jsii.String("fullyQualifiedDomainName"),
		HealthThreshold: jsii.Number(123),
		InsufficientDataHealthStatus: jsii.String("insufficientDataHealthStatus"),
		Inverted: jsii.Boolean(false),
		IpAddress: jsii.String("ipAddress"),
		MeasureLatency: jsii.Boolean(false),
		Port: jsii.Number(123),
		Regions: []*string{
			jsii.String("regions"),
		},
		RequestInterval: jsii.Number(123),
		ResourcePath: jsii.String("resourcePath"),
		RoutingControlArn: jsii.String("routingControlArn"),
		SearchString: jsii.String("searchString"),
	},

	// the properties below are optional
	HealthCheckTags: []HealthCheckTagProperty{
		&HealthCheckTagProperty{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

healthCheckConfigIResolvable | CfnHealthCheck.HealthCheckConfigPropertyhealth_check_configtyping.Union[IResolvable, HealthCheckConfigProperty]healthCheckConfigIResolvableHealthCheckConfigIResolvableHealthCheckConfiginterface{} required #
A complex type that contains detailed information about one health check.

For the values to enter for HealthCheckConfig , see HealthCheckConfig

healthCheckTagsoptionalCfnHealthCheck.HealthCheckTagProperty[]health_check_tagsoptionaltyping.List[HealthCheckTagProperty]healthCheckTagsoptionalList<HealthCheckTagProperty>HealthCheckTagsoptionalHealthCheckTagProperty[]HealthCheckTagsoptional*[]HealthCheckTagProperty #
The `HealthCheckTags` property describes key-value pairs that are associated with an `AWS::Route53::HealthCheck` resource.