Package software.amazon.awscdk
Class CfnUpdatePolicy.Builder
java.lang.Object
software.amazon.awscdk.CfnUpdatePolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUpdatePolicy>
- Enclosing interface:
CfnUpdatePolicy
@Stability(Stable)
public static final class CfnUpdatePolicy.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUpdatePolicy>
A builder for
CfnUpdatePolicy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautoScalingReplacingUpdate
(CfnAutoScalingReplacingUpdate autoScalingReplacingUpdate) Sets the value ofCfnUpdatePolicy.getAutoScalingReplacingUpdate()
autoScalingRollingUpdate
(CfnAutoScalingRollingUpdate autoScalingRollingUpdate) Sets the value ofCfnUpdatePolicy.getAutoScalingRollingUpdate()
autoScalingScheduledAction
(CfnAutoScalingScheduledAction autoScalingScheduledAction) Sets the value ofCfnUpdatePolicy.getAutoScalingScheduledAction()
build()
Builds the configured instance.codeDeployLambdaAliasUpdate
(CfnCodeDeployLambdaAliasUpdate codeDeployLambdaAliasUpdate) Sets the value ofCfnUpdatePolicy.getCodeDeployLambdaAliasUpdate()
enableVersionUpgrade
(Boolean enableVersionUpgrade) Sets the value ofCfnUpdatePolicy.getEnableVersionUpgrade()
useOnlineResharding
(Boolean useOnlineResharding) Sets the value ofCfnUpdatePolicy.getUseOnlineResharding()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoScalingReplacingUpdate
@Stability(Stable) public CfnUpdatePolicy.Builder autoScalingReplacingUpdate(CfnAutoScalingReplacingUpdate autoScalingReplacingUpdate) Sets the value ofCfnUpdatePolicy.getAutoScalingReplacingUpdate()
- Parameters:
autoScalingReplacingUpdate
- Specifies whether an Auto Scaling group and the instances it contains are replaced during an update. During replacement, AWS CloudFormation retains the old group until it finishes creating the new one. If the update fails, AWS CloudFormation can roll back to the old Auto Scaling group and delete the new Auto Scaling group.- Returns:
this
-
autoScalingRollingUpdate
@Stability(Stable) public CfnUpdatePolicy.Builder autoScalingRollingUpdate(CfnAutoScalingRollingUpdate autoScalingRollingUpdate) Sets the value ofCfnUpdatePolicy.getAutoScalingRollingUpdate()
- Parameters:
autoScalingRollingUpdate
- To specify how AWS CloudFormation handles rolling updates for an Auto Scaling group, use the AutoScalingRollingUpdate policy. Rolling updates enable you to specify whether AWS CloudFormation updates instances that are in an Auto Scaling group in batches or all at once.- Returns:
this
-
autoScalingScheduledAction
@Stability(Stable) public CfnUpdatePolicy.Builder autoScalingScheduledAction(CfnAutoScalingScheduledAction autoScalingScheduledAction) Sets the value ofCfnUpdatePolicy.getAutoScalingScheduledAction()
- Parameters:
autoScalingScheduledAction
- To specify how AWS CloudFormation handles updates for the MinSize, MaxSize, and DesiredCapacity properties when the AWS::AutoScaling::AutoScalingGroup resource has an associated scheduled action, use the AutoScalingScheduledAction policy.- Returns:
this
-
codeDeployLambdaAliasUpdate
@Stability(Stable) public CfnUpdatePolicy.Builder codeDeployLambdaAliasUpdate(CfnCodeDeployLambdaAliasUpdate codeDeployLambdaAliasUpdate) Sets the value ofCfnUpdatePolicy.getCodeDeployLambdaAliasUpdate()
- Parameters:
codeDeployLambdaAliasUpdate
- To perform an AWS CodeDeploy deployment when the version changes on an AWS::Lambda::Alias resource, use the CodeDeployLambdaAliasUpdate update policy.- Returns:
this
-
enableVersionUpgrade
@Stability(Stable) public CfnUpdatePolicy.Builder enableVersionUpgrade(Boolean enableVersionUpgrade) Sets the value ofCfnUpdatePolicy.getEnableVersionUpgrade()
- Parameters:
enableVersionUpgrade
- To upgrade an Amazon ES domain to a new version of Elasticsearch rather than replacing the entire AWS::Elasticsearch::Domain resource, use the EnableVersionUpgrade update policy.- Returns:
this
-
useOnlineResharding
Sets the value ofCfnUpdatePolicy.getUseOnlineResharding()
- Parameters:
useOnlineResharding
- To modify a replication group's shards by adding or removing shards, rather than replacing the entire AWS::ElastiCache::ReplicationGroup resource, use the UseOnlineResharding update policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUpdatePolicy>
- Returns:
- a new instance of
CfnUpdatePolicy
- Throws:
NullPointerException
- if any required attribute was not provided
-