updateIndexingConfiguration method

Future<void> updateIndexingConfiguration({
  1. ThingGroupIndexingConfiguration? thingGroupIndexingConfiguration,
  2. ThingIndexingConfiguration? thingIndexingConfiguration,
})

Updates the search configuration.

May throw InvalidRequestException. May throw ThrottlingException. May throw UnauthorizedException. May throw ServiceUnavailableException. May throw InternalFailureException.

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,
  );
}