aws-cdk-lib.aws_appmesh.CfnVirtualServiceProps

interface CfnVirtualServiceProps

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

Properties for defining a CfnVirtualService.

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 cfnVirtualServiceProps: appmesh.CfnVirtualServiceProps = {
  meshName: 'meshName',
  spec: {
    provider: {
      virtualNode: {
        virtualNodeName: 'virtualNodeName',
      },
      virtualRouter: {
        virtualRouterName: 'virtualRouterName',
      },
    },
  },
  virtualServiceName: 'virtualServiceName',

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

Properties

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

meshName

Type: string

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


spec

Type: IResolvable | VirtualServiceSpecProperty

The virtual service specification to apply.


virtualServiceName

Type: string

The name to use for the virtual service.


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 service 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.