@Stability(value=Experimental) public static final class EndpointGroup.Builder extends Object implements software.amazon.jsii.Builder<EndpointGroup>
EndpointGroup.| Modifier and Type | Method and Description |
|---|---|
EndpointGroup |
build() |
static EndpointGroup.Builder |
create(software.constructs.Construct scope,
String id) |
EndpointGroup.Builder |
endpointGroupName(String endpointGroupName)
(experimental) Name of the endpoint group.
|
EndpointGroup.Builder |
endpoints(List<? extends IEndpoint> endpoints)
(experimental) Initial list of endpoints for this group.
|
EndpointGroup.Builder |
healthCheckInterval(Duration healthCheckInterval)
(experimental) The time between health checks for each endpoint.
|
EndpointGroup.Builder |
healthCheckPath(String healthCheckPath)
(experimental) The ping path for health checks (if the protocol is HTTP(S)).
|
EndpointGroup.Builder |
healthCheckPort(Number healthCheckPort)
(experimental) The port used to perform health checks.
|
EndpointGroup.Builder |
healthCheckProtocol(HealthCheckProtocol healthCheckProtocol)
(experimental) The protocol used to perform health checks.
|
EndpointGroup.Builder |
healthCheckThreshold(Number healthCheckThreshold)
(experimental) 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.
|
EndpointGroup.Builder |
listener(IListener listener)
(experimental) The Amazon Resource Name (ARN) of the listener.
|
EndpointGroup.Builder |
portOverrides(List<? extends PortOverride> portOverrides)
(experimental) Override the destination ports used to route traffic to an endpoint.
|
EndpointGroup.Builder |
region(String region)
(experimental) The AWS Region where the endpoint group is located.
|
EndpointGroup.Builder |
trafficDialPercentage(Number trafficDialPercentage)
(experimental) The percentage of traffic to send to this AWS Region.
|
@Stability(value=Experimental) public static EndpointGroup.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.EndpointGroup.Builder.@Stability(value=Experimental) public EndpointGroup.Builder endpointGroupName(String endpointGroupName)
Default: - logical ID of the resource
endpointGroupName - Name of the endpoint group. This parameter is required.this@Stability(value=Experimental) public EndpointGroup.Builder endpoints(List<? extends IEndpoint> endpoints)
Default: - Group is initially empty
endpoints - Initial list of endpoints for this group. This parameter is required.this@Stability(value=Experimental) public EndpointGroup.Builder healthCheckInterval(Duration healthCheckInterval)
Must be either 10 or 30 seconds.
Default: Duration.seconds(30)
healthCheckInterval - The time between health checks for each endpoint. This parameter is required.this@Stability(value=Experimental) public EndpointGroup.Builder healthCheckPath(String healthCheckPath)
Default: '/'
healthCheckPath - The ping path for health checks (if the protocol is HTTP(S)). This parameter is required.this@Stability(value=Experimental) public EndpointGroup.Builder healthCheckPort(Number healthCheckPort)
Default: - The listener's port
healthCheckPort - The port used to perform health checks. This parameter is required.this@Stability(value=Experimental) public EndpointGroup.Builder healthCheckProtocol(HealthCheckProtocol healthCheckProtocol)
Default: HealthCheckProtocol.TCP
healthCheckProtocol - The protocol used to perform health checks. This parameter is required.this@Stability(value=Experimental) public EndpointGroup.Builder healthCheckThreshold(Number healthCheckThreshold)
Default: 3
healthCheckThreshold - 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@Stability(value=Experimental) public EndpointGroup.Builder portOverrides(List<? extends PortOverride> portOverrides)
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
portOverrides - Override the destination ports used to route traffic to an endpoint. This parameter is required.this@Stability(value=Experimental) public EndpointGroup.Builder region(String region)
Default: - region of the first endpoint in this group, or the stack region if that region can't be determined
region - The AWS Region where the endpoint group is located. This parameter is required.this@Stability(value=Experimental) public EndpointGroup.Builder trafficDialPercentage(Number trafficDialPercentage)
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
trafficDialPercentage - The percentage of traffic to send to this AWS Region. This parameter is required.this@Stability(value=Experimental) public EndpointGroup.Builder listener(IListener listener)
listener - The Amazon Resource Name (ARN) of the listener. This parameter is required.this@Stability(value=Experimental) public EndpointGroup build()
build in interface software.amazon.jsii.Builder<EndpointGroup>Copyright © 2021. All rights reserved.