-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathUpdatePolicy.go
69 lines (55 loc) · 1.47 KB
/
UpdatePolicy.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package awsautoscaling
import (
_init_ "github.com/aws/aws-cdk-go/awscdk/v2/jsii"
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
)
// How existing instances should be updated.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// updatePolicy := awscdk.Aws_autoscaling.UpdatePolicy_ReplacingUpdate()
//
type UpdatePolicy interface {
}
// The jsii proxy struct for UpdatePolicy
type jsiiProxy_UpdatePolicy struct {
_ byte // padding
}
func NewUpdatePolicy_Override(u UpdatePolicy) {
_init_.Initialize()
_jsii_.Create(
"aws-cdk-lib.aws_autoscaling.UpdatePolicy",
nil, // no parameters
u,
)
}
// Create a new AutoScalingGroup and switch over to it.
func UpdatePolicy_ReplacingUpdate() UpdatePolicy {
_init_.Initialize()
var returns UpdatePolicy
_jsii_.StaticInvoke(
"aws-cdk-lib.aws_autoscaling.UpdatePolicy",
"replacingUpdate",
nil, // no parameters
&returns,
)
return returns
}
// Replace the instances in the AutoScalingGroup one by one, or in batches.
func UpdatePolicy_RollingUpdate(options *RollingUpdateOptions) UpdatePolicy {
_init_.Initialize()
if err := validateUpdatePolicy_RollingUpdateParameters(options); err != nil {
panic(err)
}
var returns UpdatePolicy
_jsii_.StaticInvoke(
"aws-cdk-lib.aws_autoscaling.UpdatePolicy",
"rollingUpdate",
[]interface{}{options},
&returns,
)
return returns
}