cancelServiceSoftwareUpdate method
Future<CancelServiceSoftwareUpdateResponse>
cancelServiceSoftwareUpdate({
- required String domainName,
Cancels a scheduled service software update for an Amazon OpenSearch
Service 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<CancelServiceSoftwareUpdateResponse> cancelServiceSoftwareUpdate({
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: '/2021-01-01/opensearch/serviceSoftwareUpdate/cancel',
exceptionFnMap: _exceptionFns,
);
return CancelServiceSoftwareUpdateResponse.fromJson(response);
}