StepFunctionsInvokeActionProps Struct
Construction properties of the StepFunctionsInvokeAction StepFunction Invoke Action.
Example
import * as stepfunctions from 'aws-cdk-lib/aws-stepfunctions';
const pipeline = new codepipeline.Pipeline(this, 'MyPipeline');
const startState = new stepfunctions.Pass(this, 'StartState');
const simpleStateMachine = new stepfunctions.StateMachine(this, 'SimpleStateMachine', {
definition: startState,
});
const stepFunctionAction = new codepipeline_actions.StepFunctionInvokeAction({
actionName: 'Invoke',
stateMachine: simpleStateMachine,
stateMachineInput: codepipeline_actions.StateMachineInput.literal({ IsHelloWorldExample: true }),
});
pipeline.addStage({
stageName: 'StepFunctions',
actions: [stepFunctionAction],
});
Properties
Note that Action names must be unique within a single Stage.
executionNamePrefixoptionalstringexecution_name_prefixoptionalstrexecutionNamePrefixoptionalStringExecutionNamePrefixoptionalstringExecutionNamePrefixoptional*string#Default: action execution ID
By default, the action execution ID is used as the state machine execution name. If a prefix is provided, it is prepended to the action execution ID with a hyphen and together used as the state machine execution name.
outputoptionalArtifactoutputoptionalArtifactoutputoptionalArtifactOutputoptionalArtifactOutputoptionalArtifact#Default: the Action will not have any outputs
Default: a new Role will be generated
notes
The Pipeline's Role will assume this Role (the required permissions for that will be granted automatically) right before executing this Action. This Action will be passed into your IAction.bind method in the ActionBindOptions.role property.
runOrderoptionalnumberrun_orderoptionalint | floatrunOrderoptionalNumberRunOrderoptionaldoubleRunOrderoptional*float64= 1#RunOrder determines the relative order in which multiple Actions in the same Stage execute.
stateMachineIStateMachinestate_machineIStateMachinestateMachineIStateMachineStateMachineIStateMachineStateMachineIStateMachinerequired#stateMachineInputoptionalStateMachineInputstate_machine_inputoptionalStateMachineInputstateMachineInputoptionalStateMachineInputStateMachineInputoptionalStateMachineInputStateMachineInputoptionalStateMachineInput= none#This includes input artifact, input type and the statemachine input.
variablesNamespaceoptionalstringvariables_namespaceoptionalstrvariablesNamespaceoptionalStringVariablesNamespaceoptionalstringVariablesNamespaceoptional*string#Default: a name will be generated, based on the stage and action names, if any of the action's variables were referenced - otherwise, no namespace will be set