cancelElasticsearchServiceSoftwareUpdate method
Future<CancelElasticsearchServiceSoftwareUpdateResponse>
cancelElasticsearchServiceSoftwareUpdate({
- required String domainName,
Cancels a scheduled service software update for an Amazon ES domain. You
can only perform this operation before the
AutomatedUpdateDate
and when the UpdateStatus
is
in the PENDING_UPDATE
state.
May throw BaseException. May throw InternalException. May throw ResourceNotFoundException. May throw ValidationException.
Parameter domainName
:
The name of the domain that you want to stop the latest service software
update on.
Implementation
Future<CancelElasticsearchServiceSoftwareUpdateResponse>
cancelElasticsearchServiceSoftwareUpdate({
required String domainName,
}) async {
ArgumentError.checkNotNull(domainName, 'domainName');
_s.validateStringLength(
'domainName',
domainName,
3,
28,
isRequired: true,
);
final $payload = <String, dynamic>{
'DomainName': domainName,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/2015-01-01/es/serviceSoftwareUpdate/cancel',
exceptionFnMap: _exceptionFns,
);
return CancelElasticsearchServiceSoftwareUpdateResponse.fromJson(response);
}