Interface CfnRule.ActionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRule.ActionProperty.Jsii$Proxy
- Enclosing class:
CfnRule
@Stability(Stable)
public static interface CfnRule.ActionProperty
extends software.amazon.jsii.JsiiSerializable
Describes the action for a rule.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.vpclattice.*; ActionProperty actionProperty = ActionProperty.builder() .fixedResponse(FixedResponseProperty.builder() .statusCode(123) .build()) .forward(ForwardProperty.builder() .targetGroups(List.of(WeightedTargetGroupProperty.builder() .targetGroupIdentifier("targetGroupIdentifier") // the properties below are optional .weight(123) .build())) .build()) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnRule.ActionProperty
static final class
An implementation forCfnRule.ActionProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFixedResponse
The fixed response action.The rule returns a custom HTTP response.
- See Also:
-
getForward
The forward action.Traffic that matches the rule is forwarded to the specified target groups.
- See Also:
-
builder
- Returns:
- a
CfnRule.ActionProperty.Builder
ofCfnRule.ActionProperty
-