Skip to content

ThingPrincipalObject

Source code in docs_src/capo_iot/types/thing_principal_object.py
class ThingPrincipalObject(TypedDict, closed=True):
    principal: "capo_iot.types.principal.Principal"
    """<p>The principal of the thing principal object.</p>"""
    thing_principal_type: NotRequired[
        "capo_iot.types.thing_principal_type.ThingPrincipalType"
    ]
    """<p>The type of the relation you want to specify when you attach a principal to a thing. The value defaults to <code>NON_EXCLUSIVE_THING</code>.</p> <ul> <li> <p> <code>EXCLUSIVE_THING</code> - Attaches the specified principal to the specified thing, exclusively. The thing will be the only thing that’s attached to the principal.</p> </li> </ul> <ul> <li> <p> <code>NON_EXCLUSIVE_THING</code> - Attaches the specified principal to the specified thing. Multiple things can be attached to the principal.</p> </li> </ul>"""

principal instance-attribute

principal: Principal

The principal of the thing principal object.

thing_principal_type instance-attribute

thing_principal_type: NotRequired[ThingPrincipalType]

The type of the relation you want to specify when you attach a principal to a thing. The value defaults to NON_EXCLUSIVE_THING.

  • EXCLUSIVE_THING - Attaches the specified principal to the specified thing, exclusively. The thing will be the only thing that’s attached to the principal.

  • NON_EXCLUSIVE_THING - Attaches the specified principal to the specified thing. Multiple things can be attached to the principal.