检查 SQS 和 Lambda 是否使用 boto3 加密

Check If SQS and Lambda is encrypted using boto3

我是 AWS 的新手,我想使用 boto3 检查 SQS 和 Lambda 是否加密。我尝试搜索文档但没有找到任何东西。关于如何实现这一点有什么建议吗?

SQS

调用 client.get_queue_attributes 并查看 KmsMasterKeyIdKmsDataKeyReusePeriodSeconds

如果那些不为空 --> 队列已加密

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sqs.html#SQS.Client.get_queue_attributes