interface ActionProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.VpcLattice.CfnRule.ActionProperty |
![]() | software.amazon.awscdk.services.vpclattice.CfnRule.ActionProperty |
![]() | aws_cdk.aws_vpclattice.CfnRule.ActionProperty |
![]() | @aws-cdk/aws-vpclattice » CfnRule » ActionProperty |
Describes the action for a rule.
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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as vpclattice from '@aws-cdk/aws-vpclattice';
const actionProperty: vpclattice.CfnRule.ActionProperty = {
fixedResponse: {
statusCode: 123,
},
forward: {
targetGroups: [{
targetGroupIdentifier: 'targetGroupIdentifier',
// the properties below are optional
weight: 123,
}],
},
};
Properties
Name | Type | Description |
---|---|---|
fixed | IResolvable | Fixed | Describes the rule action that returns a custom HTTP response. |
forward? | IResolvable | Forward | The forward action. |
fixedResponse?
Type:
IResolvable
|
Fixed
(optional)
Describes the rule action that returns a custom HTTP response.
forward?
Type:
IResolvable
|
Forward
(optional)
The forward action.
Traffic that matches the rule is forwarded to the specified target groups.