Interface CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty.Jsii$Proxy
Enclosing class:
CfnVirtualNode

@Stability(Stable) public static interface CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.appmesh.*;
 AwsCloudMapServiceDiscoveryProperty awsCloudMapServiceDiscoveryProperty = AwsCloudMapServiceDiscoveryProperty.builder()
         .namespaceName("namespaceName")
         .serviceName("serviceName")
         // the properties below are optional
         .attributes(List.of(AwsCloudMapInstanceAttributeProperty.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .ipPreference("ipPreference")
         .build();
 
  • Method Details

    • getNamespaceName

      @Stability(Stable) @NotNull String getNamespaceName()
      The HTTP name of the AWS Cloud Map namespace to use.
    • getServiceName

      @Stability(Stable) @NotNull String getServiceName()
      The name of the AWS Cloud Map service to use.
    • getAttributes

      @Stability(Stable) @Nullable default Object getAttributes()
      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.

    • getIpPreference

      @Stability(Stable) @Nullable default String getIpPreference()
      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.

    • builder

      Returns:
      a CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty.Builder of CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty