Class CloudFormationDeleteStackAction
CodePipeline action to delete a stack.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CodePipeline.Actions
Assembly: Amazon.CDK.AWS.CodePipeline.Actions.dll
Syntax (csharp)
public class CloudFormationDeleteStackAction : Action, IAction
Syntax (vb)
Public Class CloudFormationDeleteStackAction
Inherits Action
Implements IAction
Remarks
Deletes a stack. If you specify a stack that doesn't exist, the action completes successfully without deleting a stack.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFormation;
using Amazon.CDK.AWS.CodePipeline;
using Amazon.CDK.AWS.CodePipeline.Actions;
using Amazon.CDK.AWS.IAM;
using Amazon.CDK;
Artifact artifact;
ArtifactPath artifactPath;
var parameterOverrides;
Role role;
var cloudFormationDeleteStackAction = new CloudFormationDeleteStackAction(new CloudFormationDeleteStackActionProps {
ActionName = "actionName",
AdminPermissions = false,
StackName = "stackName",
// the properties below are optional
Account = "account",
Capabilities = new [] { CloudFormationCapabilities.NONE },
CfnCapabilities = new [] { CfnCapabilities.NONE },
DeploymentRole = role,
ExtraInputs = new [] { artifact },
Output = artifact,
OutputFileName = "outputFileName",
ParameterOverrides = new Dictionary<string, object> {
{ "parameterOverridesKey", parameterOverrides }
},
Region = "region",
Role = role,
RunOrder = 123,
TemplateConfiguration = artifactPath,
VariablesNamespace = "variablesNamespace"
});
Synopsis
Constructors
CloudFormationDeleteStackAction(ICloudFormationDeleteStackActionProps) | |
CloudFormationDeleteStackAction(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CloudFormationDeleteStackAction(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
DeploymentRole |
Methods
AddToDeploymentRolePolicy(PolicyStatement) | Add statement to the service role assumed by CloudFormation while executing this action. |
Bound(Construct, IStage, IActionBindOptions) | This is a renamed version of the {@link IAction.bind} method. |
Constructors
CloudFormationDeleteStackAction(ICloudFormationDeleteStackActionProps)
public CloudFormationDeleteStackAction(ICloudFormationDeleteStackActionProps props)
Parameters
CloudFormationDeleteStackAction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CloudFormationDeleteStackAction(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CloudFormationDeleteStackAction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CloudFormationDeleteStackAction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
DeploymentRole
Methods
AddToDeploymentRolePolicy(PolicyStatement)
Add statement to the service role assumed by CloudFormation while executing this action.
public virtual bool AddToDeploymentRolePolicy(PolicyStatement statement)
Parameters
- statement PolicyStatement
Returns
System.Boolean
Bound(Construct, IStage, IActionBindOptions)
This is a renamed version of the {@link IAction.bind} method.
protected override IActionConfig Bound(Construct scope, IStage stage, IActionBindOptions options)
Parameters
- scope Construct
- stage IStage
- options IActionBindOptions
Returns