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 Details

    • Builder

      public Builder()
  • Method Details

    • domainName

      @Stability(Stable) public CfnResolverRuleProps.Builder domainName(String domainName)
      Parameters:
      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).
      Returns:
      this
    • ruleType

      @Stability(Stable) public CfnResolverRuleProps.Builder ruleType(String ruleType)
      Parameters:
      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 .

      Returns:
      this
    • name

      @Stability(Stable) public CfnResolverRuleProps.Builder name(String name)
      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)
      Parameters:
      resolverEndpointId - The ID of the endpoint that the rule is associated with.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnResolverRuleProps.Builder tags(List<? extends CfnTag> tags)
      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

      @Stability(Stable) public CfnResolverRuleProps.Builder targetIps(IResolvable targetIps)
      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 CfnResolverRuleProps.Builder targetIps(List<? extends Object> targetIps)
      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

      @Stability(Stable) public CfnResolverRuleProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnResolverRuleProps>
      Returns:
      a new instance of CfnResolverRuleProps
      Throws:
      NullPointerException - if any required attribute was not provided