interface ScalingTriggerProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.EMR.CfnInstanceGroupConfigPropsMixin.ScalingTriggerProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsemr#CfnInstanceGroupConfigPropsMixin_ScalingTriggerProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.emr.CfnInstanceGroupConfigPropsMixin.ScalingTriggerProperty |
Python | aws_cdk.cfn_property_mixins.aws_emr.CfnInstanceGroupConfigPropsMixin.ScalingTriggerProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_emr » CfnInstanceGroupConfigPropsMixin » 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/cfn-property-mixins';
const scalingTriggerProperty: emr.CfnInstanceGroupConfigPropsMixin.ScalingTriggerProperty = {
cloudWatchAlarmDefinition: {
comparisonOperator: 'comparisonOperator',
dimensions: [{
key: 'key',
value: 'value',
}],
evaluationPeriods: 123,
metricName: 'metricName',
namespace: 'namespace',
period: 123,
statistic: 'statistic',
threshold: 123,
unit: 'unit',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| cloud | IResolvable | Cloud | The definition of a CloudWatch metric alarm. |
cloudWatchAlarmDefinition?
Type:
IResolvable | Cloud
(optional)
The definition of a CloudWatch metric alarm.
When the defined alarm conditions are met along with other trigger parameters, scaling activity begins.

.NET
Go
Java
Python
TypeScript