modifyDBInstance method
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,
May throw InvalidDBInstanceStateFault. May throw InvalidDBSecurityGroupStateFault. May throw DBInstanceAlreadyExistsFault. May throw DBInstanceNotFoundFault. May throw DBSecurityGroupNotFoundFault. May throw DBParameterGroupNotFoundFault. May throw InsufficientDBInstanceCapacityFault. May throw StorageQuotaExceededFault. May throw InvalidVPCNetworkStateFault. May throw ProvisionedIopsNotAvailableInAZFault. May throw OptionGroupNotFoundFault. May throw DBUpgradeDependencyFailureFault.
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);
}