ServiceDiscoveryConfig

class aws_cdk.aws_appmesh.ServiceDiscoveryConfig(*, cloudmap=None, dns=None)

Bases: object

Properties for VirtualNode Service Discovery.

Parameters:
ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_appmesh as appmesh

service_discovery_config = appmesh.ServiceDiscoveryConfig(
    cloudmap=appmesh.CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty(
        namespace_name="namespaceName",
        service_name="serviceName",

        # the properties below are optional
        attributes=[appmesh.CfnVirtualNode.AwsCloudMapInstanceAttributeProperty(
            key="key",
            value="value"
        )],
        ip_preference="ipPreference"
    ),
    dns=appmesh.CfnVirtualNode.DnsServiceDiscoveryProperty(
        hostname="hostname",

        # the properties below are optional
        ip_preference="ipPreference",
        response_type="responseType"
    )
)

Attributes

cloudmap

Cloud Map based Service Discovery.

Default:
  • no Cloud Map based service discovery

dns

DNS based Service Discovery.

Default:
  • no DNS based service discovery