ServiceDiscoveryConfig

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

Bases: object

Properties for VirtualNode Service Discovery.

Parameters

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"
        )]
    ),
    dns=appmesh.CfnVirtualNode.DnsServiceDiscoveryProperty(
        hostname="hostname",

        # the properties below are optional
        response_type="responseType"
    )
)

Attributes

cloudmap

Cloud Map based Service Discovery.

Default
  • no Cloud Map based service discovery

Return type

Optional[AwsCloudMapServiceDiscoveryProperty]

dns

DNS based Service Discovery.

Default
  • no DNS based service discovery

Return type

Optional[DnsServiceDiscoveryProperty]