Attaches the specified policy to the specified principal (certificate or other credential).
Note: This action is deprecated and works as expected for backward compatibility, but we won't add enhancements. Use AttachPolicy instead.
Requires permission to access the AttachPrincipalPolicy action.
put/principal-policies/{policyName}#x-amzn-iot-principal
Path parameters
policyNamestring required
The policy name.
Headers
x-amzn-iot-principalstring required
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
Response
Success