modifyDBProxy method
Changes the settings for an existing DB proxy.
May throw DBProxyNotFoundFault. May throw DBProxyAlreadyExistsFault. May throw InvalidDBProxyStateFault.
Parameter dBProxyName
:
The identifier for the DBProxy
to modify.
Parameter auth
:
The new authentication settings for the DBProxy
.
Parameter debugLogging
:
Whether the proxy includes detailed information about SQL statements in
its logs. This information helps you to debug issues involving SQL
behavior or the performance and scalability of the proxy connections. The
debug information includes the text of SQL statements that you submit
through the proxy. Thus, only enable this setting when needed for
debugging, and only when you have security measures in place to safeguard
any sensitive information that appears in the logs.
Parameter idleClientTimeout
:
The number of seconds that a connection to the proxy can be inactive
before the proxy disconnects it. You can set this value higher or lower
than the connection timeout limit for the associated database.
Parameter newDBProxyName
:
The new identifier for the DBProxy
. An identifier must begin
with a letter and must contain only ASCII letters, digits, and hyphens; it
can't end with a hyphen or contain two consecutive hyphens.
Parameter requireTLS
:
Whether Transport Layer Security (TLS) encryption is required for
connections to the proxy. By enabling this setting, you can enforce
encrypted TLS connections to the proxy, even if the associated database
doesn't use TLS.
Parameter roleArn
:
The Amazon Resource Name (ARN) of the IAM role that the proxy uses to
access secrets in AWS Secrets Manager.
Parameter securityGroups
:
The new list of security groups for the DBProxy
.
Implementation
Future<ModifyDBProxyResponse> modifyDBProxy({
required String dBProxyName,
List<UserAuthConfig>? auth,
bool? debugLogging,
int? idleClientTimeout,
String? newDBProxyName,
bool? requireTLS,
String? roleArn,
List<String>? securityGroups,
}) async {
ArgumentError.checkNotNull(dBProxyName, 'dBProxyName');
final $request = <String, dynamic>{};
$request['DBProxyName'] = dBProxyName;
auth?.also((arg) => $request['Auth'] = arg);
debugLogging?.also((arg) => $request['DebugLogging'] = arg);
idleClientTimeout?.also((arg) => $request['IdleClientTimeout'] = arg);
newDBProxyName?.also((arg) => $request['NewDBProxyName'] = arg);
requireTLS?.also((arg) => $request['RequireTLS'] = arg);
roleArn?.also((arg) => $request['RoleArn'] = arg);
securityGroups?.also((arg) => $request['SecurityGroups'] = arg);
final $result = await _protocol.send(
$request,
action: 'ModifyDBProxy',
version: '2014-10-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['ModifyDBProxyRequest'],
shapes: shapes,
resultWrapper: 'ModifyDBProxyResult',
);
return ModifyDBProxyResponse.fromXml($result);
}