Class CfnResolverEndpointMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.route53resolver.CfnResolverEndpointMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResolverEndpointMixinProps>
- Enclosing interface:
CfnResolverEndpointMixinProps
@Stability(Stable)
public static final class CfnResolverEndpointMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResolverEndpointMixinProps>
A builder for
CfnResolverEndpointMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnResolverEndpointMixinProps.getDirection()ipAddresses(List<? extends Object> ipAddresses) Sets the value ofCfnResolverEndpointMixinProps.getIpAddresses()ipAddresses(IResolvable ipAddresses) Sets the value ofCfnResolverEndpointMixinProps.getIpAddresses()Sets the value ofCfnResolverEndpointMixinProps.getName()outpostArn(String outpostArn) Sets the value ofCfnResolverEndpointMixinProps.getOutpostArn()preferredInstanceType(String preferredInstanceType) Sets the value ofCfnResolverEndpointMixinProps.getPreferredInstanceType()Sets the value ofCfnResolverEndpointMixinProps.getProtocols()resolverEndpointType(String resolverEndpointType) Sets the value ofCfnResolverEndpointMixinProps.getResolverEndpointType()rniEnhancedMetricsEnabled(Boolean rniEnhancedMetricsEnabled) Sets the value ofCfnResolverEndpointMixinProps.getRniEnhancedMetricsEnabled()rniEnhancedMetricsEnabled(IResolvable rniEnhancedMetricsEnabled) Sets the value ofCfnResolverEndpointMixinProps.getRniEnhancedMetricsEnabled()securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnResolverEndpointMixinProps.getSecurityGroupIds()Sets the value ofCfnResolverEndpointMixinProps.getTags()targetNameServerMetricsEnabled(Boolean targetNameServerMetricsEnabled) Sets the value ofCfnResolverEndpointMixinProps.getTargetNameServerMetricsEnabled()targetNameServerMetricsEnabled(IResolvable targetNameServerMetricsEnabled) Sets the value ofCfnResolverEndpointMixinProps.getTargetNameServerMetricsEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
direction
Sets the value ofCfnResolverEndpointMixinProps.getDirection()- Parameters:
direction- Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:.INBOUND: allows DNS queries to your VPC from your networkOUTBOUND: allows DNS queries from your VPC to your networkINBOUND_DELEGATION: Resolver delegates queries to Route 53 private hosted zones from your network.
- Returns:
this
-
ipAddresses
@Stability(Stable) public CfnResolverEndpointMixinProps.Builder ipAddresses(IResolvable ipAddresses) Sets the value ofCfnResolverEndpointMixinProps.getIpAddresses()- 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). 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 CfnResolverEndpointMixinProps.Builder ipAddresses(List<? extends Object> ipAddresses) Sets the value ofCfnResolverEndpointMixinProps.getIpAddresses()- 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). The subnet ID uniquely identifies a VPC.Even though the minimum is 1, RouteĀ 53 requires that you create at least two.
- Returns:
this
-
name
Sets the value ofCfnResolverEndpointMixinProps.getName()- Parameters:
name- A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console.- Returns:
this
-
outpostArn
Sets the value ofCfnResolverEndpointMixinProps.getOutpostArn()- Parameters:
outpostArn- The ARN (Amazon Resource Name) for the Outpost.- Returns:
this
-
preferredInstanceType
@Stability(Stable) public CfnResolverEndpointMixinProps.Builder preferredInstanceType(String preferredInstanceType) Sets the value ofCfnResolverEndpointMixinProps.getPreferredInstanceType()- Parameters:
preferredInstanceType- The Amazon EC2 instance type.- Returns:
this
-
protocols
Sets the value ofCfnResolverEndpointMixinProps.getProtocols()- 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 CfnResolverEndpointMixinProps.Builder resolverEndpointType(String resolverEndpointType) Sets the value ofCfnResolverEndpointMixinProps.getResolverEndpointType()- Parameters:
resolverEndpointType- The Resolver endpoint IP address type.- Returns:
this
-
rniEnhancedMetricsEnabled
@Stability(Stable) public CfnResolverEndpointMixinProps.Builder rniEnhancedMetricsEnabled(Boolean rniEnhancedMetricsEnabled) Sets the value ofCfnResolverEndpointMixinProps.getRniEnhancedMetricsEnabled()- Parameters:
rniEnhancedMetricsEnabled- Indicates whether RNI enhanced metrics are enabled for the Resolver endpoint. When enabled, one-minute granular metrics are published in CloudWatch for each RNI associated with this endpoint. When disabled, these metrics are not published.- Returns:
this
-
rniEnhancedMetricsEnabled
@Stability(Stable) public CfnResolverEndpointMixinProps.Builder rniEnhancedMetricsEnabled(IResolvable rniEnhancedMetricsEnabled) Sets the value ofCfnResolverEndpointMixinProps.getRniEnhancedMetricsEnabled()- Parameters:
rniEnhancedMetricsEnabled- Indicates whether RNI enhanced metrics are enabled for the Resolver endpoint. When enabled, one-minute granular metrics are published in CloudWatch for each RNI associated with this endpoint. When disabled, these metrics are not published.- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnResolverEndpointMixinProps.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnResolverEndpointMixinProps.getSecurityGroupIds()- Parameters:
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.- Returns:
this
-
tags
Sets the value ofCfnResolverEndpointMixinProps.getTags()- Parameters:
tags- Route 53 Resolver doesn't support updating tags through CloudFormation.- Returns:
this
-
targetNameServerMetricsEnabled
@Stability(Stable) public CfnResolverEndpointMixinProps.Builder targetNameServerMetricsEnabled(Boolean targetNameServerMetricsEnabled) Sets the value ofCfnResolverEndpointMixinProps.getTargetNameServerMetricsEnabled()- Parameters:
targetNameServerMetricsEnabled- Indicates whether target name server metrics are enabled for the outbound Resolver endpoint. When enabled, one-minute granular metrics are published in CloudWatch for each target name server associated with this endpoint. When disabled, these metrics are not published. This feature is not supported for inbound Resolver endpoint.- Returns:
this
-
targetNameServerMetricsEnabled
@Stability(Stable) public CfnResolverEndpointMixinProps.Builder targetNameServerMetricsEnabled(IResolvable targetNameServerMetricsEnabled) Sets the value ofCfnResolverEndpointMixinProps.getTargetNameServerMetricsEnabled()- Parameters:
targetNameServerMetricsEnabled- Indicates whether target name server metrics are enabled for the outbound Resolver endpoint. When enabled, one-minute granular metrics are published in CloudWatch for each target name server associated with this endpoint. When disabled, these metrics are not published. This feature is not supported for inbound Resolver endpoint.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResolverEndpointMixinProps>- Returns:
- a new instance of
CfnResolverEndpointMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-