GatewayRouteTargetProperty
Struct External
An object that represents a gateway route target.
| Source | |
|---|---|
| Type last changed |
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 gatewayRouteTargetProperty: appmesh.CfnGatewayRoute.GatewayRouteTargetProperty = {
virtualService: {
virtualServiceName: 'virtualServiceName',
},
// the properties below are optional
port: 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
gateway_route_target_property = appmesh.CfnGatewayRoute.GatewayRouteTargetProperty(
virtual_service=appmesh.CfnGatewayRoute.GatewayRouteVirtualServiceProperty(
virtual_service_name="virtualServiceName"
),
# the properties below are optional
port=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.*;
GatewayRouteTargetProperty gatewayRouteTargetProperty = GatewayRouteTargetProperty.builder()
.virtualService(GatewayRouteVirtualServiceProperty.builder()
.virtualServiceName("virtualServiceName")
.build())
// the properties below are optional
.port(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 gatewayRouteTargetProperty = new GatewayRouteTargetProperty {
VirtualService = new GatewayRouteVirtualServiceProperty {
VirtualServiceName = "virtualServiceName"
},
// the properties below are optional
Port = 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"
gatewayRouteTargetProperty := &GatewayRouteTargetProperty{
VirtualService: &GatewayRouteVirtualServiceProperty{
VirtualServiceName: jsii.String("virtualServiceName"),
},
// the properties below are optional
Port: jsii.Number(123),
}
Properties
The port number of the gateway route target.
virtualServiceIResolvable | CfnGatewayRoute.virtual_servicetyping.Union[IResolvable, GatewayRouteVirtualServiceProperty]virtualServiceIResolvableVirtualServiceIResolvableVirtualServiceinterface{} required #An object that represents a virtual service gateway route target.