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.84.0 (build 5404dcf)",
date="2023-06-19T16:30:45.510Z")
@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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEndpointGroupOptionsstatic final classAn implementation forEndpointGroupOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic EndpointGroupOptions.Builderbuilder()default StringName of the endpoint group.Initial list of endpoints for this group.default DurationThe time between health checks for each endpoint.default StringThe ping path for health checks (if the protocol is HTTP(S)).default NumberThe port used to perform health checks.default HealthCheckProtocolThe protocol used to perform health checks.default NumberThe 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 StringThe AWS Region where the endpoint group is located.default NumberThe 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.BuilderofEndpointGroupOptions
-