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).

Requires permission to access the AttachPolicy action.

put/target-policies/{policyName}

Path parameters

policyNamestring required

The name of the policy to attach.

Request body

targetstring required

The <a href="https://docs.aws.amazon.com/iot/latest/developerguide/security-iam.html">identity</a> to which the policy is attached. For example, a thing group or a certificate.

Response

Success