SnsAlarm - AWS Data Pipeline

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

SnsAlarm

在活动失败或成功完成时发送 Amazon SNS 通知消息。

示例

以下是该对象类型的示例。node.inputnode.output 的值来自在其 onSuccess 字段中引用该对象的数据节点或活动。

{ "id" : "SuccessNotify", "name" : "SuccessNotify", "type" : "SnsAlarm", "topicArn" : "arn:aws:sns:us-east-1:28619EXAMPLE:ExampleTopic", "subject" : "COPY SUCCESS: #{node.@scheduledStartTime}", "message" : "Files were copied from #{node.input} to #{node.output}." }

语法

必填字段 描述 槽类型
消息 Amazon SNS 通知的正文文本。 String
role 创建 Amazon SNS 警报所用的 IAM 角色。 String
subject Amazon SNS 通知消息的主题行。 String
topicArn 消息的目标 Amazon SNS 主题 ARN。 String

可选字段 描述 槽类型
parent 槽将继承自的当前对象的父级。 引用对象,例如 “父对象”:{"ref”:” myBaseObject Id "}

运行时字段 描述 槽类型
node 将为其执行此操作的节点。 引用对象,例如 “节点”:{"ref”:” myRunnableObject Id "}
@version 用来创建对象的管道版本。 String

系统字段 描述 槽类型
@error 用于描述格式不正确的对象的错误消息。 String
@pipelineId 该对象所属的管道的 ID。 String
@sphere 对象的范围指明对象在生命周期中的位置:组件对象产生实例对象,后者执行尝试对象。 String