Show / Hide Table of Contents

Class CfnCluster.ScalingTriggerProperty

ScalingTrigger is a subproperty of the ScalingRule property type.

Inheritance
object
CfnCluster.ScalingTriggerProperty
Implements
CfnCluster.IScalingTriggerProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.EMR
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnCluster.ScalingTriggerProperty : CfnCluster.IScalingTriggerProperty
Syntax (vb)
Public Class CfnCluster.ScalingTriggerProperty Implements CfnCluster.IScalingTriggerProperty
Remarks

ScalingTrigger determines the conditions that trigger an automatic scaling activity.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-scalingtrigger.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.EMR;

             var scalingTriggerProperty = new ScalingTriggerProperty {
                 CloudWatchAlarmDefinition = new CloudWatchAlarmDefinitionProperty {
                     ComparisonOperator = "comparisonOperator",
                     MetricName = "metricName",
                     Period = 123,
                     Threshold = 123,

                     // the properties below are optional
                     Dimensions = new [] { new MetricDimensionProperty {
                         Key = "key",
                         Value = "value"
                     } },
                     EvaluationPeriods = 123,
                     Namespace = "namespace",
                     Statistic = "statistic",
                     Unit = "unit"
                 }
             };

Synopsis

Constructors

ScalingTriggerProperty()

ScalingTrigger is a subproperty of the ScalingRule property type.

Properties

CloudWatchAlarmDefinition

The definition of a CloudWatch metric alarm.

Constructors

ScalingTriggerProperty()

ScalingTrigger is a subproperty of the ScalingRule property type.

public ScalingTriggerProperty()
Remarks

ScalingTrigger determines the conditions that trigger an automatic scaling activity.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-scalingtrigger.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.EMR;

             var scalingTriggerProperty = new ScalingTriggerProperty {
                 CloudWatchAlarmDefinition = new CloudWatchAlarmDefinitionProperty {
                     ComparisonOperator = "comparisonOperator",
                     MetricName = "metricName",
                     Period = 123,
                     Threshold = 123,

                     // the properties below are optional
                     Dimensions = new [] { new MetricDimensionProperty {
                         Key = "key",
                         Value = "value"
                     } },
                     EvaluationPeriods = 123,
                     Namespace = "namespace",
                     Statistic = "statistic",
                     Unit = "unit"
                 }
             };

Properties

CloudWatchAlarmDefinition

The definition of a CloudWatch metric alarm.

public object CloudWatchAlarmDefinition { get; set; }
Property Value

object

Remarks

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-scalingtrigger.html#cfn-emr-cluster-scalingtrigger-cloudwatchalarmdefinition

Type union: either IResolvable or CfnCluster.ICloudWatchAlarmDefinitionProperty

Implements

CfnCluster.IScalingTriggerProperty
Back to top Generated by DocFX