Skip to main content

partner_accounts

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

Overview

Namepartner_accounts
TypeResource
Idaws.iotwireless.partner_accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_linkedbooleanWhether the partner account is linked to the AWS account.
sidewalkobjectInformation about a Sidewalk account.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_partner_accountselectpartner_account_id, partnerType, regionGets information about a partner account. If PartnerAccountId and PartnerType are null, returns all partner accounts.
list_partner_accountsselectregionnextToken, maxResultsLists the partner accounts associated with your AWS account.
update_partner_accountupdatepartner_account_id, partnerType, regionUpdates properties of a partner account.
associate_aws_account_with_partner_accountupdateregionAssociates a partner account with your AWS account.
disassociate_aws_account_from_partner_accountexecpartner_account_id, partnerType, regionDisassociates your AWS account from a partner account. If PartnerAccountId and PartnerType are null, disassociates your AWS account from all partner accounts.

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
partnerTypestringThe partner type.
partner_account_idstringThe partner account ID to disassociate from the AWS account.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in this operation.
nextTokenstringTo retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

SELECT examples

Gets information about a partner account. If PartnerAccountId and PartnerType are null, returns all partner accounts.

SELECT
account_linked,
sidewalk
FROM aws.iotwireless.partner_accounts
WHERE partner_account_id = '{{ partner_account_id }}' -- required
AND partnerType = '{{ partnerType }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates properties of a partner account.

UPDATE aws.iotwireless.partner_accounts
SET
Sidewalk = '{{ Sidewalk }}'
WHERE
partner_account_id = '{{ partner_account_id }}' --required
AND partnerType = '{{ partnerType }}' --required
AND region = '{{ region }}' --required;

Lifecycle Methods

Disassociates your AWS account from a partner account. If PartnerAccountId and PartnerType are null, disassociates your AWS account from all partner accounts.

EXEC aws.iotwireless.partner_accounts.disassociate_aws_account_from_partner_account
@partner_account_id='{{ partner_account_id }}' --required,
@partnerType='{{ partnerType }}' --required,
@region='{{ region }}' --required
;