AWSIoTSnsAction

Objective-C

@interface AWSIoTSnsAction

Swift

class AWSIoTSnsAction

Describes an action to publish to an Amazon SNS topic.

Required parameters: [targetArn, roleArn]

  • (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.

    Declaration

    Objective-C

    @property (nonatomic) AWSIoTMessageFormat messageFormat;

    Swift

    var messageFormat: AWSIoTMessageFormat { get set }
  • The ARN of the IAM role that grants access.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable roleArn;

    Swift

    var roleArn: String? { get set }
  • The ARN of the SNS topic.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable targetArn;

    Swift

    var targetArn: String? { get set }