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

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

Attaches the specified principal to 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 AttachThingPrincipalAsync ( string thingName, string principal, System cancellationToken = default(CancellationToken) ) : Task
thingName string The name of the thing.
principal string The principal, such as a certificate or other credential.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task
        public Task<AttachThingPrincipalResponse> AttachThingPrincipalAsync(string thingName, string principal, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var request = new AttachThingPrincipalRequest();
            request.ThingName = thingName;
            request.Principal = principal;
            return AttachThingPrincipalAsync(request, cancellationToken);
        }

Same methods

AmazonIoTClient::AttachThingPrincipalAsync ( AttachThingPrincipalRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIoTClient