# CfnDeploymentProps

Properties for defining a `CfnDeployment`.

Used as props by: [CfnDeployment](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_launchwizard.CfnDeployment.html)

- Source: Generated at build time
- Type last changed: v2.191.0 · 23 Apr 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_launchwizard as launchwizard } from 'aws-cdk-lib';
const cfnDeploymentProps: launchwizard.CfnDeploymentProps = {
  deploymentPatternName: 'deploymentPatternName',
  name: 'name',
  workloadName: 'workloadName',

  // the properties below are optional
  specifications: {
    specificationsKey: 'specifications',
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

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

cfn_deployment_props = launchwizard.CfnDeploymentProps(
    deployment_pattern_name="deploymentPatternName",
    name="name",
    workload_name="workloadName",

    # the properties below are optional
    specifications={
        "specifications_key": "specifications"
    },
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

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.services.launchwizard.*;

CfnDeploymentProps cfnDeploymentProps = CfnDeploymentProps.builder()
        .deploymentPatternName("deploymentPatternName")
        .name("name")
        .workloadName("workloadName")

        // the properties below are optional
        .specifications(Map.of(
                "specificationsKey", "specifications"))
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .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.AWS.LaunchWizard;

var cfnDeploymentProps = new CfnDeploymentProps {
    DeploymentPatternName = "deploymentPatternName",
    Name = "name",
    WorkloadName = "workloadName",

    // the properties below are optional
    Specifications = new Dictionary<string, string> {
        { "specificationsKey", "specifications" }
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

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"

cfnDeploymentProps := &CfnDeploymentProps{
	DeploymentPatternName: jsii.String("deploymentPatternName"),
	Name: jsii.String("name"),
	WorkloadName: jsii.String("workloadName"),

	// the properties below are optional
	Specifications: map[string]*string{
		"specificationsKey": jsii.String("specifications"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `deploymentPatternName`: string (required) — The name of the deployment pattern.

- `name`: string (required) — The name of the deployment.

- `specifications`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — The settings specified for the deployment.

  These settings define how to deploy and configure your resources created by the deployment. For more information about the specifications required for creating a deployment for a SAP workload, see [SAP deployment specifications](https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications-sap.html) . To retrieve the specifications required to create a deployment for other workloads, use the [`GetWorkloadDeploymentPattern`](https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_GetWorkloadDeploymentPattern.html) operation.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Information about the tags attached to a deployment.

- `workloadName`: string (required) — The name of the workload.
