Interface CfnListener.IDefaultActionProperty
The action for the default rule.
Namespace: Amazon.CDK.AWS.VpcLattice
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IDefaultActionProperty
Syntax (vb)
Public Interface IDefaultActionProperty
Remarks
Each listener has a default rule. The default rule is used if no other rules match.
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
Properties
Fixed |
Describes an action that returns a custom HTTP response. |
Forward | Describes a forward action. |
Properties
FixedResponse
Describes an action that returns a custom HTTP response.
virtual object FixedResponse { get; }
Property Value
System.
Remarks
Forward
Describes a forward action.
virtual object Forward { get; }
Property Value
System.
Remarks
You can use forward actions to route requests to one or more target groups.