describeLabel method

Future<DescribeLabelResponse> describeLabel({
  1. required String labelGroupName,
  2. required String labelId,
})

Returns the name of the label.

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

Parameter labelGroupName : Returns the name of the group containing the label.

Parameter labelId : Returns the ID of the label.

Implementation

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

  return DescribeLabelResponse.fromJson(jsonResponse.body);
}