@Stability(value=Stable)
public static interface CfnRule.CapacityProviderStrategyItemProperty
extends software.amazon.jsii.JsiiSerializable
To learn more, see CapacityProviderStrategyItem in the Amazon ECS API Reference.
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.events.*;
CapacityProviderStrategyItemProperty capacityProviderStrategyItemProperty = CapacityProviderStrategyItemProperty.builder()
.capacityProvider("capacityProvider")
// the properties below are optional
.base(123)
.weight(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnRule.CapacityProviderStrategyItemProperty.Builder
A builder for
CfnRule.CapacityProviderStrategyItemProperty |
static class |
CfnRule.CapacityProviderStrategyItemProperty.Jsii$Proxy
An implementation for
CfnRule.CapacityProviderStrategyItemProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnRule.CapacityProviderStrategyItemProperty.Builder |
builder() |
default Number |
getBase()
The base value designates how many tasks, at a minimum, to run on the specified capacity provider.
|
String |
getCapacityProvider()
The short name of the capacity provider.
|
default Number |
getWeight()
The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider.
|
@Stability(value=Stable) @NotNull String getCapacityProvider()
@Stability(value=Stable) @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.
@Stability(value=Stable) @Nullable default Number getWeight()
The weight value is taken into consideration after the base value, if defined, is satisfied.
@Stability(value=Stable) static CfnRule.CapacityProviderStrategyItemProperty.Builder builder()
Copyright © 2022. All rights reserved.