HealthCheckSourceConfigProperty Struct
<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>
| 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 healthCheckSourceConfigProperty: route53.CfnHealthCheckSource.HealthCheckSourceConfigProperty = {
subnetConfigurationList: [{
availabilityZoneId: 'availabilityZoneId',
securityGroupIdList: ['securityGroupIdList'],
subnetId: 'subnetId',
}],
vpcId: 'vpcId',
};
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
health_check_source_config_property = route53.CfnHealthCheckSource.HealthCheckSourceConfigProperty(
subnet_configuration_list=[route53.CfnHealthCheckSource.SubnetConfigurationProperty(
availability_zone_id="availabilityZoneId",
security_group_id_list=["securityGroupIdList"],
subnet_id="subnetId"
)],
vpc_id="vpcId"
)
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.*;
HealthCheckSourceConfigProperty healthCheckSourceConfigProperty = HealthCheckSourceConfigProperty.builder()
.subnetConfigurationList(List.of(SubnetConfigurationProperty.builder()
.availabilityZoneId("availabilityZoneId")
.securityGroupIdList(List.of("securityGroupIdList"))
.subnetId("subnetId")
.build()))
.vpcId("vpcId")
.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 healthCheckSourceConfigProperty = new HealthCheckSourceConfigProperty {
SubnetConfigurationList = new [] { new SubnetConfigurationProperty {
AvailabilityZoneId = "availabilityZoneId",
SecurityGroupIdList = new [] { "securityGroupIdList" },
SubnetId = "subnetId"
} },
VpcId = "vpcId"
};
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"
healthCheckSourceConfigProperty := &HealthCheckSourceConfigProperty{
SubnetConfigurationList: []interface{}{
&SubnetConfigurationProperty{
AvailabilityZoneId: jsii.String("availabilityZoneId"),
SecurityGroupIdList: []*string{
jsii.String("securityGroupIdList"),
},
SubnetId: jsii.String("subnetId"),
},
},
VpcId: jsii.String("vpcId"),
}
Properties
subnetConfigurationListIResolvable | IResolvable | CfnHealthCheckSource.subnet_configuration_listtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SubnetConfigurationProperty]]]subnetConfigurationListIResolvableSubnetConfigurationListIResolvableSubnetConfigurationListinterface{} required #<p>A complex type that contains one <code>SubnetConfiguration</code> element for each Availability Zone that Route 53 uses for private endpoint health checks in the Amazon Web Services Region.
notes
Each element must be in a different Availability Zone. Most Regions require three elements. Regions that have only two such Availability Zones, such as US West (N. California), require two elements. Route 53 creates network interfaces in each subnet and sends health check requests from all of them.</p>
<p>The ID of the VPC that contains the subnets for the health check source.
All subnets in <code>SubnetConfigurationList</code> must belong to this VPC.</p>