CommonGatewayRouteSpecOptions Struct
Base options for all gateway route specs.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const commonGatewayRouteSpecOptions: appmesh.CommonGatewayRouteSpecOptions = {
priority: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appmesh as appmesh
common_gateway_route_spec_options = appmesh.CommonGatewayRouteSpecOptions(
priority=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appmesh.*;
CommonGatewayRouteSpecOptions commonGatewayRouteSpecOptions = CommonGatewayRouteSpecOptions.builder()
.priority(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;
var commonGatewayRouteSpecOptions = new CommonGatewayRouteSpecOptions {
Priority = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
commonGatewayRouteSpecOptions := &CommonGatewayRouteSpecOptions{
Priority: jsii.Number(123),
}
Properties
priorityoptionalnumberpriorityoptionalint | floatpriorityoptionalNumberPriorityoptionaldoublePriorityoptional*float64#The priority for the gateway route.
Default: no particular priority
When a Virtual Gateway has multiple gateway routes, gateway route match is performed in the order of specified value, where 0 is the highest priority, and first matched gateway route is selected.