Interface IApplicationListener

All Superinterfaces:
IConnectable, software.constructs.IConstruct, software.constructs.IDependable, IListener, IResource, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IApplicationListener.Jsii$Default
All Known Implementing Classes:
ApplicationListener, IApplicationListener.Jsii$Proxy

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-24T21:00:29.877Z") @Stability(Stable) public interface IApplicationListener extends software.amazon.jsii.JsiiSerializable, IListener, IConnectable
Properties to reference an existing listener.
  • Method Details

    • addAction

      @Stability(Stable) void addAction(@NotNull String id, @NotNull AddApplicationActionProps props)
      Perform the given action on incoming requests.

      This allows full control of the default action of the load balancer, including Action chaining, fixed responses and redirect responses. See the ListenerAction class for all options.

      It's possible to add routing conditions to the Action added in this way.

      It is not possible to add a default action to an imported IApplicationListener. In order to add actions to an imported IApplicationListener a priority must be provided.

      Parameters:
      id - This parameter is required.
      props - This parameter is required.
    • addCertificates

      @Stability(Stable) void addCertificates(@NotNull String id, @NotNull List<IListenerCertificate> certificates)
      Add one or more certificates to this listener.

      Parameters:
      id - This parameter is required.
      certificates - This parameter is required.
    • addTargetGroups

      @Stability(Stable) void addTargetGroups(@NotNull String id, @NotNull AddApplicationTargetGroupsProps props)
      Load balance incoming requests to the given target groups.

      It's possible to add conditions to the TargetGroups added in this way. At least one TargetGroup must be added without conditions.

      Parameters:
      id - This parameter is required.
      props - This parameter is required.
    • addTargets

      @Stability(Stable) @NotNull ApplicationTargetGroup addTargets(@NotNull String id, @NotNull AddApplicationTargetsProps props)
      Load balance incoming requests to the given load balancing targets.

      This method implicitly creates an ApplicationTargetGroup for the targets involved.

      It's possible to add conditions to the targets added in this way. At least one set of targets must be added without conditions.

      Parameters:
      id - This parameter is required.
      props - This parameter is required.
      Returns:
      The newly created target group
    • registerConnectable

      @Stability(Stable) void registerConnectable(@NotNull IConnectable connectable, @NotNull Port portRange)
      Register that a connectable that has been added to this load balancer.

      Don't call this directly. It is called by ApplicationTargetGroup.

      Parameters:
      connectable - This parameter is required.
      portRange - This parameter is required.