listConfigurationRevisions method
Returns a list of all revisions for the specified configuration.
May throw NotFoundException. May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException.
Parameter configurationId
:
The unique ID that Amazon MQ generates for the configuration.
Parameter maxResults
:
The maximum number of configurations that Amazon MQ can return per page
(20 by default). This value must be an integer from 5 to 100.
Parameter nextToken
:
The token that specifies the next page of results Amazon MQ should return.
To request the first page, leave nextToken empty.
Implementation
Future<ListConfigurationRevisionsResponse> listConfigurationRevisions({
required String configurationId,
int? maxResults,
String? nextToken,
}) async {
ArgumentError.checkNotNull(configurationId, 'configurationId');
_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(configurationId)}/revisions',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListConfigurationRevisionsResponse.fromJson(response);
}