interface ScalingTriggerProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EMR.Mixins.CfnInstanceGroupConfigPropsMixin.ScalingTriggerProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsemr/mixins#CfnInstanceGroupConfigPropsMixin_ScalingTriggerProperty |
Java | software.amazon.awscdk.mixins.preview.services.emr.mixins.CfnInstanceGroupConfigPropsMixin.ScalingTriggerProperty |
Python | aws_cdk.mixins_preview.aws_emr.mixins.CfnInstanceGroupConfigPropsMixin.ScalingTriggerProperty |
TypeScript | @aws-cdk/mixins-preview » aws_emr » mixins » 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 { mixins as emr_mixins } from '@aws-cdk/mixins-preview/aws-emr';
const scalingTriggerProperty: emr_mixins.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