AWS CLI:SES Configset目标错误输出

问题描述 投票:0回答:1

我创建了一个SES Configset,并尝试使用CLI添加SNS Event-Destination,但我总是收到此错误,

[root@me]# aws --version
aws-cli/1.18.51 Python/2.7.5 Linux/3.10.0-1062.18.1.el7.x86_64 botocore/1.16.1
[root@me]# aws ses update-configuration-set-event-destination  --generate-cli-skeleton
{
    "ConfigurationSetName": "",
    "EventDestination": {
        "Name": "",
        "Enabled": true,
        "MatchingEventTypes": [
            "open"
        ],
        "KinesisFirehoseDestination": {
            "IAMRoleARN": "",
            "DeliveryStreamARN": ""
        },
        "CloudWatchDestination": {
            "DimensionConfigurations": [
                {
                    "DimensionName": "",
                    "DimensionValueSource": "linkTag",
                    "DefaultDimensionValue": ""
                }
            ]
        },
        "SNSDestination": {
            "TopicARN": ""
        }
    }
}

[root@me]# aws ses list-configuration-sets
{
    "ConfigurationSets": [
        {
            "Name": "my-ses-configset"
        }
    ]
}
[root@me]# aws ses update-configuration-set-event-destination --cli-input-json  {     "ConfigurationSetName": "my-ses-configset",     "EventDestination": {         "Name": "my-sns-destination",         "Enabled": true,         "MatchingEventTypes": [             "reject"         ],         "SNSDestination": {             "TopicARN": "<my SNS Topic ARN>"         }     } }

Unknown options: my-ses-configset,, EventDestination:, {, Name:, my-sns-destination,, Enabled:, true,, MatchingEventTypes:, [, bounce, ],, SNSDestination:, {, TopicARN:, <my SNS Topic ARN>, }, }, }, ConfigurationSetName:

这里怎么了?我提供正确的SNS-topic-arn。

json amazon-web-services amazon amazon-sns amazon-ses
1个回答
0
投票

[您需要用单引号将输入json括起来,否则json中以空格分隔的字符串将被解释为命令行参数。这就是为什么您收到Unknown options错误消息的原因。

© www.soinside.com 2019 - 2024. All rights reserved.