Skip to main content

managed_things

Creates, updates, deletes, gets or lists a managed_things resource.

Overview

Namemanaged_things
TypeResource
Idaws.iot_managed_integrations.managed_things

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
activated_atstring (date-time)The timestampe value of when the device was activated.
advertised_product_idstringThe id of the advertised product. (pattern: <code>([A-Za-z0-9!#$%&()*+-;<=>?@^_`{|}~])+</code>)
arnstringThe Amazon Resource Name (ARN) of the managed thing. (pattern: <code>arn:aws:iotmanagedintegrations:[0-9a-zA-Z-]+:[0-9]+:managed-thing/([0-9a-zA-Z:_-])+</code>)
brandstringThe brand of the device. (pattern: <code>[A-Za-z0-9-_ ]+</code>)
classificationstringThe classification of the managed thing such as light bulb or thermostat.
connector_destination_idstringThe identifier of the connector destination associated with this managed thing. (pattern: <code>[A-Za-z0-9-_]+</code>)
connector_device_idstringThe third-party device id as defined by the connector. This device id must not contain personal identifiable information (PII). This parameter is used for cloud-to-cloud devices only. (pattern: <code>[a-zA-Z0-9_.,@-]+</code>)
connector_policy_idstringThe id of the connector policy. This parameter is used for cloud-to-cloud devices only. (pattern: <code>[A-Za-z0-9-_]+</code>)
created_atstring (date-time)The timestamp value of when the device creation request occurred.
credential_locker_idstringThe identifier of the credential locker for the managed thing. (pattern: <code>[a-zA-Z0-9]*</code>)
device_specific_keystringA Zwave device-specific key used during device activation. This parameter is used for Zwave devices only. (pattern: <code>[a-zA-Z0-9=_.,@+-]+</code>)
hub_network_modestringThe network mode for the hub-connected device. (STANDARD, NETWORK_WIDE_EXCLUSION)
idstringThe id of the managed thing. (pattern: <code>[a-zA-Z0-9:_-]*</code>)
international_article_numberstringThe unique 13 digit number that identifies the managed thing. (pattern: <code>[0-9]+</code>)
mac_addressstringThe media access control (MAC) address for the device represented by the managed thing. This parameter is used for Zigbee devices only.
meta_dataobjectThe metadata for the managed thing.
modelstringThe model of the device. (pattern: <code>[A-Za-z0-9-_ ]+</code>)
namestringThe name of the managed thing representing the physical device. (pattern: <code>[\p{L}\p{N} ._-]+</code>)
ownerstringOwner of the device, usually an indication of whom the device belongs to. This value should not contain personal identifiable information. (pattern: <code>[a-zA-Z0-9_.,@-]+</code>)
parent_controller_idstringId of the controller device used for the discovery job. (pattern: <code>[A-Za-z0-9]+</code>)
provisioning_statusstringThe provisioning status of the device in the provisioning workflow for onboarding to IoT managed integrations. For more information, see Device Provisioning. (UNASSOCIATED, PRE_ASSOCIATED, DISCOVERED, ACTIVATED, DELETION_FAILED, DELETE_IN_PROGRESS, ISOLATED, DELETED)
rolestringThe type of device used. This will be the Amazon Web Services hub controller, cloud device, or IoT device. (CONTROLLER, DEVICE)
serial_numberstringThe serial number of the device. (pattern: <code>[A-Za-z0-9-_ ]+</code>)
tagsobjectA set of key/value pairs that are used to manage the managed thing.
universal_product_codestringThe universal product code (UPC) of the device model. The UPC is typically used in the United States of America and Canada. (pattern: <code>[0-9]+</code>)
updated_atstring (date-time)The timestamp value of when the managed thing was last updated at.
wi_fi_simple_setup_configurationobjectThe Wi-Fi Simple Setup configuration for the managed thing, which defines provisioning capabilities and timeout settings.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_managed_thingselectidentifier, regionGet details of a managed thing including its attributes and capabilities.
list_managed_thingsselectregionOwnerFilter, CredentialLockerFilter, RoleFilter, ParentControllerIdentifierFilter, ConnectorPolicyIdFilter, ConnectorDestinationIdFilter, ConnectorDeviceIdFilter, SerialNumberFilter, ProvisioningStatusFilter, NextToken, MaxResultsListing all managed things with provision for filters.
create_managed_thinginsertregion, AuthenticationMaterial, AuthenticationMaterialTypeCreates a managed thing. A managed thing contains the device identifier, protocol supported, and capabilities of the device in a data model format defined by Managed integrations.
update_managed_thingupdateidentifier, regionUpdate the attributes and capabilities associated with a managed thing.
delete_managed_thingdeleteidentifier, regionForceDelete a managed thing. For direct-connected and hub-connected devices connecting with Managed integrations via a controller, all of the devices connected to it will have their status changed to PENDING. It is not possible to remove a cloud-to-cloud device.
reset_runtime_log_configurationexecmanaged_thing_id, regionReset a runtime log configuration for a specific managed thing.
send_managed_thing_commandexecmanaged_thing_id, region, EndpointsSend the command to the device represented by the managed thing.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
identifierstringThe id of the managed thing.
managed_thing_idstringThe id of the device.
regionstringAWS region (default: us-east-1)
ConnectorDestinationIdFilterstringFilter managed things by the connector destination ID they are associated with.
ConnectorDeviceIdFilterstringFilter managed things by the connector device ID they are associated with. When specified, only managed things with this connector device ID will be returned.
ConnectorPolicyIdFilterstringFilter on a connector policy id for a managed thing.
CredentialLockerFilterstringFilter on a credential locker for a managed thing.
ForcebooleanWhen set to TRUE, a forceful deteletion of the managed thing will occur. When set to FALSE, a non-forceful deletion of the managed thing will occur.
MaxResultsintegerThe maximum number of results to return at one time.
NextTokenstringA token that can be used to retrieve the next set of results.
OwnerFilterstringFilter on device owners when listing managed things.
ParentControllerIdentifierFilterstringFilter on a parent controller id for a managed thing.
ProvisioningStatusFilterstringFilter on the status of the device. For more information, see Device Provisioning.
RoleFilterstringFilter on the type of device used. This will be the Amazon Web Services hub controller, cloud device, or IoT device.
SerialNumberFilterstringFilter on the serial number of the device.

SELECT examples

Get details of a managed thing including its attributes and capabilities.

SELECT
activated_at,
advertised_product_id,
arn,
brand,
classification,
connector_destination_id,
connector_device_id,
connector_policy_id,
created_at,
credential_locker_id,
device_specific_key,
hub_network_mode,
id,
international_article_number,
mac_address,
meta_data,
model,
name,
owner,
parent_controller_id,
provisioning_status,
role,
serial_number,
tags,
universal_product_code,
updated_at,
wi_fi_simple_setup_configuration
FROM aws.iot_managed_integrations.managed_things
WHERE identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a managed thing. A managed thing contains the device identifier, protocol supported, and capabilities of the device in a data model format defined by Managed integrations.

INSERT INTO aws.iot_managed_integrations.managed_things (
Role,
Owner,
CredentialLockerId,
AuthenticationMaterial,
AuthenticationMaterialType,
WiFiSimpleSetupConfiguration,
SerialNumber,
Brand,
Model,
Name,
CapabilityReport,
CapabilitySchemas,
Capabilities,
ClientToken,
Classification,
Tags,
MetaData,
region
)
SELECT
'{{ Role }}',
'{{ Owner }}',
'{{ CredentialLockerId }}',
'{{ AuthenticationMaterial }}' /* required */,
'{{ AuthenticationMaterialType }}' /* required */,
'{{ WiFiSimpleSetupConfiguration }}',
'{{ SerialNumber }}',
'{{ Brand }}',
'{{ Model }}',
'{{ Name }}',
'{{ CapabilityReport }}',
'{{ CapabilitySchemas }}',
'{{ Capabilities }}',
'{{ ClientToken }}',
'{{ Classification }}',
'{{ Tags }}',
'{{ MetaData }}',
'{{ region }}'
RETURNING
arn,
created_at,
id
;

UPDATE examples

Update the attributes and capabilities associated with a managed thing.

UPDATE aws.iot_managed_integrations.managed_things
SET
Owner = '{{ Owner }}',
CredentialLockerId = '{{ CredentialLockerId }}',
SerialNumber = '{{ SerialNumber }}',
WiFiSimpleSetupConfiguration = '{{ WiFiSimpleSetupConfiguration }}',
Brand = '{{ Brand }}',
Model = '{{ Model }}',
Name = '{{ Name }}',
CapabilityReport = '{{ CapabilityReport }}',
CapabilitySchemas = '{{ CapabilitySchemas }}',
Capabilities = '{{ Capabilities }}',
Classification = '{{ Classification }}',
HubNetworkMode = '{{ HubNetworkMode }}',
MetaData = '{{ MetaData }}'
WHERE
identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Delete a managed thing. For direct-connected and hub-connected devices connecting with Managed integrations via a controller, all of the devices connected to it will have their status changed to PENDING. It is not possible to remove a cloud-to-cloud device.

DELETE FROM aws.iot_managed_integrations.managed_things
WHERE identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required
AND Force = '{{ Force }}'
;

Lifecycle Methods

Reset a runtime log configuration for a specific managed thing.

EXEC aws.iot_managed_integrations.managed_things.reset_runtime_log_configuration
@managed_thing_id='{{ managed_thing_id }}' --required,
@region='{{ region }}' --required
;