-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsemr_CfnCluster_ScalingTriggerProperty.go
40 lines (37 loc) · 1.37 KB
/
awsemr_CfnCluster_ScalingTriggerProperty.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
package awsemr
// `ScalingTrigger` is a subproperty of the `ScalingRule` property type.
//
// `ScalingTrigger` determines the conditions that trigger an automatic scaling activity.
//
// 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"
//
// scalingTriggerProperty := &scalingTriggerProperty{
// cloudWatchAlarmDefinition: &cloudWatchAlarmDefinitionProperty{
// comparisonOperator: jsii.String("comparisonOperator"),
// metricName: jsii.String("metricName"),
// period: jsii.Number(123),
// threshold: jsii.Number(123),
//
// // the properties below are optional
// dimensions: []interface{}{
// &metricDimensionProperty{
// key: jsii.String("key"),
// value: jsii.String("value"),
// },
// },
// evaluationPeriods: jsii.Number(123),
// namespace: jsii.String("namespace"),
// statistic: jsii.String("statistic"),
// unit: jsii.String("unit"),
// },
// }
//
type CfnCluster_ScalingTriggerProperty struct {
// The definition of a CloudWatch metric alarm.
//
// When the defined alarm conditions are met along with other trigger parameters, scaling activity begins.
CloudWatchAlarmDefinition interface{} `field:"required" json:"cloudWatchAlarmDefinition" yaml:"cloudWatchAlarmDefinition"`
}