deleteAnalysisScheme method
Deletes an analysis scheme. For more information, see Configuring Analysis Schemes in the Amazon CloudSearch Developer Guide.
May throw BaseException. May throw InternalException. May throw InvalidTypeException. May throw ResourceNotFoundException.
Parameter analysisSchemeName
:
The name of the analysis scheme you want to delete.
Implementation
Future<DeleteAnalysisSchemeResponse> deleteAnalysisScheme({
required String analysisSchemeName,
required String domainName,
}) async {
ArgumentError.checkNotNull(analysisSchemeName, 'analysisSchemeName');
_s.validateStringLength(
'analysisSchemeName',
analysisSchemeName,
1,
64,
isRequired: true,
);
ArgumentError.checkNotNull(domainName, 'domainName');
_s.validateStringLength(
'domainName',
domainName,
3,
28,
isRequired: true,
);
final $request = <String, dynamic>{};
$request['AnalysisSchemeName'] = analysisSchemeName;
$request['DomainName'] = domainName;
final $result = await _protocol.send(
$request,
action: 'DeleteAnalysisScheme',
version: '2013-01-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteAnalysisSchemeRequest'],
shapes: shapes,
resultWrapper: 'DeleteAnalysisSchemeResult',
);
return DeleteAnalysisSchemeResponse.fromXml($result);
}