aws-cdk-lib.aws_codepipeline_actions.StepFunctionsInvokeActionProps

interface StepFunctionsInvokeActionProps

LanguageType name
.NETAmazon.CDK.AWS.CodePipeline.Actions.StepFunctionsInvokeActionProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodepipelineactions#StepFunctionsInvokeActionProps
Javasoftware.amazon.awscdk.services.codepipeline.actions.StepFunctionsInvokeActionProps
Pythonaws_cdk.aws_codepipeline_actions.StepFunctionsInvokeActionProps
TypeScript (source)aws-cdk-lib » aws_codepipeline_actions » StepFunctionsInvokeActionProps

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

NameTypeDescription
actionNamestringThe physical, human-readable name of the Action.
stateMachineIStateMachineThe state machine to invoke.
executionNamePrefix?stringPrefix (optional).
output?ArtifactThe optional output Artifact of the Action.
role?IRoleThe Role in which context's this Action will be executing in.
runOrder?numberThe runOrder property for this Action.
stateMachineInput?StateMachineInputRepresents the input to the StateMachine.
variablesNamespace?stringThe name of the namespace to use for variables emitted by this action.

actionName

Type: string

The physical, human-readable name of the Action.

Note that Action names must be unique within a single Stage.


stateMachine

Type: IStateMachine

The state machine to invoke.


executionNamePrefix?

Type: string (optional, default: action execution ID)

Prefix (optional).

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.


output?

Type: Artifact (optional, default: the Action will not have any outputs)

The optional output Artifact of the Action.


role?

Type: IRole (optional, default: a new Role will be generated)

The Role in which context's this Action will be executing in.

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.


runOrder?

Type: number (optional, default: 1)

The runOrder property for this Action.

RunOrder determines the relative order in which multiple Actions in the same Stage execute.

See also: https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html


stateMachineInput?

Type: StateMachineInput (optional, default: none)

Represents the input to the StateMachine.

This includes input artifact, input type and the statemachine input.


variablesNamespace?

Type: string (optional, 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)

The name of the namespace to use for variables emitted by this action.