Class CfnResolverEndpointProps.Builder

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

@Stability(Stable) public static final class CfnResolverEndpointProps.Builder extends Object implements software.amazon.jsii.Builder<CfnResolverEndpointProps>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • direction

      @Stability(Stable) public CfnResolverEndpointProps.Builder direction(String direction)
      Parameters:
      direction - Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:. This parameter is required.
      • INBOUND : allows DNS queries to your VPC from your network
      • OUTBOUND : allows DNS queries from your VPC to your network
      • INBOUND_DELEGATION : Resolver delegates queries to Route 53 private hosted zones from your network.
      Returns:
      this
    • ipAddresses

      @Stability(Stable) public CfnResolverEndpointProps.Builder ipAddresses(IResolvable ipAddresses)
      Parameters:
      ipAddresses - The subnets and IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or that you forward DNS queries to (for inbound endpoints). This parameter is required. The subnet ID uniquely identifies a VPC.

      Even though the minimum is 1, RouteĀ 53 requires that you create at least two.

      Returns:
      this
    • ipAddresses

      @Stability(Stable) public CfnResolverEndpointProps.Builder ipAddresses(List<? extends Object> ipAddresses)
      Parameters:
      ipAddresses - The subnets and IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or that you forward DNS queries to (for inbound endpoints). This parameter is required. The subnet ID uniquely identifies a VPC.

      Even though the minimum is 1, RouteĀ 53 requires that you create at least two.

      Returns:
      this
    • securityGroupIds

      @Stability(Stable) public CfnResolverEndpointProps.Builder securityGroupIds(List<String> securityGroupIds)
      Parameters:
      securityGroupIds - The ID of one or more security groups that control access to this VPC. This parameter is required. The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.
      Returns:
      this
    • name

      @Stability(Stable) public CfnResolverEndpointProps.Builder name(String name)
      Parameters:
      name - A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console.
      Returns:
      this
    • outpostArn

      @Stability(Stable) public CfnResolverEndpointProps.Builder outpostArn(String outpostArn)
      Parameters:
      outpostArn - The ARN (Amazon Resource Name) for the Outpost.
      Returns:
      this
    • preferredInstanceType

      @Stability(Stable) public CfnResolverEndpointProps.Builder preferredInstanceType(String preferredInstanceType)
      Parameters:
      preferredInstanceType - The Amazon EC2 instance type.
      Returns:
      this
    • protocols

      @Stability(Stable) public CfnResolverEndpointProps.Builder protocols(List<String> protocols)
      Parameters:
      protocols - Protocols used for the endpoint. DoH-FIPS is applicable for a default inbound endpoints only. For an inbound endpoint you can apply the protocols as follows:

      • Do53 and DoH in combination.
      • Do53 and DoH-FIPS in combination.
      • Do53 alone.
      • DoH alone.
      • DoH-FIPS alone.
      • None, which is treated as Do53.

      For a delegation inbound endpoint you can use Do53 only.

      For an outbound endpoint you can apply the protocols as follows:

      • Do53 and DoH in combination.
      • Do53 alone.
      • DoH alone.
      • None, which is treated as Do53.
      Returns:
      this
    • resolverEndpointType

      @Stability(Stable) public CfnResolverEndpointProps.Builder resolverEndpointType(String resolverEndpointType)
      Parameters:
      resolverEndpointType - The Resolver endpoint IP address type.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnResolverEndpointProps.Builder tags(List<? extends CfnTag> tags)
      Parameters:
      tags - Route 53 Resolver doesn't support updating tags through CloudFormation.
      Returns:
      this
    • build

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