Class CfnCapacityProviderProps
Properties for defining a CfnCapacityProvider
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnCapacityProviderProps : Object, ICfnCapacityProviderProps
Syntax (vb)
Public Class CfnCapacityProviderProps
Inherits Object
Implements 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"
},
// the properties below are optional
Name = "name",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnCapacityProviderProps() |
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. |
Constructors
CfnCapacityProviderProps()
public CfnCapacityProviderProps()
Properties
AutoScalingGroupProvider
The Auto Scaling group settings for the capacity provider.
public object AutoScalingGroupProvider { get; set; }
Property Value
System.Object
Remarks
Name
The name of the capacity provider.
public string Name { get; set; }
Property Value
System.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.
Tags
The metadata that you apply to the capacity provider to help you categorize and organize it.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Remarks
Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to 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.