detachPolicy
inline suspend fun IotClient.detachPolicy(crossinline block: DetachPolicyRequest.Builder.() -> Unit): DetachPolicyResponse
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.