Class CfnResolverRuleMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.route53resolver.CfnResolverRuleMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResolverRuleMixinProps>
- Enclosing interface:
CfnResolverRuleMixinProps
@Stability(Stable)
public static final class CfnResolverRuleMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResolverRuleMixinProps>
A builder for
CfnResolverRuleMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.delegationRecord(String delegationRecord) Sets the value ofCfnResolverRuleMixinProps.getDelegationRecord()domainName(String domainName) Sets the value ofCfnResolverRuleMixinProps.getDomainName()Sets the value ofCfnResolverRuleMixinProps.getName()resolverEndpointId(String resolverEndpointId) Sets the value ofCfnResolverRuleMixinProps.getResolverEndpointId()Sets the value ofCfnResolverRuleMixinProps.getRuleType()Sets the value ofCfnResolverRuleMixinProps.getTags()Sets the value ofCfnResolverRuleMixinProps.getTargetIps()targetIps(IResolvable targetIps) Sets the value ofCfnResolverRuleMixinProps.getTargetIps()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
delegationRecord
@Stability(Stable) public CfnResolverRuleMixinProps.Builder delegationRecord(String delegationRecord) Sets the value ofCfnResolverRuleMixinProps.getDelegationRecord()- Parameters:
delegationRecord- DNS queries with delegation records that point to this domain name are forwarded to resolvers on your network.- Returns:
this
-
domainName
Sets the value ofCfnResolverRuleMixinProps.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 ofCfnResolverRuleMixinProps.getName()- Parameters:
name- The name for the Resolver rule, which you specified when you created the Resolver rule. The name can be up to 64 characters long and can contain letters (a-z, A-Z), numbers (0-9), hyphens (-), underscores (_), and spaces. The name cannot consist of only numbers.- Returns:
this
-
resolverEndpointId
@Stability(Stable) public CfnResolverRuleMixinProps.Builder resolverEndpointId(String resolverEndpointId) Sets the value ofCfnResolverRuleMixinProps.getResolverEndpointId()- Parameters:
resolverEndpointId- The ID of the endpoint that the rule is associated with.- Returns:
this
-
ruleType
Sets the value ofCfnResolverRuleMixinProps.getRuleType()- Parameters:
ruleType- When you want to forward DNS queries for specified domain name to resolvers on your network, specifyFORWARDorDELEGATE. If a query matches multiple Resolver rules (example.com and www.example.com), outbound DNS queries are routed using the Resolver rule that contains the most specific domain name (www.example.com).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.- Returns:
this
-
tags
Sets the value ofCfnResolverRuleMixinProps.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 ofCfnResolverRuleMixinProps.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
@Stability(Stable) public CfnResolverRuleMixinProps.Builder targetIps(List<? extends Object> targetIps) Sets the value ofCfnResolverRuleMixinProps.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnResolverRuleMixinProps>- Returns:
- a new instance of
CfnResolverRuleMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-