Class CfnResolverEndpoint.Builder

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

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

    • create

      @Stability(Stable) public static CfnResolverEndpoint.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 CfnResolverEndpoint.Builder.
    • direction

      @Stability(Stable) public CfnResolverEndpoint.Builder direction(String direction)
      Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:.

      • INBOUND : allows DNS queries to your VPC from your network
      • OUTBOUND : allows DNS queries from your VPC to your network

      Parameters:
      direction - Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:. This parameter is required.
      Returns:
      this
    • ipAddresses

      @Stability(Stable) public CfnResolverEndpoint.Builder ipAddresses(IResolvable 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).

      The subnet ID uniquely identifies a VPC.

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

      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.
      Returns:
      this
    • ipAddresses

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

      The subnet ID uniquely identifies a VPC.

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

      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.
      Returns:
      this
    • securityGroupIds

      @Stability(Stable) public CfnResolverEndpoint.Builder securityGroupIds(List<String> securityGroupIds)
      The ID of one or more security groups that control access to this VPC.

      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.

      Parameters:
      securityGroupIds - The ID of one or more security groups that control access to this VPC. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnResolverEndpoint.Builder name(String name)
      A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console.

      Parameters:
      name - A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console. This parameter is required.
      Returns:
      this
    • outpostArn

      @Stability(Stable) public CfnResolverEndpoint.Builder outpostArn(String outpostArn)
      AWS::Route53Resolver::ResolverEndpoint.OutpostArn.

      Parameters:
      outpostArn - AWS::Route53Resolver::ResolverEndpoint.OutpostArn. This parameter is required.
      Returns:
      this
    • preferredInstanceType

      @Stability(Stable) public CfnResolverEndpoint.Builder preferredInstanceType(String preferredInstanceType)
      AWS::Route53Resolver::ResolverEndpoint.PreferredInstanceType.

      Parameters:
      preferredInstanceType - AWS::Route53Resolver::ResolverEndpoint.PreferredInstanceType. This parameter is required.
      Returns:
      this
    • resolverEndpointType

      @Stability(Stable) public CfnResolverEndpoint.Builder resolverEndpointType(String resolverEndpointType)
      The Resolver endpoint IP address type.

      Parameters:
      resolverEndpointType - The Resolver endpoint IP address type. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnResolverEndpoint.Builder tags(List<? extends CfnTag> tags)
      Route 53 Resolver doesn't support updating tags through CloudFormation.

      Parameters:
      tags - Route 53 Resolver doesn't support updating tags through CloudFormation. This parameter is required.
      Returns:
      this
    • build

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