interface AwsCloudMapServiceDiscoveryProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppMesh.CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#CfnVirtualNode_AwsCloudMapServiceDiscoveryProperty |
Java | software.amazon.awscdk.services.appmesh.CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty |
Python | aws_cdk.aws_appmesh.CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty |
TypeScript | aws-cdk-lib » aws_appmesh » CfnVirtualNode » AwsCloudMapServiceDiscoveryProperty |
An object that represents the AWS Cloud Map service discovery information for your virtual node.
AWS Cloud Map is not available in the eu-south-1 Region.
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 awsCloudMapServiceDiscoveryProperty: appmesh.CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty = {
namespaceName: 'namespaceName',
serviceName: 'serviceName',
// the properties below are optional
attributes: [{
key: 'key',
value: 'value',
}],
ipPreference: 'ipPreference',
};
Properties
Name | Type | Description |
---|---|---|
namespace | string | The HTTP name of the AWS Cloud Map namespace to use. |
service | string | The name of the AWS Cloud Map service to use. |
attributes? | IResolvable | IResolvable | Aws [] | A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. |
ip | string | The preferred IP version that this virtual node uses. |
namespaceName
Type:
string
The HTTP name of the AWS Cloud Map namespace to use.
serviceName
Type:
string
The name of the AWS Cloud Map service to use.
attributes?
Type:
IResolvable
|
IResolvable
|
Aws
[]
(optional)
A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance.
Only instances that match all of the specified key/value pairs will be returned.
ipPreference?
Type:
string
(optional)
The preferred IP version that this virtual node uses.
Setting the IP preference on the virtual node only overrides the IP preference set for the mesh on this specific node.