# AwsCloudFormationStackProperties

Artifact properties for CloudFormation stacks.

- Source: [`cx-api/lib/legacy-moved.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/cx-api/lib/legacy-moved.ts#L1117)
- Type last changed: v2.238.0 · 9 Feb 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cx_api } from 'aws-cdk-lib';
const awsCloudFormationStackProperties: cx_api.AwsCloudFormationStackProperties = {
  templateFile: 'templateFile',

  // the properties below are optional
  parameters: {
    parametersKey: 'parameters',
  },
  stackName: 'stackName',
  terminationProtection: false,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import cx_api

aws_cloud_formation_stack_properties = cx_api.AwsCloudFormationStackProperties(
    template_file="templateFile",

    # the properties below are optional
    parameters={
        "parameters_key": "parameters"
    },
    stack_name="stackName",
    termination_protection=False
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cxapi.*;

AwsCloudFormationStackProperties awsCloudFormationStackProperties = AwsCloudFormationStackProperties.builder()
        .templateFile("templateFile")

        // the properties below are optional
        .parameters(Map.of(
                "parametersKey", "parameters"))
        .stackName("stackName")
        .terminationProtection(false)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CXAPI;

var awsCloudFormationStackProperties = new AwsCloudFormationStackProperties {
    TemplateFile = "templateFile",

    // the properties below are optional
    Parameters = new Dictionary<string, string> {
        { "parametersKey", "parameters" }
    },
    StackName = "stackName",
    TerminationProtection = false
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

awsCloudFormationStackProperties := &AwsCloudFormationStackProperties{
	TemplateFile: jsii.String("templateFile"),

	// the properties below are optional
	Parameters: map[string]*string{
		"parametersKey": jsii.String("parameters"),
	},
	StackName: jsii.String("stackName"),
	TerminationProtection: jsii.Boolean(false),
}
```

## Properties

- `parameters`: { [key: string]: string } — Values for CloudFormation stack parameters that should be passed when the stack is deployed.

- `stackName`: string — The name to use for the CloudFormation stack.

  **Default:** name derived from artifact ID

- `templateFile`: string (required) — A file relative to the assembly root which contains the CloudFormation template for this stack.

- `terminationProtection`: boolean = false — Whether to enable termination protection for this stack.
