interface ActionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.VpcLattice.CfnRulePropsMixin.ActionProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsvpclattice#CfnRulePropsMixin_ActionProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.vpclattice.CfnRulePropsMixin.ActionProperty |
Python | aws_cdk.cfn_property_mixins.aws_vpclattice.CfnRulePropsMixin.ActionProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_vpclattice » 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 { aws_vpclattice as vpclattice } from '@aws-cdk/cfn-property-mixins';
const actionProperty: vpclattice.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