Amazon.IoT.AmazonIoTClient.DetachThingPrincipalAsync C# (CSharp) Method

DetachThingPrincipalAsync() public method

Detaches the specified principal from the specified thing.
/// 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 DetachThingPrincipalAsync ( string thingName, string principal, System cancellationToken = default(CancellationToken) ) : Task
thingName string The name of the thing.
principal string If the principal is a certificate, this value must be ARN of the certificate. If the principal is an Amazon Cognito identity, this value must be the ID of the Amazon Cognito identity.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<DetachThingPrincipalResponse> DetachThingPrincipalAsync(string thingName, string principal, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var request = new DetachThingPrincipalRequest();
            request.ThingName = thingName;
            request.Principal = principal;
            return DetachThingPrincipalAsync(request, cancellationToken);
        }

Same methods

AmazonIoTClient::DetachThingPrincipalAsync ( DetachThingPrincipalRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIoTClient