Class Step
- All Implemented Interfaces:
IFileSetProducer
,software.amazon.jsii.JsiiSerializable
- Direct Known Subclasses:
CodePipelineSource
,ConfirmPermissionsBroadening
,ManualApprovalStep
,ShellStep
Steps can be used to add Sources, Build Actions and Validations to your pipeline.
This class is abstract. See specific subclasses of Step for useful steps to add to your Pipeline
Example:
// Step A will depend on step B and step B will depend on step C Step[] orderedSteps = Step.sequence(List.of( new ManualApprovalStep("A"), new ManualApprovalStep("B"), new ManualApprovalStep("C")));
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.pipelines.IFileSetProducer
IFileSetProducer.Jsii$Default
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Add an additional FileSet to the set of file sets required by this step.void
addStepDependency
(Step step) Add a dependency on another step.protected void
Configure the given FileSet as the primary output of this step.protected void
discoverReferencedOutputs
(Object structure) Crawl the given structure for references to StepOutputs and add dependencies on all steps found.Return the steps this step depends on, based on the FileSets it requires.The list of FileSets consumed by this Step.getId()
Identifier for this step.Whether or not this is a Source step.The primary FileSet produced by this Step.Define a sequence of steps to be executed in order.toString()
Return a string representation of this Step.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Step
protected Step(software.amazon.jsii.JsiiObjectRef objRef) -
Step
protected Step(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Step
- Parameters:
id
- Identifier for this step. This parameter is required.
-
-
Method Details
-
sequence
Define a sequence of steps to be executed in order.If you need more fine-grained step ordering, use the
addStepDependency()
API. For example, if you wantsecondStep
to occur afterfirstStep
, callsecondStep.addStepDependency(firstStep)
.- Parameters:
steps
- This parameter is required.
-
addDependencyFileSet
Add an additional FileSet to the set of file sets required by this step.This will lead to a dependency on the producer of that file set.
- Parameters:
fs
- This parameter is required.
-
addStepDependency
Add a dependency on another step.- Parameters:
step
- This parameter is required.
-
configurePrimaryOutput
Configure the given FileSet as the primary output of this step.- Parameters:
fs
- This parameter is required.
-
discoverReferencedOutputs
Crawl the given structure for references to StepOutputs and add dependencies on all steps found.Should be called in the constructor of subclasses based on what the user passes in as construction properties. The format of the structure passed in here does not have to correspond exactly to what gets rendered into the engine, it just needs to contain the same data.
- Parameters:
structure
- This parameter is required.
-
toString
Return a string representation of this Step. -
getDependencies
Return the steps this step depends on, based on the FileSets it requires. -
getDependencyFileSets
The list of FileSets consumed by this Step. -
getId
Identifier for this step. -
getIsSource
Whether or not this is a Source step.What it means to be a Source step depends on the engine.
-
getPrimaryOutput
The primary FileSet produced by this Step.Not all steps produce an output FileSet--if they do you can substitute the
Step
object for theFileSet
object.- Specified by:
getPrimaryOutput
in interfaceIFileSetProducer
-