@liflig/cdk
    Preparing search index...

    Type Alias SqsIntegrationProps

    type SqsIntegrationProps = {
        messageAttributes?: {
            [attributeName: string]:
                | { DataType: "String"
                | "Number"; StringValue: string }
                | { BinaryValue: string; DataType: "Binary" };
        };
        queue: sqs.IQueue;
    }
    Index

    Properties

    messageAttributes?: {
        [attributeName: string]:
            | { DataType: "String"
            | "Number"; StringValue: string }
            | { BinaryValue: string; DataType: "Binary" };
    }

    Message attributes to pass on to SQS. The keys in this object are the names of the attributes. Each attribute has a DataType field, and either a StringValue or BinaryValue field depending on its type. See AWS docs: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_MessageAttributeValue.html

    In the StringValue field, you can do API Gateway parameter mapping: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-parameter-mapping.html

    Example:

    messageAttributes: {
    clientId: {
    DataType: "String",
    StringValue: "${context.authorizer.clientId}",
    },
    },
    queue: sqs.IQueue