-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsstepfunctionstasks_EmrCreateCluster_AutoScalingPolicyProperty.go
75 lines (72 loc) · 2.91 KB
/
awsstepfunctionstasks_EmrCreateCluster_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
68
69
70
71
72
73
74
package awsstepfunctionstasks
// An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import monocdk "github.com/aws/aws-cdk-go/awscdk"
// import "github.com/aws/aws-cdk-go/awscdk"
//
// var duration duration
//
// autoScalingPolicyProperty := &autoScalingPolicyProperty{
// constraints: &scalingConstraintsProperty{
// maxCapacity: jsii.Number(123),
// minCapacity: jsii.Number(123),
// },
// rules: []scalingRuleProperty{
// &scalingRuleProperty{
// action: &scalingActionProperty{
// simpleScalingPolicyConfiguration: &simpleScalingPolicyConfigurationProperty{
// scalingAdjustment: jsii.Number(123),
//
// // the properties below are optional
// adjustmentType: awscdk.Aws_stepfunctions_tasks.emrCreateCluster.scalingAdjustmentType_CHANGE_IN_CAPACITY,
// coolDown: jsii.Number(123),
// },
//
// // the properties below are optional
// market: awscdk.*Aws_stepfunctions_tasks.*emrCreateCluster.instanceMarket_ON_DEMAND,
// },
// name: jsii.String("name"),
// trigger: &scalingTriggerProperty{
// cloudWatchAlarmDefinition: &cloudWatchAlarmDefinitionProperty{
// comparisonOperator: awscdk.*Aws_stepfunctions_tasks.*emrCreateCluster.cloudWatchAlarmComparisonOperator_GREATER_THAN_OR_EQUAL,
// metricName: jsii.String("metricName"),
// period: duration,
//
// // the properties below are optional
// dimensions: []metricDimensionProperty{
// &metricDimensionProperty{
// key: jsii.String("key"),
// value: jsii.String("value"),
// },
// },
// evaluationPeriods: jsii.Number(123),
// namespace: jsii.String("namespace"),
// statistic: awscdk.*Aws_stepfunctions_tasks.*emrCreateCluster.cloudWatchAlarmStatistic_SAMPLE_COUNT,
// threshold: jsii.Number(123),
// unit: awscdk.*Aws_stepfunctions_tasks.*emrCreateCluster.cloudWatchAlarmUnit_NONE,
// },
// },
//
// // the properties below are optional
// description: jsii.String("description"),
// },
// },
// }
//
// See: https://docs.aws.amazon.com/emr/latest/APIReference/API_AutoScalingPolicy.html
//
// Experimental.
type EmrCreateCluster_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.
// Experimental.
Constraints *EmrCreateCluster_ScalingConstraintsProperty `field:"required" json:"constraints" yaml:"constraints"`
// The scale-in and scale-out rules that comprise the automatic scaling policy.
// Experimental.
Rules *[]*EmrCreateCluster_ScalingRuleProperty `field:"required" json:"rules" yaml:"rules"`
}