@grow-codes/aws-cloudwatch-logs - v0.1.1
    Preparing search index...

    Function mapAwsError

    • Maps any error thrown by an AWS SDK call to a CloudWatchLogsError (API.md §1.1): AWS error code first, then the HTTP status, then network / timeout / cancellation shapes. The message is "<operation>: <reason>: <AwsCode> (HTTP <status>)"; AWS messages are never copied (they may echo log data), and the cause is redacted with knownSecrets.

      Parameters

      • operation: string
      • err: unknown
      • knownSecrets: Iterable<KnownSecret> = []

      Returns CloudWatchLogsError