describeDBProxyTargetGroups method

Future<DescribeDBProxyTargetGroupsResponse> describeDBProxyTargetGroups({
  1. required String dBProxyName,
  2. List<Filter>? filters,
  3. String? marker,
  4. int? maxRecords,
  5. String? targetGroupName,
})

Returns information about DB proxy target groups, represented by DBProxyTargetGroup data structures.

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

Parameter dBProxyName : The identifier of the DBProxy associated with the target group.

Parameter filters : This parameter is not currently supported.

Parameter marker : An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

Parameter maxRecords : The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

Parameter targetGroupName : The identifier of the DBProxyTargetGroup to describe.

Implementation

Future<DescribeDBProxyTargetGroupsResponse> describeDBProxyTargetGroups({
  required String dBProxyName,
  List<Filter>? filters,
  String? marker,
  int? maxRecords,
  String? targetGroupName,
}) async {
  ArgumentError.checkNotNull(dBProxyName, 'dBProxyName');
  _s.validateNumRange(
    'maxRecords',
    maxRecords,
    20,
    100,
  );
  final $request = <String, dynamic>{};
  $request['DBProxyName'] = dBProxyName;
  filters?.also((arg) => $request['Filters'] = arg);
  marker?.also((arg) => $request['Marker'] = arg);
  maxRecords?.also((arg) => $request['MaxRecords'] = arg);
  targetGroupName?.also((arg) => $request['TargetGroupName'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'DescribeDBProxyTargetGroups',
    version: '2014-10-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DescribeDBProxyTargetGroupsRequest'],
    shapes: shapes,
    resultWrapper: 'DescribeDBProxyTargetGroupsResult',
  );
  return DescribeDBProxyTargetGroupsResponse.fromXml($result);
}