interface ActionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.VpcLattice.Mixins.CfnRulePropsMixin.ActionProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsvpclattice/mixins#CfnRulePropsMixin_ActionProperty |
Java | software.amazon.awscdk.mixins.preview.services.vpclattice.mixins.CfnRulePropsMixin.ActionProperty |
Python | aws_cdk.mixins_preview.aws_vpclattice.mixins.CfnRulePropsMixin.ActionProperty |
TypeScript | @aws-cdk/mixins-preview » aws_vpclattice » mixins » CfnRulePropsMixin » ActionProperty |
Describes the action for a rule.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as vpclattice_mixins } from '@aws-cdk/mixins-preview/aws-vpclattice';
const actionProperty: vpclattice_mixins.CfnRulePropsMixin.ActionProperty = {
fixedResponse: {
statusCode: 123,
},
forward: {
targetGroups: [{
targetGroupIdentifier: 'targetGroupIdentifier',
weight: 123,
}],
},
};
Properties
| Name | Type | Description |
|---|---|---|
| fixed | IResolvable | Fixed | The fixed response action. |
| forward? | IResolvable | Forward | The forward action. |
fixedResponse?
Type:
IResolvable | Fixed
(optional)
The fixed response action.
The rule 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.

.NET
Go
Java
Python
TypeScript