aws-cdk-lib.aws_stepfunctions_tasks.EmrCreateCluster.ScalingActionProperty

interface ScalingActionProperty

LanguageType name
.NETAmazon.CDK.AWS.StepFunctions.Tasks.EmrCreateCluster.ScalingActionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#EmrCreateCluster_ScalingActionProperty
Javasoftware.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.ScalingActionProperty
Pythonaws_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

NameTypeDescription
simpleScalingPolicyConfigurationSimpleScalingPolicyConfigurationPropertyThe type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment.
market?InstanceMarketNot available for instance groups.

simpleScalingPolicyConfiguration

Type: SimpleScalingPolicyConfigurationProperty

The type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment.


market?

Type: InstanceMarket (optional, default: EMR selected default)

Not available for instance groups.

Instance groups use the market type specified for the group.