listConfigurationRevisions method

Future<ListConfigurationRevisionsResponse> listConfigurationRevisions({
  1. required String arn,
  2. int? maxResults,
  3. String? nextToken,
})

Returns a list of all the MSK configurations in this Region.

May throw BadRequestException. May throw UnauthorizedException. May throw InternalServerErrorException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceUnavailableException.

Parameter arn :

The Amazon Resource Name (ARN) that uniquely identifies an MSK configuration and all of its revisions.

Parameter maxResults :

The maximum number of results to return in the response. If there are more results, the response includes a NextToken parameter.

Parameter nextToken :

The paginated results marker. When the result of the operation is truncated, the call returns NextToken in the response. To get the next batch, provide this token in your next request.

Implementation

Future<ListConfigurationRevisionsResponse> listConfigurationRevisions({
  required String arn,
  int? maxResults,
  String? nextToken,
}) async {
  ArgumentError.checkNotNull(arn, 'arn');
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    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: '/v1/configurations/${Uri.encodeComponent(arn)}/revisions',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListConfigurationRevisionsResponse.fromJson(response);
}