Interface CapacityProviderStrategy
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CapacityProviderStrategy.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:38.973Z")
@Stability(Stable)
public interface CapacityProviderStrategy
extends software.amazon.jsii.JsiiSerializable
A Capacity Provider strategy to use for the service.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
CapacityProviderStrategy capacityProviderStrategy = CapacityProviderStrategy.builder()
.capacityProvider("capacityProvider")
// the properties below are optional
.base(123)
.weight(123)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCapacityProviderStrategystatic final classAn implementation forCapacityProviderStrategy -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default NumbergetBase()The base value designates how many tasks, at a minimum, to run on the specified capacity provider.The name of the capacity provider.default NumberThe weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCapacityProvider
The name of the capacity provider. -
getBase
The base value designates how many tasks, at a minimum, to run on the specified capacity provider.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
-
getWeight
The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider.The weight value is taken into consideration after the base value, if defined, is satisfied.
Default: - 0
-
builder
- Returns:
- a
CapacityProviderStrategy.BuilderofCapacityProviderStrategy
-