public static final class IApplicationListener.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IApplicationListener.Jsii$Default
IApplicationListener.Jsii$Default, IApplicationListener.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
void |
addAction(java.lang.String id,
AddApplicationActionProps props)
Perform the given action on incoming requests.
|
void |
addCertificateArns(java.lang.String id,
java.util.List<java.lang.String> arns)
Deprecated.
use `addCertificates()`
|
void |
addCertificates(java.lang.String id,
java.util.List<IListenerCertificate> certificates)
Add one or more certificates to this listener.
|
void |
addTargetGroups(java.lang.String id,
AddApplicationTargetGroupsProps props)
Load balance incoming requests to the given target groups.
|
ApplicationTargetGroup |
addTargets(java.lang.String id,
AddApplicationTargetsProps props)
Load balance incoming requests to the given load balancing targets.
|
void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
Connections |
getConnections()
The network connections associated with this resource.
|
ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
java.lang.String |
getListenerArn()
ARN of the listener.
|
ConstructNode |
getNode()
The construct tree node for this construct.
|
Stack |
getStack()
The stack in which this resource is defined.
|
void |
registerConnectable(IConnectable connectable,
Port portRange)
Register that a connectable that has been added to this load balancer.
|
public final ConstructNode getNode()
getNode
in interface IConstruct
getNode
in interface IConstruct.Jsii$Default
getNode
in interface IResource.Jsii$Default
getNode
in interface IApplicationListener.Jsii$Default
public final 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 IResource
getEnv
in interface IResource.Jsii$Default
getEnv
in interface IApplicationListener.Jsii$Default
public final Stack getStack()
getStack
in interface IResource
getStack
in interface IResource.Jsii$Default
getStack
in interface IApplicationListener.Jsii$Default
public final Connections getConnections()
getConnections
in interface IConnectable
getConnections
in interface IConnectable.Jsii$Default
getConnections
in interface IApplicationListener.Jsii$Default
public final java.lang.String getListenerArn()
getListenerArn
in interface IApplicationListener
getListenerArn
in interface IApplicationListener.Jsii$Default
public final void applyRemovalPolicy(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 IResource
applyRemovalPolicy
in interface IResource.Jsii$Default
applyRemovalPolicy
in interface IApplicationListener.Jsii$Default
policy
- This parameter is required.public final void addAction(java.lang.String id, 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 IApplicationListener
addAction
in interface IApplicationListener.Jsii$Default
id
- This parameter is required.props
- This parameter is required.@Deprecated public final void addCertificateArns(java.lang.String id, java.util.List<java.lang.String> arns)
addCertificateArns
in interface IApplicationListener
addCertificateArns
in interface IApplicationListener.Jsii$Default
id
- This parameter is required.arns
- This parameter is required.public final void addCertificates(java.lang.String id, java.util.List<IListenerCertificate> certificates)
addCertificates
in interface IApplicationListener
addCertificates
in interface IApplicationListener.Jsii$Default
id
- This parameter is required.certificates
- This parameter is required.public final void addTargetGroups(java.lang.String id, 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 IApplicationListener
addTargetGroups
in interface IApplicationListener.Jsii$Default
id
- This parameter is required.props
- This parameter is required.public final ApplicationTargetGroup addTargets(java.lang.String id, 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 IApplicationListener
addTargets
in interface IApplicationListener.Jsii$Default
id
- This parameter is required.props
- This parameter is required.public final void registerConnectable(IConnectable connectable, Port portRange)
Don't call this directly. It is called by ApplicationTargetGroup.
registerConnectable
in interface IApplicationListener
registerConnectable
in interface IApplicationListener.Jsii$Default
connectable
- This parameter is required.portRange
- This parameter is required.