Interface CfnPipe.CapacityProviderStrategyItemProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnPipe.CapacityProviderStrategyItemProperty extends
The details of a capacity provider strategy.

To learn more, see CapacityProviderStrategyItem in the Amazon ECS API Reference.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 CapacityProviderStrategyItemProperty capacityProviderStrategyItemProperty = CapacityProviderStrategyItemProperty.builder()
         // the properties below are optional
  • Method Details

    • getCapacityProvider

      @Stability(Stable) @NotNull String getCapacityProvider()
      The short name of the capacity provider.
    • getBase

      @Stability(Stable) @Nullable default Number 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.

    • getWeight

      @Stability(Stable) @Nullable default Number 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.

    • builder

      @Stability(Stable) static CfnPipe.CapacityProviderStrategyItemProperty.Builder builder()
      a CfnPipe.CapacityProviderStrategyItemProperty.Builder of CfnPipe.CapacityProviderStrategyItemProperty