ManagedintegrationsforIoTDeviceManagement / Client / create_managed_thing

create_managed_thing#

ManagedintegrationsforIoTDeviceManagement.Client.create_managed_thing(**kwargs)#

Creates a managed thing. A managed thing contains the device identifier, protocol supported, and capabilities of the device in a protocol-specific format.

See also: AWS API Documentation

Request Syntax

response = client.create_managed_thing(
    Role='CONTROLLER'|'DEVICE',
    Owner='string',
    CredentialLockerId='string',
    AuthenticationMaterial='string',
    AuthenticationMaterialType='WIFI_SETUP_QR_BAR_CODE'|'ZWAVE_QR_BAR_CODE'|'ZIGBEE_QR_BAR_CODE',
    SerialNumber='string',
    Brand='string',
    Model='string',
    Name='string',
    CapabilityReport={
        'version': 'string',
        'nodeId': 'string',
        'endpoints': [
            {
                'id': 'string',
                'deviceTypes': [
                    'string',
                ],
                'capabilities': [
                    {
                        'id': 'string',
                        'name': 'string',
                        'version': 'string',
                        'properties': [
                            'string',
                        ],
                        'actions': [
                            'string',
                        ],
                        'events': [
                            'string',
                        ]
                    },
                ]
            },
        ]
    },
    Capabilities='string',
    ClientToken='string',
    Classification='string',
    Tags={
        'string': 'string'
    },
    MetaData={
        'string': 'string'
    }
)
Parameters:
  • Role (string) –

    [REQUIRED]

    The type of device used. This will be the hub controller, cloud device, or AWS IoT device.

  • Owner (string) – Owner of the device, usually an indication of whom the device belongs to. This value should not contain personal identifiable information.

  • CredentialLockerId (string) – The identifier of the credential for the managed thing.

  • AuthenticationMaterial (string) –

    [REQUIRED]

    The authentication material defining the device connectivity setup requests. The authentication materials used are the device bar code.

  • AuthenticationMaterialType (string) –

    [REQUIRED]

    The type of authentication material used for device connectivity setup requests.

  • SerialNumber (string) – The serial number of the device.

  • Brand (string) – The brand of the device.

  • Model (string) – The model of the device.

  • Name (string) – The name of the managed thing representing the physical device.

  • CapabilityReport (dict) –

    A report of the capabilities for the managed thing.

    • version (string) – [REQUIRED]

      The version of the capability report.

    • nodeId (string) –

      The numeric identifier of the node.

    • endpoints (list) – [REQUIRED]

      The endpoints used in the capability report.

      • (dict) –

        The endpoint used in the capability report.

        • id (string) – [REQUIRED]

          The id of the endpoint used in the capability report.

        • deviceTypes (list) – [REQUIRED]

          The type of device.

          • (string) –

        • capabilities (list) – [REQUIRED]

          The capabilities used in the capability report.

          • (dict) –

            The capability used in capability report.

            • id (string) – [REQUIRED]

              The id of the schema version.

            • name (string) – [REQUIRED]

              The name of the capability.

            • version (string) – [REQUIRED]

              The version of the capability.

            • properties (list) – [REQUIRED]

              The capability properties used in the capability report.

              • (string) –

            • actions (list) – [REQUIRED]

              The capability actions used in the capability report.

              • (string) –

            • events (list) – [REQUIRED]

              The capability events used in the capability report.

              • (string) –

  • Capabilities (string) – The capabilities of the device such as light bulb.

  • ClientToken (string) –

    An idempotency token. If you retry a request that completed successfully initially using the same client token and parameters, then the retry attempt will succeed without performing any further actions.

    This field is autopopulated if not provided.

  • Classification (string) – The classification of the managed thing such as light bulb or thermostat.

  • Tags (dict) –

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

    • (string) –

      • (string) –

  • MetaData (dict) –

    The metadata for the managed thing.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'Id': 'string',
    'Arn': 'string',
    'CreatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • Id (string) –

      The id of the managed thing.

    • Arn (string) –

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

    • CreatedAt (datetime) –

      The timestamp value of when the device creation request occurred.

Exceptions