2020/10/02 - AWS Cloud Map - 1 updated api methods
Changes Added support for optional parameters for DiscoverInstances API in AWS Cloud Map
{'OptionalParameters': {'string': 'string'}}
Discovers registered instances for a specified namespace and service. You can use DiscoverInstances to discover instances for any type of namespace. For public and private DNS namespaces, you can also use DNS queries to discover instances.
See also: AWS API Documentation
Request Syntax
client.discover_instances( NamespaceName='string', ServiceName='string', MaxResults=123, QueryParameters={ 'string': 'string' }, OptionalParameters={ 'string': 'string' }, HealthStatus='HEALTHY'|'UNHEALTHY'|'ALL' )
string
[REQUIRED]
The name of the namespace that you specified when you registered the instance.
string
[REQUIRED]
The name of the service that you specified when you registered the instance.
integer
The maximum number of instances that you want AWS Cloud Map to return in the response to a DiscoverInstances request. If you don't specify a value for MaxResults , AWS Cloud Map returns up to 100 instances.
dict
Filters to scope the results based on custom attributes for the instance. For example, {version=v1, az=1a} . Only instances that match all the specified key-value pairs will be returned.
(string) --
(string) --
dict
Opportunistic filters to scope the results based on custom attributes. If there are instances that match both the filters specified in both the QueryParameters parameter and this parameter, they are returned. Otherwise, these filters are ignored and only instances that match the filters specified in the QueryParameters parameter are returned.
(string) --
(string) --
string
The health status of the instances that you want to discover.
dict
Response Syntax
{ 'Instances': [ { 'InstanceId': 'string', 'NamespaceName': 'string', 'ServiceName': 'string', 'HealthStatus': 'HEALTHY'|'UNHEALTHY'|'UNKNOWN', 'Attributes': { 'string': 'string' } }, ] }
Response Structure
(dict) --
Instances (list) --
A complex type that contains one HttpInstanceSummary for each registered instance.
(dict) --
In a response to a DiscoverInstances request, HttpInstanceSummary contains information about one instance that matches the values that you specified in the request.
InstanceId (string) --
The ID of an instance that matches the values that you specified in the request.
NamespaceName (string) --
The name of the namespace that you specified when you registered the instance.
ServiceName (string) --
The name of the service that you specified when you registered the instance.
HealthStatus (string) --
If you configured health checking in the service, the current health status of the service instance.
Attributes (dict) --
If you included any attributes when you registered the instance, the values of those attributes.
(string) --
(string) --