public static final class CfnEndpointGroupProps.Builder
extends java.lang.Object
CfnEndpointGroupProps
Constructor and Description |
---|
Builder() |
public CfnEndpointGroupProps.Builder endpointGroupRegion(java.lang.String endpointGroupRegion)
CfnEndpointGroupProps.getEndpointGroupRegion()
endpointGroupRegion
- The AWS Regions where the endpoint group is located. This parameter is required.this
public CfnEndpointGroupProps.Builder listenerArn(java.lang.String listenerArn)
CfnEndpointGroupProps.getListenerArn()
listenerArn
- The Amazon Resource Name (ARN) of the listener. This parameter is required.this
public CfnEndpointGroupProps.Builder endpointConfigurations(IResolvable endpointConfigurations)
CfnEndpointGroupProps.getEndpointConfigurations()
endpointConfigurations
- The list of endpoint objects.this
public CfnEndpointGroupProps.Builder endpointConfigurations(java.util.List<? extends java.lang.Object> endpointConfigurations)
CfnEndpointGroupProps.getEndpointConfigurations()
endpointConfigurations
- The list of endpoint objects.this
public CfnEndpointGroupProps.Builder healthCheckIntervalSeconds(java.lang.Number healthCheckIntervalSeconds)
CfnEndpointGroupProps.getHealthCheckIntervalSeconds()
healthCheckIntervalSeconds
- The time—10 seconds or 30 seconds—between health checks for each endpoint.
The default value is 30.this
public CfnEndpointGroupProps.Builder healthCheckPath(java.lang.String healthCheckPath)
CfnEndpointGroupProps.getHealthCheckPath()
healthCheckPath
- If the protocol is HTTP/S, then this value provides the ping path that Global Accelerator uses for the destination on the endpoints for health checks.
The default is slash (/).this
public CfnEndpointGroupProps.Builder healthCheckPort(java.lang.Number healthCheckPort)
CfnEndpointGroupProps.getHealthCheckPort()
healthCheckPort
- The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.
The default port is the port for the listener that this endpoint group is associated with. If the listener port is a list, Global Accelerator uses the first specified port in the list of ports.this
public CfnEndpointGroupProps.Builder healthCheckProtocol(java.lang.String healthCheckProtocol)
CfnEndpointGroupProps.getHealthCheckProtocol()
healthCheckProtocol
- The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.
The default value is TCP.this
public CfnEndpointGroupProps.Builder portOverrides(IResolvable portOverrides)
CfnEndpointGroupProps.getPortOverrides()
portOverrides
- Allows you to override the destination ports used to route traffic to an endpoint.
Using a port override lets you map a list of external destination ports (that your users send traffic to) to a list of internal destination ports that you want an application endpoint to receive traffic on.this
public CfnEndpointGroupProps.Builder portOverrides(java.util.List<? extends java.lang.Object> portOverrides)
CfnEndpointGroupProps.getPortOverrides()
portOverrides
- Allows you to override the destination ports used to route traffic to an endpoint.
Using a port override lets you map a list of external destination ports (that your users send traffic to) to a list of internal destination ports that you want an application endpoint to receive traffic on.this
public CfnEndpointGroupProps.Builder thresholdCount(java.lang.Number thresholdCount)
CfnEndpointGroupProps.getThresholdCount()
thresholdCount
- The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy.
The default value is 3.this
public CfnEndpointGroupProps.Builder trafficDialPercentage(java.lang.Number trafficDialPercentage)
CfnEndpointGroupProps.getTrafficDialPercentage()
trafficDialPercentage
- The percentage of traffic to send to an AWS Regions .
Additional traffic is distributed to other endpoint groups for this listener.
Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing.
The default value is 100.
this
public CfnEndpointGroupProps build()
CfnEndpointGroupProps
java.lang.NullPointerException
- if any required attribute was not provided