Class CfnUpdatePolicy.Builder

java.lang.Object
software.amazon.awscdk.core.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 Details

    • Builder

      public Builder()
  • Method Details

    • autoScalingReplacingUpdate

      @Stability(Stable) public CfnUpdatePolicy.Builder autoScalingReplacingUpdate(CfnAutoScalingReplacingUpdate autoScalingReplacingUpdate)
      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)
      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)
      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)
      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)
      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

      @Stability(Stable) public CfnUpdatePolicy.Builder useOnlineResharding(Boolean useOnlineResharding)
      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

      @Stability(Stable) public CfnUpdatePolicy build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnUpdatePolicy>
      Returns:
      a new instance of CfnUpdatePolicy
      Throws:
      NullPointerException - if any required attribute was not provided