Class Route
Route represents a new or existing route attached to a VirtualRouter and Mesh.
Inherited Members
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class Route : Resource, IRoute, IResource
Syntax (vb)
Public Class Route
Inherits Resource
Implements IRoute, IResource
Remarks
See: https://docs.aws.amazon.com/app-mesh/latest/userguide/routes.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;
Mesh mesh;
RouteSpec routeSpec;
VirtualRouter virtualRouter;
var route = new Route(this, "MyRoute", new RouteProps {
Mesh = mesh,
RouteSpec = routeSpec,
VirtualRouter = virtualRouter,
// the properties below are optional
RouteName = "routeName"
});
Synopsis
Constructors
Route(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Route(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Route(Construct, String, IRouteProps) |
Properties
RouteArn | The Amazon Resource Name (ARN) for the route. |
RouteName | The name of the Route. |
VirtualRouter | The VirtualRouter the Route belongs to. |
Methods
FromRouteArn(Construct, String, String) | Import an existing Route given an ARN. |
FromRouteAttributes(Construct, String, IRouteAttributes) | Import an existing Route given attributes. |
Constructors
Route(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Route(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Route(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Route(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Route(Construct, String, IRouteProps)
public Route(Construct scope, string id, IRouteProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IRouteProps
Properties
RouteArn
The Amazon Resource Name (ARN) for the route.
public virtual string RouteArn { get; }
Property Value
System.String
RouteName
The name of the Route.
public virtual string RouteName { get; }
Property Value
System.String
VirtualRouter
The VirtualRouter the Route belongs to.
public virtual IVirtualRouter VirtualRouter { get; }
Property Value
Methods
FromRouteArn(Construct, String, String)
Import an existing Route given an ARN.
public static IRoute FromRouteArn(Construct scope, string id, string routeArn)
Parameters
- scope Constructs.Construct
- id System.String
- routeArn System.String
Returns
FromRouteAttributes(Construct, String, IRouteAttributes)
Import an existing Route given attributes.
public static IRoute FromRouteAttributes(Construct scope, string id, IRouteAttributes attrs)
Parameters
- scope Constructs.Construct
- id System.String
- attrs IRouteAttributes
Returns