importInstallationMedia method

Future<InstallationMedia> importInstallationMedia({
  1. required String customAvailabilityZoneId,
  2. required String engine,
  3. required String engineInstallationMediaPath,
  4. required String engineVersion,
  5. required String oSInstallationMediaPath,
})

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

May throw CustomAvailabilityZoneNotFoundFault. May throw InstallationMediaAlreadyExistsFault.

Parameter customAvailabilityZoneId : The identifier of the custom Availability Zone (AZ) to import the installation media to.

Parameter engine : The name of the database engine to be used for this instance.

The list only includes supported DB engines that require an on-premises customer provided license.

Valid Values:

  • sqlserver-ee
  • sqlserver-se
  • sqlserver-ex
  • sqlserver-web

Parameter engineInstallationMediaPath : The path to the installation medium for the specified DB engine.

Example: SQLServerISO/en_sql_server_2016_enterprise_x64_dvd_8701793.iso

Parameter engineVersion : The version number of the database engine to use.

For a list of valid engine versions, call DescribeDBEngineVersions.

The following are the database engines and links to information about the major and minor versions. The list only includes DB engines that require an on-premises customer provided license.

Microsoft SQL Server

See Microsoft SQL Server Versions on Amazon RDS in the Amazon RDS User Guide.

Parameter oSInstallationMediaPath : The path to the installation medium for the operating system associated with the specified DB engine.

Example: WindowsISO/en_windows_server_2016_x64_dvd_9327751.iso

Implementation

Future<InstallationMedia> importInstallationMedia({
  required String customAvailabilityZoneId,
  required String engine,
  required String engineInstallationMediaPath,
  required String engineVersion,
  required String oSInstallationMediaPath,
}) async {
  ArgumentError.checkNotNull(
      customAvailabilityZoneId, 'customAvailabilityZoneId');
  ArgumentError.checkNotNull(engine, 'engine');
  ArgumentError.checkNotNull(
      engineInstallationMediaPath, 'engineInstallationMediaPath');
  ArgumentError.checkNotNull(engineVersion, 'engineVersion');
  ArgumentError.checkNotNull(
      oSInstallationMediaPath, 'oSInstallationMediaPath');
  final $request = <String, dynamic>{};
  $request['CustomAvailabilityZoneId'] = customAvailabilityZoneId;
  $request['Engine'] = engine;
  $request['EngineInstallationMediaPath'] = engineInstallationMediaPath;
  $request['EngineVersion'] = engineVersion;
  $request['OSInstallationMediaPath'] = oSInstallationMediaPath;
  final $result = await _protocol.send(
    $request,
    action: 'ImportInstallationMedia',
    version: '2014-10-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['ImportInstallationMediaMessage'],
    shapes: shapes,
    resultWrapper: 'ImportInstallationMediaResult',
  );
  return InstallationMedia.fromXml($result);
}