Show / Hide Table of Contents

Class Mesh

Define a new AppMesh mesh.

Inheritance
object
Resource
Mesh
Implements
IMesh
IResource
IConstruct
IDependable
IEnvironmentAware
Inherited Members
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.Env
Resource.PhysicalName
Resource.Stack
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

string

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

string

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

string

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

VirtualGateway

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

VirtualNode

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

VirtualRouter

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
scope Construct
id string
meshArn string
Returns

IMesh

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
scope Construct
id string
meshName string
Returns

IMesh

Remarks

See: https://docs.aws.amazon.com/app-mesh/latest/userguide/meshes.html

ExampleMetadata: infused

Implements

IMesh
IResource
Constructs.IConstruct
Constructs.IDependable
IEnvironmentAware
Back to top Generated by DocFX