Amazon.IoT.AmazonIoTClient.DetachPrincipalPolicy C# (CSharp) Метод

DetachPrincipalPolicy() публичный Метод

Removes the specified policy from the specified certificate.
/// An unexpected error has occurred. /// /// The request is not valid. /// /// The specified resource does not exist. /// /// The service is temporarily unavailable. /// /// The rate exceeds the limit. /// /// You are not authorized to perform this operation. ///
public DetachPrincipalPolicy ( string policyName, string principal ) : DetachPrincipalPolicyResponse
policyName string The name of the policy to detach.
principal string The principal. If the principal is a certificate, specify the certificate ARN. If the principal is an Amazon Cognito identity, specify the identity ID.
Результат DetachPrincipalPolicyResponse
        public DetachPrincipalPolicyResponse DetachPrincipalPolicy(string policyName, string principal)
        {
            var request = new DetachPrincipalPolicyRequest();
            request.PolicyName = policyName;
            request.Principal = principal;
            return DetachPrincipalPolicy(request);
        }

Same methods

AmazonIoTClient::DetachPrincipalPolicy ( DetachPrincipalPolicyRequest request ) : DetachPrincipalPolicyResponse
AmazonIoTClient