过滤AWS SNS订阅中的消息

时间:2018-06-12 08:01:07

标签: amazon-web-services amazon-sns

我创建了一个SNS订阅并开始接收大量电子邮件

我有兴趣只接收以下电子邮件:

邮件正文中包含New Compliance Change RecordcomplianceType的所有电子邮件

我找到了这个指南https://docs.aws.amazon.com/sns/latest/dg/message-filtering.html,根据这个我需要指定complianceType的值,这不是我想要的。

我需要在邮件正文

中收到包含New Compliance Change RecordcomplianceType的任何电子邮件
New Compliance Change Record:
----------------------------
{
"awsAccountId": "123456789",
"configRuleName": "encrypted-volumes",
"configRuleARN": "arn:aws:config:us-east-1:279052847476:config-rule/config-rule-3sovvx",
"resourceType": "AWS::EC2::Volume",
"resourceId": "vol-0f4f07ce39ca10b26",
"awsRegion": "us-east-1",
"newEvaluationResult": {
"evaluationResultIdentifier": {
"evaluationResultQualifier": {
"configRuleName": "encrypted-volumes",
"resourceType": "AWS::EC2::Volume",
"resourceId": "vol-0f4f07ce39ca10b26"
},
"orderingTimestamp": "2018-06-12T00:31:39.624Z"
},
"complianceType": "NON_COMPLIANT",
"resultRecordedTime": "2018-06-12T00:31:43.838Z",
"configRuleInvokedTime": "2018-06-12T00:31:43.595Z",
"annotation": null,
"resultToken": null
},

试过这个:

{
"complianceType" : {"Type":"String","Value":"*"}
}

但是图片enter image description here

出错了

设法设置此过滤器,但不确定是否正确

{
"complianceType" :["NON_COMPLIANT","COMPLIANT"]
}

0 个答案:

没有答案
相关问题