Skip to main content

managed_thing_account_associations

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

Overview

Namemanaged_thing_account_associations
TypeResource
Idaws.iot_managed_integrations.managed_thing_account_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_association_idstringThe identifier of the account association in the association. (pattern: <code>[0-9a-zA-Z]+</code>)
managed_thing_association_statusstringThe 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_idstringThe identifier of the managed thing in the association. (pattern: <code>[a-zA-Z0-9:_-]*</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_managed_thing_account_associationsselectregionManagedThingId, AccountAssociationId, MaxResults, NextTokenLists 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
AccountAssociationIdstringThe identifier of the account association to filter results by. When specified, only associations with this account association ID will be returned.
ManagedThingIdstringThe identifier of the managed thing to list account associations for.
MaxResultsintegerThe maximum number of account associations to return in a single response.
NextTokenstringA token used for pagination of results.

SELECT examples

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 }}'
;