describeThing method

Future<DescribeThingResponse> describeThing({
  1. required String thingName,
})

Gets information about the specified thing.

May throw ResourceNotFoundException. May throw InvalidRequestException. May throw ThrottlingException. May throw UnauthorizedException. May throw ServiceUnavailableException. May throw InternalFailureException.

Parameter thingName : The name of the thing.

Implementation

Future<DescribeThingResponse> describeThing({
  required String thingName,
}) async {
  ArgumentError.checkNotNull(thingName, 'thingName');
  _s.validateStringLength(
    'thingName',
    thingName,
    1,
    128,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/things/${Uri.encodeComponent(thingName)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeThingResponse.fromJson(response);
}