Show / Hide Table of Contents

Interface ICfnCapacityProviderProps

Properties for defining a CfnCapacityProvider.

Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnCapacityProviderProps
Syntax (vb)
Public Interface ICfnCapacityProviderProps
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-capacityprovider.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 cfnCapacityProviderProps = new CfnCapacityProviderProps {
                 AutoScalingGroupProvider = new AutoScalingGroupProviderProperty {
                     AutoScalingGroupArn = "autoScalingGroupArn",

                     // the properties below are optional
                     ManagedDraining = "managedDraining",
                     ManagedScaling = new ManagedScalingProperty {
                         InstanceWarmupPeriod = 123,
                         MaximumScalingStepSize = 123,
                         MinimumScalingStepSize = 123,
                         Status = "status",
                         TargetCapacity = 123
                     },
                     ManagedTerminationProtection = "managedTerminationProtection"
                 },
                 Name = "name",
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } }
             };

Synopsis

Properties

AutoScalingGroupProvider

The Auto Scaling group settings for the capacity provider.

Name

The name of the capacity provider.

Tags

The metadata that you apply to the capacity provider to help you categorize and organize it.

Properties

AutoScalingGroupProvider

The Auto Scaling group settings for the capacity provider.

object? AutoScalingGroupProvider { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-capacityprovider.html#cfn-ecs-capacityprovider-autoscalinggroupprovider

Name

The name of the capacity provider.

string? Name { get; }
Property Value

string

Remarks

If a name is specified, it cannot start with aws , ecs , or fargate . If no name is specified, a default name in the CFNStackName-CFNResourceName-RandomString format is used.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-capacityprovider.html#cfn-ecs-capacityprovider-name

Tags

The metadata that you apply to the capacity provider to help you categorize and organize it.

ICfnTag[]? Tags { get; }
Property Value

ICfnTag[]

Remarks

Each tag consists of a key and an optional value. You define both.

The following basic restrictions apply to tags:

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-capacityprovider.html#cfn-ecs-capacityprovider-tags

    : .

    • Tag keys and values are case-sensitive.
    • Do not use aws: , AWS: , or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
    Back to top Generated by DocFX