Class Step

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.pipelines.Step
All Implemented Interfaces:
IFileSetProducer, software.amazon.jsii.JsiiSerializable
Direct Known Subclasses:
CodePipelineSource, ConfirmPermissionsBroadening, ManualApprovalStep, ShellStep

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:49.904Z") @Stability(Stable) public abstract class Step extends software.amazon.jsii.JsiiObject implements IFileSetProducer
A generic Step which can be added to a Pipeline.

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

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    Step(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Step(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Add an additional FileSet to the set of file sets required by this step.
    void
    Add a dependency on another step.
    protected void
    Configure the given FileSet as the primary output of this step.
    protected void
    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.
    Identifier for this step.
    Whether or not this is a Source step.
    The primary FileSet produced by this Step.
    static List<Step>
    sequence(List<? extends Step> steps)
    Define a sequence of steps to be executed in order.
    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

      @Stability(Stable) protected Step(@NotNull String id)
      Parameters:
      id - Identifier for this step. This parameter is required.
  • Method Details

    • sequence

      @Stability(Stable) @NotNull public static List<Step> sequence(@NotNull List<? extends Step> steps)
      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 want secondStep to occur after firstStep, call secondStep.addStepDependency(firstStep).

      Parameters:
      steps - This parameter is required.
    • addDependencyFileSet

      @Stability(Stable) protected void addDependencyFileSet(@NotNull FileSet fs)
      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

      @Stability(Stable) public void addStepDependency(@NotNull Step step)
      Add a dependency on another step.

      Parameters:
      step - This parameter is required.
    • configurePrimaryOutput

      @Stability(Stable) protected void configurePrimaryOutput(@NotNull FileSet fs)
      Configure the given FileSet as the primary output of this step.

      Parameters:
      fs - This parameter is required.
    • discoverReferencedOutputs

      @Stability(Stable) protected void discoverReferencedOutputs(@NotNull Object structure)
      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

      @Stability(Stable) @NotNull public String toString()
      Return a string representation of this Step.
      Overrides:
      toString in class Object
    • getDependencies

      @Stability(Stable) @NotNull public List<Step> getDependencies()
      Return the steps this step depends on, based on the FileSets it requires.
    • getDependencyFileSets

      @Stability(Stable) @NotNull public List<FileSet> getDependencyFileSets()
      The list of FileSets consumed by this Step.
    • getId

      @Stability(Stable) @NotNull public String getId()
      Identifier for this step.
    • getIsSource

      @Stability(Stable) @NotNull public Boolean getIsSource()
      Whether or not this is a Source step.

      What it means to be a Source step depends on the engine.

    • getPrimaryOutput

      @Stability(Stable) @Nullable public FileSet 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 the FileSet object.

      Specified by:
      getPrimaryOutput in interface IFileSetProducer