StageOptions

class aws_cdk.aws_codepipeline.StageOptions(*, actions=None, stage_name, placement=None)

Bases: aws_cdk.aws_codepipeline.StageProps

Parameters
  • actions (Optional[Sequence[IAction]]) – The list of Actions to create this Stage with. You can always add more Actions later by calling {@link IStage#addAction}.

  • stage_name (str) – The physical, human-readable name to assign to this Pipeline Stage.

  • placement (Optional[StagePlacement]) –

Example:

import aws_cdk.aws_stepfunctions as stepfunctions


pipeline = codepipeline.Pipeline(self, "MyPipeline")
input_artifact = codepipeline.Artifact()
start_state = stepfunctions.Pass(self, "StartState")
simple_state_machine = stepfunctions.StateMachine(self, "SimpleStateMachine",
    definition=start_state
)
step_function_action = codepipeline_actions.StepFunctionInvokeAction(
    action_name="Invoke",
    state_machine=simple_state_machine,
    state_machine_input=codepipeline_actions.StateMachineInput.file_path(input_artifact.at_path("assets/input.json"))
)
pipeline.add_stage(
    stage_name="StepFunctions",
    actions=[step_function_action]
)

Attributes

actions

The list of Actions to create this Stage with.

You can always add more Actions later by calling {@link IStage#addAction}.

Return type

Optional[List[IAction]]

placement
Return type

Optional[StagePlacement]

stage_name

The physical, human-readable name to assign to this Pipeline Stage.

Return type

str