describeThingType method

Future<DescribeThingTypeResponse> describeThingType({
  1. required String thingTypeName,
})

Gets information about the specified thing type.

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

Parameter thingTypeName : The name of the thing type.

Implementation

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