# CfnCapacityProviderProps

Properties for defining a `CfnCapacityProvider`.

Extends: CfnCapacityProviderProps
Used as props by: CfnCapacityProvider

- Source: Generated code
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const cfnCapacityProviderProps: bedrockagentcore.CfnCapacityProviderProps = {
  computeConfiguration: {
    ec2Configuration: {
      launchTemplateSource: {
        launchParameters: {
          instanceRequirements: {
            allowedInstanceTypes: ['allowedInstanceTypes'],
          },
          operatingSystem: 'operatingSystem',

          // the properties below are optional
          capacityReservationSpecification: {
            capacityReservationPreference: 'capacityReservationPreference',
            capacityReservationTarget: {
              capacityReservationId: 'capacityReservationId',
              capacityReservationResourceGroupArn: 'capacityReservationResourceGroupArn',
            },
          },
          ephemeralVolumes: [{
            deviceName: 'deviceName',
            ebs: {
              ebsCardIndex: 123,
              encrypted: false,
              iops: 123,
              kmsKeyId: 'kmsKeyId',
              snapshotId: 'snapshotId',
              throughput: 123,
              volumeInitializationRate: 123,
              volumeSize: 123,
              volumeType: 'volumeType',
            },
            virtualName: 'virtualName',
          }],
          instanceProfileArn: 'instanceProfileArn',
          licenseSpecifications: [{
            licenseConfigurationArn: 'licenseConfigurationArn',
          }],
          monitoring: 'monitoring',
          propagatedTags: {
            propagatedTagsKey: 'propagatedTags',
          },
          sshKeyName: 'sshKeyName',
        },
      },
      vpcConfiguration: {
        securityGroups: ['securityGroups'],
        subnets: ['subnets'],
      },

      // the properties below are optional
      lifecycleConfiguration: {
        idleInstanceTimeout: 123,
        maxLifetime: 123,
      },
      rootVolume: {
        encrypted: false,
        freeSpaceGiB: 123,
        iops: 123,
        kmsKeyId: 'kmsKeyId',
        throughput: 123,
        volumeType: 'volumeType',
      },
      volumes: [{
        ebsConfiguration: {
          name: 'name',
          sizeGiB: 123,

          // the properties below are optional
          encrypted: false,
          iops: 123,
          kmsKeyId: 'kmsKeyId',
          snapshotId: 'snapshotId',
          throughput: 123,
          volumeType: 'volumeType',
        },
      }],
    },
  },
  name: 'name',
  permissionsConfiguration: {
    capacityProviderOperatorRoleArn: 'capacityProviderOperatorRoleArn',
  },

  // the properties below are optional
  description: 'description',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `computeConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCapacityProvider.ComputeConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnCapacityProvider.ComputeConfigurationProperty.html) (required) — The capacity configuration for the capacity provider.

  Defines the compute resources for this capacity provider.

- `description`: string — An optional description of the capacity provider.

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

- `permissionsConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCapacityProvider.PermissionsConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnCapacityProvider.PermissionsConfigurationProperty.html) (required) — Configuration for permissions associated with a capacity provider.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to the capacity provider.
