Class CfnResolverRule.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResolverRule>
- Enclosing class:
CfnResolverRule
CfnResolverRule
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnResolverRule.Builder
domainName
(String domainName) DNS queries for this domain name are forwarded to the IP addresses that are specified inTargetIps
.The name for the Resolver rule, which you specified when you created the Resolver rule.resolverEndpointId
(String resolverEndpointId) 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
.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.targetIps
(IResolvable targetIps) An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to.
-
Method Details
-
create
@Stability(Stable) public static CfnResolverRule.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnResolverRule.Builder
.
-
ruleType
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
.- Parameters:
ruleType
- When you want to forward DNS queries for specified domain name to resolvers on your network, specifyFORWARD
. This parameter is required.- Returns:
this
- See Also:
-
domainName
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).
- Parameters:
domainName
- DNS queries for this domain name are forwarded to the IP addresses that are specified inTargetIps
. This parameter is required.- Returns:
this
- See Also:
-
name
The name for the Resolver rule, which you specified when you created the Resolver rule.- Parameters:
name
- The name for the Resolver rule, which you specified when you created the Resolver rule. This parameter is required.- Returns:
this
- See Also:
-
resolverEndpointId
The ID of the endpoint that the rule is associated with.- Parameters:
resolverEndpointId
- The ID of the endpoint that the rule is associated with. This parameter is required.- Returns:
this
- See Also:
-
tags
Tags help organize and categorize your Resolver rules.Each tag consists of a key and an optional value, both of which you define.
- Parameters:
tags
- Tags help organize and categorize your Resolver rules. This parameter is required.- Returns:
this
- See Also:
-
targetIps
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.
- Parameters:
targetIps
- An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to. This parameter is required.- Returns:
this
- See Also:
-
targetIps
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.
- Parameters:
targetIps
- An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResolverRule>
- Returns:
- a newly built instance of
CfnResolverRule
.
-