Interface EndpointGroupOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
EndpointGroupProps
- All Known Implementing Classes:
EndpointGroupOptions.Jsii$Proxy
,EndpointGroupProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:44.026Z")
@Stability(Stable)
public interface EndpointGroupOptions
extends software.amazon.jsii.JsiiSerializable
Basic options for creating a new EndpointGroup.
Example:
ApplicationLoadBalancer alb; Listener listener; listener.addEndpointGroup("Group", EndpointGroupOptions.builder() .endpoints(List.of( ApplicationLoadBalancerEndpoint.Builder.create(alb) .weight(128) .preserveClientIp(true) .build())) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEndpointGroupOptions
static final class
An implementation forEndpointGroupOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic EndpointGroupOptions.Builder
builder()
default String
Name of the endpoint group.Initial list of endpoints for this group.default Duration
The time between health checks for each endpoint.default String
The ping path for health checks (if the protocol is HTTP(S)).default Number
The port used to perform health checks.default HealthCheckProtocol
The protocol used to perform health checks.default Number
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.default List<PortOverride>
Override the destination ports used to route traffic to an endpoint.default String
The AWS Region where the endpoint group is located.default Number
The percentage of traffic to send to this AWS Region.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEndpointGroupName
Name of the endpoint group.Default: - logical ID of the resource
-
getEndpoints
Initial list of endpoints for this group.Default: - Group is initially empty
-
getHealthCheckInterval
The time between health checks for each endpoint.Must be either 10 or 30 seconds.
Default: Duration.seconds(30)
-
getHealthCheckPath
The ping path for health checks (if the protocol is HTTP(S)).Default: '/'
-
getHealthCheckPort
The port used to perform health checks.Default: - The listener's port
-
getHealthCheckProtocol
The protocol used to perform health checks.Default: HealthCheckProtocol.TCP
-
getHealthCheckThreshold
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.Default: 3
-
getPortOverrides
Override the destination ports used to route traffic to an endpoint.Unless overridden, the port used to hit the endpoint will be the same as the port that traffic arrives on at the listener.
Default: - No overrides
-
getRegion
The AWS Region where the endpoint group is located.Default: - region of the first endpoint in this group, or the stack region if that region can't be determined
-
getTrafficDialPercentage
The percentage of traffic to send to this AWS Region.The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing. Additional traffic is distributed to other endpoint groups for this listener.
Default: 100
-
builder
- Returns:
- a
EndpointGroupOptions.Builder
ofEndpointGroupOptions
-