managed_thing_account_associations
Creates, updates, deletes, gets or lists a managed_thing_account_associations resource.
Overview
| Name | managed_thing_account_associations |
| Type | Resource |
| Id | aws.iot_managed_integrations.managed_thing_account_associations |
Fields
The following fields are returned by SELECT queries:
- list_managed_thing_account_associations
| Name | Datatype | Description |
|---|---|---|
account_association_id | string | The identifier of the account association in the association. (pattern: <code>[0-9a-zA-Z]+</code>) |
managed_thing_association_status | string | The status of the registration between the managed thing and the account association. Indicates whether the device is pre-associated or fully associated with the account association. (PRE_ASSOCIATED, ASSOCIATED) |
managed_thing_id | string | The identifier of the managed thing in the association. (pattern: <code>[a-zA-Z0-9:_-]*</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_managed_thing_account_associations | select | region | ManagedThingId, AccountAssociationId, MaxResults, NextToken | Lists all account associations for a specific 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 |
|---|---|---|
region | string | AWS region (default: us-east-1) |
AccountAssociationId | string | The identifier of the account association to filter results by. When specified, only associations with this account association ID will be returned. |
ManagedThingId | string | The identifier of the managed thing to list account associations for. |
MaxResults | integer | The maximum number of account associations to return in a single response. |
NextToken | string | A token used for pagination of results. |
SELECT examples
- list_managed_thing_account_associations
Lists all account associations for a specific managed thing.
SELECT
account_association_id,
managed_thing_association_status,
managed_thing_id
FROM aws.iot_managed_integrations.managed_thing_account_associations
WHERE region = '{{ region }}' -- required
AND ManagedThingId = '{{ ManagedThingId }}'
AND AccountAssociationId = '{{ AccountAssociationId }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
;