# CapacityProviderStrategyItemProperty

The details of a capacity provider strategy.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_scheduler as scheduler } from 'aws-cdk-lib';
const capacityProviderStrategyItemProperty: scheduler.CfnSchedule.CapacityProviderStrategyItemProperty = {
  capacityProvider: 'capacityProvider',

  // the properties below are optional
  base: 123,
  weight: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_scheduler as scheduler

capacity_provider_strategy_item_property = scheduler.CfnSchedule.CapacityProviderStrategyItemProperty(
    capacity_provider="capacityProvider",

    # the properties below are optional
    base=123,
    weight=123
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.scheduler.*;

CapacityProviderStrategyItemProperty capacityProviderStrategyItemProperty = CapacityProviderStrategyItemProperty.builder()
        .capacityProvider("capacityProvider")

        // the properties below are optional
        .base(123)
        .weight(123)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Scheduler;

var capacityProviderStrategyItemProperty = new CapacityProviderStrategyItemProperty {
    CapacityProvider = "capacityProvider",

    // the properties below are optional
    Base = 123,
    Weight = 123
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

capacityProviderStrategyItemProperty := &CapacityProviderStrategyItemProperty{
	CapacityProvider: jsii.String("capacityProvider"),

	// the properties below are optional
	Base: jsii.Number(123),
	Weight: jsii.Number(123),
}
```

## Properties

- `base`: number = 0 — 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.

- `capacityProvider`: string (required) — The short name of the capacity provider.

- `weight`: number = 0 — 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.
