gpt4 book ai didi

amazon-web-services - 属性 Subscription 的值必须是对象列表

转载 作者:行者123 更新时间:2023-12-03 07:27:02 25 4
gpt4 key购买 nike

使用 AWS Cloud Formation Designer 制作一个简单的 SNS 主题,其中包含 SES 的订阅和队列。我连接了组件,但我的堆栈无法创建订阅。

错误:属性订阅的值必须是对象列表

   "Resources": {
"SNST3F2X9": {
"Type": "AWS::SNS::Topic",
"Properties": {
"DisplayName": "EmailBounceTopic",
"Subscription": [
"EmailBounceSubscription"
],
"TopicName": "EmailBounceTopic"
},
"Metadata": {
"AWS::CloudFormation::Designer": {
"id": "094fd7f3-2e35-4219-8f87-07ad335f85bb"
}
}
},
"SNST3FDSS": {
"Type": "AWS::SNS::Subscription",
"Properties": {
"EndPoint": "BounceQueue",
"Protocol": "SQS",
"RawMessageDelivery": true,
"TopicArn": {
"Ref": "SNST3F2X9"
}
},
"Metadata": {
"AWS::CloudFormation::Designer": {
"id": "b9524cd1-7d7a-46a6-9c34-33ceccccf3d4"
}
}
},
"SQSQ3OZGY": {
"Type": "AWS::SQS::Queue",
"Properties": {
"QueueName": "BounceQueue"
},
"Metadata": {
"AWS::CloudFormation::Designer": {
"id": "d5a6cfd6-4b52-486a-97c1-4021528c32fc"
}
},
"DependsOn": [
"SNST3FDSS"
]
}
}

最佳答案

您当前的订阅是:

            "Subscription": [
"EmailBounceSubscription"
]

但是Subscription应该是以下形式的对象列表(示例):

    "Subscription" : [{
"Endpoint" : "EmailBounceSubscription",
"Protocol" : "email"
}

关于amazon-web-services - 属性 Subscription 的值必须是对象列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66755198/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com