Class VirtualRouter
Inherited Members
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.AWS.AppMesh.dll
Syntax (csharp)
public class VirtualRouter : Resource, IVirtualRouter, IResource, IConstruct, IDependable
Syntax (vb)
Public Class VirtualRouter
Inherits Resource
Implements IVirtualRouter, IResource, IConstruct, IDependable
Remarks
ExampleMetadata: infused
Examples
Mesh mesh;
var router = mesh.AddVirtualRouter("router", new VirtualRouterBaseProps {
Listeners = new [] { VirtualRouterListener.Http(8080) }
});
Synopsis
Constructors
VirtualRouter(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
VirtualRouter(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
VirtualRouter(Construct, String, IVirtualRouterProps) |
Properties
Mesh | The Mesh which the VirtualRouter belongs to. |
VirtualRouterArn | The Amazon Resource Name (ARN) for the VirtualRouter. |
VirtualRouterName | The name of the VirtualRouter. |
Methods
AddRoute(String, IRouteBaseProps) | Add a single route to the router. |
FromVirtualRouterArn(Construct, String, String) | Import an existing VirtualRouter given an ARN. |
FromVirtualRouterAttributes(Construct, String, IVirtualRouterAttributes) | Import an existing VirtualRouter given attributes. |
Constructors
VirtualRouter(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected VirtualRouter(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
VirtualRouter(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected VirtualRouter(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
VirtualRouter(Construct, String, IVirtualRouterProps)
public VirtualRouter(Construct scope, string id, IVirtualRouterProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IVirtualRouterProps
Properties
Mesh
The Mesh which the VirtualRouter belongs to.
public virtual IMesh Mesh { get; }
Property Value
VirtualRouterArn
The Amazon Resource Name (ARN) for the VirtualRouter.
public virtual string VirtualRouterArn { get; }
Property Value
System.String
VirtualRouterName
The name of the VirtualRouter.
public virtual string VirtualRouterName { get; }
Property Value
System.String
Methods
AddRoute(String, IRouteBaseProps)
Add a single route to the router.
public virtual Route AddRoute(string id, IRouteBaseProps props)
Parameters
- id System.String
- props IRouteBaseProps
Returns
FromVirtualRouterArn(Construct, String, String)
Import an existing VirtualRouter given an ARN.
public static IVirtualRouter FromVirtualRouterArn(Construct scope, string id, string virtualRouterArn)
Parameters
- scope Constructs.Construct
- id System.String
- virtualRouterArn System.String
Returns
FromVirtualRouterAttributes(Construct, String, IVirtualRouterAttributes)
Import an existing VirtualRouter given attributes.
public static IVirtualRouter FromVirtualRouterAttributes(Construct scope, string id, IVirtualRouterAttributes attrs)
Parameters
- scope Constructs.Construct
- id System.String
- attrs IVirtualRouterAttributes
Returns