-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathScalingEvents.go
102 lines (86 loc) · 2.12 KB
/
ScalingEvents.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
package awsautoscaling
import (
_init_ "github.com/aws/aws-cdk-go/awscdk/v2/jsii"
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
)
// A list of ScalingEvents, you can use one of the predefined lists, such as ScalingEvents.ERRORS or create a custom group by instantiating a `NotificationTypes` object, e.g: `new NotificationTypes(`NotificationType.INSTANCE_LAUNCH`)`.
//
// 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"
//
// scalingEvents := awscdk.Aws_autoscaling.ScalingEvents_ALL()
//
type ScalingEvents interface {
}
// The jsii proxy struct for ScalingEvents
type jsiiProxy_ScalingEvents struct {
_ byte // padding
}
func NewScalingEvents(types ...ScalingEvent) ScalingEvents {
_init_.Initialize()
args := []interface{}{}
for _, a := range types {
args = append(args, a)
}
j := jsiiProxy_ScalingEvents{}
_jsii_.Create(
"aws-cdk-lib.aws_autoscaling.ScalingEvents",
args,
&j,
)
return &j
}
func NewScalingEvents_Override(s ScalingEvents, types ...ScalingEvent) {
_init_.Initialize()
args := []interface{}{}
for _, a := range types {
args = append(args, a)
}
_jsii_.Create(
"aws-cdk-lib.aws_autoscaling.ScalingEvents",
args,
s,
)
}
func ScalingEvents_ALL() ScalingEvents {
_init_.Initialize()
var returns ScalingEvents
_jsii_.StaticGet(
"aws-cdk-lib.aws_autoscaling.ScalingEvents",
"ALL",
&returns,
)
return returns
}
func ScalingEvents_ERRORS() ScalingEvents {
_init_.Initialize()
var returns ScalingEvents
_jsii_.StaticGet(
"aws-cdk-lib.aws_autoscaling.ScalingEvents",
"ERRORS",
&returns,
)
return returns
}
func ScalingEvents_LAUNCH_EVENTS() ScalingEvents {
_init_.Initialize()
var returns ScalingEvents
_jsii_.StaticGet(
"aws-cdk-lib.aws_autoscaling.ScalingEvents",
"LAUNCH_EVENTS",
&returns,
)
return returns
}
func ScalingEvents_TERMINATION_EVENTS() ScalingEvents {
_init_.Initialize()
var returns ScalingEvents
_jsii_.StaticGet(
"aws-cdk-lib.aws_autoscaling.ScalingEvents",
"TERMINATION_EVENTS",
&returns,
)
return returns
}