Class CfnResolverRule
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.CfnResolverRule
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-11T18:01:22.881Z")
@Stability(Stable)
public class CfnResolverRule
extends CfnResource
implements IInspectable, ITaggable
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") .ruleType("ruleType") // the properties below are optional .delegationRecord("delegationRecord") .domainName("domainName") .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") .protocol("protocol") .build())) .build();
- See Also:
-
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.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnResolverRule
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnResolverRule
(software.amazon.jsii.JsiiObjectRef objRef) CfnResolverRule
(software.constructs.Construct scope, String id, CfnResolverRuleProps props) -
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.The name server domain for queries to be delegated to if a query matches the delegation record.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()
Tag Manager which manages the tags for this resource.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
setDelegationRecord
(String value) The name server domain for queries to be delegated to if a query matches the delegation record.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
setTagsRaw
(List<CfnTag> value) Tags help organize and categorize your Resolver rules.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.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnResolverRuleProps props) - 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
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
Tag Manager which manages the tags for this resource. -
getRuleType
When you want to forward DNS queries for specified domain name to resolvers on your network, specifyFORWARD
. -
setRuleType
When you want to forward DNS queries for specified domain name to resolvers on your network, specifyFORWARD
. -
getDelegationRecord
The name server domain for queries to be delegated to if a query matches the delegation record. -
setDelegationRecord
The name server domain for queries to be delegated to if a query matches the delegation record. -
getDomainName
DNS queries for this domain name are forwarded to the IP addresses that are specified inTargetIps
. -
setDomainName
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. -
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. -
getTagsRaw
Tags help organize and categorize your Resolver rules. -
setTagsRaw
Tags help organize and categorize your Resolver rules. -
getTargetIps
An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to. -
setTargetIps
An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to. -
setTargetIps
An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to.
-