# UlimitProperty

The `ulimit` settings to pass to the container. For more information, see [Ulimit](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_Ulimit.html) .

> This object isn't applicable to jobs that are running on Fargate resources.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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 ulimitProperty: batch.CfnJobDefinition.UlimitProperty = {
  hardLimit: 123,
  name: 'name',
  softLimit: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_batch as batch

ulimit_property = batch.CfnJobDefinition.UlimitProperty(
    hard_limit=123,
    name="name",
    soft_limit=123
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.batch.*;

UlimitProperty ulimitProperty = UlimitProperty.builder()
        .hardLimit(123)
        .name("name")
        .softLimit(123)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;

var ulimitProperty = new UlimitProperty {
    HardLimit = 123,
    Name = "name",
    SoftLimit = 123
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

ulimitProperty := &UlimitProperty{
	HardLimit: jsii.Number(123),
	Name: jsii.String("name"),
	SoftLimit: jsii.Number(123),
}
```

## Properties

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

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

  Valid values are: `core` | `cpu` | `data` | `fsize` | `locks` | `memlock` | `msgqueue` | `nice` | `nofile` | `nproc` | `rss` | `rtprio` | `rttime` | `sigpending` | `stack` .

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