Skip to content
v2.278.0

UlimitProperty Struct ​

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.

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,
};
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_ecs as ecs

ulimit_property = ecs.CfnDaemonTaskDefinition.UlimitProperty(
    hard_limit=123,
    name="name",
    soft_limit=123
)
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.ecs.*;

UlimitProperty ulimitProperty = UlimitProperty.builder()
        .hardLimit(123)
        .name("name")
        .softLimit(123)
        .build();
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.ECS;

var ulimitProperty = new UlimitProperty {
    HardLimit = 123,
    Name = "name",
    SoftLimit = 123
};
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 ​

hardLimitnumberhard_limitint | floathardLimitNumberHardLimitdoubleHardLimit*float64 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.

namestringnamestrnameStringNamestringName*string required #
The ``type`` of the ``ulimit``.
softLimitnumbersoft_limitint | floatsoftLimitNumberSoftLimitdoubleSoftLimit*float64 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.