EndpointGroupProps

class aws_cdk.aws_globalaccelerator.EndpointGroupProps(*, endpoint_group_name=None, endpoints=None, health_check_interval=None, health_check_path=None, health_check_port=None, health_check_protocol=None, health_check_threshold=None, port_overrides=None, region=None, traffic_dial_percentage=None, listener)

Bases: EndpointGroupOptions

Property of the EndpointGroup.

Parameters:
  • endpoint_group_name (Optional[str]) – Name of the endpoint group. Default: - logical ID of the resource

  • endpoints (Optional[Sequence[IEndpoint]]) – Initial list of endpoints for this group. Default: - Group is initially empty

  • health_check_interval (Optional[Duration]) – The time between health checks for each endpoint. Must be either 10 or 30 seconds. Default: Duration.seconds(30)

  • health_check_path (Optional[str]) – The ping path for health checks (if the protocol is HTTP(S)). Default: ‘/’

  • health_check_port (Union[int, float, None]) – The port used to perform health checks. Default: - The listener’s port

  • health_check_protocol (Optional[HealthCheckProtocol]) – The protocol used to perform health checks. Default: HealthCheckProtocol.TCP

  • health_check_threshold (Union[int, float, None]) – 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

  • port_overrides (Optional[Sequence[Union[PortOverride, Dict[str, Any]]]]) – 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

  • region (Optional[str]) – 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

  • traffic_dial_percentage (Union[int, float, None]) – 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

  • listener (IListener) – The Amazon Resource Name (ARN) of the listener.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_globalaccelerator as globalaccelerator
import aws_cdk.core as cdk

# endpoint: globalaccelerator.IEndpoint
# listener: globalaccelerator.Listener

endpoint_group_props = globalaccelerator.EndpointGroupProps(
    listener=listener,

    # the properties below are optional
    endpoint_group_name="endpointGroupName",
    endpoints=[endpoint],
    health_check_interval=cdk.Duration.minutes(30),
    health_check_path="healthCheckPath",
    health_check_port=123,
    health_check_protocol=globalaccelerator.HealthCheckProtocol.TCP,
    health_check_threshold=123,
    port_overrides=[globalaccelerator.PortOverride(
        endpoint_port=123,
        listener_port=123
    )],
    region="region",
    traffic_dial_percentage=123
)

Attributes

endpoint_group_name

Name of the endpoint group.

Default:
  • logical ID of the resource

endpoints

Initial list of endpoints for this group.

Default:
  • Group is initially empty

health_check_interval

The time between health checks for each endpoint.

Must be either 10 or 30 seconds.

Default:

Duration.seconds(30)

health_check_path

The ping path for health checks (if the protocol is HTTP(S)).

Default:

‘/’

health_check_port

The port used to perform health checks.

Default:
  • The listener’s port

health_check_protocol

The protocol used to perform health checks.

Default:

HealthCheckProtocol.TCP

health_check_threshold

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

listener

The Amazon Resource Name (ARN) of the listener.

port_overrides

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

region

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

traffic_dial_percentage

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