Interface CfnRule.IActionProperty
Describes the action for a rule.
Namespace: Amazon.CDK.AWS.VpcLattice
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IActionProperty
Syntax (vb)
Public Interface IActionProperty
Remarks
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 actionProperty = new ActionProperty {
FixedResponse = new FixedResponseProperty {
StatusCode = 123
},
Forward = new ForwardProperty {
TargetGroups = new [] { new WeightedTargetGroupProperty {
TargetGroupIdentifier = "targetGroupIdentifier",
// the properties below are optional
Weight = 123
} }
}
};
Synopsis
Properties
FixedResponse | The fixed response action. |
Forward | The forward action. |
Properties
FixedResponse
The fixed response action.
virtual object FixedResponse { get; }
Property Value
System.Object
Remarks
The rule returns a custom HTTP response.
Forward
The forward action.
virtual object Forward { get; }
Property Value
System.Object
Remarks
Traffic that matches the rule is forwarded to the specified target groups.