aws-cdk-lib.aws_appmesh.VirtualNodeBaseProps

interface VirtualNodeBaseProps

LanguageType name
.NETAmazon.CDK.AWS.AppMesh.VirtualNodeBaseProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#VirtualNodeBaseProps
Javasoftware.amazon.awscdk.services.appmesh.VirtualNodeBaseProps
Pythonaws_cdk.aws_appmesh.VirtualNodeBaseProps
TypeScript (source)aws-cdk-lib » aws_appmesh » VirtualNodeBaseProps

Basic configuration properties for a VirtualNode.

Example

const vpc = new ec2.Vpc(this, 'vpc');
const namespace = new cloudmap.PrivateDnsNamespace(this, 'test-namespace', {
    vpc,
    name: 'domain.local',
});
const service = namespace.createService('Svc');

declare const mesh: appmesh.Mesh;
const node = mesh.addVirtualNode('virtual-node', {
  serviceDiscovery: appmesh.ServiceDiscovery.cloudMap(service),
  listeners: [appmesh.VirtualNodeListener.http({
    port: 8081,
    healthCheck: appmesh.HealthCheck.http({
      healthyThreshold: 3,
      interval: Duration.seconds(5), // minimum
      path: '/health-check-path',
      timeout: Duration.seconds(2), // minimum
      unhealthyThreshold: 2,
    }),
  })],
  accessLog: appmesh.AccessLog.fromFilePath('/dev/stdout'),
});

Properties

NameTypeDescription
accessLog?AccessLogAccess Logging Configuration for the virtual node.
backendDefaults?BackendDefaultsDefault Configuration Virtual Node uses to communicate with Virtual Service.
backends?Backend[]Virtual Services that this is node expected to send outbound traffic to.
listeners?VirtualNodeListener[]Initial listener for the virtual node.
serviceDiscovery?ServiceDiscoveryDefines how upstream clients will discover this VirtualNode.
virtualNodeName?stringThe name of the VirtualNode.

accessLog?

Type: AccessLog (optional, default: No access logging)

Access Logging Configuration for the virtual node.


backendDefaults?

Type: BackendDefaults (optional, default: No Config)

Default Configuration Virtual Node uses to communicate with Virtual Service.


backends?

Type: Backend[] (optional, default: No backends)

Virtual Services that this is node expected to send outbound traffic to.


listeners?

Type: VirtualNodeListener[] (optional, default: No listeners)

Initial listener for the virtual node.


serviceDiscovery?

Type: ServiceDiscovery (optional, default: No Service Discovery)

Defines how upstream clients will discover this VirtualNode.


virtualNodeName?

Type: string (optional, default: A name is automatically determined)

The name of the VirtualNode.