updateRdsDbInstance method
Updates an Amazon RDS instance.
Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.
May throw ValidationException. May throw ResourceNotFoundException.
Parameter rdsDbInstanceArn
:
The Amazon RDS instance's ARN.
Parameter dbPassword
:
The database password.
Parameter dbUser
:
The master user name.
Implementation
Future<void> updateRdsDbInstance({
required String rdsDbInstanceArn,
String? dbPassword,
String? dbUser,
}) async {
ArgumentError.checkNotNull(rdsDbInstanceArn, 'rdsDbInstanceArn');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'OpsWorks_20130218.UpdateRdsDbInstance'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'RdsDbInstanceArn': rdsDbInstanceArn,
if (dbPassword != null) 'DbPassword': dbPassword,
if (dbUser != null) 'DbUser': dbUser,
},
);
}