Attaches the specified principal to the specified thing. A principal can be X.509 certificates, IAM users, groups, and roles, Amazon Cognito identities or federated identities.Requires permission to access the AttachThingPrincipal action.
Request Request Example
Shell
JavaScript
Java
Swift
curl--location-g--request PUT 'https://api.iotwireless.{region}.amazonaws.com/things//principals' \
--header'x-amzn-principal;'
Response Response Example
200 - Example 1
{}
Request
Path Params
thingName
stringÂ
required
The name of the thing.
Header Params
x-amzn-principal
stringÂ
required
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.