Class CfnTopicRule.SnsActionProperty
Describes an action to publish to an Amazon SNS topic.
Inheritance
System.Object
CfnTopicRule.SnsActionProperty
Implements
Namespace: Amazon.CDK.AWS.IoT
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SnsActionProperty : Object, CfnTopicRule.ISnsActionProperty
Syntax (vb)
Public Class SnsActionProperty
Inherits Object
Implements CfnTopicRule.ISnsActionProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;
var snsActionProperty = new SnsActionProperty {
RoleArn = "roleArn",
TargetArn = "targetArn",
// the properties below are optional
MessageFormat = "messageFormat"
};
Synopsis
Constructors
SnsActionProperty() |
Properties
MessageFormat | (Optional) The message format of the message to publish. |
RoleArn | The ARN of the IAM role that grants access. |
TargetArn | The ARN of the SNS topic. |
Constructors
SnsActionProperty()
public SnsActionProperty()
Properties
MessageFormat
(Optional) The message format of the message to publish.
public string MessageFormat { get; set; }
Property Value
System.String
Remarks
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. For more information, see Amazon SNS Message and JSON Formats in the Amazon Simple Notification Service Developer Guide .
RoleArn
The ARN of the IAM role that grants access.
public string RoleArn { get; set; }
Property Value
System.String
Remarks
TargetArn
The ARN of the SNS topic.
public string TargetArn { get; set; }
Property Value
System.String