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 Request Example
Shell
JavaScript
Java
Swift
curl--location-g--request PUT 'https://api.iotwireless.{region}.amazonaws.com/principal-policies/' \
--header'x-amzn-iot-principal;'
Response Response Example
200 - Example 1
{}
Request
Path Params
policyName
stringÂ
required
The policy name.
Header Params
x-amzn-iot-principal
stringÂ
required
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.