describeThingGroup method

Future<DescribeThingGroupResponse> describeThingGroup({
  1. required String thingGroupName,
})

Describe a thing group.

May throw InvalidRequestException. May throw ThrottlingException. May throw InternalFailureException. May throw ResourceNotFoundException.

Parameter thingGroupName : The name of the thing group.

Implementation

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