@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:29.202Z") @Stability(value=Experimental) public interface CapacityProviderStrategy extends software.amazon.jsii.JsiiSerializable
NOTE: defaultCapacityProviderStrategy on cluster not currently supported.
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CapacityProviderStrategy.Builder
A builder for
CapacityProviderStrategy |
static class |
CapacityProviderStrategy.Jsii$Proxy
An implementation for
CapacityProviderStrategy |
| Modifier and Type | Method and Description |
|---|---|
static CapacityProviderStrategy.Builder |
builder() |
default Number |
getBase()
(experimental) The base value designates how many tasks, at a minimum, to run on the specified capacity provider.
|
String |
getCapacityProvider()
(experimental) The name of the capacity provider.
|
default Number |
getWeight()
(experimental) The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider.
|
@Stability(value=Experimental) @NotNull String getCapacityProvider()
@Stability(value=Experimental) @Nullable default Number getBase()
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
@Stability(value=Experimental) @Nullable default Number getWeight()
The weight value is taken into consideration after the base value, if defined, is satisfied.
Default: - 0
@Stability(value=Experimental) static CapacityProviderStrategy.Builder builder()
CapacityProviderStrategy.Builder of CapacityProviderStrategyCopyright © 2022. All rights reserved.