getConnectors method

Future<GetConnectorsResponse> getConnectors({
  1. int? maxResults,
  2. String? nextToken,
})

Describes the connectors registered with the AWS SMS.

May throw UnauthorizedOperationException.

Parameter maxResults : The maximum number of results to return in a single call. The default value is 50. To retrieve the remaining results, make another call with the returned NextToken value.

Parameter nextToken : The token for the next set of results.

Implementation

Future<GetConnectorsResponse> getConnectors({
  int? maxResults,
  String? nextToken,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSServerMigrationService_V2016_10_24.GetConnectors'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (maxResults != null) 'maxResults': maxResults,
      if (nextToken != null) 'nextToken': nextToken,
    },
  );

  return GetConnectorsResponse.fromJson(jsonResponse.body);
}