Interface AddApplicationActionProps
- All Superinterfaces:
AddRuleProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AddApplicationActionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-11T15:55:58.299Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forAddApplicationActionProps
static final class
An implementation forAddApplicationActionProps
-
Method Summary
Methods inherited from interface software.amazon.awscdk.services.elasticloadbalancingv2.AddRuleProps
getConditions, getPriority
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAction
Action to perform. -
getRemoveSuffix
ListenerRule
s have aRule
suffix on their logicalId by default. This allows you to remove that suffix.Legacy behavior of the
addTargetGroups()
convenience method did not include theRule
suffix 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 migratingListenerRule
s 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 theListenerRule
and fail.Default: - use standard logicalId with the `Rule` suffix
-
builder
- Returns:
- a
AddApplicationActionProps.Builder
ofAddApplicationActionProps
-