Class CfnListener.DefaultActionProperty
The action for the default rule.
Inheritance
System.Object
CfnListener.DefaultActionProperty
Implements
Namespace: Amazon.CDK.AWS.VpcLattice
Assembly: Amazon.CDK.AWS.VpcLattice.dll
Syntax (csharp)
public class DefaultActionProperty : Object, CfnListener.IDefaultActionProperty
Syntax (vb)
Public Class DefaultActionProperty
Inherits Object
Implements CfnListener.IDefaultActionProperty
Remarks
Each listener has a default rule. Each rule consists of a priority, one or more actions, and one or more conditions. The default rule is the rule that's used if no other rules match. Each rule must include exactly one of the following types of actions: forward
or fixed-response
, and it must be the last action to be performed.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.VpcLattice;
var defaultActionProperty = new DefaultActionProperty {
FixedResponse = new FixedResponseProperty {
StatusCode = 123
},
Forward = new ForwardProperty {
TargetGroups = new [] { new WeightedTargetGroupProperty {
TargetGroupIdentifier = "targetGroupIdentifier",
// the properties below are optional
Weight = 123
} }
}
};
Synopsis
Constructors
DefaultActionProperty() |
Properties
FixedResponse | Information about an action that returns a custom HTTP response. |
Forward | Describes a forward action. |
Constructors
DefaultActionProperty()
public DefaultActionProperty()
Properties
FixedResponse
Information about an action that returns a custom HTTP response.
public object FixedResponse { get; set; }
Property Value
System.Object
Remarks
Forward
Describes a forward action.
public object Forward { get; set; }
Property Value
System.Object
Remarks
You can use forward actions to route requests to one or more target groups.