Class CloudFormationDeleteStackAction

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.codepipeline.Action
software.amazon.awscdk.services.codepipeline.actions.Action
software.amazon.awscdk.services.codepipeline.actions.CloudFormationDeleteStackAction
All Implemented Interfaces:
IAction, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:14.352Z") @Stability(Stable) public class CloudFormationDeleteStackAction extends Action
CodePipeline action to delete a stack.

Deletes a stack. If you specify a stack that doesn't exist, the action completes successfully without deleting a stack.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.*;
 import software.amazon.awscdk.services.codepipeline.*;
 import software.amazon.awscdk.services.codepipeline.actions.*;
 import software.amazon.awscdk.services.iam.*;
 Artifact artifact;
 ArtifactPath artifactPath;
 Object parameterOverrides;
 Role role;
 CloudFormationDeleteStackAction cloudFormationDeleteStackAction = CloudFormationDeleteStackAction.Builder.create()
         .actionName("actionName")
         .adminPermissions(false)
         .stackName("stackName")
         // the properties below are optional
         .account("account")
         .cfnCapabilities(List.of(CfnCapabilities.NONE))
         .deploymentRole(role)
         .extraInputs(List.of(artifact))
         .output(artifact)
         .outputFileName("outputFileName")
         .parameterOverrides(Map.of(
                 "parameterOverridesKey", parameterOverrides))
         .region("region")
         .role(role)
         .runOrder(123)
         .templateConfiguration(artifactPath)
         .variablesNamespace("variablesNamespace")
         .build();
 
  • Constructor Details

    • CloudFormationDeleteStackAction

      protected CloudFormationDeleteStackAction(software.amazon.jsii.JsiiObjectRef objRef)
    • CloudFormationDeleteStackAction

      protected CloudFormationDeleteStackAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CloudFormationDeleteStackAction

      @Stability(Stable) public CloudFormationDeleteStackAction(@NotNull CloudFormationDeleteStackActionProps props)
      Parameters:
      props - This parameter is required.
  • Method Details

    • addToDeploymentRolePolicy

      @Stability(Stable) @NotNull public Boolean addToDeploymentRolePolicy(@NotNull PolicyStatement statement)
      Add statement to the service role assumed by CloudFormation while executing this action.

      Parameters:
      statement - This parameter is required.
    • bound

      @Stability(Stable) @NotNull protected ActionConfig bound(@NotNull software.constructs.Construct scope, @NotNull IStage stage, @NotNull ActionBindOptions options)
      This is a renamed version of the IAction.bind method.

      Specified by:
      bound in class Action
      Parameters:
      scope - This parameter is required.
      stage - This parameter is required.
      options - This parameter is required.
    • getDeploymentRole

      @Stability(Stable) @NotNull public IRole getDeploymentRole()