Skip to content
v2.278.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_appconfig as appconfig } from 'aws-cdk-lib';
const cfnDeploymentProps: appconfig.CfnDeploymentProps = {
  applicationId: 'applicationId',
  configurationProfileId: 'configurationProfileId',
  configurationVersion: 'configurationVersion',
  deploymentStrategyId: 'deploymentStrategyId',
  environmentId: 'environmentId',

  // the properties below are optional
  description: 'description',
  dynamicExtensionParameters: [{
    extensionReference: 'extensionReference',
    parameterName: 'parameterName',
    parameterValue: 'parameterValue',
  }],
  kmsKeyIdentifier: 'kmsKeyIdentifier',
  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_appconfig as appconfig

cfn_deployment_props = appconfig.CfnDeploymentProps(
    application_id="applicationId",
    configuration_profile_id="configurationProfileId",
    configuration_version="configurationVersion",
    deployment_strategy_id="deploymentStrategyId",
    environment_id="environmentId",

    # the properties below are optional
    description="description",
    dynamic_extension_parameters=[appconfig.CfnDeployment.DynamicExtensionParametersProperty(
        extension_reference="extensionReference",
        parameter_name="parameterName",
        parameter_value="parameterValue"
    )],
    kms_key_identifier="kmsKeyIdentifier",
    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.appconfig.*;

CfnDeploymentProps cfnDeploymentProps = CfnDeploymentProps.builder()
        .applicationId("applicationId")
        .configurationProfileId("configurationProfileId")
        .configurationVersion("configurationVersion")
        .deploymentStrategyId("deploymentStrategyId")
        .environmentId("environmentId")

        // the properties below are optional
        .description("description")
        .dynamicExtensionParameters(List.of(DynamicExtensionParametersProperty.builder()
                .extensionReference("extensionReference")
                .parameterName("parameterName")
                .parameterValue("parameterValue")
                .build()))
        .kmsKeyIdentifier("kmsKeyIdentifier")
        .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.AppConfig;

var cfnDeploymentProps = new CfnDeploymentProps {
    ApplicationId = "applicationId",
    ConfigurationProfileId = "configurationProfileId",
    ConfigurationVersion = "configurationVersion",
    DeploymentStrategyId = "deploymentStrategyId",
    EnvironmentId = "environmentId",

    // the properties below are optional
    Description = "description",
    DynamicExtensionParameters = new [] { new DynamicExtensionParametersProperty {
        ExtensionReference = "extensionReference",
        ParameterName = "parameterName",
        ParameterValue = "parameterValue"
    } },
    KmsKeyIdentifier = "kmsKeyIdentifier",
    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{
	ApplicationId: jsii.String("applicationId"),
	ConfigurationProfileId: jsii.String("configurationProfileId"),
	ConfigurationVersion: jsii.String("configurationVersion"),
	DeploymentStrategyId: jsii.String("deploymentStrategyId"),
	EnvironmentId: jsii.String("environmentId"),

	// the properties below are optional
	Description: jsii.String("description"),
	DynamicExtensionParameters: []interface{}{
		&DynamicExtensionParametersProperty{
			ExtensionReference: jsii.String("extensionReference"),
			ParameterName: jsii.String("parameterName"),
			ParameterValue: jsii.String("parameterValue"),
		},
	},
	KmsKeyIdentifier: jsii.String("kmsKeyIdentifier"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

applicationIdstringapplication_idstrapplicationIdStringApplicationIdstringApplicationId*string required #
The application ID.
configurationProfileIdstringconfiguration_profile_idstrconfigurationProfileIdStringConfigurationProfileIdstringConfigurationProfileId*string required #
The configuration profile ID.
configurationVersionstringconfiguration_versionstrconfigurationVersionStringConfigurationVersionstringConfigurationVersion*string required #
The configuration version to deploy.

If deploying an AWS AppConfig hosted configuration version, you can specify either the version number or version label. For all other configurations, you must specify the version number.

deploymentStrategyIdstringdeployment_strategy_idstrdeploymentStrategyIdStringDeploymentStrategyIdstringDeploymentStrategyId*string required #
The deployment strategy ID.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
A description of the deployment.
dynamicExtensionParametersoptionalIResolvable | IResolvable | CfnDeployment.DynamicExtensionParametersProperty[]dynamic_extension_parametersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DynamicExtensionParametersProperty]]]dynamicExtensionParametersoptionalIResolvableDynamicExtensionParametersoptionalIResolvableDynamicExtensionParametersoptionalinterface{} #
A map of dynamic extension parameter names to values to pass to associated extensions with `PRE_START_DEPLOYMENT` actions.
environmentIdstringenvironment_idstrenvironmentIdStringEnvironmentIdstringEnvironmentId*string required #
The environment ID.
kmsKeyIdentifieroptionalstringkms_key_identifieroptionalstrkmsKeyIdentifieroptionalStringKmsKeyIdentifieroptionalstringKmsKeyIdentifieroptional*string #
The AWS Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
Metadata to assign to the deployment.

Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.