v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-142381,278956.3 KB

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