# UlimitProperty

The ``ulimit`` settings to pass to the container.

Amazon ECS tasks hosted on FARGATElong use the default resource limit values set by the operating system with the exception of the ``nofile`` resource limit parameter which FARGATElong overrides. The ``nofile`` resource limit sets a restriction on the number of open files that a container can use. The default ``nofile`` soft limit is ``65535`` and the default hard limit is ``65535``.
 You can specify the ``ulimit`` settings for a container in a task definition.

- Source: Generated code
- Type last changed: v2.249.0 · 13 Apr 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const ulimitProperty: ecs.CfnDaemonTaskDefinition.UlimitProperty = {
  hardLimit: 123,
  name: 'name',
  softLimit: 123,
};
```

## Properties

- `hardLimit`: number (required) — The hard limit for the ``ulimit`` type.

  The value can be specified in bytes, seconds, or as a count, depending on the ``type`` of the ``ulimit``.

- `name`: string (required) — The ``type`` of the ``ulimit``.

- `softLimit`: number (required) — The soft limit for the ``ulimit`` type.

  The value can be specified in bytes, seconds, or as a count, depending on the ``type`` of the ``ulimit``.
