Show / Hide Table of Contents

Class InstanceEndpoint

Use an EC2 Instance as a Global Accelerator Endpoint.

Inheritance
object
InstanceEndpoint
Implements
IEndpoint
Namespace: Amazon.CDK.AWS.GlobalAccelerator.Endpoints
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class InstanceEndpoint : DeputyBase, IEndpoint
Syntax (vb)
Public Class InstanceEndpoint Inherits DeputyBase Implements IEndpoint
Remarks

ExampleMetadata: infused

Examples
Listener listener;
            Instance instance;


            listener.AddEndpointGroup("Group", new EndpointGroupOptions {
                Endpoints = new [] {
                    new InstanceEndpoint(instance, new InstanceEndpointProps {
                        Weight = 128,
                        PreserveClientIp = true
                    }) }
            });

Synopsis

Constructors

InstanceEndpoint(IInstance, IInstanceEndpointProps?)

Use an EC2 Instance as a Global Accelerator Endpoint.

Properties

Region

The region where the endpoint is located.

Methods

RenderEndpointConfiguration()

Render the endpoint to an endpoint configuration.

Constructors

InstanceEndpoint(IInstance, IInstanceEndpointProps?)

Use an EC2 Instance as a Global Accelerator Endpoint.

public InstanceEndpoint(IInstance instance, IInstanceEndpointProps? options = null)
Parameters
instance IInstance
options IInstanceEndpointProps
Remarks

ExampleMetadata: infused

Examples
Listener listener;
            Instance instance;


            listener.AddEndpointGroup("Group", new EndpointGroupOptions {
                Endpoints = new [] {
                    new InstanceEndpoint(instance, new InstanceEndpointProps {
                        Weight = 128,
                        PreserveClientIp = true
                    }) }
            });

Properties

Region

The region where the endpoint is located.

public virtual string? Region { get; }
Property Value

string

Remarks

If the region cannot be determined, undefined is returned

Methods

RenderEndpointConfiguration()

Render the endpoint to an endpoint configuration.

public virtual object RenderEndpointConfiguration()
Returns

object

Remarks

ExampleMetadata: infused

Implements

IEndpoint
Back to top Generated by DocFX