aws-cdk-lib.aws_emr.CfnCluster.ScalingTriggerProperty

interface ScalingTriggerProperty

LanguageType name
.NETAmazon.CDK.AWS.EMR.CfnCluster.ScalingTriggerProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsemr#CfnCluster_ScalingTriggerProperty
Javasoftware.amazon.awscdk.services.emr.CfnCluster.ScalingTriggerProperty
Pythonaws_cdk.aws_emr.CfnCluster.ScalingTriggerProperty
TypeScript aws-cdk-lib » aws_emr » CfnCluster » ScalingTriggerProperty

ScalingTrigger is a subproperty of the ScalingRule property type.

ScalingTrigger determines the conditions that trigger an automatic scaling activity.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_emr as emr } from 'aws-cdk-lib';
const scalingTriggerProperty: emr.CfnCluster.ScalingTriggerProperty = {
  cloudWatchAlarmDefinition: {
    comparisonOperator: 'comparisonOperator',
    metricName: 'metricName',
    period: 123,
    threshold: 123,

    // the properties below are optional
    dimensions: [{
      key: 'key',
      value: 'value',
    }],
    evaluationPeriods: 123,
    namespace: 'namespace',
    statistic: 'statistic',
    unit: 'unit',
  },
};

Properties

NameTypeDescription
cloudWatchAlarmDefinitionIResolvable | CloudWatchAlarmDefinitionPropertyThe definition of a CloudWatch metric alarm.

cloudWatchAlarmDefinition

Type: IResolvable | CloudWatchAlarmDefinitionProperty

The definition of a CloudWatch metric alarm.

When the defined alarm conditions are met along with other trigger parameters, scaling activity begins.