interface ScalingActionProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.Tasks.EmrCreateCluster.ScalingActionProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#EmrCreateCluster_ScalingActionProperty |
Java | software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.ScalingActionProperty |
Python | aws_cdk.aws_stepfunctions_tasks.EmrCreateCluster.ScalingActionProperty |
TypeScript (source) | aws-cdk-lib » aws_stepfunctions_tasks » EmrCreateCluster » ScalingActionProperty |
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.
See also: https://docs.aws.amazon.com/emr/latest/APIReference/API_ScalingAction.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';
const scalingActionProperty: stepfunctions_tasks.EmrCreateCluster.ScalingActionProperty = {
simpleScalingPolicyConfiguration: {
scalingAdjustment: 123,
// the properties below are optional
adjustmentType: stepfunctions_tasks.EmrCreateCluster.ScalingAdjustmentType.CHANGE_IN_CAPACITY,
coolDown: 123,
},
// the properties below are optional
market: stepfunctions_tasks.EmrCreateCluster.InstanceMarket.ON_DEMAND,
};
Properties
Name | Type | Description |
---|---|---|
simple | Simple | The type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment. |
market? | Instance | Not available for instance groups. |
simpleScalingPolicyConfiguration
Type:
Simple
The type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment.
market?
Type:
Instance
(optional, default: EMR selected default)
Not available for instance groups.
Instance groups use the market type specified for the group.