updateIndexingRule method

Future<UpdateIndexingRuleResult> updateIndexingRule({
  1. required String name,
  2. required IndexingRuleValueUpdate rule,
})

Modifies an indexing rule’s configuration.

Indexing rules are used for determining the sampling rate for spans indexed from CloudWatch Logs. For more information, see Transaction Search.

May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottledException.

Parameter name : Name of the indexing rule to be updated.

Parameter rule : Rule configuration to be updated.

Implementation

Future<UpdateIndexingRuleResult> updateIndexingRule({
  required String name,
  required IndexingRuleValueUpdate rule,
}) async {
  final $payload = <String, dynamic>{
    'Name': name,
    'Rule': rule,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/UpdateIndexingRule',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateIndexingRuleResult.fromJson(response);
}