IoT / Client / detach_principal_policy
detach_principal_policy#
- IoT.Client.detach_principal_policy(**kwargs)#
Removes the specified policy from the specified certificate.
Note: This action is deprecated and works as expected for backward compatibility, but we won’t add enhancements. Use DetachPolicy instead.
Requires permission to access the DetachPrincipalPolicy action.
Danger
This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.
See also: AWS API Documentation
Request Syntax
response = client.detach_principal_policy( policyName='string', principal='string' )
- Parameters:
policyName (string) –
[REQUIRED]
The name of the policy to detach.
principal (string) –
[REQUIRED]
The principal.
Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
- Returns:
None
Exceptions