Interface AddStageOpts

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
AddStageOpts.Jsii$Proxy

@Generated(value="jsii-pacmak/1.94.0 (build b380f01)", date="2024-02-23T02:06:41.303Z") @Stability(Stable) public interface AddStageOpts extends software.amazon.jsii.JsiiSerializable
Options to pass to addStage.

Example:

 CodePipeline pipeline;
 MyApplicationStage preprod = new MyApplicationStage(this, "PreProd");
 MyApplicationStage prod = new MyApplicationStage(this, "Prod");
 pipeline.addStage(preprod, AddStageOpts.builder()
         .post(List.of(
             ShellStep.Builder.create("Validate Endpoint")
                     .commands(List.of("curl -Ssf https://my.webservice.com/"))
                     .build()))
         .build());
 pipeline.addStage(prod, AddStageOpts.builder()
         .pre(List.of(
             new ManualApprovalStep("PromoteToProd")))
         .build());
 
  • Method Details

    • getPost

      @Stability(Stable) @Nullable default List<Step> getPost()
      Additional steps to run after all of the stacks in the stage.

      Default: - No additional steps

    • getPre

      @Stability(Stable) @Nullable default List<Step> getPre()
      Additional steps to run before any of the stacks in the stage.

      Default: - No additional steps

    • getStackSteps

      @Stability(Stable) @Nullable default List<StackSteps> getStackSteps()
      Instructions for stack level steps.

      Default: - No additional instructions

    • builder

      @Stability(Stable) static AddStageOpts.Builder builder()
      Returns:
      a AddStageOpts.Builder of AddStageOpts