-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsstepfunctionstasks_EmrCreateCluster_ScalingRuleProperty.go
72 lines (69 loc) · 2.94 KB
/
awsstepfunctionstasks_EmrCreateCluster_ScalingRuleProperty.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
package awsstepfunctionstasks
// A scale-in or scale-out rule that defines scaling activity, including the CloudWatch metric alarm that triggers activity, how EC2 instances are added or removed, and the periodicity of adjustments.
//
// 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
//
// 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_ScalingRule.html
//
// Experimental.
type EmrCreateCluster_ScalingRuleProperty struct {
// The conditions that trigger an automatic scaling activity.
// Experimental.
Action *EmrCreateCluster_ScalingActionProperty `field:"required" json:"action" yaml:"action"`
// The name used to identify an automatic scaling rule.
//
// Rule names must be unique within a scaling policy.
// Experimental.
Name *string `field:"required" json:"name" yaml:"name"`
// The CloudWatch alarm definition that determines when automatic scaling activity is triggered.
// Experimental.
Trigger *EmrCreateCluster_ScalingTriggerProperty `field:"required" json:"trigger" yaml:"trigger"`
// A friendly, more verbose description of the automatic scaling rule.
// Experimental.
Description *string `field:"optional" json:"description" yaml:"description"`
}