Interface IEndpointGroupOptions
Basic options for creating a new EndpointGroup.
Namespace: Amazon.CDK.AWS.GlobalAccelerator
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IEndpointGroupOptions
Syntax (vb)
Public Interface IEndpointGroupOptions
Remarks
ExampleMetadata: infused
Examples
ApplicationLoadBalancer alb;
Listener listener;
listener.AddEndpointGroup("Group", new EndpointGroupOptions {
Endpoints = new [] {
new ApplicationLoadBalancerEndpoint(alb, new ApplicationLoadBalancerEndpointOptions {
Weight = 128,
PreserveClientIp = true
}) }
});
Synopsis
Properties
EndpointGroupName | Name of the endpoint group. |
Endpoints | Initial list of endpoints for this group. |
HealthCheckInterval | The time between health checks for each endpoint. |
HealthCheckPath | The ping path for health checks (if the protocol is HTTP(S)). |
HealthCheckPort | The port used to perform health checks. |
HealthCheckProtocol | The protocol used to perform health checks. |
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. |
PortOverrides | Override the destination ports used to route traffic to an endpoint. |
Region | The AWS Region where the endpoint group is located. |
TrafficDialPercentage | The percentage of traffic to send to this AWS Region. |
Properties
EndpointGroupName
Name of the endpoint group.
virtual string EndpointGroupName { get; }
Property Value
System.String
Remarks
Default: - logical ID of the resource
Endpoints
Initial list of endpoints for this group.
virtual IEndpoint[] Endpoints { get; }
Property Value
Remarks
Default: - Group is initially empty
HealthCheckInterval
The time between health checks for each endpoint.
virtual Duration HealthCheckInterval { get; }
Property Value
Remarks
Must be either 10 or 30 seconds.
Default: Duration.seconds(30)
HealthCheckPath
The ping path for health checks (if the protocol is HTTP(S)).
virtual string HealthCheckPath { get; }
Property Value
System.String
Remarks
Default: '/'
HealthCheckPort
The port used to perform health checks.
virtual Nullable<double> HealthCheckPort { get; }
Property Value
System.Nullable<System.Double>
Remarks
Default: - The listener's port
HealthCheckProtocol
The protocol used to perform health checks.
virtual Nullable<HealthCheckProtocol> HealthCheckProtocol { get; }
Property Value
System.Nullable<HealthCheckProtocol>
Remarks
Default: HealthCheckProtocol.TCP
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.
virtual Nullable<double> HealthCheckThreshold { get; }
Property Value
System.Nullable<System.Double>
Remarks
Default: 3
PortOverrides
Override the destination ports used to route traffic to an endpoint.
virtual IPortOverride[] PortOverrides { get; }
Property Value
Remarks
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
Region
The AWS Region where the endpoint group is located.
virtual string Region { get; }
Property Value
System.String
Remarks
Default: - region of the first endpoint in this group, or the stack region if that region can't be determined
TrafficDialPercentage
The percentage of traffic to send to this AWS Region.
virtual Nullable<double> TrafficDialPercentage { get; }
Property Value
System.Nullable<System.Double>
Remarks
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