Interface CfnUpdatePolicy

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:54.971Z") @Stability(Stable) public interface CfnUpdatePolicy extends
Use the UpdatePolicy attribute to specify how AWS CloudFormation handles updates to the AWS::AutoScaling::AutoScalingGroup resource.

AWS CloudFormation invokes one of three update policies depending on the type of change you make or whether a scheduled action is associated with the Auto Scaling group.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 CfnUpdatePolicy cfnUpdatePolicy = CfnUpdatePolicy.builder()
                 // the properties below are optional
  • Method Details

    • getAutoScalingReplacingUpdate

      @Stability(Stable) @Nullable default CfnAutoScalingReplacingUpdate getAutoScalingReplacingUpdate()
      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.

    • getAutoScalingRollingUpdate

      @Stability(Stable) @Nullable default CfnAutoScalingRollingUpdate getAutoScalingRollingUpdate()
      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.

    • getAutoScalingScheduledAction

      @Stability(Stable) @Nullable default CfnAutoScalingScheduledAction getAutoScalingScheduledAction()
      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.
    • getCodeDeployLambdaAliasUpdate

      @Stability(Stable) @Nullable default CfnCodeDeployLambdaAliasUpdate getCodeDeployLambdaAliasUpdate()
      To perform an AWS CodeDeploy deployment when the version changes on an AWS::Lambda::Alias resource, use the CodeDeployLambdaAliasUpdate update policy.
    • getEnableVersionUpgrade

      @Stability(Stable) @Nullable default Boolean getEnableVersionUpgrade()
      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.
    • getUseOnlineResharding

      @Stability(Stable) @Nullable default Boolean getUseOnlineResharding()
      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.
    • builder

      @Stability(Stable) static CfnUpdatePolicy.Builder builder()
      a CfnUpdatePolicy.Builder of CfnUpdatePolicy