java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.globalaccelerator.endpoints.InstanceEndpoint
All Implemented Interfaces:
IEndpoint, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-25T14:21:16.015Z") @Stability(Stable) public class InstanceEndpoint extends software.amazon.jsii.JsiiObject implements IEndpoint
Use an EC2 Instance as a Global Accelerator Endpoint.

Example:

 Listener listener;
 Instance instance;
 listener.addEndpointGroup("Group", EndpointGroupOptions.builder()
         .endpoints(List.of(
             InstanceEndpoint.Builder.create(instance)
                     .weight(128)
                     .preserveClientIp(true)
                     .build()))
         .build());
 
  • Constructor Details

    • InstanceEndpoint

      protected InstanceEndpoint(software.amazon.jsii.JsiiObjectRef objRef)
    • InstanceEndpoint

      protected InstanceEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • InstanceEndpoint

      @Stability(Stable) public InstanceEndpoint(@NotNull IInstance instance, @Nullable InstanceEndpointProps options)
      Parameters:
      instance - This parameter is required.
      options -
    • InstanceEndpoint

      @Stability(Stable) public InstanceEndpoint(@NotNull IInstance instance)
      Parameters:
      instance - This parameter is required.
  • Method Details

    • renderEndpointConfiguration

      @Stability(Stable) @NotNull public Object renderEndpointConfiguration()
      Render the endpoint to an endpoint configuration.
      Specified by:
      renderEndpointConfiguration in interface IEndpoint
    • getRegion

      @Stability(Stable) @Nullable public String getRegion()
      The region where the endpoint is located.

      If the region cannot be determined, undefined is returned

      Specified by:
      getRegion in interface IEndpoint