listConnectorScanConfigurations method

Future<ListConnectorScanConfigurationsResponse> listConnectorScanConfigurations({
  1. List<String>? awsConfigConnectorArns,
  2. int? maxResults,
  3. String? nextToken,
})

Lists scan configurations for Amazon Web Services Config connectors. Results are paginated. Use the nextToken parameter to retrieve the next page of results.

May throw AccessDeniedException. May throw InternalServerException. May throw ThrottlingException. May throw ValidationException.

Parameter awsConfigConnectorArns : The list of Amazon Web Services Config connector ARNs to filter results.

Parameter maxResults : The maximum number of results to return in a single call. Valid range is 1 to 50. To retrieve the remaining results, make another request with the nextToken value returned from this request.

Parameter nextToken : A token to use for paginating results. Set this value to null for the first request. For subsequent calls, use the nextToken value returned from the previous request.

Implementation

Future<ListConnectorScanConfigurationsResponse>
    listConnectorScanConfigurations({
  List<String>? awsConfigConnectorArns,
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    50,
  );
  final $payload = <String, dynamic>{
    if (awsConfigConnectorArns != null)
      'awsConfigConnectorArns': awsConfigConnectorArns,
    if (maxResults != null) 'maxResults': maxResults,
    if (nextToken != null) 'nextToken': nextToken,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/connectorscanconfigurations/list',
    exceptionFnMap: _exceptionFns,
  );
  return ListConnectorScanConfigurationsResponse.fromJson(response);
}