ServiceDiscovery

class aws_cdk.aws_appmesh.ServiceDiscovery

Bases: object

(experimental) Provides the Service Discovery method a VirtualNode uses.

Stability

experimental

Stability

experimental

Methods

abstract bind(scope)

(experimental) Binds the current object when adding Service Discovery to a VirtualNode.

Parameters

scope (Construct) –

Stability

experimental

Return type

ServiceDiscoveryConfig

Static Methods

classmethod cloud_map(*, service, instance_attributes=None)

(experimental) Returns Cloud Map based service discovery.

Parameters
  • service (IService) – (experimental) The AWS Cloud Map Service to use for service discovery.

  • instance_attributes (Optional[Mapping[str, str]]) – (experimental) 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. Default: - no instance attributes

Stability

experimental

Return type

ServiceDiscovery

classmethod dns(hostname)

(experimental) Returns DNS based service discovery.

Parameters

hostname (str) –

Stability

experimental

Return type

ServiceDiscovery