Skip to content
v2.277.0

CfnApplicationProps Struct ​

Properties for defining a CfnApplication.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codedeploy as codedeploy } from 'aws-cdk-lib';
const cfnApplicationProps: codedeploy.CfnApplicationProps = {
  applicationName: 'applicationName',
  computePlatform: 'computePlatform',
  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_codedeploy as codedeploy

cfn_application_props = codedeploy.CfnApplicationProps(
    application_name="applicationName",
    compute_platform="computePlatform",
    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.codedeploy.*;

CfnApplicationProps cfnApplicationProps = CfnApplicationProps.builder()
        .applicationName("applicationName")
        .computePlatform("computePlatform")
        .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.CodeDeploy;

var cfnApplicationProps = new CfnApplicationProps {
    ApplicationName = "applicationName",
    ComputePlatform = "computePlatform",
    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"

cfnApplicationProps := &CfnApplicationProps{
	ApplicationName: jsii.String("applicationName"),
	ComputePlatform: jsii.String("computePlatform"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

applicationNameoptionalstring | IFunctionRefapplication_nameoptionaltyping.Union[str, IFunctionRef]applicationNameoptionalStringApplicationNameoptionalstringApplicationNameoptionalinterface{}#
A name for the application.
notes

If you don't specify a name, CloudFormation generates a unique physical ID and uses that ID for the application name. For more information, see Name Type .

Updates to ApplicationName are not supported.

computePlatformoptionalstringcompute_platformoptionalstrcomputePlatformoptionalStringComputePlatformoptionalstringComputePlatformoptional*string#
The compute platform that CodeDeploy deploys the application to.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
The metadata that you apply to CodeDeploy applications to help you organize and categorize them.

Each tag consists of a key and an optional value, both of which you define.