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.84.0 (build 5404dcf)",
date="2023-06-19T16:30:48.363Z")
@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.services.cloudformation.*;
import software.amazon.awscdk.services.codepipeline.*;
import software.amazon.awscdk.services.codepipeline.actions.*;
import software.amazon.awscdk.services.iam.*;
import software.amazon.awscdk.core.*;
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")
.capabilities(List.of(CloudFormationCapabilities.NONE))
.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();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCloudFormationDeleteStackAction.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.codepipeline.IAction
IAction.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCloudFormationDeleteStackAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCloudFormationDeleteStackAction(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionaddToDeploymentRolePolicy(PolicyStatement statement) Add statement to the service role assumed by CloudFormation while executing this action.protected ActionConfigbound(Construct scope, IStage stage, ActionBindOptions options) This is a renamed version of theIAction.bindmethod.Methods inherited from class software.amazon.awscdk.services.codepipeline.actions.Action
getProvidedActionPropertiesMethods inherited from class software.amazon.awscdk.services.codepipeline.Action
bind, getActionProperties, onStateChange, onStateChange, onStateChange, variableExpressionMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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 Construct scope, @NotNull IStage stage, @NotNull ActionBindOptions options) This is a renamed version of theIAction.bindmethod. -
getDeploymentRole
-