Class SnsTopicAction.Builder
java.lang.Object
software.amazon.awscdk.services.iot.actions.SnsTopicAction.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SnsTopicAction>
- Enclosing class:
SnsTopicAction
@Stability(Experimental)
public static final class SnsTopicAction.Builder
extends Object
implements software.amazon.jsii.Builder<SnsTopicAction>
(experimental) A fluent builder for
SnsTopicAction
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static SnsTopicAction.Builder
messageFormat
(SnsActionMessageFormat messageFormat) (experimental) The message format of the message to publish.(experimental) The IAM role that allows access to AWS service.
-
Method Details
-
create
- Parameters:
topic
- The Amazon SNS topic to publish data on. This parameter is required.- Returns:
- a new instance of
SnsTopicAction.Builder
.
-
role
(experimental) The IAM role that allows access to AWS service.Default: a new role will be created
- Parameters:
role
- The IAM role that allows access to AWS service. This parameter is required.- Returns:
this
-
messageFormat
@Stability(Experimental) public SnsTopicAction.Builder messageFormat(SnsActionMessageFormat messageFormat) (experimental) The message format of the message to publish.SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted.
Default: SnsActionMessageFormat.RAW
- Parameters:
messageFormat
- The message format of the message to publish. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SnsTopicAction>
- Returns:
- a newly built instance of
SnsTopicAction
.
-