v1

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

Detaches a policy from the specified target.

Because of the distributed nature of Amazon Web Services, it can take up to five minutes after a policy is detached before it's ready to be deleted.

Requires permission to access the DetachPolicy action.

post/target-policies/{policyName}

Path parameters

policyNamestring required

The policy to detach.

Request body

targetstring required

The target from which the policy will be detached.

Response

Success