interface VirtualNodeBaseProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppMesh.VirtualNodeBaseProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#VirtualNodeBaseProps |
![]() | software.amazon.awscdk.services.appmesh.VirtualNodeBaseProps |
![]() | aws_cdk.aws_appmesh.VirtualNodeBaseProps |
![]() | 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
Name | Type | Description |
---|---|---|
access | Access | Access Logging Configuration for the virtual node. |
backend | Backend | Default Configuration Virtual Node uses to communicate with Virtual Service. |
backends? | Backend [] | Virtual Services that this is node expected to send outbound traffic to. |
listeners? | Virtual [] | Initial listener for the virtual node. |
service | Service | Defines how upstream clients will discover this VirtualNode. |
virtual | string | The name of the VirtualNode. |
accessLog?
Type:
Access
(optional, default: No access logging)
Access Logging Configuration for the virtual node.
backendDefaults?
Type:
Backend
(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:
Virtual
[]
(optional, default: No listeners)
Initial listener for the virtual node.
serviceDiscovery?
Type:
Service
(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.