deleteAppImageConfig method

Future<void> deleteAppImageConfig({
  1. required String appImageConfigName,
})

Deletes an AppImageConfig.

May throw ResourceNotFound.

Parameter appImageConfigName : The name of the AppImageConfig to delete.

Implementation

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