@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-05-19T23:09:30.915Z") @Stability(value=Stable) public interface IApplicationListener extends software.amazon.jsii.JsiiSerializable, IResource, IConnectable
Modifier and Type | Interface and Description |
---|---|
static interface |
IApplicationListener.Jsii$Default
Internal default implementation for
IApplicationListener . |
static class |
IApplicationListener.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
Modifier and Type | Method and Description |
---|---|
void |
addAction(String id,
AddApplicationActionProps props)
Perform the given action on incoming requests.
|
void |
addCertificateArns(String id,
List<String> arns)
Deprecated.
use `addCertificates()`
|
void |
addCertificates(String id,
List<IListenerCertificate> certificates)
Add one or more certificates to this listener.
|
void |
addTargetGroups(String id,
AddApplicationTargetGroupsProps props)
Load balance incoming requests to the given target groups.
|
ApplicationTargetGroup |
addTargets(String id,
AddApplicationTargetsProps props)
Load balance incoming requests to the given load balancing targets.
|
String |
getListenerArn()
ARN of the listener.
|
void |
registerConnectable(IConnectable connectable,
Port portRange)
Register that a connectable that has been added to this load balancer.
|
applyRemovalPolicy, getEnv, getStack
getNode
getConnections
@Stability(value=Stable) @NotNull String getListenerArn()
@Stability(value=Stable) void addAction(@NotNull String id, @NotNull AddApplicationActionProps props)
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.
id
- This parameter is required.props
- This parameter is required.@Stability(value=Deprecated) @Deprecated void addCertificateArns(@NotNull String id, @NotNull List<String> arns)
id
- This parameter is required.arns
- This parameter is required.@Stability(value=Stable) void addCertificates(@NotNull String id, @NotNull List<IListenerCertificate> certificates)
id
- This parameter is required.certificates
- This parameter is required.@Stability(value=Stable) void addTargetGroups(@NotNull String id, @NotNull AddApplicationTargetGroupsProps props)
It's possible to add conditions to the TargetGroups added in this way. At least one TargetGroup must be added without conditions.
id
- This parameter is required.props
- This parameter is required.@Stability(value=Stable) @NotNull ApplicationTargetGroup addTargets(@NotNull String id, @NotNull AddApplicationTargetsProps props)
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.
id
- This parameter is required.props
- This parameter is required.@Stability(value=Stable) void registerConnectable(@NotNull IConnectable connectable, @NotNull Port portRange)
Don't call this directly. It is called by ApplicationTargetGroup.
connectable
- This parameter is required.portRange
- This parameter is required.Copyright © 2023. All rights reserved.