class InstanceEndpoint
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.GlobalAccelerator.Endpoints.InstanceEndpoint |
Java | software.amazon.awscdk.services.globalaccelerator.endpoints.InstanceEndpoint |
Python | aws_cdk.aws_globalaccelerator_endpoints.InstanceEndpoint |
TypeScript (source) | @aws-cdk/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
InstanceEndpoint Props
Properties
| Name | Type | Description |
|---|---|---|
| region? | string | The 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
| Name | Description |
|---|---|
| render | Render the endpoint to an endpoint configuration. |
renderEndpointConfiguration()
public renderEndpointConfiguration(): any
Returns
any
Render the endpoint to an endpoint configuration.

.NET
Java
Python
TypeScript (