public static final class CfnEndpointGroup.Builder
extends java.lang.Object
CfnEndpointGroup
.Modifier and Type | Method and Description |
---|---|
CfnEndpointGroup |
build() |
static CfnEndpointGroup.Builder |
create(Construct scope,
java.lang.String id) |
CfnEndpointGroup.Builder |
endpointConfigurations(IResolvable endpointConfigurations)
The list of endpoint objects.
|
CfnEndpointGroup.Builder |
endpointConfigurations(java.util.List<? extends java.lang.Object> endpointConfigurations)
The list of endpoint objects.
|
CfnEndpointGroup.Builder |
endpointGroupRegion(java.lang.String endpointGroupRegion)
The AWS Regions where the endpoint group is located.
|
CfnEndpointGroup.Builder |
healthCheckIntervalSeconds(java.lang.Number healthCheckIntervalSeconds)
The time—10 seconds or 30 seconds—between health checks for each endpoint.
|
CfnEndpointGroup.Builder |
healthCheckPath(java.lang.String 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.
|
CfnEndpointGroup.Builder |
healthCheckPort(java.lang.Number healthCheckPort)
The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.
|
CfnEndpointGroup.Builder |
healthCheckProtocol(java.lang.String healthCheckProtocol)
The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.
|
CfnEndpointGroup.Builder |
listenerArn(java.lang.String listenerArn)
The Amazon Resource Name (ARN) of the listener.
|
CfnEndpointGroup.Builder |
portOverrides(IResolvable portOverrides)
Allows you to override the destination ports used to route traffic to an endpoint.
|
CfnEndpointGroup.Builder |
portOverrides(java.util.List<? extends java.lang.Object> portOverrides)
Allows you to override the destination ports used to route traffic to an endpoint.
|
CfnEndpointGroup.Builder |
thresholdCount(java.lang.Number 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.
|
CfnEndpointGroup.Builder |
trafficDialPercentage(java.lang.Number trafficDialPercentage)
The percentage of traffic to send to an AWS Regions .
|
public static CfnEndpointGroup.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnEndpointGroup.EndpointConfigurationProperty.Builder
.public CfnEndpointGroup.Builder endpointGroupRegion(java.lang.String endpointGroupRegion)
endpointGroupRegion
- The AWS Regions where the endpoint group is located. This parameter is required.this
public CfnEndpointGroup.Builder listenerArn(java.lang.String listenerArn)
listenerArn
- The Amazon Resource Name (ARN) of the listener. This parameter is required.this
public CfnEndpointGroup.Builder endpointConfigurations(IResolvable endpointConfigurations)
endpointConfigurations
- The list of endpoint objects. This parameter is required.this
public CfnEndpointGroup.Builder endpointConfigurations(java.util.List<? extends java.lang.Object> endpointConfigurations)
endpointConfigurations
- The list of endpoint objects. This parameter is required.this
public CfnEndpointGroup.Builder healthCheckIntervalSeconds(java.lang.Number healthCheckIntervalSeconds)
The default value is 30.
healthCheckIntervalSeconds
- The time—10 seconds or 30 seconds—between health checks for each endpoint. This parameter is required.this
public CfnEndpointGroup.Builder healthCheckPath(java.lang.String healthCheckPath)
The default is slash (/).
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. This parameter is required.this
public CfnEndpointGroup.Builder healthCheckPort(java.lang.Number healthCheckPort)
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.
healthCheckPort
- The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group. This parameter is required.this
public CfnEndpointGroup.Builder healthCheckProtocol(java.lang.String healthCheckProtocol)
The default value is TCP.
healthCheckProtocol
- The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group. This parameter is required.this
public CfnEndpointGroup.Builder portOverrides(IResolvable portOverrides)
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.
portOverrides
- Allows you to override the destination ports used to route traffic to an endpoint. This parameter is required.this
public CfnEndpointGroup.Builder portOverrides(java.util.List<? extends java.lang.Object> portOverrides)
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.
portOverrides
- Allows you to override the destination ports used to route traffic to an endpoint. This parameter is required.this
public CfnEndpointGroup.Builder thresholdCount(java.lang.Number thresholdCount)
The default value is 3.
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. This parameter is required.this
public CfnEndpointGroup.Builder trafficDialPercentage(java.lang.Number trafficDialPercentage)
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.
trafficDialPercentage
- The percentage of traffic to send to an AWS Regions . This parameter is required.this
public CfnEndpointGroup build()