getUpgradeHistory method
Retrieves the complete history of the last 10 upgrades that were performed on the domain.
May throw BaseException. May throw ResourceNotFoundException. May throw DisabledOperationException. May throw ValidationException. May throw InternalException.
Implementation
Future<GetUpgradeHistoryResponse> getUpgradeHistory({
required String domainName,
int? maxResults,
String? nextToken,
}) async {
ArgumentError.checkNotNull(domainName, 'domainName');
_s.validateStringLength(
'domainName',
domainName,
3,
28,
isRequired: true,
);
_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:
'/2015-01-01/es/upgradeDomain/${Uri.encodeComponent(domainName)}/history',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetUpgradeHistoryResponse.fromJson(response);
}