class InstanceEndpoint
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.GlobalAccelerator.Endpoints.InstanceEndpoint |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsglobalacceleratorendpoints#InstanceEndpoint |
![]() | software.amazon.awscdk.services.globalaccelerator.endpoints.InstanceEndpoint |
![]() | aws_cdk.aws_globalaccelerator_endpoints.InstanceEndpoint |
![]() | 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
Instance
Endpoint 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.