Skip to content
v2.276.0

CfnDeploymentProps Struct ​

Properties for defining a CfnDeployment.

Example ​

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
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
// 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();
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"
    } }
};
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 ​

deploymentPatternNamestringdeployment_pattern_namestrdeploymentPatternNameStringDeploymentPatternNamestringDeploymentPatternName*stringrequired#
The name of the deployment pattern.
namestringnamestrnameStringNamestringName*stringrequired#
The name of the deployment.
specificationsoptionalIResolvable | { [key: string]: string }specificationsoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]specificationsoptionalIResolvableSpecificationsoptionalIResolvableSpecificationsoptionalinterface{}#
The settings specified for the deployment.
notes

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 . To retrieve the specifications required to create a deployment for other workloads, use the GetWorkloadDeploymentPattern operation.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
Information about the tags attached to a deployment.
workloadNamestringworkload_namestrworkloadNameStringWorkloadNamestringWorkloadName*stringrequired#
The name of the workload.