-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnAutoScalingReplacingUpdate.go
30 lines (27 loc) · 1.38 KB
/
CfnAutoScalingReplacingUpdate.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package awscdk
// 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.
//
// While AWS CloudFormation creates the new group, it doesn't detach or attach any instances. After successfully creating
// the new Auto Scaling group, AWS CloudFormation deletes the old Auto Scaling group during the cleanup process.
//
// When you set the WillReplace parameter, remember to specify a matching CreationPolicy. If the minimum number of
// instances (specified by the MinSuccessfulInstancesPercent property) don't signal success within the Timeout period
// (specified in the CreationPolicy policy), the replacement update fails and AWS CloudFormation rolls back to the old
// Auto Scaling group.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import cdk "github.com/aws/aws-cdk-go/awscdk"
//
// cfnAutoScalingReplacingUpdate := &CfnAutoScalingReplacingUpdate{
// WillReplace: jsii.Boolean(false),
// }
//
type CfnAutoScalingReplacingUpdate struct {
WillReplace *bool `field:"optional" json:"willReplace" yaml:"willReplace"`
}