ServiceDiscovery / Client / get_service_attributes

get_service_attributes#

ServiceDiscovery.Client.get_service_attributes(**kwargs)#

Returns the attributes associated with a specified service.

See also: AWS API Documentation

Request Syntax

response = client.get_service_attributes(
    ServiceId='string'
)
Parameters:

ServiceId (string) –

[REQUIRED]

The ID of the service that you want to get attributes for.

Return type:

dict

Returns:

Response Syntax

{
    'ServiceAttributes': {
        'ServiceArn': 'string',
        'Attributes': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) –

    • ServiceAttributes (dict) –

      A complex type that contains the service ARN and a list of attribute key-value pairs associated with the service.

      • ServiceArn (string) –

        The ARN of the service that the attributes are associated with.

      • Attributes (dict) –

        A string map that contains the following information for the service that you specify in ServiceArn:

        • The attributes that apply to the service.

        • For each attribute, the applicable value.

        You can specify a total of 30 attributes.

        • (string) –

          • (string) –

Exceptions

  • ServiceDiscovery.Client.exceptions.InvalidInput

  • ServiceDiscovery.Client.exceptions.ServiceNotFound