Skip to content
GitHubXDiscord

PartnerAccount

The PartnerAccount resource allows you to manage AWS IoTWireless PartnerAccounts for connecting and integrating with various IoT wireless partners.

Create a basic PartnerAccount with the required properties and a common optional property.

import AWS from "alchemy/aws/control";
const partnerAccount = await AWS.IoTWireless.PartnerAccount("myPartnerAccount", {
PartnerAccountId: "1234567890abcdef",
PartnerType: "Sidewalk",
AccountLinked: true,
Tags: [
{ Key: "Project", Value: "IoTDeployment" }
]
});

Configure a PartnerAccount with detailed Sidewalk settings and an update configuration.

import AWS from "alchemy/aws/control";
const advancedPartnerAccount = await AWS.IoTWireless.PartnerAccount("advancedPartnerAccount", {
PartnerAccountId: "abcdef1234567890",
PartnerType: "Sidewalk",
Sidewalk: {
AppServerPrivateKey: "myPrivateKey12345",
ClientId: "myClientId",
},
SidewalkUpdate: {
LastUpdated: "2023-10-01T12:00:00Z",
UpdateToken: "updateToken12345"
},
Tags: [
{ Key: "Environment", Value: "Production" }
]
});

Create a PartnerAccount that includes Sidewalk response information.

import AWS from "alchemy/aws/control";
const sidewalkResponseAccount = await AWS.IoTWireless.PartnerAccount("sidewalkResponseAccount", {
PartnerAccountId: "abcdef1234567890",
PartnerType: "Sidewalk",
SidewalkResponse: {
AppServerPublicKey: "publicKey12345",
Fingerprint: "fingerprintValue"
},
AccountLinked: false
});

Demonstrate how to create a PartnerAccount with multiple tags for better resource management.

import AWS from "alchemy/aws/control";
const taggedPartnerAccount = await AWS.IoTWireless.PartnerAccount("taggedPartnerAccount", {
PartnerAccountId: "tagged123456",
PartnerType: "LoRaWAN",
Tags: [
{ Key: "Department", Value: "Engineering" },
{ Key: "Region", Value: "US-West" },
{ Key: "Application", Value: "SmartCity" }
]
});