startServiceSoftwareUpdate method

Future<StartServiceSoftwareUpdateResponse> startServiceSoftwareUpdate({
  1. required String domainName,
})

Schedules a service software update for an Amazon OpenSearch Service domain.

May throw BaseException. May throw InternalException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter domainName : The name of the domain that you want to update to the latest service software.

Implementation

Future<StartServiceSoftwareUpdateResponse> startServiceSoftwareUpdate({
  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/start',
    exceptionFnMap: _exceptionFns,
  );
  return StartServiceSoftwareUpdateResponse.fromJson(response);
}