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.94.0 (build b380f01)", date="2024-02-23T02:06:33.070Z") @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