deleteModelPackageGroup method

Future<void> deleteModelPackageGroup({
  1. required String modelPackageGroupName,
})

Deletes the specified model group.

Parameter modelPackageGroupName : The name of the model group to delete.

Implementation

Future<void> deleteModelPackageGroup({
  required String modelPackageGroupName,
}) async {
  ArgumentError.checkNotNull(modelPackageGroupName, 'modelPackageGroupName');
  _s.validateStringLength(
    'modelPackageGroupName',
    modelPackageGroupName,
    1,
    170,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.DeleteModelPackageGroup'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ModelPackageGroupName': modelPackageGroupName,
    },
  );
}