CfnResolverEndpointProps Struct
Properties for defining a CfnResolverEndpoint.
Example
// 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 cfnResolverEndpointProps: route53resolver.CfnResolverEndpointProps = {
direction: 'direction',
ipAddresses: [{
subnetId: 'subnetId',
// the properties below are optional
ip: 'ip',
ipv6: 'ipv6',
}],
securityGroupIds: ['securityGroupIds'],
// the properties below are optional
dns64Enabled: false,
ipv6InternetAccessEnabled: false,
name: 'name',
outpostArn: 'outpostArn',
preferredInstanceType: 'preferredInstanceType',
protocols: ['protocols'],
resolverEndpointType: 'resolverEndpointType',
rniEnhancedMetricsEnabled: false,
tags: [{
key: 'key',
value: 'value',
}],
targetNameServerMetricsEnabled: false,
};
Properties
INBOUND: allows DNS queries to your VPC from your networkOUTBOUND: allows DNS queries from your VPC to your networkINBOUND_DELEGATION: Resolver delegates queries to Route 53 private hosted zones from your network.
dns64Enabledboolean | IResolvabledns64_enabledtyping.Union[bool, IResolvable]dns64EnabledBooleanDns64EnabledboolDns64Enabledinterface{}#notes
When set to true, if a DNS AAAA query is made for a domain that has only an A (IPv4) record, the resolver automatically synthesizes an AAAA (IPv6) response by embedding the IPv4 address into the well-known prefix 64:ff9b::/96. Default is false.
ipAddressesIResolvable | IResolvable | CfnResolverEndpoint.IpAddressRequestProperty[]ip_addressestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, IpAddressRequestProperty]]]ipAddressesIResolvableIpAddressesIResolvableIpAddressesinterface{}required#The subnet ID uniquely identifies a VPC.
Even though the minimum is 1, Route 53 requires that you create at least two.
ipv6InternetAccessEnabledboolean | IResolvableipv6_internet_access_enabledtyping.Union[bool, IResolvable]ipv6InternetAccessEnabledBooleanIpv6InternetAccessEnabledboolIpv6InternetAccessEnabledinterface{}#When set to true, this property allows your Endpoint ENIs to reach public IPv6 target nameservers through an internet gateway. Default is false.
preferredInstanceTypestringpreferred_instance_typestrpreferredInstanceTypeStringPreferredInstanceTypestringPreferredInstanceType*string#protocolsstring[]protocolstyping.List[str]protocolsList<String>Protocolsstring[]Protocols*[]*string#notes
For an inbound endpoint you can apply the protocols as follows:
- Do53 and DoH in combination.
- Do53 and DoH-FIPS in combination.
- Do53 alone.
- DoH alone.
- DoH-FIPS alone.
- None, which is treated as Do53.
For a delegation inbound endpoint you can use Do53 only.
For an outbound endpoint you can apply the protocols as follows:
- Do53 and DoH in combination.
- Do53 alone.
- DoH alone.
- None, which is treated as Do53.
resolverEndpointTypestringresolver_endpoint_typestrresolverEndpointTypeStringResolverEndpointTypestringResolverEndpointType*string#rniEnhancedMetricsEnabledboolean | IResolvablerni_enhanced_metrics_enabledtyping.Union[bool, IResolvable]rniEnhancedMetricsEnabledBooleanRniEnhancedMetricsEnabledboolRniEnhancedMetricsEnabledinterface{}#When enabled, one-minute granular metrics are published in CloudWatch for each RNI associated with this endpoint. When disabled, these metrics are not published.
securityGroupIdsstring[]security_group_idstyping.List[str]securityGroupIdsList<String>SecurityGroupIdsstring[]SecurityGroupIds*[]*stringrequired#notes
The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.
targetNameServerMetricsEnabledboolean | IResolvabletarget_name_server_metrics_enabledtyping.Union[bool, IResolvable]targetNameServerMetricsEnabledBooleanTargetNameServerMetricsEnabledboolTargetNameServerMetricsEnabledinterface{}#When enabled, one-minute granular metrics are published in CloudWatch for each target name server associated with this endpoint. When disabled, these metrics are not published. This feature is not supported for inbound Resolver endpoint.