Class CfnTopicRule.StepFunctionsActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnTopicRule.StepFunctionsActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRule.StepFunctionsActionProperty>
- Enclosing interface:
- CfnTopicRule.StepFunctionsActionProperty
@Stability(Stable)
public static final class CfnTopicRule.StepFunctionsActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRule.StepFunctionsActionProperty>
A builder for
CfnTopicRule.StepFunctionsActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.executionNamePrefix(String executionNamePrefix) Sets the value ofCfnTopicRule.StepFunctionsActionProperty.getExecutionNamePrefix()Sets the value ofCfnTopicRule.StepFunctionsActionProperty.getRoleArn()stateMachineName(String stateMachineName) Sets the value ofCfnTopicRule.StepFunctionsActionProperty.getStateMachineName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
Sets the value ofCfnTopicRule.StepFunctionsActionProperty.getRoleArn()- Parameters:
roleArn- The ARN of the role that grants IoT permission to start execution of a state machine ("Action":"states:StartExecution"). This parameter is required.- Returns:
this
-
stateMachineName
@Stability(Stable) public CfnTopicRule.StepFunctionsActionProperty.Builder stateMachineName(String stateMachineName) Sets the value ofCfnTopicRule.StepFunctionsActionProperty.getStateMachineName()- Parameters:
stateMachineName- The name of the Step Functions state machine whose execution will be started. This parameter is required.- Returns:
this
-
executionNamePrefix
@Stability(Stable) public CfnTopicRule.StepFunctionsActionProperty.Builder executionNamePrefix(String executionNamePrefix) Sets the value ofCfnTopicRule.StepFunctionsActionProperty.getExecutionNamePrefix()- Parameters:
executionNamePrefix- (Optional) A name will be given to the state machine execution consisting of this prefix followed by a UUID. Step Functions automatically creates a unique name for each state machine execution if one is not provided.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTopicRule.StepFunctionsActionProperty>- Returns:
- a new instance of
CfnTopicRule.StepFunctionsActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-