-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsemr_CfnCluster_AutoScalingPolicyProperty.go
68 lines (65 loc) · 2.59 KB
/
awsemr_CfnCluster_AutoScalingPolicyProperty.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
package awsemr
// `AutoScalingPolicy` is a subproperty of `InstanceGroupConfig` .
//
// `AutoScalingPolicy` defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. For more information, see [Using Automatic Scaling in Amazon EMR](https://docs.aws.amazon.com//emr/latest/ManagementGuide/emr-automatic-scaling.html) in the *Amazon EMR Management Guide* .
//
// 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"
//
// autoScalingPolicyProperty := &autoScalingPolicyProperty{
// constraints: &scalingConstraintsProperty{
// maxCapacity: jsii.Number(123),
// minCapacity: jsii.Number(123),
// },
// rules: []interface{}{
// &scalingRuleProperty{
// action: &scalingActionProperty{
// simpleScalingPolicyConfiguration: &simpleScalingPolicyConfigurationProperty{
// scalingAdjustment: jsii.Number(123),
//
// // the properties below are optional
// adjustmentType: jsii.String("adjustmentType"),
// coolDown: jsii.Number(123),
// },
//
// // the properties below are optional
// market: jsii.String("market"),
// },
// name: jsii.String("name"),
// trigger: &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"),
// },
// },
//
// // the properties below are optional
// description: jsii.String("description"),
// },
// },
// }
//
type CfnCluster_AutoScalingPolicyProperty struct {
// The upper and lower EC2 instance limits for an automatic scaling policy.
//
// Automatic scaling activity will not cause an instance group to grow above or below these limits.
Constraints interface{} `field:"required" json:"constraints" yaml:"constraints"`
// The scale-in and scale-out rules that comprise the automatic scaling policy.
Rules interface{} `field:"required" json:"rules" yaml:"rules"`
}