aws-cdk-lib.aws_ecs.CfnTaskDefinition.UlimitProperty

interface UlimitProperty

LanguageType name
.NETAmazon.CDK.AWS.ECS.CfnTaskDefinition.UlimitProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecs#CfnTaskDefinition_UlimitProperty
Javasoftware.amazon.awscdk.services.ecs.CfnTaskDefinition.UlimitProperty
Pythonaws_cdk.aws_ecs.CfnTaskDefinition.UlimitProperty
TypeScript aws-cdk-lib » aws_ecs » CfnTaskDefinition » UlimitProperty

The ulimit settings to pass to the container.

Amazon ECS tasks hosted on AWS Fargate use the default resource limit values set by the operating system with the exception of the nofile resource limit parameter which AWS Fargate 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 1024 and the default hard limit is 4096 .

You can specify the ulimit settings for a container in a task definition.

Example

// 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.CfnTaskDefinition.UlimitProperty = {
  hardLimit: 123,
  name: 'name',
  softLimit: 123,
};

Properties

NameTypeDescription
hardLimitnumberThe hard limit for the ulimit type.
namestringThe type of the ulimit .
softLimitnumberThe soft limit for the ulimit type.

hardLimit

Type: number

The hard limit for the ulimit type.


name

Type: string

The type of the ulimit .


softLimit

Type: number

The soft limit for the ulimit type.