# ClusterCapacityRequirementsProperty

Defines the instance capacity requirements for an instance group, including configurations for both Spot and On-Demand capacity types.

- Source: Generated code
- Type last changed: v2.230.0 · 26 Nov 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';

declare const onDemand: any;
declare const spot: any;
const clusterCapacityRequirementsProperty: sagemaker.CfnCluster.ClusterCapacityRequirementsProperty = {
  onDemand: onDemand,
  spot: spot,
};
```

## Properties

- `onDemand`: any — Configuration options specific to On-Demand instances.

- `spot`: any — Configuration options specific to Spot instances.
