Amazon AWS for SQS队列上的MassTransit服务器端加密

时间:2020-01-22 18:35:50

标签: c# amazon-web-services amazon-sqs masstransit

是否可以通过MassTransit在Amazon SQS上激活服务器端加密(SSE)?我可以在MT的SQS中设置默认可见性超时吗?

1 个答案:

答案 0 :(得分:0)

您应该能够在这两个设置的接收端点上指定属性:

cfg.ReceiveEndpoint("my-queue", e =>
{
    e.QueueAttributes.Add(QueueAttributeName.VisibilityTimeout, "60");
    e.QueueAttributes.Add(QueueAttributeName.KmsMasterKeyId, "arn of key");
});