-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsstepfunctionstasks_EmrCreateCluster_ScalingActionProperty.go
40 lines (37 loc) · 1.77 KB
/
awsstepfunctionstasks_EmrCreateCluster_ScalingActionProperty.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 awsstepfunctionstasks
// The type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment.
//
// And an automatic scaling configuration, which describes how the policy adds or removes instances, the cooldown period,
// and the number of EC2 instances that will be added each time the CloudWatch metric alarm condition is satisfied.
//
// 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"
//
// scalingActionProperty := &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,
// }
//
// See: https://docs.aws.amazon.com/emr/latest/APIReference/API_ScalingAction.html
//
// Experimental.
type EmrCreateCluster_ScalingActionProperty struct {
// The type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment.
// Experimental.
SimpleScalingPolicyConfiguration *EmrCreateCluster_SimpleScalingPolicyConfigurationProperty `field:"required" json:"simpleScalingPolicyConfiguration" yaml:"simpleScalingPolicyConfiguration"`
// Not available for instance groups.
//
// Instance groups use the market type specified for the group.
// Experimental.
Market EmrCreateCluster_InstanceMarket `field:"optional" json:"market" yaml:"market"`
}