Class CfnDeploymentGroup.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentGroup>
- Enclosing class:
CfnDeploymentGroup
CfnDeploymentGroup
.-
Method Summary
Modifier and TypeMethodDescriptionalarmConfiguration
(IResolvable alarmConfiguration) Information about the Amazon CloudWatch alarms that are associated with the deployment group.alarmConfiguration
(CfnDeploymentGroup.AlarmConfigurationProperty alarmConfiguration) Information about the Amazon CloudWatch alarms that are associated with the deployment group.applicationName
(String applicationName) The name of an existing CodeDeploy application to associate this deployment group with.autoRollbackConfiguration
(IResolvable autoRollbackConfiguration) Information about the automatic rollback configuration that is associated with the deployment group.autoRollbackConfiguration
(CfnDeploymentGroup.AutoRollbackConfigurationProperty autoRollbackConfiguration) Information about the automatic rollback configuration that is associated with the deployment group.autoScalingGroups
(List<String> autoScalingGroups) A list of associated Auto Scaling groups that CodeDeploy automatically deploys revisions to when new instances are created.blueGreenDeploymentConfiguration
(IResolvable blueGreenDeploymentConfiguration) Information about blue/green deployment options for a deployment group.blueGreenDeploymentConfiguration
(CfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty blueGreenDeploymentConfiguration) Information about blue/green deployment options for a deployment group.build()
static CfnDeploymentGroup.Builder
deployment
(IResolvable deployment) The application revision to deploy to this deployment group.deployment
(CfnDeploymentGroup.DeploymentProperty deployment) The application revision to deploy to this deployment group.deploymentConfigName
(String deploymentConfigName) A deployment configuration name or a predefined configuration name.deploymentGroupName
(String deploymentGroupName) A name for the deployment group.deploymentStyle
(IResolvable deploymentStyle) Attributes that determine the type of deployment to run and whether to route deployment traffic behind a load balancer.deploymentStyle
(CfnDeploymentGroup.DeploymentStyleProperty deploymentStyle) Attributes that determine the type of deployment to run and whether to route deployment traffic behind a load balancer.ec2TagFilters
(List<? extends Object> ec2TagFilters) The Amazon EC2 tags that are already applied to Amazon EC2 instances that you want to include in the deployment group.ec2TagFilters
(IResolvable ec2TagFilters) The Amazon EC2 tags that are already applied to Amazon EC2 instances that you want to include in the deployment group.ec2TagSet
(IResolvable ec2TagSet) Information about groups of tags applied to Amazon EC2 instances.ec2TagSet
(CfnDeploymentGroup.EC2TagSetProperty ec2TagSet) Information about groups of tags applied to Amazon EC2 instances.ecsServices
(List<? extends Object> ecsServices) The target Amazon ECS services in the deployment group.ecsServices
(IResolvable ecsServices) The target Amazon ECS services in the deployment group.loadBalancerInfo
(IResolvable loadBalancerInfo) Information about the load balancer to use in a deployment.loadBalancerInfo
(CfnDeploymentGroup.LoadBalancerInfoProperty loadBalancerInfo) Information about the load balancer to use in a deployment.onPremisesInstanceTagFilters
(List<? extends Object> onPremisesInstanceTagFilters) The on-premises instance tags already applied to on-premises instances that you want to include in the deployment group.onPremisesInstanceTagFilters
(IResolvable onPremisesInstanceTagFilters) The on-premises instance tags already applied to on-premises instances that you want to include in the deployment group.onPremisesTagSet
(IResolvable onPremisesTagSet) Information about groups of tags applied to on-premises instances.onPremisesTagSet
(CfnDeploymentGroup.OnPremisesTagSetProperty onPremisesTagSet) Information about groups of tags applied to on-premises instances.outdatedInstancesStrategy
(String outdatedInstancesStrategy) AWS::CodeDeploy::DeploymentGroup.OutdatedInstancesStrategy
.serviceRoleArn
(String serviceRoleArn) A service role Amazon Resource Name (ARN) that grants CodeDeploy permission to make calls to AWS services on your behalf.AWS::CodeDeploy::DeploymentGroup.Tags
.triggerConfigurations
(List<? extends Object> triggerConfigurations) Information about triggers associated with the deployment group.triggerConfigurations
(IResolvable triggerConfigurations) Information about triggers associated with the deployment group.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnDeploymentGroup.Builder
.
-
applicationName
The name of an existing CodeDeploy application to associate this deployment group with.- Parameters:
applicationName
- The name of an existing CodeDeploy application to associate this deployment group with. This parameter is required.- Returns:
this
-
serviceRoleArn
A service role Amazon Resource Name (ARN) that grants CodeDeploy permission to make calls to AWS services on your behalf.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 .
- Parameters:
serviceRoleArn
- A service role Amazon Resource Name (ARN) that grants CodeDeploy permission to make calls to AWS services on your behalf. This parameter is required.- Returns:
this
-
alarmConfiguration
@Stability(Stable) public CfnDeploymentGroup.Builder alarmConfiguration(IResolvable alarmConfiguration) Information about the Amazon CloudWatch alarms that are associated with the deployment group.- Parameters:
alarmConfiguration
- Information about the Amazon CloudWatch alarms that are associated with the deployment group. This parameter is required.- Returns:
this
-
alarmConfiguration
@Stability(Stable) public CfnDeploymentGroup.Builder alarmConfiguration(CfnDeploymentGroup.AlarmConfigurationProperty alarmConfiguration) Information about the Amazon CloudWatch alarms that are associated with the deployment group.- Parameters:
alarmConfiguration
- Information about the Amazon CloudWatch alarms that are associated with the deployment group. This parameter is required.- Returns:
this
-
autoRollbackConfiguration
@Stability(Stable) public CfnDeploymentGroup.Builder autoRollbackConfiguration(IResolvable autoRollbackConfiguration) Information about the automatic rollback configuration that is associated with the deployment group.If you specify this property, don't specify the
Deployment
property.- Parameters:
autoRollbackConfiguration
- Information about the automatic rollback configuration that is associated with the deployment group. This parameter is required.- Returns:
this
-
autoRollbackConfiguration
@Stability(Stable) public CfnDeploymentGroup.Builder autoRollbackConfiguration(CfnDeploymentGroup.AutoRollbackConfigurationProperty autoRollbackConfiguration) Information about the automatic rollback configuration that is associated with the deployment group.If you specify this property, don't specify the
Deployment
property.- Parameters:
autoRollbackConfiguration
- Information about the automatic rollback configuration that is associated with the deployment group. This parameter is required.- Returns:
this
-
autoScalingGroups
@Stability(Stable) public CfnDeploymentGroup.Builder autoScalingGroups(List<String> autoScalingGroups) A list of associated Auto Scaling groups that CodeDeploy automatically deploys revisions to when new instances are created.Duplicates are not allowed.
- Parameters:
autoScalingGroups
- A list of associated Auto Scaling groups that CodeDeploy automatically deploys revisions to when new instances are created. This parameter is required.- Returns:
this
-
blueGreenDeploymentConfiguration
@Stability(Stable) public CfnDeploymentGroup.Builder blueGreenDeploymentConfiguration(IResolvable blueGreenDeploymentConfiguration) Information about blue/green deployment options for a deployment group.- Parameters:
blueGreenDeploymentConfiguration
- Information about blue/green deployment options for a deployment group. This parameter is required.- Returns:
this
-
blueGreenDeploymentConfiguration
@Stability(Stable) public CfnDeploymentGroup.Builder blueGreenDeploymentConfiguration(CfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty blueGreenDeploymentConfiguration) Information about blue/green deployment options for a deployment group.- Parameters:
blueGreenDeploymentConfiguration
- Information about blue/green deployment options for a deployment group. This parameter is required.- Returns:
this
-
deployment
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.- Parameters:
deployment
- The application revision to deploy to this deployment group. This parameter is required.- Returns:
this
-
deployment
@Stability(Stable) public CfnDeploymentGroup.Builder deployment(CfnDeploymentGroup.DeploymentProperty deployment) 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.- Parameters:
deployment
- The application revision to deploy to this deployment group. This parameter is required.- Returns:
this
-
deploymentConfigName
@Stability(Stable) public CfnDeploymentGroup.Builder deploymentConfigName(String deploymentConfigName) A deployment configuration name or a predefined configuration name.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 .- Parameters:
deploymentConfigName
- A deployment configuration name or a predefined configuration name. This parameter is required.- Returns:
this
-
deploymentGroupName
@Stability(Stable) public CfnDeploymentGroup.Builder deploymentGroupName(String deploymentGroupName) A name for the deployment group.If you don't specify a name, AWS 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.
- Parameters:
deploymentGroupName
- A name for the deployment group. This parameter is required.- Returns:
this
-
deploymentStyle
Attributes that determine the type of deployment to run and whether to route deployment traffic behind a load balancer.If you specify this property with a blue/green deployment type, don't specify the
AutoScalingGroups
,LoadBalancerInfo
, orDeployment
properties.For blue/green deployments, AWS 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 AWS CloudFormation for more information.- Parameters:
deploymentStyle
- Attributes that determine the type of deployment to run and whether to route deployment traffic behind a load balancer. This parameter is required.- Returns:
this
-
deploymentStyle
@Stability(Stable) public CfnDeploymentGroup.Builder deploymentStyle(CfnDeploymentGroup.DeploymentStyleProperty deploymentStyle) Attributes that determine the type of deployment to run and whether to route deployment traffic behind a load balancer.If you specify this property with a blue/green deployment type, don't specify the
AutoScalingGroups
,LoadBalancerInfo
, orDeployment
properties.For blue/green deployments, AWS 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 AWS CloudFormation for more information.- Parameters:
deploymentStyle
- Attributes that determine the type of deployment to run and whether to route deployment traffic behind a load balancer. This parameter is required.- Returns:
this
-
ec2TagFilters
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
orEc2TagSet
, but not both.- Parameters:
ec2TagFilters
- The Amazon EC2 tags that are already applied to Amazon EC2 instances that you want to include in the deployment group. This parameter is required.- Returns:
this
-
ec2TagFilters
@Stability(Stable) public CfnDeploymentGroup.Builder ec2TagFilters(List<? extends Object> ec2TagFilters) 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
orEc2TagSet
, but not both.- Parameters:
ec2TagFilters
- The Amazon EC2 tags that are already applied to Amazon EC2 instances that you want to include in the deployment group. This parameter is required.- Returns:
this
-
ec2TagSet
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
.- Parameters:
ec2TagSet
- Information about groups of tags applied to Amazon EC2 instances. This parameter is required.- Returns:
this
-
ec2TagSet
@Stability(Stable) public CfnDeploymentGroup.Builder ec2TagSet(CfnDeploymentGroup.EC2TagSetProperty ec2TagSet) 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
.- Parameters:
ec2TagSet
- Information about groups of tags applied to Amazon EC2 instances. This parameter is required.- Returns:
this
-
ecsServices
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>
.- Parameters:
ecsServices
- The target Amazon ECS services in the deployment group. This parameter is required.- Returns:
this
-
ecsServices
@Stability(Stable) public CfnDeploymentGroup.Builder ecsServices(List<? extends Object> ecsServices) 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>
.- Parameters:
ecsServices
- The target Amazon ECS services in the deployment group. This parameter is required.- Returns:
this
-
loadBalancerInfo
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 .
- Parameters:
loadBalancerInfo
- Information about the load balancer to use in a deployment. This parameter is required.- Returns:
this
-
loadBalancerInfo
@Stability(Stable) public CfnDeploymentGroup.Builder loadBalancerInfo(CfnDeploymentGroup.LoadBalancerInfoProperty loadBalancerInfo) 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 .
- Parameters:
loadBalancerInfo
- Information about the load balancer to use in a deployment. This parameter is required.- Returns:
this
-
onPremisesInstanceTagFilters
@Stability(Stable) public CfnDeploymentGroup.Builder onPremisesInstanceTagFilters(IResolvable onPremisesInstanceTagFilters) The on-premises instance tags already applied to on-premises instances that you want to include in the deployment group.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
orOnPremisesInstanceTagSet
, but not both.- Parameters:
onPremisesInstanceTagFilters
- The on-premises instance tags already applied to on-premises instances that you want to include in the deployment group. This parameter is required.- Returns:
this
-
onPremisesInstanceTagFilters
@Stability(Stable) public CfnDeploymentGroup.Builder onPremisesInstanceTagFilters(List<? extends Object> onPremisesInstanceTagFilters) The on-premises instance tags already applied to on-premises instances that you want to include in the deployment group.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
orOnPremisesInstanceTagSet
, but not both.- Parameters:
onPremisesInstanceTagFilters
- The on-premises instance tags already applied to on-premises instances that you want to include in the deployment group. This parameter is required.- Returns:
this
-
onPremisesTagSet
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
orOnPremisesInstanceTagSet
, but not both.- Parameters:
onPremisesTagSet
- Information about groups of tags applied to on-premises instances. This parameter is required.- Returns:
this
-
onPremisesTagSet
@Stability(Stable) public CfnDeploymentGroup.Builder onPremisesTagSet(CfnDeploymentGroup.OnPremisesTagSetProperty onPremisesTagSet) 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
orOnPremisesInstanceTagSet
, but not both.- Parameters:
onPremisesTagSet
- Information about groups of tags applied to on-premises instances. This parameter is required.- Returns:
this
-
outdatedInstancesStrategy
@Stability(Stable) public CfnDeploymentGroup.Builder outdatedInstancesStrategy(String outdatedInstancesStrategy) AWS::CodeDeploy::DeploymentGroup.OutdatedInstancesStrategy
.- Parameters:
outdatedInstancesStrategy
-AWS::CodeDeploy::DeploymentGroup.OutdatedInstancesStrategy
. This parameter is required.- Returns:
this
-
tags
AWS::CodeDeploy::DeploymentGroup.Tags
.- Parameters:
tags
-AWS::CodeDeploy::DeploymentGroup.Tags
. This parameter is required.- Returns:
this
-
triggerConfigurations
@Stability(Stable) public CfnDeploymentGroup.Builder triggerConfigurations(IResolvable triggerConfigurations) Information about triggers associated with the deployment group.Duplicates are not allowed
- Parameters:
triggerConfigurations
- Information about triggers associated with the deployment group. This parameter is required.- Returns:
this
-
triggerConfigurations
@Stability(Stable) public CfnDeploymentGroup.Builder triggerConfigurations(List<? extends Object> triggerConfigurations) Information about triggers associated with the deployment group.Duplicates are not allowed
- Parameters:
triggerConfigurations
- Information about triggers associated with the deployment group. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeploymentGroup>
- Returns:
- a newly built instance of
CfnDeploymentGroup
.
-