CfnHealthCheckSourceProps Struct
Properties for defining a CfnHealthCheckSource.
| Source |
|---|
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 cfnHealthCheckSourceProps: route53.CfnHealthCheckSourceProps = {
healthCheckSourceConfig: {
subnetConfigurationList: [{
availabilityZoneId: 'availabilityZoneId',
securityGroupIdList: ['securityGroupIdList'],
subnetId: 'subnetId',
}],
vpcId: 'vpcId',
},
// the properties below are optional
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# 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_source_props = route53.CfnHealthCheckSourceProps(
health_check_source_config=route53.CfnHealthCheckSource.HealthCheckSourceConfigProperty(
subnet_configuration_list=[route53.CfnHealthCheckSource.SubnetConfigurationProperty(
availability_zone_id="availabilityZoneId",
security_group_id_list=["securityGroupIdList"],
subnet_id="subnetId"
)],
vpc_id="vpcId"
),
# the properties below are optional
tags=[CfnTag(
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.*;
CfnHealthCheckSourceProps cfnHealthCheckSourceProps = CfnHealthCheckSourceProps.builder()
.healthCheckSourceConfig(HealthCheckSourceConfigProperty.builder()
.subnetConfigurationList(List.of(SubnetConfigurationProperty.builder()
.availabilityZoneId("availabilityZoneId")
.securityGroupIdList(List.of("securityGroupIdList"))
.subnetId("subnetId")
.build()))
.vpcId("vpcId")
.build())
// the properties below are optional
.tags(List.of(CfnTag.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 cfnHealthCheckSourceProps = new CfnHealthCheckSourceProps {
HealthCheckSourceConfig = new HealthCheckSourceConfigProperty {
SubnetConfigurationList = new [] { new SubnetConfigurationProperty {
AvailabilityZoneId = "availabilityZoneId",
SecurityGroupIdList = new [] { "securityGroupIdList" },
SubnetId = "subnetId"
} },
VpcId = "vpcId"
},
// the properties below are optional
Tags = new [] { new CfnTag {
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"
cfnHealthCheckSourceProps := &CfnHealthCheckSourceProps{
HealthCheckSourceConfig: &HealthCheckSourceConfigProperty{
SubnetConfigurationList: []interface{}{
&SubnetConfigurationProperty{
AvailabilityZoneId: jsii.String("availabilityZoneId"),
SecurityGroupIdList: []*string{
jsii.String("securityGroupIdList"),
},
SubnetId: jsii.String("subnetId"),
},
},
VpcId: jsii.String("vpcId"),
},
// the properties below are optional
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
healthCheckSourceConfigIResolvable | CfnHealthCheckSource.health_check_source_configtyping.Union[IResolvable, HealthCheckSourceConfigProperty]healthCheckSourceConfigIResolvableHealthCheckSourceConfigIResolvableHealthCheckSourceConfiginterface{} required #<p>A complex type that contains the VPC, subnets, and security groups for a health check source.
You can't change these values after you create the source.</p>