deleteLabel method

Future<void> deleteLabel({
  1. required String labelGroupName,
  2. required String labelId,
})

Deletes a label.

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

Parameter labelGroupName : The name of the label group that contains the label that you want to delete. Data in this field will be retained for service usage. Follow best practices for the security of your data.

Parameter labelId : The ID of the label that you want to delete.

Implementation

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