aws-cdk-lib.aws_appmesh.CfnVirtualNodeProps

interface CfnVirtualNodeProps

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

Properties for defining a CfnVirtualNode.

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 cfnVirtualNodeProps: appmesh.CfnVirtualNodeProps = {
  meshName: 'meshName',
  spec: {
    backendDefaults: {
      clientPolicy: {
        tls: {
          validation: {
            trust: {
              acm: {
                certificateAuthorityArns: ['certificateAuthorityArns'],
              },
              file: {
                certificateChain: 'certificateChain',
              },
              sds: {
                secretName: 'secretName',
              },
            },

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

          // the properties below are optional
          certificate: {
            file: {
              certificateChain: 'certificateChain',
              privateKey: 'privateKey',
            },
            sds: {
              secretName: 'secretName',
            },
          },
          enforce: false,
          ports: [123],
        },
      },
    },
    backends: [{
      virtualService: {
        virtualServiceName: 'virtualServiceName',

        // the properties below are optional
        clientPolicy: {
          tls: {
            validation: {
              trust: {
                acm: {
                  certificateAuthorityArns: ['certificateAuthorityArns'],
                },
                file: {
                  certificateChain: 'certificateChain',
                },
                sds: {
                  secretName: 'secretName',
                },
              },

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

            // the properties below are optional
            certificate: {
              file: {
                certificateChain: 'certificateChain',
                privateKey: 'privateKey',
              },
              sds: {
                secretName: 'secretName',
              },
            },
            enforce: false,
            ports: [123],
          },
        },
      },
    }],
    listeners: [{
      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'],
            },
          },
        },
      },
    }],
    logging: {
      accessLog: {
        file: {
          path: 'path',

          // the properties below are optional
          format: {
            json: [{
              key: 'key',
              value: 'value',
            }],
            text: 'text',
          },
        },
      },
    },
    serviceDiscovery: {
      awsCloudMap: {
        namespaceName: 'namespaceName',
        serviceName: 'serviceName',

        // the properties below are optional
        attributes: [{
          key: 'key',
          value: 'value',
        }],
        ipPreference: 'ipPreference',
      },
      dns: {
        hostname: 'hostname',

        // the properties below are optional
        ipPreference: 'ipPreference',
        responseType: 'responseType',
      },
    },
  },

  // the properties below are optional
  meshOwner: 'meshOwner',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  virtualNodeName: 'virtualNodeName',
};

Properties

NameTypeDescription
meshNamestringThe name of the service mesh to create the virtual node in.
specIResolvable | VirtualNodeSpecPropertyThe virtual node specification to apply.
meshOwner?stringThe AWS IAM account ID of the service mesh owner.
tags?CfnTag[]Optional metadata that you can apply to the virtual node to assist with categorization and organization.
virtualNodeName?stringThe name to use for the virtual node.

meshName

Type: string

The name of the service mesh to create the virtual node in.


spec

Type: IResolvable | VirtualNodeSpecProperty

The virtual node specification to apply.


meshOwner?

Type: string (optional)

The AWS IAM account ID of the service mesh owner.

If the account ID is not your own, then the account that you specify must share the mesh with your account before you can create the resource in the service mesh. For more information about mesh sharing, see Working with shared meshes .


tags?

Type: CfnTag[] (optional)

Optional metadata that you can apply to the virtual node to assist with categorization and organization.

Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.


virtualNodeName?

Type: string (optional)

The name to use for the virtual node.