getUpgradeStatus method
Retrieves the latest status of the last upgrade or upgrade eligibility check performed on the domain.
May throw BaseException. May throw ResourceNotFoundException. May throw DisabledOperationException. May throw ValidationException. May throw InternalException.
Implementation
Future<GetUpgradeStatusResponse> getUpgradeStatus({
required String domainName,
}) async {
ArgumentError.checkNotNull(domainName, 'domainName');
_s.validateStringLength(
'domainName',
domainName,
3,
28,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/2021-01-01/opensearch/upgradeDomain/${Uri.encodeComponent(domainName)}/status',
exceptionFnMap: _exceptionFns,
);
return GetUpgradeStatusResponse.fromJson(response);
}