updateIndexingConfiguration method
Future<void>
updateIndexingConfiguration({
- ThingGroupIndexingConfiguration? thingGroupIndexingConfiguration,
- ThingIndexingConfiguration? thingIndexingConfiguration,
Updates the search configuration.
Requires permission to access the UpdateIndexingConfiguration action.
May throw InternalFailureException.
May throw InvalidRequestException.
May throw ServiceUnavailableException.
May throw ThrottlingException.
May throw UnauthorizedException.
Parameter thingGroupIndexingConfiguration :
Thing group indexing configuration.
Parameter thingIndexingConfiguration :
Thing indexing configuration.
Implementation
Future<void> updateIndexingConfiguration({
ThingGroupIndexingConfiguration? thingGroupIndexingConfiguration,
ThingIndexingConfiguration? thingIndexingConfiguration,
}) async {
final $payload = <String, dynamic>{
if (thingGroupIndexingConfiguration != null)
'thingGroupIndexingConfiguration': thingGroupIndexingConfiguration,
if (thingIndexingConfiguration != null)
'thingIndexingConfiguration': thingIndexingConfiguration,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/indexing/config',
exceptionFnMap: _exceptionFns,
);
}