aws-cdk-lib.aws_globalaccelerator_endpoints.InstanceEndpoint

class InstanceEndpoint

LanguageType name
.NETAmazon.CDK.AWS.GlobalAccelerator.Endpoints.InstanceEndpoint
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsglobalacceleratorendpoints#InstanceEndpoint
Javasoftware.amazon.awscdk.services.globalaccelerator.endpoints.InstanceEndpoint
Pythonaws_cdk.aws_globalaccelerator_endpoints.InstanceEndpoint
TypeScript (source)aws-cdk-lib » aws_globalaccelerator_endpoints » InstanceEndpoint

Implements IEndpoint

Use an EC2 Instance as a Global Accelerator Endpoint.

Example

declare const listener: globalaccelerator.Listener;
declare const instance: ec2.Instance;

listener.addEndpointGroup('Group', {
  endpoints: [
    new ga_endpoints.InstanceEndpoint(instance, {
      weight: 128,
      preserveClientIp: true,
    }),
  ],
});

Initializer

new InstanceEndpoint(instance: IInstance, options?: InstanceEndpointProps)

Parameters

  • instance IInstance
  • options InstanceEndpointProps

Properties

NameTypeDescription
region?stringThe region where the endpoint is located.

region?

Type: string (optional)

The region where the endpoint is located.

If the region cannot be determined, undefined is returned

Methods

NameDescription
renderEndpointConfiguration()Render the endpoint to an endpoint configuration.

renderEndpointConfiguration()

public renderEndpointConfiguration(): any

Returns

  • any

Render the endpoint to an endpoint configuration.