Show / Hide Table of Contents

Class CfnCapacityProvider.AutoScalingGroupProviderProperty

The details of the Auto Scaling group for the capacity provider.

Inheritance
System.Object
CfnCapacityProvider.AutoScalingGroupProviderProperty
Implements
CfnCapacityProvider.IAutoScalingGroupProviderProperty
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class AutoScalingGroupProviderProperty : Object, CfnCapacityProvider.IAutoScalingGroupProviderProperty
Syntax (vb)
Public Class AutoScalingGroupProviderProperty
    Inherits Object
    Implements CfnCapacityProvider.IAutoScalingGroupProviderProperty
Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-capacityprovider-autoscalinggroupprovider.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.ECS;

var autoScalingGroupProviderProperty = new AutoScalingGroupProviderProperty {
    AutoScalingGroupArn = "autoScalingGroupArn",

    // the properties below are optional
    ManagedScaling = new ManagedScalingProperty {
        InstanceWarmupPeriod = 123,
        MaximumScalingStepSize = 123,
        MinimumScalingStepSize = 123,
        Status = "status",
        TargetCapacity = 123
    },
    ManagedTerminationProtection = "managedTerminationProtection"
};

Synopsis

Constructors

AutoScalingGroupProviderProperty()

Properties

AutoScalingGroupArn

The Amazon Resource Name (ARN) that identifies the Auto Scaling group.

ManagedScaling

The managed scaling settings for the Auto Scaling group capacity provider.

ManagedTerminationProtection

The managed termination protection setting to use for the Auto Scaling group capacity provider.

Constructors

AutoScalingGroupProviderProperty()

public AutoScalingGroupProviderProperty()

Properties

AutoScalingGroupArn

The Amazon Resource Name (ARN) that identifies the Auto Scaling group.

public string AutoScalingGroupArn { get; set; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-capacityprovider-autoscalinggroupprovider.html#cfn-ecs-capacityprovider-autoscalinggroupprovider-autoscalinggrouparn

ManagedScaling

The managed scaling settings for the Auto Scaling group capacity provider.

public object ManagedScaling { get; set; }
Property Value

System.Object

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-capacityprovider-autoscalinggroupprovider.html#cfn-ecs-capacityprovider-autoscalinggroupprovider-managedscaling

ManagedTerminationProtection

The managed termination protection setting to use for the Auto Scaling group capacity provider.

public string ManagedTerminationProtection { get; set; }
Property Value

System.String

Remarks

This determines whether the Auto Scaling group has managed termination protection. The default is off.

When using managed termination protection, managed scaling must also be used otherwise managed termination protection doesn't work.

When managed termination protection is on, Amazon ECS prevents the Amazon EC2 instances in an Auto Scaling group that contain tasks from being terminated during a scale-in action. The Auto Scaling group and each instance in the Auto Scaling group must have instance protection from scale-in actions on as well. For more information, see Instance Protection in the AWS Auto Scaling User Guide .

When managed termination protection is off, your Amazon EC2 instances aren't protected from termination when the Auto Scaling group scales in.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-capacityprovider-autoscalinggroupprovider.html#cfn-ecs-capacityprovider-autoscalinggroupprovider-managedterminationprotection

Implements

CfnCapacityProvider.IAutoScalingGroupProviderProperty
Back to top Generated by DocFX