Class CfnTopicRule.SnsActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnTopicRule.SnsActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRule.SnsActionProperty>
- Enclosing interface:
CfnTopicRule.SnsActionProperty
@Stability(Stable)
public static final class CfnTopicRule.SnsActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRule.SnsActionProperty>
A builder for
CfnTopicRule.SnsActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.messageFormat
(String messageFormat) Sets the value ofCfnTopicRule.SnsActionProperty.getMessageFormat()
Sets the value ofCfnTopicRule.SnsActionProperty.getRoleArn()
Sets the value ofCfnTopicRule.SnsActionProperty.getTargetArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
Sets the value ofCfnTopicRule.SnsActionProperty.getRoleArn()
- Parameters:
roleArn
- The ARN of the IAM role that grants access. This parameter is required.- Returns:
this
-
targetArn
Sets the value ofCfnTopicRule.SnsActionProperty.getTargetArn()
- Parameters:
targetArn
- The ARN of the SNS topic. This parameter is required.- Returns:
this
-
messageFormat
@Stability(Stable) public CfnTopicRule.SnsActionProperty.Builder messageFormat(String messageFormat) Sets the value ofCfnTopicRule.SnsActionProperty.getMessageFormat()
- Parameters:
messageFormat
- (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. For more information, see Amazon SNS Message and JSON Formats in the Amazon Simple Notification Service Developer Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTopicRule.SnsActionProperty>
- Returns:
- a new instance of
CfnTopicRule.SnsActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-