Interface CfnListener.DefaultActionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnListener.DefaultActionProperty.Jsii$Proxy
- Enclosing class:
CfnListener
@Stability(Stable)
public static interface CfnListener.DefaultActionProperty
extends software.amazon.jsii.JsiiSerializable
The action for the default rule.
Each listener has a default rule. The default rule is used if no other rules match.
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.*;
DefaultActionProperty defaultActionProperty = DefaultActionProperty.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 classA builder forCfnListener.DefaultActionPropertystatic final classAn implementation forCfnListener.DefaultActionProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFixedResponse
Describes an action that returns a custom HTTP response.Returns union: either
IResolvableorCfnListener.FixedResponseProperty- See Also:
-
getForward
Describes a forward action.You can use forward actions to route requests to one or more target groups.
Returns union: either
IResolvableorCfnListener.ForwardProperty- See Also:
-
builder
-