describeStemmingOptions method

Future<DescribeStemmingOptionsResponse> describeStemmingOptions({
  1. required String domainName,
})

Gets the stemming dictionary configured for the search domain.

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

Implementation

Future<DescribeStemmingOptionsResponse> describeStemmingOptions({
  required String domainName,
}) async {
  ArgumentError.checkNotNull(domainName, 'domainName');
  _s.validateStringLength(
    'domainName',
    domainName,
    3,
    28,
    isRequired: true,
  );
  final $request = <String, dynamic>{};
  $request['DomainName'] = domainName;
  final $result = await _protocol.send(
    $request,
    action: 'DescribeStemmingOptions',
    version: '2011-02-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DescribeStemmingOptionsRequest'],
    shapes: shapes,
    resultWrapper: 'DescribeStemmingOptionsResult',
  );
  return DescribeStemmingOptionsResponse.fromXml($result);
}