Class CfnResolverEndpoint
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.route53resolver.CfnResolverEndpoint
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IResolverEndpointRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:16.975Z")
@Stability(Stable)
public class CfnResolverEndpoint
extends CfnResource
implements IInspectable, IResolverEndpointRef, ITaggable
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
ResolverEndpointTypeandIpAddressesin 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")
.protocols(List.of("protocols"))
.resolverEndpointType("resolverEndpointType")
.rniEnhancedMetricsEnabled(false)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.targetNameServerMetricsEnabled(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnResolverEndpoint.static interfaceIn 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.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.route53resolver.IResolverEndpointRef
IResolverEndpointRef.Jsii$Default, IResolverEndpointRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnResolverEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnResolverEndpoint(software.amazon.jsii.JsiiObjectRef objRef) CfnResolverEndpoint(software.constructs.Construct scope, String id, CfnResolverEndpointProps props) Create a newAWS::Route53Resolver::ResolverEndpoint. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForResolverEndpoint(IResolverEndpointRef resource) The 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.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.The ARN (Amazon Resource Name) for the Outpost.The Amazon EC2 instance type.Protocols used for the endpoint.A reference to a ResolverEndpoint resource.The Resolver endpoint IP address type.Specifies whether RNI enhanced metrics are enabled for the Resolver Endpoints.The ID of one or more security groups that control access to this VPC.getTags()Tag Manager which manages the tags for this resource.Route 53 Resolver doesn't support updating tags through CloudFormation.Specifies whether target name server metrics are enabled for the Outbound Resolver Endpoint.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnResolverEndpoint.renderProperties(Map<String, Object> props) voidsetDirection(String value) Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:.voidsetIpAddresses(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).voidsetIpAddresses(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).voidA friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console.voidsetOutpostArn(String value) The ARN (Amazon Resource Name) for the Outpost.voidsetPreferredInstanceType(String value) The Amazon EC2 instance type.voidsetProtocols(List<String> value) Protocols used for the endpoint.voidsetResolverEndpointType(String value) The Resolver endpoint IP address type.voidSpecifies whether RNI enhanced metrics are enabled for the Resolver Endpoints.voidSpecifies whether RNI enhanced metrics are enabled for the Resolver Endpoints.voidsetSecurityGroupIds(List<String> value) The ID of one or more security groups that control access to this VPC.voidsetTagsRaw(List<CfnTag> value) Route 53 Resolver doesn't support updating tags through CloudFormation.voidSpecifies whether target name server metrics are enabled for the Outbound Resolver Endpoint.voidSpecifies whether target name server metrics are enabled for the Outbound Resolver Endpoint.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnResolverEndpointProps props) Create a newAWS::Route53Resolver::ResolverEndpoint.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForResolverEndpoint
@Stability(Stable) @NotNull public static String arnForResolverEndpoint(@NotNull IResolverEndpointRef resource) - Parameters:
resource- This parameter is required.
-
isCfnResolverEndpoint
Checks whether the given object is a CfnResolverEndpoint.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin 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
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getResolverEndpointRef
A reference to a ResolverEndpoint resource.- Specified by:
getResolverEndpointRefin interfaceIResolverEndpointRef
-
getTags
Tag Manager which manages the tags for this resource. -
getDirection
Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:. -
setDirection
Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:. -
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).Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnResolverEndpoint.IpAddressRequestProperty> -
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). -
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). -
getSecurityGroupIds
The ID of one or more security groups that control access to this VPC. -
setSecurityGroupIds
The ID of one or more security groups that control access to this VPC. -
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
The ARN (Amazon Resource Name) for the Outpost. -
setOutpostArn
The ARN (Amazon Resource Name) for the Outpost. -
getPreferredInstanceType
The Amazon EC2 instance type. -
setPreferredInstanceType
The Amazon EC2 instance type. -
getProtocols
Protocols used for the endpoint.DoH-FIPS is applicable for a default inbound endpoints only.
-
setProtocols
Protocols used for the endpoint.DoH-FIPS is applicable for a default inbound endpoints only.
-
getResolverEndpointType
The Resolver endpoint IP address type. -
setResolverEndpointType
The Resolver endpoint IP address type. -
getRniEnhancedMetricsEnabled
Specifies whether RNI enhanced metrics are enabled for the Resolver Endpoints.Returns union: either
BooleanorIResolvable -
setRniEnhancedMetricsEnabled
Specifies whether RNI enhanced metrics are enabled for the Resolver Endpoints. -
setRniEnhancedMetricsEnabled
Specifies whether RNI enhanced metrics are enabled for the Resolver Endpoints. -
getTagsRaw
Route 53 Resolver doesn't support updating tags through CloudFormation. -
setTagsRaw
Route 53 Resolver doesn't support updating tags through CloudFormation. -
getTargetNameServerMetricsEnabled
Specifies whether target name server metrics are enabled for the Outbound Resolver Endpoint.Returns union: either
BooleanorIResolvable -
setTargetNameServerMetricsEnabled
Specifies whether target name server metrics are enabled for the Outbound Resolver Endpoint. -
setTargetNameServerMetricsEnabled
Specifies whether target name server metrics are enabled for the Outbound Resolver Endpoint.
-