SQS Consumer
    Preparing search index...

    Type Alias AWSError

    The error object that is emitted with error events from AWS.

    type AWSError = {
        $fault: "client" | "server";
        $metadata: {
            attempts?: number;
            cfId?: string;
            extendedRequestId?: string;
            httpStatusCode?: number;
            requestId?: string;
            totalRetryDelay?: number;
        };
        message: string;
        name: string;
        $response?: {
            headers: Record<string, string>;
            body?: any;
            statusCode?: number;
        };
        $retryable?: { throttling?: boolean };
        $service?: string;
        stack?: string;
    }
    Index

    Properties

    $fault: "client" | "server"

    Whether the client or server are at fault.

    $metadata: {
        attempts?: number;
        cfId?: string;
        extendedRequestId?: string;
        httpStatusCode?: number;
        requestId?: string;
        totalRetryDelay?: number;
    }

    Type declaration

    • Optional Readonlyattempts?: number

      The number of times this operation was attempted.

    • Optional ReadonlycfId?: string

      A tertiary identifier for the last request sent. Used for debugging.

    • Optional ReadonlyextendedRequestId?: string

      A secondary identifier for the last request sent. Used for debugging.

    • Optional ReadonlyhttpStatusCode?: number

      The status code of the last HTTP response received for this operation.

    • Optional ReadonlyrequestId?: string

      A unique identifier for the last request sent for this operation. Often requested by AWS service teams to aid in debugging.

    • Optional ReadonlytotalRetryDelay?: number

      The total amount of time (in milliseconds) that was spent waiting between retry attempts.

    message: string

    Human-readable error response message

    name: string

    Name, eg. ConditionalCheckFailedException

    $response?: { headers: Record<string, string>; body?: any; statusCode?: number }

    Represents an HTTP message as received in reply to a request

    Type declaration

    • headers: Record<string, string>

      The headers of the HTTP message.

    • Optionalbody?: any

      The body of the HTTP message. Can be: ArrayBuffer | ArrayBufferView | string | Uint8Array | Readable | ReadableStream

    • OptionalstatusCode?: number

      The status code of the HTTP response.

    $retryable?: { throttling?: boolean }

    Indicates that an error MAY be retried by the client.

    Type declaration

    • Optional Readonlythrottling?: boolean

      Indicates that the error is a retryable throttling error.

    $service?: string

    The service that encountered the exception.

    stack?: string

    Non-standard stacktrace