interface CapacityProviderStrategyItemProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Pipes.CfnPipe.CapacityProviderStrategyItemProperty |
![]() | software.amazon.awscdk.services.pipes.CfnPipe.CapacityProviderStrategyItemProperty |
![]() | aws_cdk.aws_pipes.CfnPipe.CapacityProviderStrategyItemProperty |
![]() | @aws-cdk/aws-pipes » CfnPipe » CapacityProviderStrategyItemProperty |
The details of a capacity provider strategy.
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 * as pipes from '@aws-cdk/aws-pipes';
const capacityProviderStrategyItemProperty: pipes.CfnPipe.CapacityProviderStrategyItemProperty = {
capacityProvider: 'capacityProvider',
// the properties below are optional
base: 123,
weight: 123,
};
Properties
Name | Type | Description |
---|---|---|
capacity | string | The short name of the capacity provider. |
base? | number | The base value designates how many tasks, at a minimum, to run on the specified capacity provider. |
weight? | number | The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. |
capacityProvider
Type:
string
The short name of the capacity provider.
base?
Type:
number
(optional)
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.
weight?
Type:
number
(optional)
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.