Interface AddApplicationActionProps
- All Superinterfaces:
AddRuleProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AddApplicationActionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:39.771Z")
@Stability(Stable)
public interface AddApplicationActionProps
extends software.amazon.jsii.JsiiSerializable, AddRuleProps
Properties for adding a new action to a listener.
Example:
ApplicationListener listener;
listener.addAction("Fixed", AddApplicationActionProps.builder()
.priority(10)
.conditions(List.of(ListenerCondition.pathPatterns(List.of("/ok"))))
.action(ListenerAction.fixedResponse(200, FixedResponseOptions.builder()
.contentType("text/plain")
.messageBody("OK")
.build()))
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAddApplicationActionPropsstatic final classAn implementation forAddApplicationActionProps -
Method Summary
Methods inherited from interface software.amazon.awscdk.services.elasticloadbalancingv2.AddRuleProps
getConditions, getPriorityMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAction
Action to perform. -
getRemoveSuffix
ListenerRules have aRulesuffix on their logicalId by default. This allows you to remove that suffix.Legacy behavior of the
addTargetGroups()convenience method did not include theRulesuffix on the logicalId of the generatedListenerRule. At some point, increasing complexity of requirements can require users to switch from theaddTargetGroups()method to theaddAction()method. When migratingListenerRules deployed by a legacy version ofaddTargetGroups(), you will need to enable this flag to avoid changing the logicalId of your resource. Otherwise Cfn will attempt to replace theListenerRuleand fail.Default: - use standard logicalId with the `Rule` suffix
-
builder
- Returns:
- a
AddApplicationActionProps.BuilderofAddApplicationActionProps
-