restoreDBInstanceFromDBSnapshot method

Future<RestoreDBInstanceFromDBSnapshotResult> restoreDBInstanceFromDBSnapshot({
  1. required String dBInstanceIdentifier,
  2. required String dBSnapshotIdentifier,
  3. bool? autoMinorVersionUpgrade,
  4. String? availabilityZone,
  5. String? dBInstanceClass,
  6. String? dBName,
  7. String? dBSubnetGroupName,
  8. String? engine,
  9. int? iops,
  10. String? licenseModel,
  11. bool? multiAZ,
  12. String? optionGroupName,
  13. int? port,
  14. bool? publiclyAccessible,
})

Implementation

Future<RestoreDBInstanceFromDBSnapshotResult>
    restoreDBInstanceFromDBSnapshot({
  required String dBInstanceIdentifier,
  required String dBSnapshotIdentifier,
  bool? autoMinorVersionUpgrade,
  String? availabilityZone,
  String? dBInstanceClass,
  String? dBName,
  String? dBSubnetGroupName,
  String? engine,
  int? iops,
  String? licenseModel,
  bool? multiAZ,
  String? optionGroupName,
  int? port,
  bool? publiclyAccessible,
}) async {
  ArgumentError.checkNotNull(dBInstanceIdentifier, 'dBInstanceIdentifier');
  ArgumentError.checkNotNull(dBSnapshotIdentifier, 'dBSnapshotIdentifier');
  final $request = <String, dynamic>{};
  $request['DBInstanceIdentifier'] = dBInstanceIdentifier;
  $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier;
  autoMinorVersionUpgrade
      ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg);
  availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg);
  dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg);
  dBName?.also((arg) => $request['DBName'] = arg);
  dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg);
  engine?.also((arg) => $request['Engine'] = arg);
  iops?.also((arg) => $request['Iops'] = arg);
  licenseModel?.also((arg) => $request['LicenseModel'] = arg);
  multiAZ?.also((arg) => $request['MultiAZ'] = arg);
  optionGroupName?.also((arg) => $request['OptionGroupName'] = arg);
  port?.also((arg) => $request['Port'] = arg);
  publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'RestoreDBInstanceFromDBSnapshot',
    version: '2013-02-12',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['RestoreDBInstanceFromDBSnapshotMessage'],
    shapes: shapes,
    resultWrapper: 'RestoreDBInstanceFromDBSnapshotResult',
  );
  return RestoreDBInstanceFromDBSnapshotResult.fromXml($result);
}