Skip to main content

partner_accounts

Creates, updates, deletes or gets a partner_account resource or lists partner_accounts in a region

Overview

Namepartner_accounts
TypeResource
DescriptionCreate and manage partner account
Idaws.iotwireless.partner_accounts

Fields

NameDatatypeDescription
sidewalkobjectThe Sidewalk account credentials.
partner_account_idstringThe partner account ID to disassociate from the AWS account
partner_typestringThe partner type
sidewalk_responseobjectThe Sidewalk account credentials.
account_linkedbooleanWhether the partner account is linked to the AWS account.
sidewalk_updateobjectThe Sidewalk account credentials.
fingerprintstringThe fingerprint of the Sidewalk application server private key.
arnstringPartnerAccount arn. Returned after successful create.
tagsarrayA list of key-value pairs that contain metadata for the destination.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all partner_accounts in a region.

SELECT
region,
sidewalk,
partner_account_id,
partner_type,
sidewalk_response,
account_linked,
sidewalk_update,
fingerprint,
arn,
tags
FROM aws.iotwireless.partner_accounts
WHERE region = 'us-east-1';

Gets all properties from an individual partner_account.

SELECT
region,
sidewalk,
partner_account_id,
partner_type,
sidewalk_response,
account_linked,
sidewalk_update,
fingerprint,
arn,
tags
FROM aws.iotwireless.partner_accounts
WHERE region = 'us-east-1' AND data__Identifier = '<PartnerAccountId>';

INSERT example

Use the following StackQL query and manifest file to create a new partner_account resource, using stack-deploy.

/*+ create */
INSERT INTO aws.iotwireless.partner_accounts (
Sidewalk,
PartnerAccountId,
PartnerType,
SidewalkResponse,
AccountLinked,
SidewalkUpdate,
Tags,
region
)
SELECT
'{{ Sidewalk }}',
'{{ PartnerAccountId }}',
'{{ PartnerType }}',
'{{ SidewalkResponse }}',
'{{ AccountLinked }}',
'{{ SidewalkUpdate }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.iotwireless.partner_accounts
WHERE data__Identifier = '<PartnerAccountId>'
AND region = 'us-east-1';

Permissions

To operate on the partner_accounts resource, the following permissions are required:

Create

iotwireless:AssociateAwsAccountWithPartnerAccount,
iotwireless:TagResource,
iotwireless:ListTagsForResource

Read

iotwireless:GetPartnerAccount,
iotwireless:ListTagsForResource

List

iotwireless:ListPartnerAccounts,
iotwireless:ListTagsForResource

Update

iotwireless:UpdatePartnerAccount,
iotwireless:UntagResource,
iotwireless:ListTagsForResource

Delete

iotwireless:DisassociateAwsAccountFromPartnerAccount