InstanceEndpoint

class aws_cdk.aws_globalaccelerator_endpoints.InstanceEndpoint(instance, *, preserve_client_ip=None, weight=None)

Bases: object

Use an EC2 Instance as a Global Accelerator Endpoint.

Parameters
  • instance (IInstance) –

  • preserve_client_ip (Optional[bool]) – Forward the client IP address. GlobalAccelerator will create Network Interfaces in your VPC in order to preserve the client IP address. Client IP address preservation is supported only in specific AWS Regions. See the GlobalAccelerator Developer Guide for a list. Default: true if available

  • weight (Union[int, float, None]) – Endpoint weight across all endpoints in the group. Must be a value between 0 and 255. Default: 128

Methods

render_endpoint_configuration()

Render the endpoint to an endpoint configuration.

Return type

Any

Attributes

region

The region where the endpoint is located.

If the region cannot be determined, undefined is returned

Return type

Optional[str]