Class Mesh
Define a new AppMesh mesh.
Inherited Members
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class Mesh : Resource, IMesh, IResource
Syntax (vb)
Public Class Mesh
Inherits Resource
Implements IMesh, IResource
Remarks
See: https://docs.aws.amazon.com/app-mesh/latest/userguide/meshes.html
ExampleMetadata: infused
Examples
// This is the ARN for the mesh from different AWS IAM account ID.
// Ensure mesh is properly shared with your account. For more details, see: https://github.com/aws/aws-cdk/issues/15404
var arn = "arn:aws:appmesh:us-east-1:123456789012:mesh/testMesh";
var sharedMesh = Mesh.FromMeshArn(this, "imported-mesh", arn);
// This VirtualNode resource can communicate with the resources in the mesh from different AWS IAM account ID.
// This VirtualNode resource can communicate with the resources in the mesh from different AWS IAM account ID.
new VirtualNode(this, "test-node", new VirtualNodeProps {
Mesh = sharedMesh
});
Synopsis
Constructors
Mesh(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Mesh(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Mesh(Construct, String, IMeshProps) |
Properties
MeshArn | The Amazon Resource Name (ARN) of the AppMesh mesh. |
MeshName | The name of the AppMesh mesh. |
Methods
AddVirtualGateway(String, IVirtualGatewayBaseProps) | Adds a VirtualGateway to the Mesh. |
AddVirtualNode(String, IVirtualNodeBaseProps) | Adds a VirtualNode to the Mesh. |
AddVirtualRouter(String, IVirtualRouterBaseProps) | Adds a VirtualRouter to the Mesh with the given id and props. |
FromMeshArn(Construct, String, String) | Import an existing mesh by arn. |
FromMeshName(Construct, String, String) | Import an existing mesh by name. |
Constructors
Mesh(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Mesh(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Mesh(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Mesh(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Mesh(Construct, String, IMeshProps)
public Mesh(Construct scope, string id, IMeshProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
- props IMeshProps
Properties
MeshArn
The Amazon Resource Name (ARN) of the AppMesh mesh.
public virtual string MeshArn { get; }
Property Value
System.String
MeshName
The name of the AppMesh mesh.
public virtual string MeshName { get; }
Property Value
System.String
Methods
AddVirtualGateway(String, IVirtualGatewayBaseProps)
Adds a VirtualGateway to the Mesh.
public virtual VirtualGateway AddVirtualGateway(string id, IVirtualGatewayBaseProps props = null)
Parameters
- id System.String
- props IVirtualGatewayBaseProps
Returns
AddVirtualNode(String, IVirtualNodeBaseProps)
Adds a VirtualNode to the Mesh.
public virtual VirtualNode AddVirtualNode(string id, IVirtualNodeBaseProps props = null)
Parameters
- id System.String
- props IVirtualNodeBaseProps
Returns
AddVirtualRouter(String, IVirtualRouterBaseProps)
Adds a VirtualRouter to the Mesh with the given id and props.
public virtual VirtualRouter AddVirtualRouter(string id, IVirtualRouterBaseProps props = null)
Parameters
- id System.String
- props IVirtualRouterBaseProps
Returns
FromMeshArn(Construct, String, String)
Import an existing mesh by arn.
public static IMesh FromMeshArn(Construct scope, string id, string meshArn)
Parameters
- scope Constructs.Construct
- id System.String
- meshArn System.String
Returns
FromMeshName(Construct, String, String)
Import an existing mesh by name.
public static IMesh FromMeshName(Construct scope, string id, string meshName)
Parameters
- scope Constructs.Construct
- id System.String
- meshName System.String
Returns