# Ulimit

Sets limits for a resource with `ulimit` on linux systems.

Used by the Docker daemon.

- Source: [`aws-batch/lib/ecs-container-definition.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-batch/lib/ecs-container-definition.ts#L815)
- Type last changed: v2.96.0 · 13 Sep 2023

## 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 ulimit: batch.Ulimit = {
  hardLimit: 123,
  name: batch.UlimitName.CORE,
  softLimit: 123,
};
```

## Properties

- `hardLimit`: number (required) — The hard limit for this resource.

  The container will
  be terminated if it exceeds this limit.

- `name`: [UlimitName](/cdk/api/v2/docs/aws-cdk-lib.aws_batch.UlimitName.html) (required) — The resource to limit.

- `softLimit`: number (required) — The reservation for this resource.

  The container will
  not be terminated if it exceeds this limit.
