Class CfnResolverRule
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::Route53Resolver::ResolverRule
.
For DNS queries that originate in your VPCs, specifies which Resolver endpoint the queries pass through, one domain name that you want to forward to your network, and the IP addresses of the DNS resolvers in your network.
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.*; CfnResolverRule cfnResolverRule = CfnResolverRule.Builder.create(this, "MyCfnResolverRule") .domainName("domainName") .ruleType("ruleType") // the properties below are optional .name("name") .resolverEndpointId("resolverEndpointId") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .targetIps(List.of(TargetAddressProperty.builder() .ip("ip") .ipv6("ipv6") .port("port") .build())) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnResolverRule
.static interface
In a CreateResolverRule request, an array of the IPs that you want to forward DNS queries to.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
ModifierConstructorDescriptionCfnResolverRule
(Construct scope, String id, CfnResolverRuleProps props) Create a newAWS::Route53Resolver::ResolverRule
.protected
CfnResolverRule
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnResolverRule
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the resolver rule, such asarn:aws:route53resolver:us-east-1:123456789012:resolver-rule/resolver-rule-a1bzhi
.DNS queries for this domain name are forwarded to the IP addresses that are specified in TargetIps.A friendly name that lets you easily find a rule in the Resolver dashboard in the Route 53 console.The ID of the outbound endpoint that the rule is associated with, such asrslvr-out-fdc049932dexample
.When the value ofRuleType
isFORWARD
, the ID that Resolver assigned to the resolver rule when you created it, such asrslvr-rr-5328a0899aexample
.When the value ofRuleType
isFORWARD
, the IP addresses that the outbound endpoint forwards DNS queries to, typically the IP addresses for DNS resolvers on your network.DNS queries for this domain name are forwarded to the IP addresses that are specified inTargetIps
.getName()
The name for the Resolver rule, which you specified when you created the Resolver rule.The ID of the endpoint that the rule is associated with.When you want to forward DNS queries for specified domain name to resolvers on your network, specifyFORWARD
.getTags()
Tags help organize and categorize your Resolver rules.An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDomainName
(String value) DNS queries for this domain name are forwarded to the IP addresses that are specified inTargetIps
.void
The name for the Resolver rule, which you specified when you created the Resolver rule.void
setResolverEndpointId
(String value) The ID of the endpoint that the rule is associated with.void
setRuleType
(String value) When you want to forward DNS queries for specified domain name to resolvers on your network, specifyFORWARD
.void
setTargetIps
(List<Object> value) An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to.void
setTargetIps
(IResolvable value) An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to.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
-
CfnResolverRule
protected CfnResolverRule(software.amazon.jsii.JsiiObjectRef objRef) -
CfnResolverRule
protected CfnResolverRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnResolverRule
@Stability(Stable) public CfnResolverRule(@NotNull Construct scope, @NotNull String id, @NotNull CfnResolverRuleProps props) Create a newAWS::Route53Resolver::ResolverRule
.- 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 rule, such asarn:aws:route53resolver:us-east-1:123456789012:resolver-rule/resolver-rule-a1bzhi
. -
getAttrDomainName
DNS queries for this domain name are forwarded to the IP addresses that are specified in TargetIps.If a query matches multiple resolver rules (example.com and www.example.com), the query is routed using the resolver rule that contains the most specific domain name (www.example.com).
-
getAttrName
A friendly name that lets you easily find a rule in the Resolver dashboard in the Route 53 console. -
getAttrResolverEndpointId
The ID of the outbound endpoint that the rule is associated with, such asrslvr-out-fdc049932dexample
. -
getAttrResolverRuleId
When the value ofRuleType
isFORWARD
, the ID that Resolver assigned to the resolver rule when you created it, such asrslvr-rr-5328a0899aexample
.This value isn't applicable when
RuleType
isSYSTEM
. -
getAttrTargetIps
When the value ofRuleType
isFORWARD
, the IP addresses that the outbound endpoint forwards DNS queries to, typically the IP addresses for DNS resolvers on your network.This value isn't applicable when
RuleType
isSYSTEM
. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tags help organize and categorize your Resolver rules.Each tag consists of a key and an optional value, both of which you define.
-
getDomainName
DNS queries for this domain name are forwarded to the IP addresses that are specified inTargetIps
.If a query matches multiple Resolver rules (example.com and www.example.com), the query is routed using the Resolver rule that contains the most specific domain name (www.example.com).
-
setDomainName
DNS queries for this domain name are forwarded to the IP addresses that are specified inTargetIps
.If a query matches multiple Resolver rules (example.com and www.example.com), the query is routed using the Resolver rule that contains the most specific domain name (www.example.com).
-
getRuleType
When you want to forward DNS queries for specified domain name to resolvers on your network, specifyFORWARD
.When you have a forwarding rule to forward DNS queries for a domain to your network and you want Resolver to process queries for a subdomain of that domain, specify
SYSTEM
.For example, to forward DNS queries for example.com to resolvers on your network, you create a rule and specify
FORWARD
forRuleType
. To then have Resolver process queries for apex.example.com, you create a rule and specifySYSTEM
forRuleType
.Currently, only Resolver can create rules that have a value of
RECURSIVE
forRuleType
. -
setRuleType
When you want to forward DNS queries for specified domain name to resolvers on your network, specifyFORWARD
.When you have a forwarding rule to forward DNS queries for a domain to your network and you want Resolver to process queries for a subdomain of that domain, specify
SYSTEM
.For example, to forward DNS queries for example.com to resolvers on your network, you create a rule and specify
FORWARD
forRuleType
. To then have Resolver process queries for apex.example.com, you create a rule and specifySYSTEM
forRuleType
.Currently, only Resolver can create rules that have a value of
RECURSIVE
forRuleType
. -
getName
The name for the Resolver rule, which you specified when you created the Resolver rule. -
setName
The name for the Resolver rule, which you specified when you created the Resolver rule. -
getResolverEndpointId
The ID of the endpoint that the rule is associated with. -
setResolverEndpointId
The ID of the endpoint that the rule is associated with. -
getTargetIps
An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to.Typically, these are the IP addresses of DNS resolvers on your network.
-
setTargetIps
An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to.Typically, these are the IP addresses of DNS resolvers on your network.
-
setTargetIps
An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to.Typically, these are the IP addresses of DNS resolvers on your network.
-