updateLabelGroup method

Future<void> updateLabelGroup({
  1. required String labelGroupName,
  2. List<String>? faultCodes,
})

Updates the label group.

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 to be updated.

Parameter faultCodes : Updates the code indicating the type of anomaly associated with the label.

Data in this field will be retained for service usage. Follow best practices for the security of your data.

Implementation

Future<void> updateLabelGroup({
  required String labelGroupName,
  List<String>? faultCodes,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'AWSLookoutEquipmentFrontendService.UpdateLabelGroup'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'LabelGroupName': labelGroupName,
      if (faultCodes != null) 'FaultCodes': faultCodes,
    },
  );
}