aws-cdk-lib.aws_appmesh.VirtualNodeListenerConfig

interface VirtualNodeListenerConfig

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

Obtainable from VirtualNodeListener.bind()

Properties for a VirtualNode listener.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const virtualNodeListenerConfig: appmesh.VirtualNodeListenerConfig = {
  listener: {
    portMapping: {
      port: 123,
      protocol: 'protocol',
    },

    // the properties below are optional
    connectionPool: {
      grpc: {
        maxRequests: 123,
      },
      http: {
        maxConnections: 123,

        // the properties below are optional
        maxPendingRequests: 123,
      },
      http2: {
        maxRequests: 123,
      },
      tcp: {
        maxConnections: 123,
      },
    },
    healthCheck: {
      healthyThreshold: 123,
      intervalMillis: 123,
      protocol: 'protocol',
      timeoutMillis: 123,
      unhealthyThreshold: 123,

      // the properties below are optional
      path: 'path',
      port: 123,
    },
    outlierDetection: {
      baseEjectionDuration: {
        unit: 'unit',
        value: 123,
      },
      interval: {
        unit: 'unit',
        value: 123,
      },
      maxEjectionPercent: 123,
      maxServerErrors: 123,
    },
    timeout: {
      grpc: {
        idle: {
          unit: 'unit',
          value: 123,
        },
        perRequest: {
          unit: 'unit',
          value: 123,
        },
      },
      http: {
        idle: {
          unit: 'unit',
          value: 123,
        },
        perRequest: {
          unit: 'unit',
          value: 123,
        },
      },
      http2: {
        idle: {
          unit: 'unit',
          value: 123,
        },
        perRequest: {
          unit: 'unit',
          value: 123,
        },
      },
      tcp: {
        idle: {
          unit: 'unit',
          value: 123,
        },
      },
    },
    tls: {
      certificate: {
        acm: {
          certificateArn: 'certificateArn',
        },
        file: {
          certificateChain: 'certificateChain',
          privateKey: 'privateKey',
        },
        sds: {
          secretName: 'secretName',
        },
      },
      mode: 'mode',

      // the properties below are optional
      validation: {
        trust: {
          file: {
            certificateChain: 'certificateChain',
          },
          sds: {
            secretName: 'secretName',
          },
        },

        // the properties below are optional
        subjectAlternativeNames: {
          match: {
            exact: ['exact'],
          },
        },
      },
    },
  },
};

Properties

NameTypeDescription
listenerListenerPropertySingle listener config for a VirtualNode.

listener

Type: ListenerProperty

Single listener config for a VirtualNode.