java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.appmesh.Mesh
All Implemented Interfaces:
IResource, IMesh, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:12.586Z") @Stability(Stable) public class Mesh extends Resource implements IMesh
Define a new AppMesh mesh.

Example:

 // 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
 String arn = "arn:aws:appmesh:us-east-1:123456789012:mesh/testMesh";
 IMesh 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.
 VirtualNode.Builder.create(this, "test-node")
         .mesh(sharedMesh)
         .build();
 

See Also:
  • Constructor Details

    • Mesh

      protected Mesh(software.amazon.jsii.JsiiObjectRef objRef)
    • Mesh

      protected Mesh(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Mesh

      @Stability(Stable) public Mesh(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable MeshProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props -
    • Mesh

      @Stability(Stable) public Mesh(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
  • Method Details

    • fromMeshArn

      @Stability(Stable) @NotNull public static IMesh fromMeshArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String meshArn)
      Import an existing mesh by arn.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      meshArn - This parameter is required.
    • fromMeshName

      @Stability(Stable) @NotNull public static IMesh fromMeshName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String meshName)
      Import an existing mesh by name.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      meshName - This parameter is required.
    • addVirtualGateway

      @Stability(Stable) @NotNull public VirtualGateway addVirtualGateway(@NotNull String id, @Nullable VirtualGatewayBaseProps props)
      Adds a VirtualGateway to the Mesh.

      Specified by:
      addVirtualGateway in interface IMesh
      Parameters:
      id - This parameter is required.
      props -
    • addVirtualGateway

      @Stability(Stable) @NotNull public VirtualGateway addVirtualGateway(@NotNull String id)
      Adds a VirtualGateway to the Mesh.

      Specified by:
      addVirtualGateway in interface IMesh
      Parameters:
      id - This parameter is required.
    • addVirtualNode

      @Stability(Stable) @NotNull public VirtualNode addVirtualNode(@NotNull String id, @Nullable VirtualNodeBaseProps props)
      Adds a VirtualNode to the Mesh.

      Specified by:
      addVirtualNode in interface IMesh
      Parameters:
      id - This parameter is required.
      props -
    • addVirtualNode

      @Stability(Stable) @NotNull public VirtualNode addVirtualNode(@NotNull String id)
      Adds a VirtualNode to the Mesh.

      Specified by:
      addVirtualNode in interface IMesh
      Parameters:
      id - This parameter is required.
    • addVirtualRouter

      @Stability(Stable) @NotNull public VirtualRouter addVirtualRouter(@NotNull String id, @Nullable VirtualRouterBaseProps props)
      Adds a VirtualRouter to the Mesh with the given id and props.

      Specified by:
      addVirtualRouter in interface IMesh
      Parameters:
      id - This parameter is required.
      props -
    • addVirtualRouter

      @Stability(Stable) @NotNull public VirtualRouter addVirtualRouter(@NotNull String id)
      Adds a VirtualRouter to the Mesh with the given id and props.

      Specified by:
      addVirtualRouter in interface IMesh
      Parameters:
      id - This parameter is required.
    • getMeshArn

      @Stability(Stable) @NotNull public String getMeshArn()
      The Amazon Resource Name (ARN) of the AppMesh mesh.
      Specified by:
      getMeshArn in interface IMesh
    • getMeshName

      @Stability(Stable) @NotNull public String getMeshName()
      The name of the AppMesh mesh.
      Specified by:
      getMeshName in interface IMesh