updateTraceSegmentDestination method

Future<UpdateTraceSegmentDestinationResult> updateTraceSegmentDestination({
  1. TraceSegmentDestination? destination,
})

Modifies the destination of data sent to PutTraceSegments. The Transaction Search feature requires the CloudWatchLogs destination. For more information, see Transaction Search.

May throw InvalidRequestException. May throw ThrottledException.

Parameter destination : The configured destination of trace segments.

Implementation

Future<UpdateTraceSegmentDestinationResult> updateTraceSegmentDestination({
  TraceSegmentDestination? destination,
}) async {
  final $payload = <String, dynamic>{
    if (destination != null) 'Destination': destination.value,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/UpdateTraceSegmentDestination',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateTraceSegmentDestinationResult.fromJson(response);
}