Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SnsAction

import type { SnsAction } from "https://aws-api.deno.dev/v0.3/services/iot.ts?docs=full";

Describes an action to publish to an Amazon SNS topic.

interface SnsAction {
messageFormat?: MessageFormat | null;
roleArn: string;
targetArn: string;
}

§Properties

§
messageFormat?: MessageFormat | null
[src]

(Optional) The message format of the message to publish. Accepted values are "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted. To read more about SNS message formats, see https://docs.aws.amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.

§
roleArn: string
[src]

The ARN of the IAM role that grants access.

§
targetArn: string
[src]

The ARN of the SNS topic.