SubnetConfigurationProperty Struct
<p>A complex type that identifies one subnet for a health check source and the security groups that Route 53 associates with the network interfaces that it creates in that subnet.</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 subnetConfigurationProperty: route53.CfnHealthCheckSource.SubnetConfigurationProperty = {
availabilityZoneId: 'availabilityZoneId',
securityGroupIdList: ['securityGroupIdList'],
subnetId: 'subnetId',
};
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
subnet_configuration_property = route53.CfnHealthCheckSource.SubnetConfigurationProperty(
availability_zone_id="availabilityZoneId",
security_group_id_list=["securityGroupIdList"],
subnet_id="subnetId"
)
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.*;
SubnetConfigurationProperty subnetConfigurationProperty = SubnetConfigurationProperty.builder()
.availabilityZoneId("availabilityZoneId")
.securityGroupIdList(List.of("securityGroupIdList"))
.subnetId("subnetId")
.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 subnetConfigurationProperty = new SubnetConfigurationProperty {
AvailabilityZoneId = "availabilityZoneId",
SecurityGroupIdList = new [] { "securityGroupIdList" },
SubnetId = "subnetId"
};
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"
subnetConfigurationProperty := &SubnetConfigurationProperty{
AvailabilityZoneId: jsii.String("availabilityZoneId"),
SecurityGroupIdList: []*string{
jsii.String("securityGroupIdList"),
},
SubnetId: jsii.String("subnetId"),
}
Properties
availabilityZoneIdstringavailability_zone_idstravailabilityZoneIdStringAvailabilityZoneIdstringAvailabilityZoneId*string required #<p>The ID of the Availability Zone that contains the subnet, for example <code>use1-az1</code>.
Specify the Availability Zone ID, not the Availability Zone name. Each subnet in a health check source must be in a different Availability Zone.</p>
securityGroupIdListstring[]security_group_id_listtyping.List[str]securityGroupIdListList<String>SecurityGroupIdListstring[]SecurityGroupIdList*[]*string required #<p>The IDs of one to ten security groups in the same VPC to associate with the network interfaces that Route 53 creates in this subnet.
The security groups must allow outbound traffic to the endpoints that the health checks monitor.</p>
<p>The ID of the subnet.
The subnet must have free IP addresses for the network interfaces that Route 53 creates.</p>