的操作权限 Amazon IoT Events - Amazon IoT Events
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

终止支持通知:2026 年 5 月 20 日, Amazon 将终止对的支持。 Amazon IoT Events 2026 年 5 月 20 日之后,您将无法再访问 Amazon IoT Events 控制台或 Amazon IoT Events 资源。有关更多信息,请参阅Amazon IoT Events 终止支持

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

的操作权限 Amazon IoT Events

Amazon IoT Events 使您能够触发使用其他 Amazon 服务的操作。为此,您必须授予代表您执行这些操作的 Amazon IoT Events 权限。本节包含操作列表和示例策略,该策略授权对您的资源执行所有此类操作。根据需要更改regionaccount-id引用。如有可能,您还应该更改通配符 (*),以引用特定的待访问资源。您可以使用 IAM 控制台授 Amazon IoT Events 予发送您定义的 Amazon SNS 提醒的权限。

Amazon IoT Events 支持以下允许您使用计时器或设置变量的操作:

Amazon IoT Events 支持以下允许您使用 Amazon 服务的操作:

  • iotTopicPublish 发布有关 MATT 主题的消息。

  • iotEvents 将数据以输入值的形式发送至 Amazon IoT Events 。

  • iotSiteWise 将数据发送至 Amazon IoT SiteWise中的资产属性。

  • dynamoDB 向 Amazon DynamoDB 表发送数据。

  • dynamoDBv2 向 Amazon DynamoDB 表发送数据。

  • firehose将数据发送到 Amazon Data Firehose 流。

  • lambda 调用 Amazon Lambda 函数。

  • sns 将数据作为推送通知发送。

  • sqs 将数据发布至 Amazon SQS 队列。

例 策略
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "iot:Publish", "Resource": "arn:aws:iot:<region>:<account_id>:topic/*" }, { "Effect": "Allow", "Action": "iotevents:BatchPutMessage", "Resource": "arn:aws:iotevents:<region>:<account_id>:input/*" }, { "Effect": "Allow", "Action": "iotsitewise:BatchPutAssetPropertyValue", "Resource": "*" }, { "Effect": "Allow", "Action": "dynamodb:PutItem", "Resource": "arn:aws:dynamodb:<region>:<account_id>:table/*" }, { "Effect": "Allow", "Action": [ "firehose:PutRecord", "firehose:PutRecordBatch" ], "Resource": "arn:aws:firehose:<region>:<account_id>:deliverystream/*" }, { "Effect": "Allow", "Action": "lambda:InvokeFunction", "Resource": "arn:aws:lambda:<region>:<account_id>:function:*" }, { "Effect": "Allow", "Action": "sns:Publish", "Resource": "arn:aws:sns:<region>:<account_id>:*" }, { "Effect": "Allow", "Action": "sqs:SendMessage", "Resource": "arn:aws:sqs:<region>:<account_id>:*" } ] }