GatewayRouteProps Struct
Properties to define a new GatewayRoute.
| Source | aws-appmesh/lib/gateway-route.ts |
|---|
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';
declare const gatewayRouteSpec: appmesh.GatewayRouteSpec;
declare const virtualGateway: appmesh.VirtualGateway;
const gatewayRouteProps: appmesh.GatewayRouteProps = {
routeSpec: gatewayRouteSpec,
virtualGateway: virtualGateway,
// the properties below are optional
gatewayRouteName: 'gatewayRouteName',
};
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
# gateway_route_spec: appmesh.GatewayRouteSpec
# virtual_gateway: appmesh.VirtualGateway
gateway_route_props = appmesh.GatewayRouteProps(
route_spec=gateway_route_spec,
virtual_gateway=virtual_gateway,
# the properties below are optional
gateway_route_name="gatewayRouteName"
)
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.*;
GatewayRouteSpec gatewayRouteSpec;
VirtualGateway virtualGateway;
GatewayRouteProps gatewayRouteProps = GatewayRouteProps.builder()
.routeSpec(gatewayRouteSpec)
.virtualGateway(virtualGateway)
// the properties below are optional
.gatewayRouteName("gatewayRouteName")
.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;
GatewayRouteSpec gatewayRouteSpec;
VirtualGateway virtualGateway;
var gatewayRouteProps = new GatewayRouteProps {
RouteSpec = gatewayRouteSpec,
VirtualGateway = virtualGateway,
// the properties below are optional
GatewayRouteName = "gatewayRouteName"
};
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"
var gatewayRouteSpec GatewayRouteSpec
var virtualGateway VirtualGateway
gatewayRouteProps := &GatewayRouteProps{
RouteSpec: gatewayRouteSpec,
VirtualGateway: virtualGateway,
// the properties below are optional
GatewayRouteName: jsii.String("gatewayRouteName"),
}
Properties
gatewayRouteNameoptionalstringgateway_route_nameoptionalstrgatewayRouteNameoptionalStringGatewayRouteNameoptionalstringGatewayRouteNameoptional*string #The name of the GatewayRoute.
Default: an automatically generated name
routeSpecGatewayRouteSpecroute_specGatewayRouteSpecrouteSpecGatewayRouteSpecRouteSpecGatewayRouteSpecRouteSpecGatewayRouteSpec required #What protocol the route uses.
virtualGatewayIVirtualGatewayvirtual_gatewayIVirtualGatewayvirtualGatewayIVirtualGatewayVirtualGatewayIVirtualGatewayVirtualGatewayIVirtualGateway required #The VirtualGateway this GatewayRoute is associated with.