Class CfnRulePropsMixin.ActionProperty
Describes the action for a rule.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.VpcLattice.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnRulePropsMixin.ActionProperty : CfnRulePropsMixin.IActionProperty
Syntax (vb)
Public Class CfnRulePropsMixin.ActionProperty Implements CfnRulePropsMixin.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.Mixins.Preview.AWS.VpcLattice.Mixins;
var actionProperty = new ActionProperty {
FixedResponse = new FixedResponseProperty {
StatusCode = 123
},
Forward = new ForwardProperty {
TargetGroups = new [] { new WeightedTargetGroupProperty {
TargetGroupIdentifier = "targetGroupIdentifier",
Weight = 123
} }
}
};
Synopsis
Constructors
| ActionProperty() | Describes the action for a rule. |
Properties
| FixedResponse | The fixed response action. |
| Forward | The forward action. |
Constructors
ActionProperty()
Describes the action for a rule.
public ActionProperty()
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.Mixins.Preview.AWS.VpcLattice.Mixins;
var actionProperty = new ActionProperty {
FixedResponse = new FixedResponseProperty {
StatusCode = 123
},
Forward = new ForwardProperty {
TargetGroups = new [] { new WeightedTargetGroupProperty {
TargetGroupIdentifier = "targetGroupIdentifier",
Weight = 123
} }
}
};
Properties
FixedResponse
The fixed response action.
public object? FixedResponse { get; set; }
Property Value
Remarks
The rule returns a custom HTTP response.
Type union: either IResolvable or CfnRulePropsMixin.IFixedResponseProperty
Forward
The forward action.
public object? Forward { get; set; }
Property Value
Remarks
Traffic that matches the rule is forwarded to the specified target groups.
Type union: either IResolvable or CfnRulePropsMixin.IForwardProperty