Class CdkStage

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.pipelines.CdkStage
All Implemented Interfaces:
IConstruct, IDependable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:49.759Z") @Stability(Deprecated) @Deprecated public class CdkStage extends Construct
Deprecated.
This class is part of the old API. Use the API based on the CodePipeline class instead
(deprecated) Stage in a CdkPipeline.

You don't need to instantiate this class directly. Use cdkPipeline.addStage() instead.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.codepipeline.*;
 import software.amazon.awscdk.services.sns.*;
 import software.amazon.awscdk.pipelines.*;
 Artifact artifact;
 IStage stage;
 IStageHost stageHost;
 Topic topic;
 CdkStage cdkStage = CdkStage.Builder.create(this, "MyCdkStage")
         .cloudAssemblyArtifact(artifact)
         .host(stageHost)
         .pipelineStage(stage)
         .stageName("stageName")
         // the properties below are optional
         .confirmBroadeningPermissions(false)
         .securityNotificationTopic(topic)
         .build();
 

  • Constructor Details

    • CdkStage

      protected CdkStage(software.amazon.jsii.JsiiObjectRef objRef)
      Deprecated.
    • CdkStage

      protected CdkStage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      Deprecated.
    • CdkStage

      @Stability(Deprecated) @Deprecated public CdkStage(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CdkStageProps props)
      Deprecated.
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • addActions

      @Stability(Deprecated) @Deprecated public void addActions(@NotNull @NotNull IAction... actions)
      Deprecated.
      (deprecated) Add one or more CodePipeline Actions.

      You need to make sure it is created with the right runOrder. Call nextSequentialRunOrder() for every action to get actions to execute in sequence.

      Parameters:
      actions - This parameter is required.
    • addApplication

      @Stability(Deprecated) @Deprecated public void addApplication(@NotNull Stage appStage, @Nullable AddStageOptions options)
      Deprecated.
      (deprecated) Add all stacks in the application Stage to this stage.

      The application construct should subclass Stage and can contain any number of Stacks inside it that may have dependency relationships on one another.

      All stacks in the application will be deployed in the appropriate order, and all assets found in the application will be added to the asset publishing stage.

      Parameters:
      appStage - This parameter is required.
      options -
    • addApplication

      @Stability(Deprecated) @Deprecated public void addApplication(@NotNull Stage appStage)
      Deprecated.
      (deprecated) Add all stacks in the application Stage to this stage.

      The application construct should subclass Stage and can contain any number of Stacks inside it that may have dependency relationships on one another.

      All stacks in the application will be deployed in the appropriate order, and all assets found in the application will be added to the asset publishing stage.

      Parameters:
      appStage - This parameter is required.
    • addManualApprovalAction

      @Stability(Deprecated) @Deprecated public void addManualApprovalAction(@Nullable AddManualApprovalOptions options)
      Deprecated.
      (deprecated) Add a manual approval action.

      If you need more flexibility than what this method offers, use addAction with a ManualApprovalAction.

      Parameters:
      options -
    • addManualApprovalAction

      @Stability(Deprecated) @Deprecated public void addManualApprovalAction()
      Deprecated.
      (deprecated) Add a manual approval action.

      If you need more flexibility than what this method offers, use addAction with a ManualApprovalAction.

    • addStackArtifactDeployment

      @Stability(Deprecated) @Deprecated public void addStackArtifactDeployment(@NotNull CloudFormationStackArtifact stackArtifact, @Nullable AddStackOptions options)
      Deprecated.
      (deprecated) Add a deployment action based on a stack artifact.

      Parameters:
      stackArtifact - This parameter is required.
      options -
    • addStackArtifactDeployment

      @Stability(Deprecated) @Deprecated public void addStackArtifactDeployment(@NotNull CloudFormationStackArtifact stackArtifact)
      Deprecated.
      (deprecated) Add a deployment action based on a stack artifact.

      Parameters:
      stackArtifact - This parameter is required.
    • deploysStack

      @Stability(Deprecated) @Deprecated @NotNull public Boolean deploysStack(@NotNull String artifactId)
      Deprecated.
      (deprecated) Whether this Stage contains an action to deploy the given stack, identified by its artifact ID.

      Parameters:
      artifactId - This parameter is required.
    • nextSequentialRunOrder

      @Stability(Deprecated) @Deprecated @NotNull public Number nextSequentialRunOrder(@Nullable Number count)
      Deprecated.
      (deprecated) Return the runOrder number necessary to run the next Action in sequence with the rest.

      FIXME: This is here because Actions are immutable and can't be reordered after creation, nor is there a way to specify relative priorities, which is a limitation that we should take away in the base library.

      Parameters:
      count -
    • nextSequentialRunOrder

      @Stability(Deprecated) @Deprecated @NotNull public Number nextSequentialRunOrder()
      Deprecated.
      (deprecated) Return the runOrder number necessary to run the next Action in sequence with the rest.

      FIXME: This is here because Actions are immutable and can't be reordered after creation, nor is there a way to specify relative priorities, which is a limitation that we should take away in the base library.