listPlugins method

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

List AWS Migration Hub Orchestrator plugins.

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

Parameter maxResults : The maximum number of plugins that can be returned.

Parameter nextToken : The pagination token.

Implementation

Future<ListPluginsResponse> listPlugins({
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    0,
    100,
  );
  final $query = <String, List<String>>{
    if (maxResults != null) 'maxResults': [maxResults.toString()],
    if (nextToken != null) 'nextToken': [nextToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/plugins',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListPluginsResponse.fromJson(response);
}