Class ApplicationLoadBalancerEndpoint

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:46.787Z") @Stability(Stable) public class ApplicationLoadBalancerEndpoint extends software.amazon.jsii.JsiiObject implements IEndpoint
Use an Application Load Balancer as a Global Accelerator Endpoint.

Example:

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

    • ApplicationLoadBalancerEndpoint

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

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

      @Stability(Stable) public ApplicationLoadBalancerEndpoint(@NotNull IApplicationLoadBalancer loadBalancer, @Nullable ApplicationLoadBalancerEndpointOptions options)
      Parameters:
      loadBalancer - This parameter is required.
      options -
    • ApplicationLoadBalancerEndpoint

      @Stability(Stable) public ApplicationLoadBalancerEndpoint(@NotNull IApplicationLoadBalancer loadBalancer)
      Parameters:
      loadBalancer - 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