Skip to content
v2.277.0

CfnDeploymentGroupProps Struct ​

Properties for defining a CfnDeploymentGroup.

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 cfnDeploymentGroupProps: codedeploy.CfnDeploymentGroupProps = {
  applicationName: 'applicationName',
  serviceRoleArn: 'serviceRoleArn',

  // the properties below are optional
  alarmConfiguration: {
    alarms: [{
      name: 'name',
    }],
    enabled: false,
    ignorePollAlarmFailure: false,
  },
  autoRollbackConfiguration: {
    enabled: false,
    events: ['events'],
  },
  autoScalingGroups: ['autoScalingGroups'],
  blueGreenDeploymentConfiguration: {
    deploymentReadyOption: {
      actionOnTimeout: 'actionOnTimeout',
      waitTimeInMinutes: 123,
    },
    greenFleetProvisioningOption: {
      action: 'action',
    },
    terminateBlueInstancesOnDeploymentSuccess: {
      action: 'action',
      terminationWaitTimeInMinutes: 123,
    },
  },
  deployment: {
    revision: {
      gitHubLocation: {
        commitId: 'commitId',
        repository: 'repository',
      },
      revisionType: 'revisionType',
      s3Location: {
        bucket: 'bucket',
        key: 'key',

        // the properties below are optional
        bundleType: 'bundleType',
        eTag: 'eTag',
        version: 'version',
      },
    },

    // the properties below are optional
    description: 'description',
    ignoreApplicationStopFailures: false,
  },
  deploymentConfigName: 'deploymentConfigName',
  deploymentGroupName: 'deploymentGroupName',
  deploymentStyle: {
    deploymentOption: 'deploymentOption',
    deploymentType: 'deploymentType',
  },
  ec2DeploymentOptions: {
    autoScalingGroupProcessesToSuspend: ['autoScalingGroupProcessesToSuspend'],
  },
  ec2TagFilters: [{
    key: 'key',
    type: 'type',
    value: 'value',
  }],
  ec2TagSet: {
    ec2TagSetList: [{
      ec2TagGroup: [{
        key: 'key',
        type: 'type',
        value: 'value',
      }],
    }],
  },
  ecsServices: [{
    clusterName: 'clusterName',
    serviceName: 'serviceName',
  }],
  loadBalancerInfo: {
    elbInfoList: [{
      name: 'name',
    }],
    targetGroupInfoList: [{
      name: 'name',
    }],
    targetGroupPairInfoList: [{
      prodTrafficRoute: {
        listenerArns: ['listenerArns'],
      },
      targetGroups: [{
        name: 'name',
      }],
      testTrafficRoute: {
        listenerArns: ['listenerArns'],
      },
    }],
  },
  onPremisesInstanceTagFilters: [{
    key: 'key',
    type: 'type',
    value: 'value',
  }],
  onPremisesTagSet: {
    onPremisesTagSetList: [{
      onPremisesTagGroup: [{
        key: 'key',
        type: 'type',
        value: 'value',
      }],
    }],
  },
  outdatedInstancesStrategy: 'outdatedInstancesStrategy',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  terminationHookEnabled: false,
  triggerConfigurations: [{
    triggerEvents: ['triggerEvents'],
    triggerName: 'triggerName',
    triggerTargetArn: 'triggerTargetArn',
  }],
};
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_deployment_group_props = codedeploy.CfnDeploymentGroupProps(
    application_name="applicationName",
    service_role_arn="serviceRoleArn",

    # the properties below are optional
    alarm_configuration=codedeploy.CfnDeploymentGroup.AlarmConfigurationProperty(
        alarms=[codedeploy.CfnDeploymentGroup.AlarmProperty(
            name="name"
        )],
        enabled=False,
        ignore_poll_alarm_failure=False
    ),
    auto_rollback_configuration=codedeploy.CfnDeploymentGroup.AutoRollbackConfigurationProperty(
        enabled=False,
        events=["events"]
    ),
    auto_scaling_groups=["autoScalingGroups"],
    blue_green_deployment_configuration=codedeploy.CfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty(
        deployment_ready_option=codedeploy.CfnDeploymentGroup.DeploymentReadyOptionProperty(
            action_on_timeout="actionOnTimeout",
            wait_time_in_minutes=123
        ),
        green_fleet_provisioning_option=codedeploy.CfnDeploymentGroup.GreenFleetProvisioningOptionProperty(
            action="action"
        ),
        terminate_blue_instances_on_deployment_success=codedeploy.CfnDeploymentGroup.BlueInstanceTerminationOptionProperty(
            action="action",
            termination_wait_time_in_minutes=123
        )
    ),
    deployment=codedeploy.CfnDeploymentGroup.DeploymentProperty(
        revision=codedeploy.CfnDeploymentGroup.RevisionLocationProperty(
            git_hub_location=codedeploy.CfnDeploymentGroup.GitHubLocationProperty(
                commit_id="commitId",
                repository="repository"
            ),
            revision_type="revisionType",
            s3_location=codedeploy.CfnDeploymentGroup.S3LocationProperty(
                bucket="bucket",
                key="key",

                # the properties below are optional
                bundle_type="bundleType",
                e_tag="eTag",
                version="version"
            )
        ),

        # the properties below are optional
        description="description",
        ignore_application_stop_failures=False
    ),
    deployment_config_name="deploymentConfigName",
    deployment_group_name="deploymentGroupName",
    deployment_style=codedeploy.CfnDeploymentGroup.DeploymentStyleProperty(
        deployment_option="deploymentOption",
        deployment_type="deploymentType"
    ),
    ec2_deployment_options=codedeploy.CfnDeploymentGroup.Ec2DeploymentOptionsProperty(
        auto_scaling_group_processes_to_suspend=["autoScalingGroupProcessesToSuspend"]
    ),
    ec2_tag_filters=[codedeploy.CfnDeploymentGroup.EC2TagFilterProperty(
        key="key",
        type="type",
        value="value"
    )],
    ec2_tag_set=codedeploy.CfnDeploymentGroup.EC2TagSetProperty(
        ec2_tag_set_list=[codedeploy.CfnDeploymentGroup.EC2TagSetListObjectProperty(
            ec2_tag_group=[codedeploy.CfnDeploymentGroup.EC2TagFilterProperty(
                key="key",
                type="type",
                value="value"
            )]
        )]
    ),
    ecs_services=[codedeploy.CfnDeploymentGroup.ECSServiceProperty(
        cluster_name="clusterName",
        service_name="serviceName"
    )],
    load_balancer_info=codedeploy.CfnDeploymentGroup.LoadBalancerInfoProperty(
        elb_info_list=[codedeploy.CfnDeploymentGroup.ELBInfoProperty(
            name="name"
        )],
        target_group_info_list=[codedeploy.CfnDeploymentGroup.TargetGroupInfoProperty(
            name="name"
        )],
        target_group_pair_info_list=[codedeploy.CfnDeploymentGroup.TargetGroupPairInfoProperty(
            prod_traffic_route=codedeploy.CfnDeploymentGroup.TrafficRouteProperty(
                listener_arns=["listenerArns"]
            ),
            target_groups=[codedeploy.CfnDeploymentGroup.TargetGroupInfoProperty(
                name="name"
            )],
            test_traffic_route=codedeploy.CfnDeploymentGroup.TrafficRouteProperty(
                listener_arns=["listenerArns"]
            )
        )]
    ),
    on_premises_instance_tag_filters=[codedeploy.CfnDeploymentGroup.TagFilterProperty(
        key="key",
        type="type",
        value="value"
    )],
    on_premises_tag_set=codedeploy.CfnDeploymentGroup.OnPremisesTagSetProperty(
        on_premises_tag_set_list=[codedeploy.CfnDeploymentGroup.OnPremisesTagSetListObjectProperty(
            on_premises_tag_group=[codedeploy.CfnDeploymentGroup.TagFilterProperty(
                key="key",
                type="type",
                value="value"
            )]
        )]
    ),
    outdated_instances_strategy="outdatedInstancesStrategy",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    termination_hook_enabled=False,
    trigger_configurations=[codedeploy.CfnDeploymentGroup.TriggerConfigProperty(
        trigger_events=["triggerEvents"],
        trigger_name="triggerName",
        trigger_target_arn="triggerTargetArn"
    )]
)
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.*;

CfnDeploymentGroupProps cfnDeploymentGroupProps = CfnDeploymentGroupProps.builder()
        .applicationName("applicationName")
        .serviceRoleArn("serviceRoleArn")

        // the properties below are optional
        .alarmConfiguration(AlarmConfigurationProperty.builder()
                .alarms(List.of(AlarmProperty.builder()
                        .name("name")
                        .build()))
                .enabled(false)
                .ignorePollAlarmFailure(false)
                .build())
        .autoRollbackConfiguration(AutoRollbackConfigurationProperty.builder()
                .enabled(false)
                .events(List.of("events"))
                .build())
        .autoScalingGroups(List.of("autoScalingGroups"))
        .blueGreenDeploymentConfiguration(BlueGreenDeploymentConfigurationProperty.builder()
                .deploymentReadyOption(DeploymentReadyOptionProperty.builder()
                        .actionOnTimeout("actionOnTimeout")
                        .waitTimeInMinutes(123)
                        .build())
                .greenFleetProvisioningOption(GreenFleetProvisioningOptionProperty.builder()
                        .action("action")
                        .build())
                .terminateBlueInstancesOnDeploymentSuccess(BlueInstanceTerminationOptionProperty.builder()
                        .action("action")
                        .terminationWaitTimeInMinutes(123)
                        .build())
                .build())
        .deployment(DeploymentProperty.builder()
                .revision(RevisionLocationProperty.builder()
                        .gitHubLocation(GitHubLocationProperty.builder()
                                .commitId("commitId")
                                .repository("repository")
                                .build())
                        .revisionType("revisionType")
                        .s3Location(S3LocationProperty.builder()
                                .bucket("bucket")
                                .key("key")

                                // the properties below are optional
                                .bundleType("bundleType")
                                .eTag("eTag")
                                .version("version")
                                .build())
                        .build())

                // the properties below are optional
                .description("description")
                .ignoreApplicationStopFailures(false)
                .build())
        .deploymentConfigName("deploymentConfigName")
        .deploymentGroupName("deploymentGroupName")
        .deploymentStyle(DeploymentStyleProperty.builder()
                .deploymentOption("deploymentOption")
                .deploymentType("deploymentType")
                .build())
        .ec2DeploymentOptions(Ec2DeploymentOptionsProperty.builder()
                .autoScalingGroupProcessesToSuspend(List.of("autoScalingGroupProcessesToSuspend"))
                .build())
        .ec2TagFilters(List.of(EC2TagFilterProperty.builder()
                .key("key")
                .type("type")
                .value("value")
                .build()))
        .ec2TagSet(EC2TagSetProperty.builder()
                .ec2TagSetList(List.of(EC2TagSetListObjectProperty.builder()
                        .ec2TagGroup(List.of(EC2TagFilterProperty.builder()
                                .key("key")
                                .type("type")
                                .value("value")
                                .build()))
                        .build()))
                .build())
        .ecsServices(List.of(ECSServiceProperty.builder()
                .clusterName("clusterName")
                .serviceName("serviceName")
                .build()))
        .loadBalancerInfo(LoadBalancerInfoProperty.builder()
                .elbInfoList(List.of(ELBInfoProperty.builder()
                        .name("name")
                        .build()))
                .targetGroupInfoList(List.of(TargetGroupInfoProperty.builder()
                        .name("name")
                        .build()))
                .targetGroupPairInfoList(List.of(TargetGroupPairInfoProperty.builder()
                        .prodTrafficRoute(TrafficRouteProperty.builder()
                                .listenerArns(List.of("listenerArns"))
                                .build())
                        .targetGroups(List.of(TargetGroupInfoProperty.builder()
                                .name("name")
                                .build()))
                        .testTrafficRoute(TrafficRouteProperty.builder()
                                .listenerArns(List.of("listenerArns"))
                                .build())
                        .build()))
                .build())
        .onPremisesInstanceTagFilters(List.of(TagFilterProperty.builder()
                .key("key")
                .type("type")
                .value("value")
                .build()))
        .onPremisesTagSet(OnPremisesTagSetProperty.builder()
                .onPremisesTagSetList(List.of(OnPremisesTagSetListObjectProperty.builder()
                        .onPremisesTagGroup(List.of(TagFilterProperty.builder()
                                .key("key")
                                .type("type")
                                .value("value")
                                .build()))
                        .build()))
                .build())
        .outdatedInstancesStrategy("outdatedInstancesStrategy")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .terminationHookEnabled(false)
        .triggerConfigurations(List.of(TriggerConfigProperty.builder()
                .triggerEvents(List.of("triggerEvents"))
                .triggerName("triggerName")
                .triggerTargetArn("triggerTargetArn")
                .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 cfnDeploymentGroupProps = new CfnDeploymentGroupProps {
    ApplicationName = "applicationName",
    ServiceRoleArn = "serviceRoleArn",

    // the properties below are optional
    AlarmConfiguration = new AlarmConfigurationProperty {
        Alarms = new [] { new AlarmProperty {
            Name = "name"
        } },
        Enabled = false,
        IgnorePollAlarmFailure = false
    },
    AutoRollbackConfiguration = new AutoRollbackConfigurationProperty {
        Enabled = false,
        Events = new [] { "events" }
    },
    AutoScalingGroups = new [] { "autoScalingGroups" },
    BlueGreenDeploymentConfiguration = new BlueGreenDeploymentConfigurationProperty {
        DeploymentReadyOption = new DeploymentReadyOptionProperty {
            ActionOnTimeout = "actionOnTimeout",
            WaitTimeInMinutes = 123
        },
        GreenFleetProvisioningOption = new GreenFleetProvisioningOptionProperty {
            Action = "action"
        },
        TerminateBlueInstancesOnDeploymentSuccess = new BlueInstanceTerminationOptionProperty {
            Action = "action",
            TerminationWaitTimeInMinutes = 123
        }
    },
    Deployment = new DeploymentProperty {
        Revision = new RevisionLocationProperty {
            GitHubLocation = new GitHubLocationProperty {
                CommitId = "commitId",
                Repository = "repository"
            },
            RevisionType = "revisionType",
            S3Location = new S3LocationProperty {
                Bucket = "bucket",
                Key = "key",

                // the properties below are optional
                BundleType = "bundleType",
                ETag = "eTag",
                Version = "version"
            }
        },

        // the properties below are optional
        Description = "description",
        IgnoreApplicationStopFailures = false
    },
    DeploymentConfigName = "deploymentConfigName",
    DeploymentGroupName = "deploymentGroupName",
    DeploymentStyle = new DeploymentStyleProperty {
        DeploymentOption = "deploymentOption",
        DeploymentType = "deploymentType"
    },
    Ec2DeploymentOptions = new Ec2DeploymentOptionsProperty {
        AutoScalingGroupProcessesToSuspend = new [] { "autoScalingGroupProcessesToSuspend" }
    },
    Ec2TagFilters = new [] { new EC2TagFilterProperty {
        Key = "key",
        Type = "type",
        Value = "value"
    } },
    Ec2TagSet = new EC2TagSetProperty {
        Ec2TagSetList = new [] { new EC2TagSetListObjectProperty {
            Ec2TagGroup = new [] { new EC2TagFilterProperty {
                Key = "key",
                Type = "type",
                Value = "value"
            } }
        } }
    },
    EcsServices = new [] { new ECSServiceProperty {
        ClusterName = "clusterName",
        ServiceName = "serviceName"
    } },
    LoadBalancerInfo = new LoadBalancerInfoProperty {
        ElbInfoList = new [] { new ELBInfoProperty {
            Name = "name"
        } },
        TargetGroupInfoList = new [] { new TargetGroupInfoProperty {
            Name = "name"
        } },
        TargetGroupPairInfoList = new [] { new TargetGroupPairInfoProperty {
            ProdTrafficRoute = new TrafficRouteProperty {
                ListenerArns = new [] { "listenerArns" }
            },
            TargetGroups = new [] { new TargetGroupInfoProperty {
                Name = "name"
            } },
            TestTrafficRoute = new TrafficRouteProperty {
                ListenerArns = new [] { "listenerArns" }
            }
        } }
    },
    OnPremisesInstanceTagFilters = new [] { new TagFilterProperty {
        Key = "key",
        Type = "type",
        Value = "value"
    } },
    OnPremisesTagSet = new OnPremisesTagSetProperty {
        OnPremisesTagSetList = new [] { new OnPremisesTagSetListObjectProperty {
            OnPremisesTagGroup = new [] { new TagFilterProperty {
                Key = "key",
                Type = "type",
                Value = "value"
            } }
        } }
    },
    OutdatedInstancesStrategy = "outdatedInstancesStrategy",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    TerminationHookEnabled = false,
    TriggerConfigurations = new [] { new TriggerConfigProperty {
        TriggerEvents = new [] { "triggerEvents" },
        TriggerName = "triggerName",
        TriggerTargetArn = "triggerTargetArn"
    } }
};
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"

cfnDeploymentGroupProps := &CfnDeploymentGroupProps{
	ApplicationName: jsii.String("applicationName"),
	ServiceRoleArn: jsii.String("serviceRoleArn"),

	// the properties below are optional
	AlarmConfiguration: &AlarmConfigurationProperty{
		Alarms: []interface{}{
			&AlarmProperty{
				Name: jsii.String("name"),
			},
		},
		Enabled: jsii.Boolean(false),
		IgnorePollAlarmFailure: jsii.Boolean(false),
	},
	AutoRollbackConfiguration: &AutoRollbackConfigurationProperty{
		Enabled: jsii.Boolean(false),
		Events: []*string{
			jsii.String("events"),
		},
	},
	AutoScalingGroups: []*string{
		jsii.String("autoScalingGroups"),
	},
	BlueGreenDeploymentConfiguration: &BlueGreenDeploymentConfigurationProperty{
		DeploymentReadyOption: &DeploymentReadyOptionProperty{
			ActionOnTimeout: jsii.String("actionOnTimeout"),
			WaitTimeInMinutes: jsii.Number(123),
		},
		GreenFleetProvisioningOption: &GreenFleetProvisioningOptionProperty{
			Action: jsii.String("action"),
		},
		TerminateBlueInstancesOnDeploymentSuccess: &BlueInstanceTerminationOptionProperty{
			Action: jsii.String("action"),
			TerminationWaitTimeInMinutes: jsii.Number(123),
		},
	},
	Deployment: &DeploymentProperty{
		Revision: &RevisionLocationProperty{
			GitHubLocation: &GitHubLocationProperty{
				CommitId: jsii.String("commitId"),
				Repository: jsii.String("repository"),
			},
			RevisionType: jsii.String("revisionType"),
			S3Location: &S3LocationProperty{
				Bucket: jsii.String("bucket"),
				Key: jsii.String("key"),

				// the properties below are optional
				BundleType: jsii.String("bundleType"),
				ETag: jsii.String("eTag"),
				Version: jsii.String("version"),
			},
		},

		// the properties below are optional
		Description: jsii.String("description"),
		IgnoreApplicationStopFailures: jsii.Boolean(false),
	},
	DeploymentConfigName: jsii.String("deploymentConfigName"),
	DeploymentGroupName: jsii.String("deploymentGroupName"),
	DeploymentStyle: &DeploymentStyleProperty{
		DeploymentOption: jsii.String("deploymentOption"),
		DeploymentType: jsii.String("deploymentType"),
	},
	Ec2DeploymentOptions: &Ec2DeploymentOptionsProperty{
		AutoScalingGroupProcessesToSuspend: []*string{
			jsii.String("autoScalingGroupProcessesToSuspend"),
		},
	},
	Ec2TagFilters: []interface{}{
		&EC2TagFilterProperty{
			Key: jsii.String("key"),
			Type: jsii.String("type"),
			Value: jsii.String("value"),
		},
	},
	Ec2TagSet: &EC2TagSetProperty{
		Ec2TagSetList: []interface{}{
			&EC2TagSetListObjectProperty{
				Ec2TagGroup: []interface{}{
					&EC2TagFilterProperty{
						Key: jsii.String("key"),
						Type: jsii.String("type"),
						Value: jsii.String("value"),
					},
				},
			},
		},
	},
	EcsServices: []interface{}{
		&ECSServiceProperty{
			ClusterName: jsii.String("clusterName"),
			ServiceName: jsii.String("serviceName"),
		},
	},
	LoadBalancerInfo: &LoadBalancerInfoProperty{
		ElbInfoList: []interface{}{
			&ELBInfoProperty{
				Name: jsii.String("name"),
			},
		},
		TargetGroupInfoList: []interface{}{
			&TargetGroupInfoProperty{
				Name: jsii.String("name"),
			},
		},
		TargetGroupPairInfoList: []interface{}{
			&TargetGroupPairInfoProperty{
				ProdTrafficRoute: &TrafficRouteProperty{
					ListenerArns: []*string{
						jsii.String("listenerArns"),
					},
				},
				TargetGroups: []interface{}{
					&TargetGroupInfoProperty{
						Name: jsii.String("name"),
					},
				},
				TestTrafficRoute: &TrafficRouteProperty{
					ListenerArns: []*string{
						jsii.String("listenerArns"),
					},
				},
			},
		},
	},
	OnPremisesInstanceTagFilters: []interface{}{
		&TagFilterProperty{
			Key: jsii.String("key"),
			Type: jsii.String("type"),
			Value: jsii.String("value"),
		},
	},
	OnPremisesTagSet: &OnPremisesTagSetProperty{
		OnPremisesTagSetList: []interface{}{
			&OnPremisesTagSetListObjectProperty{
				OnPremisesTagGroup: []interface{}{
					&TagFilterProperty{
						Key: jsii.String("key"),
						Type: jsii.String("type"),
						Value: jsii.String("value"),
					},
				},
			},
		},
	},
	OutdatedInstancesStrategy: jsii.String("outdatedInstancesStrategy"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	TerminationHookEnabled: jsii.Boolean(false),
	TriggerConfigurations: []interface{}{
		&TriggerConfigProperty{
			TriggerEvents: []*string{
				jsii.String("triggerEvents"),
			},
			TriggerName: jsii.String("triggerName"),
			TriggerTargetArn: jsii.String("triggerTargetArn"),
		},
	},
}

Properties ​

alarmConfigurationoptionalIResolvable | CfnDeploymentGroup.AlarmConfigurationPropertyalarm_configurationoptionaltyping.Union[IResolvable, AlarmConfigurationProperty]alarmConfigurationoptionalIResolvableAlarmConfigurationoptionalIResolvableAlarmConfigurationoptionalinterface{}#
Information about the Amazon CloudWatch alarms that are associated with the deployment group.
applicationNamestringapplication_namestrapplicationNameStringApplicationNamestringApplicationName*stringrequired#
The name of an existing CodeDeploy application to associate this deployment group with.
autoRollbackConfigurationoptionalIResolvable | CfnDeploymentGroup.AutoRollbackConfigurationPropertyauto_rollback_configurationoptionaltyping.Union[IResolvable, AutoRollbackConfigurationProperty]autoRollbackConfigurationoptionalIResolvableAutoRollbackConfigurationoptionalIResolvableAutoRollbackConfigurationoptionalinterface{}#
Information about the automatic rollback configuration that is associated with the deployment group.

If you specify this property, don't specify the Deployment property.

autoScalingGroupsoptionalstring[]auto_scaling_groupsoptionaltyping.List[str]autoScalingGroupsoptionalList<String>AutoScalingGroupsoptionalstring[]AutoScalingGroupsoptional*[]*string#
A list of associated Auto Scaling groups that CodeDeploy automatically deploys revisions to when new instances are created.

Duplicates are not allowed.

blueGreenDeploymentConfigurationoptionalIResolvable | CfnDeploymentGroup.BlueGreenDeploymentConfigurationPropertyblue_green_deployment_configurationoptionaltyping.Union[IResolvable, BlueGreenDeploymentConfigurationProperty]blueGreenDeploymentConfigurationoptionalIResolvableBlueGreenDeploymentConfigurationoptionalIResolvableBlueGreenDeploymentConfigurationoptionalinterface{}#
Information about blue/green deployment options for a deployment group.
deploymentoptionalIResolvable | CfnDeploymentGroup.DeploymentPropertydeploymentoptionaltyping.Union[IResolvable, DeploymentProperty]deploymentoptionalIResolvableDeploymentoptionalIResolvableDeploymentoptionalinterface{}#
The application revision to deploy to this deployment group.

If you specify this property, your target application revision is deployed as soon as the provisioning process is complete. If you specify this property, don't specify the AutoRollbackConfiguration property.

deploymentConfigNameoptionalstringdeployment_config_nameoptionalstrdeploymentConfigNameoptionalStringDeploymentConfigNameoptionalstringDeploymentConfigNameoptional*string#
A deployment configuration name or a predefined configuration name.
notes

With predefined configurations, you can deploy application revisions to one instance at a time ( CodeDeployDefault.OneAtATime ), half of the instances at a time ( CodeDeployDefault.HalfAtATime ), or all the instances at once ( CodeDeployDefault.AllAtOnce ). For more information and valid values, see Working with Deployment Configurations in the AWS CodeDeploy User Guide .

deploymentGroupNameoptionalstringdeployment_group_nameoptionalstrdeploymentGroupNameoptionalStringDeploymentGroupNameoptionalstringDeploymentGroupNameoptional*string#
A name for the deployment group.
notes

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

If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.

deploymentStyleoptionalIResolvable | CfnDeploymentGroup.DeploymentStylePropertydeployment_styleoptionaltyping.Union[IResolvable, DeploymentStyleProperty]deploymentStyleoptionalIResolvableDeploymentStyleoptionalIResolvableDeploymentStyleoptionalinterface{}#
Attributes that determine the type of deployment to run and whether to route deployment traffic behind a load balancer.
notes

If you specify this property with a blue/green deployment type, don't specify the AutoScalingGroups , LoadBalancerInfo , or Deployment properties.

For blue/green deployments, CloudFormation supports deployments on Lambda compute platforms only. You can perform Amazon ECS blue/green deployments using AWS::CodeDeploy::BlueGreen hook. See Perform Amazon ECS blue/green deployments through CodeDeploy using CloudFormation for more information.

ec2DeploymentOptionsoptionalIResolvable | CfnDeploymentGroup.Ec2DeploymentOptionsPropertyec2_deployment_optionsoptionaltyping.Union[IResolvable, Ec2DeploymentOptionsProperty]ec2DeploymentOptionsoptionalIResolvableEc2DeploymentOptionsoptionalIResolvableEc2DeploymentOptionsoptionalinterface{}#
Options that control how CodeDeploy manages Amazon EC2 Auto Scaling groups during deployments to the deployment group.
ec2TagFiltersoptionalIResolvable | IResolvable | CfnDeploymentGroup.EC2TagFilterProperty[]ec2_tag_filtersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, EC2TagFilterProperty]]]ec2TagFiltersoptionalIResolvableEc2TagFiltersoptionalIResolvableEc2TagFiltersoptionalinterface{}#
The Amazon EC2 tags that are already applied to Amazon EC2 instances that you want to include in the deployment group.

CodeDeploy includes all Amazon EC2 instances identified by any of the tags you specify in this deployment group. Duplicates are not allowed.

You can specify EC2TagFilters or Ec2TagSet , but not both.

ec2TagSetoptionalIResolvable | CfnDeploymentGroup.EC2TagSetPropertyec2_tag_setoptionaltyping.Union[IResolvable, EC2TagSetProperty]ec2TagSetoptionalIResolvableEc2TagSetoptionalIResolvableEc2TagSetoptionalinterface{}#
Information about groups of tags applied to Amazon EC2 instances.

The deployment group includes only Amazon EC2 instances identified by all the tag groups. Cannot be used in the same call as ec2TagFilter .

ecsServicesoptionalIResolvable | IResolvable | CfnDeploymentGroup.ECSServiceProperty[]ecs_servicesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ECSServiceProperty]]]ecsServicesoptionalIResolvableEcsServicesoptionalIResolvableEcsServicesoptionalinterface{}#
The target Amazon ECS services in the deployment group.

This applies only to deployment groups that use the Amazon ECS compute platform. A target Amazon ECS service is specified as an Amazon ECS cluster and service name pair using the format <clustername>:<servicename> .

loadBalancerInfooptionalIResolvable | CfnDeploymentGroup.LoadBalancerInfoPropertyload_balancer_infooptionaltyping.Union[IResolvable, LoadBalancerInfoProperty]loadBalancerInfooptionalIResolvableLoadBalancerInfooptionalIResolvableLoadBalancerInfooptionalinterface{}#
Information about the load balancer to use in a deployment.

For more information, see Integrating CodeDeploy with Elastic Load Balancing in the AWS CodeDeploy User Guide .

onPremisesInstanceTagFiltersoptionalIResolvable | IResolvable | CfnDeploymentGroup.TagFilterProperty[]on_premises_instance_tag_filtersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TagFilterProperty]]]onPremisesInstanceTagFiltersoptionalIResolvableOnPremisesInstanceTagFiltersoptionalIResolvableOnPremisesInstanceTagFiltersoptionalinterface{}#
The on-premises instance tags already applied to on-premises instances that you want to include in the deployment group.
notes

CodeDeploy includes all on-premises instances identified by any of the tags you specify in this deployment group. To register on-premises instances with CodeDeploy , see Working with On-Premises Instances for CodeDeploy in the AWS CodeDeploy User Guide . Duplicates are not allowed.

You can specify OnPremisesInstanceTagFilters or OnPremisesInstanceTagSet , but not both.

onPremisesTagSetoptionalIResolvable | CfnDeploymentGroup.OnPremisesTagSetPropertyon_premises_tag_setoptionaltyping.Union[IResolvable, OnPremisesTagSetProperty]onPremisesTagSetoptionalIResolvableOnPremisesTagSetoptionalIResolvableOnPremisesTagSetoptionalinterface{}#
Information about groups of tags applied to on-premises instances.

The deployment group includes only on-premises instances identified by all the tag groups.

You can specify OnPremisesInstanceTagFilters or OnPremisesInstanceTagSet , but not both.

outdatedInstancesStrategyoptionalstringoutdated_instances_strategyoptionalstroutdatedInstancesStrategyoptionalStringOutdatedInstancesStrategyoptionalstringOutdatedInstancesStrategyoptional*string#
Indicates what happens when new Amazon EC2 instances are launched mid-deployment and do not receive the deployed application revision.
notes

If this option is set to UPDATE or is unspecified, CodeDeploy initiates one or more 'auto-update outdated instances' deployments to apply the deployed application revision to the new Amazon EC2 instances.

If this option is set to IGNORE , CodeDeploy does not initiate a deployment to update the new Amazon EC2 instances. This may result in instances having different revisions.

serviceRoleArnstringservice_role_arnstrserviceRoleArnStringServiceRoleArnstringServiceRoleArn*stringrequired#
A service role Amazon Resource Name (ARN) that grants CodeDeploy permission to make calls to AWS services on your behalf.
notes

For more information, see Create a Service Role for AWS CodeDeploy in the AWS CodeDeploy User Guide .

In some cases, you might need to add a dependency on the service role's policy. For more information, see IAM role policy in DependsOn Attribute .

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
The metadata that you apply to CodeDeploy deployment groups to help you organize and categorize them.

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

terminationHookEnabledoptionalboolean | IResolvabletermination_hook_enabledoptionaltyping.Union[bool, IResolvable]terminationHookEnabledoptionalBooleanTerminationHookEnabledoptionalboolTerminationHookEnabledoptionalinterface{}#
Indicates whether the deployment group was configured to have CodeDeploy install a termination hook into an Auto Scaling group.
notes

For more information about the termination hook, see How Amazon EC2 Auto Scaling works with CodeDeploy in the AWS CodeDeploy User Guide .

triggerConfigurationsoptionalIResolvable | IResolvable | CfnDeploymentGroup.TriggerConfigProperty[]trigger_configurationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TriggerConfigProperty]]]triggerConfigurationsoptionalIResolvableTriggerConfigurationsoptionalIResolvableTriggerConfigurationsoptionalinterface{}#
Information about triggers associated with the deployment group.

Duplicates are not allowed