describeDomainAutoTunes method

Future<DescribeDomainAutoTunesResponse> describeDomainAutoTunes({
  1. required String domainName,
  2. int? maxResults,
  3. String? nextToken,
})

Provides scheduled Auto-Tune action details for the Elasticsearch domain, such as Auto-Tune action type, description, severity, and scheduled date.

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

Parameter domainName : Specifies the domain name for which you want Auto-Tune action details.

Parameter maxResults : Set this value to limit the number of results returned. If not specified, defaults to 100.

Parameter nextToken : NextToken is sent in case the earlier API call results contain the NextToken. It is used for pagination.

Implementation

Future<DescribeDomainAutoTunesResponse> describeDomainAutoTunes({
  required String domainName,
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    0,
    100,
  );
  final $query = <String, List<String>>{
    if (maxResults != null) 'maxResults': [maxResults.toString()],
    if (nextToken != null) 'nextToken': [nextToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/2015-01-01/es/domain/${Uri.encodeComponent(domainName)}/autoTunes',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return DescribeDomainAutoTunesResponse.fromJson(response);
}