@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.514Z") @Stability(value=Stable) public class CloudFormationDeleteStackAction extends Action
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CloudFormationDeleteStackAction.Builder
A fluent builder for
CloudFormationDeleteStackAction. |
software.amazon.jsii.JsiiObject.InitializationModeIAction.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
CloudFormationDeleteStackAction(CloudFormationDeleteStackActionProps props) |
protected |
CloudFormationDeleteStackAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CloudFormationDeleteStackAction(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
addToDeploymentRolePolicy(PolicyStatement statement)
Add statement to the service role assumed by CloudFormation while executing this action.
|
protected ActionConfig |
bound(software.constructs.Construct scope,
IStage stage,
ActionBindOptions options)
This is a renamed version of the
IAction.bind method. |
IRole |
getDeploymentRole() |
getProvidedActionPropertiesbind, getActionProperties, onStateChange, onStateChange, onStateChange, variableExpressionjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected CloudFormationDeleteStackAction(software.amazon.jsii.JsiiObjectRef objRef)
protected CloudFormationDeleteStackAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CloudFormationDeleteStackAction(@NotNull
CloudFormationDeleteStackActionProps props)
props - This parameter is required.@Stability(value=Stable) @NotNull public Boolean addToDeploymentRolePolicy(@NotNull PolicyStatement statement)
statement - This parameter is required.@Stability(value=Stable) @NotNull protected ActionConfig bound(@NotNull software.constructs.Construct scope, @NotNull IStage stage, @NotNull ActionBindOptions options)
IAction.bind method.
@Stability(value=Stable) @NotNull public IRole getDeploymentRole()
Copyright © 2022. All rights reserved.