Interface ICapacityProviderStrategy
A Capacity Provider strategy to use for the service.
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public interface ICapacityProviderStrategy
Syntax (vb)
Public Interface ICapacityProviderStrategy
Remarks
NOTE: defaultCapacityProviderStrategy on cluster not currently supported.
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 capacityProviderStrategy = new CapacityProviderStrategy {
CapacityProvider = "capacityProvider",
// the properties below are optional
Base = 123,
Weight = 123
};
Synopsis
Properties
Base | The base value designates how many tasks, at a minimum, to run on the specified capacity provider. |
CapacityProvider | The name of the capacity provider. |
Weight | The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. |
Properties
Base
The base value designates how many tasks, at a minimum, to run on the specified capacity provider.
virtual Nullable<double> Base { get; }
Property Value
System.Nullable<System.Double>
Remarks
Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0 is used.
Default: - none
CapacityProvider
The name of the capacity provider.
string CapacityProvider { get; }
Property Value
System.String
Weight
The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider.
virtual Nullable<double> Weight { get; }
Property Value
System.Nullable<System.Double>
Remarks
The weight value is taken into consideration after the base value, if defined, is satisfied.
Default: - 0