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(java.lang.String id,
AddApplicationActionProps props)
Perform the given action on incoming requests.
|
default void |
addCertificateArns(java.lang.String id,
java.util.List<java.lang.String> arns)
Deprecated.
use `addCertificates()`
|
default void |
addCertificates(java.lang.String id,
java.util.List<IListenerCertificate> certificates)
Add one or more certificates to this listener.
|
default void |
addTargetGroups(java.lang.String id,
AddApplicationTargetGroupsProps props)
Load balance incoming requests to the given target groups.
|
default ApplicationTargetGroup |
addTargets(java.lang.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 java.lang.String |
getListenerArn()
ARN of the listener.
|
default ConstructNode |
getNode()
The construct tree node for this construct.
|
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.
|
default ConstructNode getNode()
getNode
in interface IConstruct
getNode
in interface IConstruct.Jsii$Default
getNode
in interface IResource.Jsii$Default
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 IResource
getEnv
in interface IResource.Jsii$Default
default Stack getStack()
getStack
in interface IResource
getStack
in interface IResource.Jsii$Default
default Connections getConnections()
getConnections
in interface IConnectable
getConnections
in interface IConnectable.Jsii$Default
default java.lang.String getListenerArn()
getListenerArn
in interface IApplicationListener
default 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
policy
- This parameter is required.default 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
id
- This parameter is required.props
- This parameter is required.@Deprecated default void addCertificateArns(java.lang.String id, java.util.List<java.lang.String> arns)
addCertificateArns
in interface IApplicationListener
id
- This parameter is required.arns
- This parameter is required.default void addCertificates(java.lang.String id, java.util.List<IListenerCertificate> certificates)
addCertificates
in interface IApplicationListener
id
- This parameter is required.certificates
- This parameter is required.default 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
id
- This parameter is required.props
- This parameter is required.default 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
id
- This parameter is required.props
- This parameter is required.default void registerConnectable(IConnectable connectable, Port portRange)
Don't call this directly. It is called by ApplicationTargetGroup.
registerConnectable
in interface IApplicationListener
connectable
- This parameter is required.portRange
- This parameter is required.