managed_thing_connectivity_datas
Creates, updates, deletes, gets or lists a managed_thing_connectivity_datas resource.
Overview
| Name | managed_thing_connectivity_datas |
| Type | Resource |
| Id | aws.iot_managed_integrations.managed_thing_connectivity_datas |
Fields
The following fields are returned by SELECT queries:
- get_managed_thing_connectivity_data
| Name | Datatype | Description |
|---|---|---|
connected | boolean | The connectivity status for a managed thing. |
disconnect_reason | string | The reason for the connectivity disconnect with the managed thing. (AUTH_ERROR, CLIENT_INITIATED_DISCONNECT, CLIENT_ERROR, CONNECTION_LOST, DUPLICATE_CLIENTID, FORBIDDEN_ACCESS, MQTT_KEEP_ALIVE_TIMEOUT, SERVER_ERROR, SERVER_INITIATED_DISCONNECT, THROTTLED, WEBSOCKET_TTL_EXPIRATION, CUSTOMAUTH_TTL_EXPIRATION, UNKNOWN, NONE) |
managed_thing_id | string | The id of a managed thing. (pattern: <code>[a-zA-Z0-9:_-]*</code>) |
timestamp | string (date-time) | The timestamp value of when the connectivity status for a managed thing was last taken. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_managed_thing_connectivity_data | select | identifier, region | Get the connectivity status of a 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.
| Name | Datatype | Description |
|---|---|---|
identifier | string | The identifier of a managed thing. |
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_managed_thing_connectivity_data
Get the connectivity status of a managed thing.
SELECT
connected,
disconnect_reason,
managed_thing_id,
timestamp
FROM aws.iot_managed_integrations.managed_thing_connectivity_datas
WHERE identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
;