Class CfnEndpointGroup.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointGroup>
- Enclosing class:
CfnEndpointGroup
CfnEndpointGroup
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnEndpointGroup.Builder
endpointConfigurations
(List<? extends Object> endpointConfigurations) The list of endpoint objects.endpointConfigurations
(IResolvable endpointConfigurations) The list of endpoint objects.endpointGroupRegion
(String endpointGroupRegion) The AWS Regions where the endpoint group is located.healthCheckIntervalSeconds
(Number healthCheckIntervalSeconds) The time—10 seconds or 30 seconds—between health checks for each endpoint.healthCheckPath
(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.healthCheckPort
(Number healthCheckPort) The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.healthCheckProtocol
(String healthCheckProtocol) The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.listenerArn
(String listenerArn) The Amazon Resource Name (ARN) of the listener.portOverrides
(List<? extends Object> portOverrides) Allows you to override the destination ports used to route traffic to an endpoint.portOverrides
(IResolvable portOverrides) Allows you to override the destination ports used to route traffic to an endpoint.thresholdCount
(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.trafficDialPercentage
(Number trafficDialPercentage) The percentage of traffic to send to an AWS Regions .
-
Method Details
-
create
@Stability(Stable) public static CfnEndpointGroup.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnEndpointGroup.Builder
.
-
endpointGroupRegion
The AWS Regions where the endpoint group is located.- Parameters:
endpointGroupRegion
- The AWS Regions where the endpoint group is located. This parameter is required.- Returns:
this
- See Also:
-
listenerArn
The Amazon Resource Name (ARN) of the listener.- Parameters:
listenerArn
- The Amazon Resource Name (ARN) of the listener. This parameter is required.- Returns:
this
- See Also:
-
endpointConfigurations
@Stability(Stable) public CfnEndpointGroup.Builder endpointConfigurations(IResolvable endpointConfigurations) The list of endpoint objects.- Parameters:
endpointConfigurations
- The list of endpoint objects. This parameter is required.- Returns:
this
- See Also:
-
endpointConfigurations
@Stability(Stable) public CfnEndpointGroup.Builder endpointConfigurations(List<? extends Object> endpointConfigurations) The list of endpoint objects.- Parameters:
endpointConfigurations
- The list of endpoint objects. This parameter is required.- Returns:
this
- See Also:
-
healthCheckIntervalSeconds
@Stability(Stable) public CfnEndpointGroup.Builder healthCheckIntervalSeconds(Number healthCheckIntervalSeconds) The time—10 seconds or 30 seconds—between health checks for each endpoint.The default value is 30.
Default: - 30
- Parameters:
healthCheckIntervalSeconds
- The time—10 seconds or 30 seconds—between health checks for each endpoint. This parameter is required.- Returns:
this
- See Also:
-
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 (/).
Default: - "/"
- Parameters:
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.- Returns:
this
- See Also:
-
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.
Default: - -1
- Parameters:
healthCheckPort
- The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group. This parameter is required.- Returns:
this
- See Also:
-
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.
Default: - "TCP"
- Parameters:
healthCheckProtocol
- The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group. This parameter is required.- Returns:
this
- See Also:
-
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.
- Parameters:
portOverrides
- Allows you to override the destination ports used to route traffic to an endpoint. This parameter is required.- Returns:
this
- See Also:
-
portOverrides
@Stability(Stable) public CfnEndpointGroup.Builder portOverrides(List<? extends Object> 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.
- Parameters:
portOverrides
- Allows you to override the destination ports used to route traffic to an endpoint. This parameter is required.- Returns:
this
- See Also:
-
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.
Default: - 3
- Parameters:
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.- Returns:
this
- See Also:
-
trafficDialPercentage
@Stability(Stable) public CfnEndpointGroup.Builder trafficDialPercentage(Number 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.
Default: - 100
- Parameters:
trafficDialPercentage
- The percentage of traffic to send to an AWS Regions . This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEndpointGroup>
- Returns:
- a newly built instance of
CfnEndpointGroup
.
-