interface HttpGatewayRouteActionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.AppMesh.Mixins.CfnGatewayRoutePropsMixin.HttpGatewayRouteActionProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsappmesh/mixins#CfnGatewayRoutePropsMixin_HttpGatewayRouteActionProperty |
Java | software.amazon.awscdk.mixins.preview.services.appmesh.mixins.CfnGatewayRoutePropsMixin.HttpGatewayRouteActionProperty |
Python | aws_cdk.mixins_preview.aws_appmesh.mixins.CfnGatewayRoutePropsMixin.HttpGatewayRouteActionProperty |
TypeScript | @aws-cdk/mixins-preview » aws_appmesh » mixins » CfnGatewayRoutePropsMixin » HttpGatewayRouteActionProperty |
An object that represents the action to take if a match is determined.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as appmesh_mixins } from '@aws-cdk/mixins-preview/aws-appmesh';
const httpGatewayRouteActionProperty: appmesh_mixins.CfnGatewayRoutePropsMixin.HttpGatewayRouteActionProperty = {
rewrite: {
hostname: {
defaultTargetHostname: 'defaultTargetHostname',
},
path: {
exact: 'exact',
},
prefix: {
defaultPrefix: 'defaultPrefix',
value: 'value',
},
},
target: {
port: 123,
virtualService: {
virtualServiceName: 'virtualServiceName',
},
},
};
Properties
| Name | Type | Description |
|---|---|---|
| rewrite? | IResolvable | Http | The gateway route action to rewrite. |
| target? | IResolvable | Gateway | An object that represents the target that traffic is routed to when a request matches the gateway route. |
rewrite?
Type:
IResolvable | Http
(optional)
The gateway route action to rewrite.
target?
Type:
IResolvable | Gateway
(optional)
An object that represents the target that traffic is routed to when a request matches the gateway route.

.NET
Go
Java
Python
TypeScript