getDomainMaintenanceStatus method
The status of the maintenance action.
May throw BaseException.
May throw DisabledOperationException.
May throw InternalException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter domainName :
The name of the domain.
Parameter maintenanceId :
The request ID of the maintenance action.
Implementation
Future<GetDomainMaintenanceStatusResponse> getDomainMaintenanceStatus({
required String domainName,
required String maintenanceId,
}) async {
final $query = <String, List<String>>{
'maintenanceId': [maintenanceId],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/2021-01-01/opensearch/domain/${Uri.encodeComponent(domainName)}/domainMaintenance',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetDomainMaintenanceStatusResponse.fromJson(response);
}