public static interface CfnTaskDefinition.UlimitProperty
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 software.amazon.awscdk.services.ecs.*; UlimitProperty ulimitProperty = UlimitProperty.builder() .hardLimit(123) .name("name") .softLimit(123) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnTaskDefinition.UlimitProperty.Builder
A builder for
CfnTaskDefinition.UlimitProperty |
static class |
CfnTaskDefinition.UlimitProperty.Jsii$Proxy
An implementation for
CfnTaskDefinition.UlimitProperty |
Modifier and Type | Method and Description |
---|---|
static CfnTaskDefinition.UlimitProperty.Builder |
builder() |
java.lang.Number |
getHardLimit()
The hard limit for the `ulimit` type.
|
java.lang.String |
getName()
The `type` of the `ulimit` .
|
java.lang.Number |
getSoftLimit()
The soft limit for the `ulimit` type.
|
java.lang.Number getHardLimit()
java.lang.String getName()
java.lang.Number getSoftLimit()
static CfnTaskDefinition.UlimitProperty.Builder builder()