modifyDBInstance method

Future<ModifyDBInstanceResult> modifyDBInstance({
  1. required String dBInstanceIdentifier,
  2. int? allocatedStorage,
  3. bool? allowMajorVersionUpgrade,
  4. bool? applyImmediately,
  5. bool? autoMinorVersionUpgrade,
  6. int? backupRetentionPeriod,
  7. String? dBInstanceClass,
  8. String? dBParameterGroupName,
  9. List<String>? dBSecurityGroups,
  10. String? engineVersion,
  11. int? iops,
  12. String? masterUserPassword,
  13. bool? multiAZ,
  14. String? newDBInstanceIdentifier,
  15. String? optionGroupName,
  16. String? preferredBackupWindow,
  17. String? preferredMaintenanceWindow,
  18. List<String>? vpcSecurityGroupIds,
})

Implementation

Future<ModifyDBInstanceResult> modifyDBInstance({
  required String dBInstanceIdentifier,
  int? allocatedStorage,
  bool? allowMajorVersionUpgrade,
  bool? applyImmediately,
  bool? autoMinorVersionUpgrade,
  int? backupRetentionPeriod,
  String? dBInstanceClass,
  String? dBParameterGroupName,
  List<String>? dBSecurityGroups,
  String? engineVersion,
  int? iops,
  String? masterUserPassword,
  bool? multiAZ,
  String? newDBInstanceIdentifier,
  String? optionGroupName,
  String? preferredBackupWindow,
  String? preferredMaintenanceWindow,
  List<String>? vpcSecurityGroupIds,
}) async {
  ArgumentError.checkNotNull(dBInstanceIdentifier, 'dBInstanceIdentifier');
  final $request = <String, dynamic>{};
  $request['DBInstanceIdentifier'] = dBInstanceIdentifier;
  allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg);
  allowMajorVersionUpgrade
      ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg);
  applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg);
  autoMinorVersionUpgrade
      ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg);
  backupRetentionPeriod
      ?.also((arg) => $request['BackupRetentionPeriod'] = arg);
  dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg);
  dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg);
  dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg);
  engineVersion?.also((arg) => $request['EngineVersion'] = arg);
  iops?.also((arg) => $request['Iops'] = arg);
  masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg);
  multiAZ?.also((arg) => $request['MultiAZ'] = arg);
  newDBInstanceIdentifier
      ?.also((arg) => $request['NewDBInstanceIdentifier'] = arg);
  optionGroupName?.also((arg) => $request['OptionGroupName'] = arg);
  preferredBackupWindow
      ?.also((arg) => $request['PreferredBackupWindow'] = arg);
  preferredMaintenanceWindow
      ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg);
  vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'ModifyDBInstance',
    version: '2013-09-09',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['ModifyDBInstanceMessage'],
    shapes: shapes,
    resultWrapper: 'ModifyDBInstanceResult',
  );
  return ModifyDBInstanceResult.fromXml($result);
}