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, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class Mesh Inherits Resource Implements IMesh, IResource, IConstruct, IDependable, IEnvironmentAware
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(Construct, string, IMeshProps?) | Define a new AppMesh mesh. |
Properties
| MeshArn | The Amazon Resource Name (ARN) of the AppMesh mesh. |
| MeshName | The name of the AppMesh mesh. |
| PROPERTY_INJECTION_ID | Uniquely identifies this class. |
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(Construct, string, IMeshProps?)
Define a new AppMesh mesh.
public Mesh(Construct scope, string id, IMeshProps? props = null)
Parameters
- scope Construct
- id string
- props IMeshProps
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
});
Properties
MeshArn
The Amazon Resource Name (ARN) of the AppMesh mesh.
public virtual string MeshArn { get; }
Property Value
Remarks
See: https://docs.aws.amazon.com/app-mesh/latest/userguide/meshes.html
ExampleMetadata: infused
MeshName
The name of the AppMesh mesh.
public virtual string MeshName { get; }
Property Value
Remarks
See: https://docs.aws.amazon.com/app-mesh/latest/userguide/meshes.html
ExampleMetadata: infused
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
See: https://docs.aws.amazon.com/app-mesh/latest/userguide/meshes.html
ExampleMetadata: infused
Methods
AddVirtualGateway(string, IVirtualGatewayBaseProps?)
Adds a VirtualGateway to the Mesh.
public virtual VirtualGateway AddVirtualGateway(string id, IVirtualGatewayBaseProps? props = null)
Parameters
- id string
- props IVirtualGatewayBaseProps
Returns
Remarks
See: https://docs.aws.amazon.com/app-mesh/latest/userguide/meshes.html
ExampleMetadata: infused
AddVirtualNode(string, IVirtualNodeBaseProps?)
Adds a VirtualNode to the Mesh.
public virtual VirtualNode AddVirtualNode(string id, IVirtualNodeBaseProps? props = null)
Parameters
- id string
- props IVirtualNodeBaseProps
Returns
Remarks
See: https://docs.aws.amazon.com/app-mesh/latest/userguide/meshes.html
ExampleMetadata: infused
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 string
- props IVirtualRouterBaseProps
Returns
Remarks
See: https://docs.aws.amazon.com/app-mesh/latest/userguide/meshes.html
ExampleMetadata: infused
FromMeshArn(Construct, string, string)
Import an existing mesh by arn.
public static IMesh FromMeshArn(Construct scope, string id, string meshArn)
Parameters
Returns
Remarks
See: https://docs.aws.amazon.com/app-mesh/latest/userguide/meshes.html
ExampleMetadata: infused
FromMeshName(Construct, string, string)
Import an existing mesh by name.
public static IMesh FromMeshName(Construct scope, string id, string meshName)
Parameters
Returns
Remarks
See: https://docs.aws.amazon.com/app-mesh/latest/userguide/meshes.html
ExampleMetadata: infused