listConnectorsV2 method

Future<ListConnectorsV2Response> listConnectorsV2({
  1. ConnectorStatus? connectorStatus,
  2. int? maxResults,
  3. String? nextToken,
  4. ConnectorProviderName? providerName,
})

Grants permission to retrieve a list of connectorsV2 and their metadata for the calling account.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter connectorStatus : The status for the connectorV2.

Parameter maxResults : The maximum number of results to be returned.

Parameter nextToken : The pagination token per the Amazon Web Services Pagination standard

Parameter providerName : The name of the third-party provider.

Implementation

Future<ListConnectorsV2Response> listConnectorsV2({
  ConnectorStatus? connectorStatus,
  int? maxResults,
  String? nextToken,
  ConnectorProviderName? providerName,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    100,
  );
  final $query = <String, List<String>>{
    if (connectorStatus != null) 'ConnectorStatus': [connectorStatus.value],
    if (maxResults != null) 'MaxResults': [maxResults.toString()],
    if (nextToken != null) 'NextToken': [nextToken],
    if (providerName != null) 'ProviderName': [providerName.value],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/connectorsv2',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListConnectorsV2Response.fromJson(response);
}