Class InstanceEndpoint
Use an EC2 Instance as a Global Accelerator Endpoint.
Inheritance
Implements
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
Instance |
|
Instance |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Instance |
Used by jsii to construct an instance of this class from DeputyProps |
Properties
Region | The region where the endpoint is located. |
Methods
Render |
Render the endpoint to an endpoint configuration. |
Constructors
InstanceEndpoint(IInstance, IInstanceEndpointProps)
public InstanceEndpoint(IInstance instance, IInstanceEndpointProps options = null)
Parameters
- instance IInstance
- options IInstance
Endpoint Props
InstanceEndpoint(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected InstanceEndpoint(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
InstanceEndpoint(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected InstanceEndpoint(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
Properties
Region
The region where the endpoint is located.
public virtual string Region { get; }
Property Value
System.
Remarks
If the region cannot be determined, undefined
is returned
Methods
RenderEndpointConfiguration()
Render the endpoint to an endpoint configuration.
public virtual object RenderEndpointConfiguration()
Returns
System.