interface CfnVirtualServiceProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppMesh.CfnVirtualServiceProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#CfnVirtualServiceProps |
![]() | software.amazon.awscdk.services.appmesh.CfnVirtualServiceProps |
![]() | aws_cdk.aws_appmesh.CfnVirtualServiceProps |
![]() | 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
Name | Type | Description |
---|---|---|
mesh | string | The name of the service mesh to create the virtual service in. |
spec | IResolvable | Virtual | The virtual service specification to apply. |
virtual | string | The name to use for the virtual service. |
mesh | string | The AWS IAM account ID of the service mesh owner. |
tags? | Cfn [] | 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
|
Virtual
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:
Cfn
[]
(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.