# CfnQuotaShareProps

Properties for defining a `CfnQuotaShare`.

Extends: CfnQuotaShareProps
Used as props by: CfnQuotaShare

- Source: Generated code
- Type last changed: v2.245.0 · 27 Mar 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const cfnQuotaShareProps: batch.CfnQuotaShareProps = {
  capacityLimits: [{
    capacityUnit: 'capacityUnit',
    maxCapacity: 123,
  }],
  jobQueue: 'jobQueue',
  preemptionConfiguration: {
    inSharePreemption: 'inSharePreemption',
  },
  quotaShareName: 'quotaShareName',
  resourceSharingConfiguration: {
    strategy: 'strategy',

    // the properties below are optional
    borrowLimit: 123,
  },

  // the properties below are optional
  state: 'state',
  tags: {
    tagsKey: 'tags',
  },
};
```

## Properties

- `capacityLimits`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnQuotaShare.QuotaShareCapacityLimitProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_batch.CfnQuotaShare.QuotaShareCapacityLimitProperty.html)[] (required) — A list that specifies the quantity and type of compute capacity allocated to the quota share.

- `jobQueue`: string (required) — The AWS Batch job queue associated with the quota share.

  This can be the job queue name or ARN. A job queue must be in the `VALID` state before you can associate it with a quota share.

- `preemptionConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnQuotaShare.QuotaSharePreemptionConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_batch.CfnQuotaShare.QuotaSharePreemptionConfigurationProperty.html) (required)

- `quotaShareName`: string (required) — The name of the quota share.

  It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

- `resourceSharingConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnQuotaShare.QuotaShareResourceSharingConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_batch.CfnQuotaShare.QuotaShareResourceSharingConfigurationProperty.html) (required)

- `state`: string — The state of the quota share.

  If the quota share is `ENABLED`, it is able to accept jobs. If the quota share is `DISABLED`, new jobs won't be accepted but jobs already submitted can finish. The default state is `ENABLED`.

- `tags`: { [key: string]: string } — The tags that you apply to the quota share to help you categorize and organize your resources.

  Each tag consists of a key and an optional value.
