Skip to content
v2.278.0

IpAddressRequestProperty ​

Struct External

In a CreateResolverEndpoint request, the IP address that DNS queries originate from (for outbound endpoints) or that you forward DNS queries to (for inbound endpoints). IpAddressRequest also includes the ID of the subnet that contains the IP address.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_route53resolver as route53resolver } from 'aws-cdk-lib';
const ipAddressRequestProperty: route53resolver.CfnResolverEndpoint.IpAddressRequestProperty = {
  subnetId: 'subnetId',

  // the properties below are optional
  ip: 'ip',
  ipv6: 'ipv6',
};
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_route53resolver as route53resolver

ip_address_request_property = route53resolver.CfnResolverEndpoint.IpAddressRequestProperty(
    subnet_id="subnetId",

    # the properties below are optional
    ip="ip",
    ipv6="ipv6"
)
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.route53resolver.*;

IpAddressRequestProperty ipAddressRequestProperty = IpAddressRequestProperty.builder()
        .subnetId("subnetId")

        // the properties below are optional
        .ip("ip")
        .ipv6("ipv6")
        .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.Route53Resolver;

var ipAddressRequestProperty = new IpAddressRequestProperty {
    SubnetId = "subnetId",

    // the properties below are optional
    Ip = "ip",
    Ipv6 = "ipv6"
};
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"

ipAddressRequestProperty := &IpAddressRequestProperty{
	SubnetId: jsii.String("subnetId"),

	// the properties below are optional
	Ip: jsii.String("ip"),
	Ipv6: jsii.String("ipv6"),
}

Properties ​

ipoptionalstringipoptionalstripoptionalStringIpoptionalstringIpoptional*string #
The IPv4 address that you want to use for DNS queries.
ipv6optionalstringipv6optionalstripv6optionalStringIpv6optionalstringIpv6optional*string #
The IPv6 address that you want to use for DNS queries.
subnetIdstringsubnet_idstrsubnetIdStringSubnetIdstringSubnetId*string required #
The ID of the subnet that contains the IP address.