@Internal public static interface IApplicationListener.Jsii$Default extends IApplicationListener, IResource.Jsii$Default, IConnectable.Jsii$Default
IApplicationListener.IApplicationListener.Jsii$Default, IApplicationListener.Jsii$Proxy| Modifier and Type | Method and Description |
|---|---|
default void |
addAction(String id,
AddApplicationActionProps props)
Perform the given action on incoming requests.
|
default void |
addCertificates(String id,
List<IListenerCertificate> certificates)
Add one or more certificates to this listener.
|
default void |
addTargetGroups(String id,
AddApplicationTargetGroupsProps props)
Load balance incoming requests to the given target groups.
|
default ApplicationTargetGroup |
addTargets(String id,
AddApplicationTargetsProps props)
Load balance incoming requests to the given load balancing targets.
|
default void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
default Connections |
getConnections()
The network connections associated with this resource.
|
default ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
default String |
getListenerArn()
ARN of the listener.
|
default software.constructs.Node |
getNode()
The tree node.
|
default Stack |
getStack()
The stack in which this resource is defined.
|
default void |
registerConnectable(IConnectable connectable,
Port portRange)
Register that a connectable that has been added to this load balancer.
|
@Stability(value=Stable) @NotNull default software.constructs.Node getNode()
getNode in interface software.constructs.IConstructgetNode in interface software.constructs.IConstruct.Jsii$DefaultgetNode in interface IResource.Jsii$Default@Stability(value=Stable) @NotNull default ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv in interface IResourcegetEnv in interface IResource.Jsii$Default@Stability(value=Stable) @NotNull default Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$Default@Stability(value=Stable) @NotNull default Connections getConnections()
getConnections in interface IConnectablegetConnections in interface IConnectable.Jsii$Default@Stability(value=Stable) @NotNull default String getListenerArn()
getListenerArn in interface IApplicationListener@Stability(value=Stable)
default void applyRemovalPolicy(@NotNull
RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
applyRemovalPolicy in interface IResourceapplyRemovalPolicy in interface IResource.Jsii$Defaultpolicy - This parameter is required.@Stability(value=Stable)
default 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.
addAction in interface IApplicationListenerid - This parameter is required.props - This parameter is required.@Stability(value=Stable)
default void addCertificates(@NotNull
String id,
@NotNull
List<IListenerCertificate> certificates)
addCertificates in interface IApplicationListenerid - This parameter is required.certificates - This parameter is required.@Stability(value=Stable)
default 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.
addTargetGroups in interface IApplicationListenerid - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull default 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.
addTargets in interface IApplicationListenerid - This parameter is required.props - This parameter is required.@Stability(value=Stable)
default void registerConnectable(@NotNull
IConnectable connectable,
@NotNull
Port portRange)
Don't call this directly. It is called by ApplicationTargetGroup.
registerConnectable in interface IApplicationListenerconnectable - This parameter is required.portRange - This parameter is required.Copyright © 2022. All rights reserved.