IoT / Client / update_thing_type

update_thing_type#

IoT.Client.update_thing_type(**kwargs)#

Updates a thing type.

See also: AWS API Documentation

Request Syntax

response = client.update_thing_type(
    thingTypeName='string',
    thingTypeProperties={
        'thingTypeDescription': 'string',
        'searchableAttributes': [
            'string',
        ],
        'mqtt5Configuration': {
            'propagatingAttributes': [
                {
                    'userPropertyKey': 'string',
                    'thingAttribute': 'string',
                    'connectionAttribute': 'string'
                },
            ]
        }
    }
)
Parameters:
  • thingTypeName (string) –

    [REQUIRED]

    The name of a thing type.

  • thingTypeProperties (dict) –

    The ThingTypeProperties contains information about the thing type including: a thing type description, and a list of searchable thing attribute names.

    • thingTypeDescription (string) –

      The description of the thing type.

    • searchableAttributes (list) –

      A list of searchable thing attribute names.

      • (string) –

    • mqtt5Configuration (dict) –

      The configuration to add user-defined properties to enrich MQTT 5 messages.

      • propagatingAttributes (list) –

        An object that represents the propagating thing attributes and the connection attributes.

        • (dict) –

          An object that represents the connection attribute, thing attribute, and the user property key.

          • userPropertyKey (string) –

            The key of the user property key-value pair.

          • thingAttribute (string) –

            The user-defined thing attribute that is propagating for MQTT 5 message enrichment.

          • connectionAttribute (string) –

            The attribute associated with the connection between a device and Amazon Web Services IoT Core.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • IoT.Client.exceptions.ResourceNotFoundException

  • IoT.Client.exceptions.InvalidRequestException

  • IoT.Client.exceptions.ThrottlingException

  • IoT.Client.exceptions.UnauthorizedException

  • IoT.Client.exceptions.ServiceUnavailableException

  • IoT.Client.exceptions.InternalFailureException