Class CfnResolverRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.route53resolver.CfnResolverRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResolverRuleProps>
- Enclosing interface:
CfnResolverRuleProps
@Stability(Stable)
public static final class CfnResolverRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResolverRuleProps>
A builder for
CfnResolverRuleProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.domainName
(String domainName) Sets the value ofCfnResolverRuleProps.getDomainName()
Sets the value ofCfnResolverRuleProps.getName()
resolverEndpointId
(String resolverEndpointId) Sets the value ofCfnResolverRuleProps.getResolverEndpointId()
Sets the value ofCfnResolverRuleProps.getRuleType()
Sets the value ofCfnResolverRuleProps.getTags()
Sets the value ofCfnResolverRuleProps.getTargetIps()
targetIps
(IResolvable targetIps) Sets the value ofCfnResolverRuleProps.getTargetIps()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ruleType
Sets the value ofCfnResolverRuleProps.getRuleType()
- Parameters:
ruleType
- When you want to forward DNS queries for specified domain name to resolvers on your network, specifyFORWARD
. This parameter is required. 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, specifySYSTEM
.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
.- Returns:
this
-
domainName
Sets the value ofCfnResolverRuleProps.getDomainName()
- Parameters:
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).- Returns:
this
-
name
Sets the value ofCfnResolverRuleProps.getName()
- Parameters:
name
- The name for the Resolver rule, which you specified when you created the Resolver rule.- Returns:
this
-
resolverEndpointId
@Stability(Stable) public CfnResolverRuleProps.Builder resolverEndpointId(String resolverEndpointId) Sets the value ofCfnResolverRuleProps.getResolverEndpointId()
- Parameters:
resolverEndpointId
- The ID of the endpoint that the rule is associated with.- Returns:
this
-
tags
Sets the value ofCfnResolverRuleProps.getTags()
- Parameters:
tags
- Tags help organize and categorize your Resolver rules. Each tag consists of a key and an optional value, both of which you define.- Returns:
this
-
targetIps
Sets the value ofCfnResolverRuleProps.getTargetIps()
- Parameters:
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.- Returns:
this
-
targetIps
Sets the value ofCfnResolverRuleProps.getTargetIps()
- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResolverRuleProps>
- Returns:
- a new instance of
CfnResolverRuleProps
- Throws:
NullPointerException
- if any required attribute was not provided
-