VirtualServiceBackendProperty Struct
An object that represents a virtual service backend for a virtual node.
Example
ts
// 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 virtualServiceBackendProperty: appmesh.CfnVirtualNode.VirtualServiceBackendProperty = {
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],
},
},
};
Properties
clientPolicyoptionalIResolvable | CfnVirtualNode.ClientPolicyPropertyclient_policyoptionaltyping.Union[IResolvable, ClientPolicyProperty]clientPolicyoptionalIResolvableClientPolicyoptionalIResolvableClientPolicyoptionalinterface{}#A reference to an object that represents the client policy for a backend.
virtualServiceNamestringvirtual_service_namestrvirtualServiceNameStringVirtualServiceNamestringVirtualServiceName*stringrequired#The name of the virtual service that is acting as a virtual node backend.
notes
App Mesh doesn't validate the existence of those virtual services specified in backends. This is to prevent a cyclic dependency between virtual nodes and virtual services creation. Make sure the virtual service name is correct. The virtual service can be created afterwards if it doesn't already exist.