Class Mesh
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.appmesh.Mesh
- All Implemented Interfaces:
IConstruct,IDependable,IResource,IMesh,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.128Z")
@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();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.appmesh.IMesh
IMesh.Jsii$Default, IMesh.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a VirtualGateway to the Mesh.addVirtualGateway(String id, VirtualGatewayBaseProps props) Adds a VirtualGateway to the Mesh.addVirtualNode(String id) Adds a VirtualNode to the Mesh.addVirtualNode(String id, VirtualNodeBaseProps props) Adds a VirtualNode to the Mesh.Adds a VirtualRouter to the Mesh with the given id and props.addVirtualRouter(String id, VirtualRouterBaseProps props) Adds a VirtualRouter to the Mesh with the given id and props.static IMeshfromMeshArn(software.constructs.Construct scope, String id, String meshArn) Import an existing mesh by arn.static IMeshfromMeshName(software.constructs.Construct scope, String id, String meshName) Import an existing mesh by name.The Amazon Resource Name (ARN) of the AppMesh mesh.The name of the AppMesh mesh.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourceMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awscdk.core.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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
- 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:
addVirtualGatewayin interfaceIMesh- Parameters:
id- This parameter is required.props-
-
addVirtualGateway
Adds a VirtualGateway to the Mesh.- Specified by:
addVirtualGatewayin interfaceIMesh- 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:
addVirtualNodein interfaceIMesh- Parameters:
id- This parameter is required.props-
-
addVirtualNode
Adds a VirtualNode to the Mesh.- Specified by:
addVirtualNodein interfaceIMesh- 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:
addVirtualRouterin interfaceIMesh- Parameters:
id- This parameter is required.props-
-
addVirtualRouter
Adds a VirtualRouter to the Mesh with the given id and props.- Specified by:
addVirtualRouterin interfaceIMesh- Parameters:
id- This parameter is required.
-
getMeshArn
The Amazon Resource Name (ARN) of the AppMesh mesh.- Specified by:
getMeshArnin interfaceIMesh
-
getMeshName
The name of the AppMesh mesh.- Specified by:
getMeshNamein interfaceIMesh
-