Attaches the specified policy to the specified principal (certificate or other credential).Note: This action is deprecated. Please use AttachPolicy instead.Requires permission to access the AttachPrincipalPolicy action.
Request
Path Params
Header Params
Responses
🟢200Success
application/json
Body
🟠480ResourceNotFoundException
🟠481InvalidRequestException
🟠482ThrottlingException
🟠483UnauthorizedException
🟠484ServiceUnavailableException
🟠485InternalFailureException
🟠486LimitExceededException
Request Request Example
Shell
JavaScript
Java
Swift
curl--location-g--request PUT 'https://api.iotwireless.{region}.amazonaws.com/principal-policies/' \
--header'x-amzn-iot-principal;'