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
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnResolverRule.static interfaceIn 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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnResolverRule(Construct scope, String id, CfnResolverRuleProps props) Create a newAWS::Route53Resolver::ResolverRule.protectedCfnResolverRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnResolverRule(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 ofRuleTypeisFORWARD, the ID that Resolver assigned to the resolver rule when you created it, such asrslvr-rr-5328a0899aexample.When the value ofRuleTypeisFORWARD, 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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDomainName(String value) DNS queries for this domain name are forwarded to the IP addresses that are specified inTargetIps.voidThe name for the Resolver rule, which you specified when you created the Resolver rule.voidsetResolverEndpointId(String value) The ID of the endpoint that the rule is associated with.voidsetRuleType(String value) When you want to forward DNS queries for specified domain name to resolvers on your network, specifyFORWARD.voidsetTargetIps(List<Object> value) An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to.voidsetTargetIps(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, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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:
inspectin 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:
renderPropertiesin 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 ofRuleTypeisFORWARD, the ID that Resolver assigned to the resolver rule when you created it, such asrslvr-rr-5328a0899aexample.This value isn't applicable when
RuleTypeisSYSTEM. -
getAttrTargetIps
When the value ofRuleTypeisFORWARD, 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
RuleTypeisSYSTEM. -
getCfnProperties
- Overrides:
getCfnPropertiesin 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
FORWARDforRuleType. To then have Resolver process queries for apex.example.com, you create a rule and specifySYSTEMforRuleType.Currently, only Resolver can create rules that have a value of
RECURSIVEforRuleType. -
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
FORWARDforRuleType. To then have Resolver process queries for apex.example.com, you create a rule and specifySYSTEMforRuleType.Currently, only Resolver can create rules that have a value of
RECURSIVEforRuleType. -
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.
-