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
Path Params
Header Params
Responses
🟢200Success
application/json
Body
🟠480ResourceNotFoundException
🟠481InvalidRequestException
🟠482ThrottlingException
🟠483UnauthorizedException
🟠484ServiceUnavailableException
🟠485InternalFailureException
Request Request Example
Shell
JavaScript
Java
Swift
curl--location-g--request PUT 'https://api.iotwireless.{region}.amazonaws.com/things//principals' \
--header'x-amzn-principal;'