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

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

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 DetachPrincipalPolicyAsync ( string policyName, string principal, System cancellationToken = default(CancellationToken) ) : Task
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.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task
        public Task<DetachPrincipalPolicyResponse> DetachPrincipalPolicyAsync(string policyName, string principal, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var request = new DetachPrincipalPolicyRequest();
            request.PolicyName = policyName;
            request.Principal = principal;
            return DetachPrincipalPolicyAsync(request, cancellationToken);
        }

Same methods

AmazonIoTClient::DetachPrincipalPolicyAsync ( DetachPrincipalPolicyRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIoTClient