deregisterDBProxyTargets method

Future<void> deregisterDBProxyTargets({
  1. required String dBProxyName,
  2. List<String>? dBClusterIdentifiers,
  3. List<String>? dBInstanceIdentifiers,
  4. String? targetGroupName,
})

Remove the association between one or more DBProxyTarget data structures and a DBProxyTargetGroup.

May throw DBProxyTargetNotFoundFault. May throw DBProxyTargetGroupNotFoundFault. May throw DBProxyNotFoundFault. May throw InvalidDBProxyStateFault.

Parameter dBProxyName : The identifier of the DBProxy that is associated with the DBProxyTargetGroup.

Parameter dBClusterIdentifiers : One or more DB cluster identifiers.

Parameter dBInstanceIdentifiers : One or more DB instance identifiers.

Parameter targetGroupName : The identifier of the DBProxyTargetGroup.

Implementation

Future<void> deregisterDBProxyTargets({
  required String dBProxyName,
  List<String>? dBClusterIdentifiers,
  List<String>? dBInstanceIdentifiers,
  String? targetGroupName,
}) async {
  ArgumentError.checkNotNull(dBProxyName, 'dBProxyName');
  final $request = <String, dynamic>{};
  $request['DBProxyName'] = dBProxyName;
  dBClusterIdentifiers?.also((arg) => $request['DBClusterIdentifiers'] = arg);
  dBInstanceIdentifiers
      ?.also((arg) => $request['DBInstanceIdentifiers'] = arg);
  targetGroupName?.also((arg) => $request['TargetGroupName'] = arg);
  await _protocol.send(
    $request,
    action: 'DeregisterDBProxyTargets',
    version: '2014-10-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DeregisterDBProxyTargetsRequest'],
    shapes: shapes,
    resultWrapper: 'DeregisterDBProxyTargetsResult',
  );
}