Skip to content

CreateThingRequest

Source code in docs_src/capo_iot/types/create_thing_request.py
class CreateThingRequest(TypedDict, closed=True):
    thing_name: "capo_iot.types.thing_name.ThingName"
    """<p>The name of the thing to create.</p> <p>You can't change a thing's name after you create it. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.</p>"""
    thing_type_name: NotRequired["capo_iot.types.thing_type_name.ThingTypeName"]
    """<p>The name of the thing type associated with the new thing.</p>"""
    attribute_payload: NotRequired["capo_iot.types.attribute_payload.AttributePayload"]
    r"""<p>The attribute payload, which consists of up to three name/value pairs in a JSON document. For example:</p> <p> <code>{\"attributes\":{\"string1\":\"string2\"}}</code> </p>"""
    billing_group_name: NotRequired[
        "capo_iot.types.billing_group_name.BillingGroupName"
    ]
    """<p>The name of the billing group the thing will be added to.</p>"""

attribute_payload instance-attribute

attribute_payload: NotRequired[AttributePayload]

The attribute payload, which consists of up to three name/value pairs in a JSON document. For example:

{\"attributes\":{\"string1\":\"string2\"}}

billing_group_name instance-attribute

billing_group_name: NotRequired[BillingGroupName]

The name of the billing group the thing will be added to.

thing_name instance-attribute

thing_name: ThingName

The name of the thing to create.

You can't change a thing's name after you create it. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.

thing_type_name instance-attribute

thing_type_name: NotRequired[ThingTypeName]

The name of the thing type associated with the new thing.