AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Creates a virtual node within a service mesh.

A virtual node acts as a logical pointer to a particular task group, such as an Amazon ECS service or a Kubernetes deployment. When you create a virtual node, you can specify the service discovery information for your task group, and whether the proxy running in a task group will communicate with other proxies using Transport Layer Security (TLS).

You define a listener for any inbound traffic that your virtual node expects. Any virtual service that your virtual node expects to communicate to is specified as a backend.

The response metadata for your new virtual node contains the arn that is associated with the virtual node. Set this value to the full ARN; for example, arn:aws:appmesh:us-west-2:123456789012:myMesh/default/virtualNode/myApp) as the APPMESH_RESOURCE_ARN environment variable for your task group's Envoy proxy container in your task definition or pod spec. This is then mapped to the node.id and node.cluster Envoy parameters.

By default, App Mesh uses the name of the resource you specified in APPMESH_RESOURCE_ARN when Envoy is referring to itself in metrics and traces. You can override this behavior by setting the APPMESH_RESOURCE_CLUSTER environment variable with your own name.

For more information about virtual nodes, see Virtual nodes. You must be using 1.15.0 or later of the Envoy image when setting these variables. For more information aboutApp Mesh Envoy variables, see Envoy image in the App Mesh User Guide.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to CreateVirtualNodeAsync.

Namespace: Amazon.AppMesh
Assembly: AWSSDK.AppMesh.dll
Version: 3.x.y.z

Syntax

C#
public virtual CreateVirtualNodeResponse CreateVirtualNode(
         CreateVirtualNodeRequest request
)

Parameters

request
Type: Amazon.AppMesh.Model.CreateVirtualNodeRequest

Container for the necessary parameters to execute the CreateVirtualNode service method.

Return Value


The response from the CreateVirtualNode service method, as returned by AppMesh.

Exceptions

ExceptionCondition
BadRequestException The request syntax was malformed. Check your request syntax and try again.
ConflictException The request contains a client token that was used for a previous update resource call with different specifications. Try the request again with a new client token.
ForbiddenException You don't have permissions to perform this action.
InternalServerErrorException The request processing has failed because of an unknown error, exception, or failure.
LimitExceededException You have exceeded a service limit for your account. For more information, see Service Limits in the App Mesh User Guide.
NotFoundException The specified resource doesn't exist. Check your request syntax and try again.
ServiceUnavailableException The request has failed due to a temporary failure of the service.
TooManyRequestsException The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best results, use an increasing or variable sleep interval between requests.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

See Also