buildSuggesters method

Future<BuildSuggestersResponse> buildSuggesters({
  1. required String domainName,
})

Indexes the search suggestions. For more information, see Configuring Suggesters in the Amazon CloudSearch Developer Guide.

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

Implementation

Future<BuildSuggestersResponse> buildSuggesters({
  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: 'BuildSuggesters',
    version: '2013-01-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['BuildSuggestersRequest'],
    shapes: shapes,
    resultWrapper: 'BuildSuggestersResult',
  );
  return BuildSuggestersResponse.fromXml($result);
}