public static final class CfnResolverRuleProps.Builder
extends java.lang.Object
CfnResolverRuleProps
Constructor and Description |
---|
Builder() |
public CfnResolverRuleProps.Builder domainName(java.lang.String domainName)
CfnResolverRuleProps.getDomainName()
domainName
- DNS queries for this domain name are forwarded to the IP addresses that are specified in `TargetIps` . This parameter is required.
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).this
public CfnResolverRuleProps.Builder ruleType(java.lang.String ruleType)
CfnResolverRuleProps.getRuleType()
ruleType
- When you want to forward DNS queries for specified domain name to resolvers on your network, specify `FORWARD` . 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, specify SYSTEM
.
For example, to forward DNS queries for example.com to resolvers on your network, you create a rule and specify FORWARD
for RuleType
. To then have Resolver process queries for apex.example.com, you create a rule and specify SYSTEM
for RuleType
.
Currently, only Resolver can create rules that have a value of RECURSIVE
for RuleType
.
this
public CfnResolverRuleProps.Builder name(java.lang.String name)
CfnResolverRuleProps.getName()
name
- The name for the Resolver rule, which you specified when you created the Resolver rule.this
public CfnResolverRuleProps.Builder resolverEndpointId(java.lang.String resolverEndpointId)
CfnResolverRuleProps.getResolverEndpointId()
resolverEndpointId
- The ID of the endpoint that the rule is associated with.this
public CfnResolverRuleProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnResolverRuleProps.getTags()
tags
- Route 53 Resolver doesn't support updating tags through CloudFormation.this
public CfnResolverRuleProps.Builder targetIps(IResolvable targetIps)
CfnResolverRuleProps.getTargetIps()
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. Specify IPv4 addresses. IPv6 is not supported.this
public CfnResolverRuleProps.Builder targetIps(java.util.List<? extends java.lang.Object> targetIps)
CfnResolverRuleProps.getTargetIps()
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. Specify IPv4 addresses. IPv6 is not supported.this
public CfnResolverRuleProps build()
CfnResolverRuleProps
java.lang.NullPointerException
- if any required attribute was not provided