describeThing method
Gets information about the specified thing.
Requires permission to access the DescribeThing action.
May throw InternalFailureException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ServiceUnavailableException.
May throw ThrottlingException.
May throw UnauthorizedException.
Parameter thingName :
The name of the thing.
Implementation
Future<DescribeThingResponse> describeThing({
required String thingName,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/things/${Uri.encodeComponent(thingName)}',
exceptionFnMap: _exceptionFns,
);
return DescribeThingResponse.fromJson(response);
}