IoT / Client / create_thing_type

create_thing_type#

IoT.Client.create_thing_type(**kwargs)#

Creates a new thing type.

Requires permission to access the CreateThingType action.

See also: AWS API Documentation

Request Syntax

response = client.create_thing_type(
    thingTypeName='string',
    thingTypeProperties={
        'thingTypeDescription': 'string',
        'searchableAttributes': [
            'string',
        ]
    },
    tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • thingTypeName (string) –

    [REQUIRED]

    The name of the thing type.

  • thingTypeProperties (dict) –

    The ThingTypeProperties for the thing type to create. It contains information about the new thing type including a 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) –

  • tags (list) –

    Metadata which can be used to manage the thing type.

    • (dict) –

      A set of key/value pairs that are used to manage the resource.

      • Key (string) – [REQUIRED]

        The tag’s key.

      • Value (string) –

        The tag’s value.

Return type:

dict

Returns:

Response Syntax

{
    'thingTypeName': 'string',
    'thingTypeArn': 'string',
    'thingTypeId': 'string'
}

Response Structure

  • (dict) –

    The output of the CreateThingType operation.

    • thingTypeName (string) –

      The name of the thing type.

    • thingTypeArn (string) –

      The Amazon Resource Name (ARN) of the thing type.

    • thingTypeId (string) –

      The thing type ID.

Exceptions