Class CfnResolverRule.Builder

java.lang.Object
software.amazon.awscdk.services.route53resolver.CfnResolverRule.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResolverRule>
Enclosing class:
CfnResolverRule

@Stability(Stable) public static final class CfnResolverRule.Builder extends Object implements software.amazon.jsii.Builder<CfnResolverRule>
A fluent builder for CfnResolverRule.
  • Method Details

    • create

      @Stability(Stable) public static CfnResolverRule.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnResolverRule.Builder.
    • domainName

      @Stability(Stable) public CfnResolverRule.Builder domainName(String domainName)
      DNS queries for this domain name are forwarded to the IP addresses that are specified in TargetIps .

      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 in TargetIps . This parameter is required.
      Returns:
      this
    • ruleType

      @Stability(Stable) public CfnResolverRule.Builder ruleType(String ruleType)
      When you want to forward DNS queries for specified domain name to resolvers on your network, specify FORWARD .

      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 .

      Parameters:
      ruleType - When you want to forward DNS queries for specified domain name to resolvers on your network, specify FORWARD . This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnResolverRule.Builder name(String 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
    • resolverEndpointId

      @Stability(Stable) public CfnResolverRule.Builder resolverEndpointId(String 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
    • tags

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

      @Stability(Stable) public CfnResolverRule.Builder targetIps(IResolvable 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
    • targetIps

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

      @Stability(Stable) public CfnResolverRule build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnResolverRule>
      Returns:
      a newly built instance of CfnResolverRule.