Class CfnResolverEndpoint
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::Route53Resolver::ResolverEndpoint
.
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.
- You cannot update
ResolverEndpointType
andIpAddresses
in the same request.- When you update a dual-stack IP address, you must update both IP addresses. You can’t update only an IPv4 or IPv6 and keep an existing IP address.
Example:
// 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.*; CfnResolverEndpoint cfnResolverEndpoint = CfnResolverEndpoint.Builder.create(this, "MyCfnResolverEndpoint") .direction("direction") .ipAddresses(List.of(IpAddressRequestProperty.builder() .subnetId("subnetId") // the properties below are optional .ip("ip") .ipv6("ipv6") .build())) .securityGroupIds(List.of("securityGroupIds")) // the properties below are optional .name("name") .outpostArn("outpostArn") .preferredInstanceType("preferredInstanceType") .resolverEndpointType("resolverEndpointType") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnResolverEndpoint
.static interface
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).Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnResolverEndpoint
(Construct scope, String id, CfnResolverEndpointProps props) Create a newAWS::Route53Resolver::ResolverEndpoint
.protected
CfnResolverEndpoint
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnResolverEndpoint
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the resolver endpoint, such asarn:aws:route53resolver:us-east-1:123456789012:resolver-endpoint/resolver-endpoint-a1bzhi
.Indicates whether the resolver endpoint allows inbound or outbound DNS queries.The ID of the VPC that you want to create the resolver endpoint in.The number of IP addresses that the resolver endpoint can use for DNS queries.The name that you assigned to the resolver endpoint when you created the endpoint.The ID of the resolver endpoint.For the endpoint type you can choose either IPv4, IPv6.Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:.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).getName()
A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console.AWS::Route53Resolver::ResolverEndpoint.OutpostArn
.AWS::Route53Resolver::ResolverEndpoint.PreferredInstanceType
.The Resolver endpoint IP address type.The ID of one or more security groups that control access to this VPC.getTags()
Route 53 Resolver doesn't support updating tags through CloudFormation.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDirection
(String value) Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:.void
setIpAddresses
(List<Object> value) 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).void
setIpAddresses
(IResolvable value) 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).void
A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console.void
setOutpostArn
(String value) AWS::Route53Resolver::ResolverEndpoint.OutpostArn
.void
setPreferredInstanceType
(String value) AWS::Route53Resolver::ResolverEndpoint.PreferredInstanceType
.void
setResolverEndpointType
(String value) The Resolver endpoint IP address type.void
setSecurityGroupIds
(List<String> value) The ID of one or more security groups that control access to this VPC.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnResolverEndpoint
protected CfnResolverEndpoint(software.amazon.jsii.JsiiObjectRef objRef) -
CfnResolverEndpoint
protected CfnResolverEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnResolverEndpoint
@Stability(Stable) public CfnResolverEndpoint(@NotNull Construct scope, @NotNull String id, @NotNull CfnResolverEndpointProps props) Create a newAWS::Route53Resolver::ResolverEndpoint
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the resolver endpoint, such asarn:aws:route53resolver:us-east-1:123456789012:resolver-endpoint/resolver-endpoint-a1bzhi
. -
getAttrDirection
Indicates whether the resolver endpoint allows inbound or outbound DNS queries. -
getAttrHostVpcId
The ID of the VPC that you want to create the resolver endpoint in. -
getAttrIpAddressCount
The number of IP addresses that the resolver endpoint can use for DNS queries. -
getAttrName
The name that you assigned to the resolver endpoint when you created the endpoint. -
getAttrOutpostArn
-
getAttrPreferredInstanceType
-
getAttrResolverEndpointId
The ID of the resolver endpoint. -
getAttrResolverEndpointType
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. If you choose either IPv4 or IPv6, this endpoint type is applied to all IP addresses.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Route 53 Resolver doesn't support updating tags through CloudFormation. -
getDirection
Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:.INBOUND
: allows DNS queries to your VPC from your networkOUTBOUND
: allows DNS queries from your VPC to your network
-
setDirection
Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:.INBOUND
: allows DNS queries to your VPC from your networkOUTBOUND
: allows DNS queries from your VPC to your network
-
getIpAddresses
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.
-
setIpAddresses
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.
-
setIpAddresses
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.
-
getSecurityGroupIds
The ID of one or more security groups that control access to this VPC.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.
-
setSecurityGroupIds
The ID of one or more security groups that control access to this VPC.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.
-
getName
A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console. -
setName
A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console. -
getOutpostArn
AWS::Route53Resolver::ResolverEndpoint.OutpostArn
. -
setOutpostArn
AWS::Route53Resolver::ResolverEndpoint.OutpostArn
. -
getPreferredInstanceType
AWS::Route53Resolver::ResolverEndpoint.PreferredInstanceType
. -
setPreferredInstanceType
AWS::Route53Resolver::ResolverEndpoint.PreferredInstanceType
. -
getResolverEndpointType
The Resolver endpoint IP address type. -
setResolverEndpointType
The Resolver endpoint IP address type.
-