describeLabelGroup method

Future<DescribeLabelGroupResponse> describeLabelGroup({
  1. required String labelGroupName,
})

Returns information about the label group.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter labelGroupName : Returns the name of the label group.

Implementation

Future<DescribeLabelGroupResponse> describeLabelGroup({
  required String labelGroupName,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'AWSLookoutEquipmentFrontendService.DescribeLabelGroup'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'LabelGroupName': labelGroupName,
    },
  );

  return DescribeLabelGroupResponse.fromJson(jsonResponse.body);
}