deleteInstallationMedia method

Future<InstallationMedia> deleteInstallationMedia({
  1. required String installationMediaId,
})

Deletes the installation medium for a DB engine that requires an on-premises customer provided license, such as Microsoft SQL Server.

May throw InstallationMediaNotFoundFault.

Parameter installationMediaId : The installation medium ID.

Implementation

Future<InstallationMedia> deleteInstallationMedia({
  required String installationMediaId,
}) async {
  ArgumentError.checkNotNull(installationMediaId, 'installationMediaId');
  final $request = <String, dynamic>{};
  $request['InstallationMediaId'] = installationMediaId;
  final $result = await _protocol.send(
    $request,
    action: 'DeleteInstallationMedia',
    version: '2014-10-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DeleteInstallationMediaMessage'],
    shapes: shapes,
    resultWrapper: 'DeleteInstallationMediaResult',
  );
  return InstallationMedia.fromXml($result);
}