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

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

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 AttachThingPrincipal ( string thingName, string principal ) : AttachThingPrincipalResponse
thingName string The name of the thing.
principal string The principal, such as a certificate or other credential.
Результат AttachThingPrincipalResponse
        public AttachThingPrincipalResponse AttachThingPrincipal(string thingName, string principal)
        {
            var request = new AttachThingPrincipalRequest();
            request.ThingName = thingName;
            request.Principal = principal;
            return AttachThingPrincipal(request);
        }

Same methods

AmazonIoTClient::AttachThingPrincipal ( AttachThingPrincipalRequest request ) : AttachThingPrincipalResponse
AmazonIoTClient