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
Idawscc.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.

For more information, see AWS::IoTWireless::PartnerAccount.

Methods

NameResourceAccessible byRequired Params
create_resourcepartner_accountsINSERTregion
delete_resourcepartner_accountsDELETEIdentifier, region
update_resourcepartner_accountsUPDATEIdentifier, PatchDocument, region
list_resourcespartner_accounts_list_onlySELECTregion
get_resourcepartner_accountsSELECTIdentifier, region

SELECT examples

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 awscc.iotwireless.partner_accounts
WHERE
region = '{{ region }}' AND
Identifier = '{{ partner_account_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.iotwireless.partner_accounts (
Sidewalk,
PartnerAccountId,
PartnerType,
SidewalkResponse,
AccountLinked,
SidewalkUpdate,
Tags,
region
)
SELECT
'{{ sidewalk }}',
'{{ partner_account_id }}',
'{{ partner_type }}',
'{{ sidewalk_response }}',
'{{ account_linked }}',
'{{ sidewalk_update }}',
'{{ tags }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.iotwireless.partner_accounts
SET PatchDocument = string('{{ {
"Sidewalk": sidewalk,
"PartnerType": partner_type,
"SidewalkResponse": sidewalk_response,
"AccountLinked": account_linked,
"SidewalkUpdate": sidewalk_update,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ partner_account_id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.iotwireless.partner_accounts
WHERE
Identifier = '{{ partner_account_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

iotwireless:AssociateAwsAccountWithPartnerAccount,
iotwireless:TagResource,
iotwireless:GetPartnerAccount