Class CfnDeploymentGroupMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentGroupMixinProps>
- Enclosing interface:
CfnDeploymentGroupMixinProps
CfnDeploymentGroupMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalarmConfiguration(CfnDeploymentGroupPropsMixin.AlarmConfigurationProperty alarmConfiguration) Sets the value ofCfnDeploymentGroupMixinProps.getAlarmConfiguration()alarmConfiguration(IResolvable alarmConfiguration) Sets the value ofCfnDeploymentGroupMixinProps.getAlarmConfiguration()applicationName(String applicationName) Sets the value ofCfnDeploymentGroupMixinProps.getApplicationName()autoRollbackConfiguration(CfnDeploymentGroupPropsMixin.AutoRollbackConfigurationProperty autoRollbackConfiguration) Sets the value ofCfnDeploymentGroupMixinProps.getAutoRollbackConfiguration()autoRollbackConfiguration(IResolvable autoRollbackConfiguration) Sets the value ofCfnDeploymentGroupMixinProps.getAutoRollbackConfiguration()autoScalingGroups(List<String> autoScalingGroups) Sets the value ofCfnDeploymentGroupMixinProps.getAutoScalingGroups()blueGreenDeploymentConfiguration(CfnDeploymentGroupPropsMixin.BlueGreenDeploymentConfigurationProperty blueGreenDeploymentConfiguration) Sets the value ofCfnDeploymentGroupMixinProps.getBlueGreenDeploymentConfiguration()blueGreenDeploymentConfiguration(IResolvable blueGreenDeploymentConfiguration) Sets the value ofCfnDeploymentGroupMixinProps.getBlueGreenDeploymentConfiguration()build()Builds the configured instance.Sets the value ofCfnDeploymentGroupMixinProps.getDeployment()deployment(IResolvable deployment) Sets the value ofCfnDeploymentGroupMixinProps.getDeployment()deploymentConfigName(String deploymentConfigName) Sets the value ofCfnDeploymentGroupMixinProps.getDeploymentConfigName()deploymentGroupName(String deploymentGroupName) Sets the value ofCfnDeploymentGroupMixinProps.getDeploymentGroupName()deploymentStyle(CfnDeploymentGroupPropsMixin.DeploymentStyleProperty deploymentStyle) Sets the value ofCfnDeploymentGroupMixinProps.getDeploymentStyle()deploymentStyle(IResolvable deploymentStyle) Sets the value ofCfnDeploymentGroupMixinProps.getDeploymentStyle()ec2TagFilters(List<? extends Object> ec2TagFilters) Sets the value ofCfnDeploymentGroupMixinProps.getEc2TagFilters()ec2TagFilters(IResolvable ec2TagFilters) Sets the value ofCfnDeploymentGroupMixinProps.getEc2TagFilters()Sets the value ofCfnDeploymentGroupMixinProps.getEc2TagSet()ec2TagSet(IResolvable ec2TagSet) Sets the value ofCfnDeploymentGroupMixinProps.getEc2TagSet()ecsServices(List<? extends Object> ecsServices) Sets the value ofCfnDeploymentGroupMixinProps.getEcsServices()ecsServices(IResolvable ecsServices) Sets the value ofCfnDeploymentGroupMixinProps.getEcsServices()loadBalancerInfo(CfnDeploymentGroupPropsMixin.LoadBalancerInfoProperty loadBalancerInfo) Sets the value ofCfnDeploymentGroupMixinProps.getLoadBalancerInfo()loadBalancerInfo(IResolvable loadBalancerInfo) Sets the value ofCfnDeploymentGroupMixinProps.getLoadBalancerInfo()onPremisesInstanceTagFilters(List<? extends Object> onPremisesInstanceTagFilters) Sets the value ofCfnDeploymentGroupMixinProps.getOnPremisesInstanceTagFilters()onPremisesInstanceTagFilters(IResolvable onPremisesInstanceTagFilters) Sets the value ofCfnDeploymentGroupMixinProps.getOnPremisesInstanceTagFilters()onPremisesTagSet(CfnDeploymentGroupPropsMixin.OnPremisesTagSetProperty onPremisesTagSet) Sets the value ofCfnDeploymentGroupMixinProps.getOnPremisesTagSet()onPremisesTagSet(IResolvable onPremisesTagSet) Sets the value ofCfnDeploymentGroupMixinProps.getOnPremisesTagSet()outdatedInstancesStrategy(String outdatedInstancesStrategy) Sets the value ofCfnDeploymentGroupMixinProps.getOutdatedInstancesStrategy()serviceRoleArn(String serviceRoleArn) Sets the value ofCfnDeploymentGroupMixinProps.getServiceRoleArn()Sets the value ofCfnDeploymentGroupMixinProps.getTags()terminationHookEnabled(Boolean terminationHookEnabled) Sets the value ofCfnDeploymentGroupMixinProps.getTerminationHookEnabled()terminationHookEnabled(IResolvable terminationHookEnabled) Sets the value ofCfnDeploymentGroupMixinProps.getTerminationHookEnabled()triggerConfigurations(List<? extends Object> triggerConfigurations) Sets the value ofCfnDeploymentGroupMixinProps.getTriggerConfigurations()triggerConfigurations(IResolvable triggerConfigurations) Sets the value ofCfnDeploymentGroupMixinProps.getTriggerConfigurations()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alarmConfiguration
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder alarmConfiguration(IResolvable alarmConfiguration) Sets the value ofCfnDeploymentGroupMixinProps.getAlarmConfiguration()- Parameters:
alarmConfiguration- Information about the Amazon CloudWatch alarms that are associated with the deployment group.- Returns:
this
-
alarmConfiguration
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder alarmConfiguration(CfnDeploymentGroupPropsMixin.AlarmConfigurationProperty alarmConfiguration) Sets the value ofCfnDeploymentGroupMixinProps.getAlarmConfiguration()- Parameters:
alarmConfiguration- Information about the Amazon CloudWatch alarms that are associated with the deployment group.- Returns:
this
-
applicationName
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder applicationName(String applicationName) Sets the value ofCfnDeploymentGroupMixinProps.getApplicationName()- Parameters:
applicationName- The name of an existing CodeDeploy application to associate this deployment group with.- Returns:
this
-
autoRollbackConfiguration
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder autoRollbackConfiguration(IResolvable autoRollbackConfiguration) Sets the value ofCfnDeploymentGroupMixinProps.getAutoRollbackConfiguration()- Parameters:
autoRollbackConfiguration- Information about the automatic rollback configuration that is associated with the deployment group. If you specify this property, don't specify theDeploymentproperty.- Returns:
this
-
autoRollbackConfiguration
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder autoRollbackConfiguration(CfnDeploymentGroupPropsMixin.AutoRollbackConfigurationProperty autoRollbackConfiguration) Sets the value ofCfnDeploymentGroupMixinProps.getAutoRollbackConfiguration()- Parameters:
autoRollbackConfiguration- Information about the automatic rollback configuration that is associated with the deployment group. If you specify this property, don't specify theDeploymentproperty.- Returns:
this
-
autoScalingGroups
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder autoScalingGroups(List<String> autoScalingGroups) Sets the value ofCfnDeploymentGroupMixinProps.getAutoScalingGroups()- Parameters:
autoScalingGroups- A list of associated Auto Scaling groups that CodeDeploy automatically deploys revisions to when new instances are created. Duplicates are not allowed.- Returns:
this
-
blueGreenDeploymentConfiguration
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder blueGreenDeploymentConfiguration(IResolvable blueGreenDeploymentConfiguration) Sets the value ofCfnDeploymentGroupMixinProps.getBlueGreenDeploymentConfiguration()- Parameters:
blueGreenDeploymentConfiguration- Information about blue/green deployment options for a deployment group.- Returns:
this
-
blueGreenDeploymentConfiguration
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder blueGreenDeploymentConfiguration(CfnDeploymentGroupPropsMixin.BlueGreenDeploymentConfigurationProperty blueGreenDeploymentConfiguration) Sets the value ofCfnDeploymentGroupMixinProps.getBlueGreenDeploymentConfiguration()- Parameters:
blueGreenDeploymentConfiguration- Information about blue/green deployment options for a deployment group.- Returns:
this
-
deployment
Sets the value ofCfnDeploymentGroupMixinProps.getDeployment()- Parameters:
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 theAutoRollbackConfigurationproperty.- Returns:
this
-
deployment
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder deployment(CfnDeploymentGroupPropsMixin.DeploymentProperty deployment) Sets the value ofCfnDeploymentGroupMixinProps.getDeployment()- Parameters:
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 theAutoRollbackConfigurationproperty.- Returns:
this
-
deploymentConfigName
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder deploymentConfigName(String deploymentConfigName) Sets the value ofCfnDeploymentGroupMixinProps.getDeploymentConfigName()- Parameters:
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 .- Returns:
this
-
deploymentGroupName
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder deploymentGroupName(String deploymentGroupName) Sets the value ofCfnDeploymentGroupMixinProps.getDeploymentGroupName()- Parameters:
deploymentGroupName- A name for the deployment group. 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.
- Returns:
this
-
deploymentStyle
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder deploymentStyle(IResolvable deploymentStyle) Sets the value ofCfnDeploymentGroupMixinProps.getDeploymentStyle()- Parameters:
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 theAutoScalingGroups,LoadBalancerInfo, orDeploymentproperties.For blue/green deployments, CloudFormation supports deployments on Lambda compute platforms only. You can perform Amazon ECS blue/green deployments using
AWS::CodeDeploy::BlueGreenhook. See Perform Amazon ECS blue/green deployments through CodeDeploy using CloudFormation for more information.- Returns:
this
-
deploymentStyle
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder deploymentStyle(CfnDeploymentGroupPropsMixin.DeploymentStyleProperty deploymentStyle) Sets the value ofCfnDeploymentGroupMixinProps.getDeploymentStyle()- Parameters:
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 theAutoScalingGroups,LoadBalancerInfo, orDeploymentproperties.For blue/green deployments, CloudFormation supports deployments on Lambda compute platforms only. You can perform Amazon ECS blue/green deployments using
AWS::CodeDeploy::BlueGreenhook. See Perform Amazon ECS blue/green deployments through CodeDeploy using CloudFormation for more information.- Returns:
this
-
ec2TagFilters
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder ec2TagFilters(IResolvable ec2TagFilters) Sets the value ofCfnDeploymentGroupMixinProps.getEc2TagFilters()- Parameters:
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
EC2TagFiltersorEc2TagSet, but not both.- Returns:
this
-
ec2TagFilters
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder ec2TagFilters(List<? extends Object> ec2TagFilters) Sets the value ofCfnDeploymentGroupMixinProps.getEc2TagFilters()- Parameters:
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
EC2TagFiltersorEc2TagSet, but not both.- Returns:
this
-
ec2TagSet
Sets the value ofCfnDeploymentGroupMixinProps.getEc2TagSet()- Parameters:
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 asec2TagFilter.- Returns:
this
-
ec2TagSet
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder ec2TagSet(CfnDeploymentGroupPropsMixin.EC2TagSetProperty ec2TagSet) Sets the value ofCfnDeploymentGroupMixinProps.getEc2TagSet()- Parameters:
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 asec2TagFilter.- Returns:
this
-
ecsServices
Sets the value ofCfnDeploymentGroupMixinProps.getEcsServices()- Parameters:
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>.- Returns:
this
-
ecsServices
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder ecsServices(List<? extends Object> ecsServices) Sets the value ofCfnDeploymentGroupMixinProps.getEcsServices()- Parameters:
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>.- Returns:
this
-
loadBalancerInfo
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder loadBalancerInfo(IResolvable loadBalancerInfo) Sets the value ofCfnDeploymentGroupMixinProps.getLoadBalancerInfo()- Parameters:
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 .- Returns:
this
-
loadBalancerInfo
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder loadBalancerInfo(CfnDeploymentGroupPropsMixin.LoadBalancerInfoProperty loadBalancerInfo) Sets the value ofCfnDeploymentGroupMixinProps.getLoadBalancerInfo()- Parameters:
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 .- Returns:
this
-
onPremisesInstanceTagFilters
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder onPremisesInstanceTagFilters(IResolvable onPremisesInstanceTagFilters) Sets the value ofCfnDeploymentGroupMixinProps.getOnPremisesInstanceTagFilters()- Parameters:
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
OnPremisesInstanceTagFiltersorOnPremisesInstanceTagSet, but not both.- Returns:
this
-
onPremisesInstanceTagFilters
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder onPremisesInstanceTagFilters(List<? extends Object> onPremisesInstanceTagFilters) Sets the value ofCfnDeploymentGroupMixinProps.getOnPremisesInstanceTagFilters()- Parameters:
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
OnPremisesInstanceTagFiltersorOnPremisesInstanceTagSet, but not both.- Returns:
this
-
onPremisesTagSet
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder onPremisesTagSet(IResolvable onPremisesTagSet) Sets the value ofCfnDeploymentGroupMixinProps.getOnPremisesTagSet()- Parameters:
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
OnPremisesInstanceTagFiltersorOnPremisesInstanceTagSet, but not both.- Returns:
this
-
onPremisesTagSet
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder onPremisesTagSet(CfnDeploymentGroupPropsMixin.OnPremisesTagSetProperty onPremisesTagSet) Sets the value ofCfnDeploymentGroupMixinProps.getOnPremisesTagSet()- Parameters:
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
OnPremisesInstanceTagFiltersorOnPremisesInstanceTagSet, but not both.- Returns:
this
-
outdatedInstancesStrategy
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder outdatedInstancesStrategy(String outdatedInstancesStrategy) Sets the value ofCfnDeploymentGroupMixinProps.getOutdatedInstancesStrategy()- Parameters:
outdatedInstancesStrategy- Indicates what happens when new Amazon EC2 instances are launched mid-deployment and do not receive the deployed application revision. If this option is set toUPDATEor 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.- Returns:
this
-
serviceRoleArn
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder serviceRoleArn(String serviceRoleArn) Sets the value ofCfnDeploymentGroupMixinProps.getServiceRoleArn()- Parameters:
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 .
- Returns:
this
-
tags
Sets the value ofCfnDeploymentGroupMixinProps.getTags()- Parameters:
tags- 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.- Returns:
this
-
terminationHookEnabled
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder terminationHookEnabled(Boolean terminationHookEnabled) Sets the value ofCfnDeploymentGroupMixinProps.getTerminationHookEnabled()- Parameters:
terminationHookEnabled- Indicates whether the deployment group was configured to have CodeDeploy install a termination hook into an Auto Scaling group. For more information about the termination hook, see How Amazon EC2 Auto Scaling works with CodeDeploy in the AWS CodeDeploy User Guide .- Returns:
this
-
terminationHookEnabled
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder terminationHookEnabled(IResolvable terminationHookEnabled) Sets the value ofCfnDeploymentGroupMixinProps.getTerminationHookEnabled()- Parameters:
terminationHookEnabled- Indicates whether the deployment group was configured to have CodeDeploy install a termination hook into an Auto Scaling group. For more information about the termination hook, see How Amazon EC2 Auto Scaling works with CodeDeploy in the AWS CodeDeploy User Guide .- Returns:
this
-
triggerConfigurations
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder triggerConfigurations(IResolvable triggerConfigurations) Sets the value ofCfnDeploymentGroupMixinProps.getTriggerConfigurations()- Parameters:
triggerConfigurations- Information about triggers associated with the deployment group. Duplicates are not allowed- Returns:
this
-
triggerConfigurations
@Stability(Stable) public CfnDeploymentGroupMixinProps.Builder triggerConfigurations(List<? extends Object> triggerConfigurations) Sets the value ofCfnDeploymentGroupMixinProps.getTriggerConfigurations()- Parameters:
triggerConfigurations- Information about triggers associated with the deployment group. Duplicates are not allowed- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeploymentGroupMixinProps>- Returns:
- a new instance of
CfnDeploymentGroupMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-