@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.566Z") @Stability(value=Stable) public class Mesh extends Resource implements IMesh
Example:
// Example automatically generated from non-compiling source. May contain errors.
// 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();
| Modifier and Type | Class and Description |
|---|---|
static class |
Mesh.Builder
A fluent builder for
Mesh. |
software.amazon.jsii.JsiiObject.InitializationModeIMesh.Jsii$Default, IMesh.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Mesh(software.constructs.Construct scope,
String id) |
|
Mesh(software.constructs.Construct scope,
String id,
MeshProps props) |
protected |
Mesh(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Mesh(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
VirtualGateway |
addVirtualGateway(String id)
Adds a VirtualGateway to the Mesh.
|
VirtualGateway |
addVirtualGateway(String id,
VirtualGatewayBaseProps props)
Adds a VirtualGateway to the Mesh.
|
VirtualNode |
addVirtualNode(String id)
Adds a VirtualNode to the Mesh.
|
VirtualNode |
addVirtualNode(String id,
VirtualNodeBaseProps props)
Adds a VirtualNode to the Mesh.
|
VirtualRouter |
addVirtualRouter(String id)
Adds a VirtualRouter to the Mesh with the given id and props.
|
VirtualRouter |
addVirtualRouter(String id,
VirtualRouterBaseProps props)
Adds a VirtualRouter to the Mesh with the given id and props.
|
static IMesh |
fromMeshArn(software.constructs.Construct scope,
String id,
String meshArn)
Import an existing mesh by arn.
|
static IMesh |
fromMeshName(software.constructs.Construct scope,
String id,
String meshName)
Import an existing mesh by name.
|
String |
getMeshArn()
The Amazon Resource Name (ARN) of the AppMesh mesh.
|
String |
getMeshName()
The name of the AppMesh mesh.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected Mesh(software.amazon.jsii.JsiiObjectRef objRef)
protected Mesh(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public Mesh(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
MeshProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Stable)
public Mesh(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Stable) @NotNull public static IMesh fromMeshArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String meshArn)
scope - This parameter is required.id - This parameter is required.meshArn - This parameter is required.@Stability(value=Stable) @NotNull public static IMesh fromMeshName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String meshName)
scope - This parameter is required.id - This parameter is required.meshName - This parameter is required.@Stability(value=Stable) @NotNull public VirtualGateway addVirtualGateway(@NotNull String id, @Nullable VirtualGatewayBaseProps props)
addVirtualGateway in interface IMeshid - This parameter is required.props - @Stability(value=Stable) @NotNull public VirtualGateway addVirtualGateway(@NotNull String id)
addVirtualGateway in interface IMeshid - This parameter is required.@Stability(value=Stable) @NotNull public VirtualNode addVirtualNode(@NotNull String id, @Nullable VirtualNodeBaseProps props)
addVirtualNode in interface IMeshid - This parameter is required.props - @Stability(value=Stable) @NotNull public VirtualNode addVirtualNode(@NotNull String id)
addVirtualNode in interface IMeshid - This parameter is required.@Stability(value=Stable) @NotNull public VirtualRouter addVirtualRouter(@NotNull String id, @Nullable VirtualRouterBaseProps props)
addVirtualRouter in interface IMeshid - This parameter is required.props - @Stability(value=Stable) @NotNull public VirtualRouter addVirtualRouter(@NotNull String id)
addVirtualRouter in interface IMeshid - This parameter is required.@Stability(value=Stable) @NotNull public String getMeshArn()
getMeshArn in interface IMesh@Stability(value=Stable) @NotNull public String getMeshName()
getMeshName in interface IMeshCopyright © 2022. All rights reserved.