interface GatewayRouteSpecProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.AppMesh.Mixins.CfnGatewayRoutePropsMixin.GatewayRouteSpecProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsappmesh/mixins#CfnGatewayRoutePropsMixin_GatewayRouteSpecProperty |
Java | software.amazon.awscdk.mixins.preview.services.appmesh.mixins.CfnGatewayRoutePropsMixin.GatewayRouteSpecProperty |
Python | aws_cdk.mixins_preview.aws_appmesh.mixins.CfnGatewayRoutePropsMixin.GatewayRouteSpecProperty |
TypeScript | @aws-cdk/mixins-preview » aws_appmesh » mixins » CfnGatewayRoutePropsMixin » GatewayRouteSpecProperty |
An object that represents a gateway route specification.
Specify one gateway route type.
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 gatewayRouteSpecProperty: appmesh_mixins.CfnGatewayRoutePropsMixin.GatewayRouteSpecProperty = {
grpcRoute: {
action: {
rewrite: {
hostname: {
defaultTargetHostname: 'defaultTargetHostname',
},
},
target: {
port: 123,
virtualService: {
virtualServiceName: 'virtualServiceName',
},
},
},
match: {
hostname: {
exact: 'exact',
suffix: 'suffix',
},
metadata: [{
invert: false,
match: {
exact: 'exact',
prefix: 'prefix',
range: {
end: 123,
start: 123,
},
regex: 'regex',
suffix: 'suffix',
},
name: 'name',
}],
port: 123,
serviceName: 'serviceName',
},
},
http2Route: {
action: {
rewrite: {
hostname: {
defaultTargetHostname: 'defaultTargetHostname',
},
path: {
exact: 'exact',
},
prefix: {
defaultPrefix: 'defaultPrefix',
value: 'value',
},
},
target: {
port: 123,
virtualService: {
virtualServiceName: 'virtualServiceName',
},
},
},
match: {
headers: [{
invert: false,
match: {
exact: 'exact',
prefix: 'prefix',
range: {
end: 123,
start: 123,
},
regex: 'regex',
suffix: 'suffix',
},
name: 'name',
}],
hostname: {
exact: 'exact',
suffix: 'suffix',
},
method: 'method',
path: {
exact: 'exact',
regex: 'regex',
},
port: 123,
prefix: 'prefix',
queryParameters: [{
match: {
exact: 'exact',
},
name: 'name',
}],
},
},
httpRoute: {
action: {
rewrite: {
hostname: {
defaultTargetHostname: 'defaultTargetHostname',
},
path: {
exact: 'exact',
},
prefix: {
defaultPrefix: 'defaultPrefix',
value: 'value',
},
},
target: {
port: 123,
virtualService: {
virtualServiceName: 'virtualServiceName',
},
},
},
match: {
headers: [{
invert: false,
match: {
exact: 'exact',
prefix: 'prefix',
range: {
end: 123,
start: 123,
},
regex: 'regex',
suffix: 'suffix',
},
name: 'name',
}],
hostname: {
exact: 'exact',
suffix: 'suffix',
},
method: 'method',
path: {
exact: 'exact',
regex: 'regex',
},
port: 123,
prefix: 'prefix',
queryParameters: [{
match: {
exact: 'exact',
},
name: 'name',
}],
},
},
priority: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| grpc | IResolvable | Grpc | An object that represents the specification of a gRPC gateway route. |
| http2 | IResolvable | Http | An object that represents the specification of an HTTP/2 gateway route. |
| http | IResolvable | Http | An object that represents the specification of an HTTP gateway route. |
| priority? | number | The ordering of the gateway routes spec. |
grpcRoute?
Type:
IResolvable | Grpc
(optional)
An object that represents the specification of a gRPC gateway route.
http2Route?
Type:
IResolvable | Http
(optional)
An object that represents the specification of an HTTP/2 gateway route.
httpRoute?
Type:
IResolvable | Http
(optional)
An object that represents the specification of an HTTP gateway route.
priority?
Type:
number
(optional)
The ordering of the gateway routes spec.

.NET
Go
Java
Python
TypeScript