create_resolver_endpoint
async
¶
create_resolver_endpoint(
creator_request_id: CreatorRequestId,
security_group_ids: SecurityGroupIds,
direction: ResolverEndpointDirection,
ip_addresses: IpAddressesRequest,
*,
config_overrides: Optional[AsyncRoute53ResolverClientConfig] = None,
name: Optional[Name] = None,
outpost_arn: Optional[OutpostArn] = None,
preferred_instance_type: Optional[OutpostInstanceType] = None,
tags: Optional[TagList] = None,
resolver_endpoint_type: Optional[ResolverEndpointType] = None,
protocols: Optional[ProtocolList] = None,
rni_enhanced_metrics_enabled: Optional[RniEnhancedMetricsEnabled] = None,
target_name_server_metrics_enabled: Optional[TargetNameServerMetricsEnabled] = None,
dns64_enabled: Optional[Dns64Enabled] = None,
ipv6_internet_access_enabled: Optional[Ipv6InternetAccessEnabled] = None,
) -> CreateResolverEndpointResponse
Creates a Resolver endpoint. There are two types of Resolver endpoints, inbound and outbound:
-
An inbound Resolver endpoint forwards DNS queries to the DNS service for a VPC from your network.
-
An outbound Resolver endpoint forwards DNS queries from the DNS service for a VPC to your network.
Parameters:
-
creator_request_id(CreatorRequestId) –A unique string that identifies the request and that allows failed requests to be retried without the risk of running the operation twice.
CreatorRequestIdcan be any unique string, for example, a date/time stamp. -
name(Optional[Name], default:None) –A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console.
-
security_group_ids(SecurityGroupIds) –The ID of one or more security groups that you want to use to control access to this VPC. The security group that you specify must include one or more inbound rules (for inbound Resolver endpoints) or outbound rules (for outbound Resolver 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.
Some security group rules will cause your connection to be tracked. For outbound resolver endpoint, it can potentially impact the maximum queries per second from outbound endpoint to your target name server. For inbound resolver endpoint, it can bring down the overall maximum queries per second per IP address to as low as 1500. To avoid connection tracking caused by security group, see Untracked connections.
-
direction(ResolverEndpointDirection) –Specify the applicable value:
-
INBOUND: Resolver forwards DNS queries to the DNS service for a VPC from your network. -
OUTBOUND: Resolver forwards DNS queries from the DNS service for a VPC to your network. -
INBOUND_DELEGATION: Resolver delegates queries to Route 53 private hosted zones from your network.
-
-
ip_addresses(IpAddressesRequest) –The subnets and IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or that you forward DNS queries to (for inbound endpoints). The subnet ID uniquely identifies a VPC.
Even though the minimum is 1, Route 53 requires that you create at least two.
We recommend using VPC Resolver on Outposts to create endpoints on Outposts Racks.
Outposts subnets with Local Network Interface (LNI) enabled are not compatible with Route 53 Resolver endpoints. If you enable LNI on a subnet that contains Route 53 Resolver endpoint elastic network interfaces (ENIs), those ENIs will stop functioning. For more information, see Subnet compatibility for Resolver endpoints in the Amazon Route 53 Developer Guide.
-
outpost_arn(Optional[OutpostArn], default:None) –The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must also specify a value for the
PreferredInstanceType.Resolver endpoints on Outposts are supported on first-generation Outposts only. Inbound and outbound Resolver endpoints aren't supported on second-generation Outposts.
-
preferred_instance_type(Optional[OutpostInstanceType], default:None) –The instance type. If you specify this, you must also specify a value for the
OutpostArn. -
tags(Optional[TagList], default:None) –A list of the tag keys and values that you want to associate with the endpoint.
-
resolver_endpoint_type(Optional[ResolverEndpointType], default:None) –For the endpoint type you can choose either IPv4, IPv6, or dual-stack. A dual-stack endpoint means that it will resolve via both IPv4 and IPv6. This endpoint type is applied to all IP addresses.
-
protocols(Optional[ProtocolList], default:None) –The protocols you want to use for the endpoint. DoH-FIPS is applicable for default inbound endpoints only.
For a default 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.
-
-
rni_enhanced_metrics_enabled(Optional[RniEnhancedMetricsEnabled], default:None) –Specifies whether RNI enhanced metrics are enabled for the Resolver endpoints. When set to true, one-minute granular metrics are published in CloudWatch for each RNI associated with this endpoint. When set to false, metrics are not published. Default is false.
Standard CloudWatch pricing and charges are applied for using the Route 53 Resolver endpoint RNI enhanced metrics. For more information, see Detailed metrics.
-
target_name_server_metrics_enabled(Optional[TargetNameServerMetricsEnabled], default:None) –Specifies whether target name server metrics are enabled for the outbound Resolver endpoints. When set to true, one-minute granular metrics are published in CloudWatch for each target name server associated with this endpoint. When set to false, metrics are not published. Default is false. This is not supported for inbound Resolver endpoints.
Standard CloudWatch pricing and charges are applied for using the Route 53 Resolver endpoint target name server metrics. For more information, see Detailed metrics.
-
dns64_enabled(Optional[Dns64Enabled], default:None) –Specifies whether DNS64 is enabled for the inbound Resolver endpoint. When set to
true, Route 53 Resolver synthesizes AAAA (IPv6) records for IPv4-only services by prepending the64:ff9b::/96prefix to the IPv4 address. This enables IPv6-only clients that send queries through the inbound endpoint to reach IPv4-only services. DNS64 works with NAT64 to provide complete IPv6-to-IPv4 translation. Default is false. -
ipv6_internet_access_enabled(Optional[Ipv6InternetAccessEnabled], default:None) –Specifies whether IPv6 internet access is enabled for the outbound Resolver endpoint. When set to
true, the endpoint elastic network interfaces (ENIs) can forward DNS queries to public IPv6 targets through an internet gateway. Default is false.When you enable IPv6 internet access, use network controls like security groups, NACLs, or egress-only internet gateways to protect the endpoint ENIs from unsolicited ingress traffic. Be aware that some network controls can affect DNS query throughput due to connection tracking. For more information, see Amazon EC2 security group connection tracking and Resolver endpoint scaling.
Raises:
-
AccessDeniedException–The current account doesn't have the IAM permissions required to perform the specified Resolver operation.
This error can also be thrown when a customer has reached the 5120 character limit for a resource policy for CloudWatch Logs.
-
InternalServiceErrorException–We encountered an unknown error. Try again in a few minutes.
-
InvalidParameterException–One or more parameters in this request are not valid.
-
InvalidRequestException–The request is invalid.
-
LimitExceededException–The request caused one or more limits to be exceeded.
-
ResourceExistsException–The resource that you tried to create already exists.
-
ResourceNotFoundException–The specified resource doesn't exist.
-
ThrottlingException–The request was throttled. Try again in a few minutes.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_route53resolver/_services/async_route53_resolver.py
1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 | |