startElasticsearchServiceSoftwareUpdate method

Future<StartElasticsearchServiceSoftwareUpdateResponse> startElasticsearchServiceSoftwareUpdate({
  1. required String domainName,
})

Schedules a service software update for an Amazon ES 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<StartElasticsearchServiceSoftwareUpdateResponse>
    startElasticsearchServiceSoftwareUpdate({
  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/start',
    exceptionFnMap: _exceptionFns,
  );
  return StartElasticsearchServiceSoftwareUpdateResponse.fromJson(response);
}