Show / Hide Table of Contents

Class CfnCluster.AutoScalingPolicyProperty

AutoScalingPolicy is a subproperty of InstanceGroupConfig .

Inheritance
System.Object
CfnCluster.AutoScalingPolicyProperty
Implements
CfnCluster.IAutoScalingPolicyProperty
Namespace: Amazon.CDK.AWS.EMR
Assembly: Amazon.CDK.AWS.EMR.dll
Syntax (csharp)
public class AutoScalingPolicyProperty : Object, CfnCluster.IAutoScalingPolicyProperty
Syntax (vb)
Public Class AutoScalingPolicyProperty
    Inherits Object
    Implements CfnCluster.IAutoScalingPolicyProperty
Remarks

AutoScalingPolicy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. For more information, see Using Automatic Scaling in Amazon EMR in the Amazon EMR Management Guide .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-autoscalingpolicy.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 autoScalingPolicyProperty = new AutoScalingPolicyProperty {
    Constraints = new ScalingConstraintsProperty {
        MaxCapacity = 123,
        MinCapacity = 123
    },
    Rules = new [] { new ScalingRuleProperty {
        Action = new ScalingActionProperty {
            SimpleScalingPolicyConfiguration = new SimpleScalingPolicyConfigurationProperty {
                ScalingAdjustment = 123,

                // the properties below are optional
                AdjustmentType = "adjustmentType",
                CoolDown = 123
            },

            // the properties below are optional
            Market = "market"
        },
        Name = "name",
        Trigger = 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"
            }
        },

        // the properties below are optional
        Description = "description"
    } }
};

Synopsis

Constructors

AutoScalingPolicyProperty()

Properties

Constraints

The upper and lower Amazon EC2 instance limits for an automatic scaling policy.

Rules

The scale-in and scale-out rules that comprise the automatic scaling policy.

Constructors

AutoScalingPolicyProperty()

public AutoScalingPolicyProperty()

Properties

Constraints

The upper and lower Amazon EC2 instance limits for an automatic scaling policy.

public object Constraints { get; set; }
Property Value

System.Object

Remarks

Automatic scaling activity will not cause an instance group to grow above or below these limits.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-autoscalingpolicy.html#cfn-elasticmapreduce-cluster-autoscalingpolicy-constraints

Rules

The scale-in and scale-out rules that comprise the automatic scaling policy.

public object Rules { get; set; }
Property Value

System.Object

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-autoscalingpolicy.html#cfn-elasticmapreduce-cluster-autoscalingpolicy-rules

Implements

CfnCluster.IAutoScalingPolicyProperty
Back to top Generated by DocFX