Class CfnTaskDefinition.UlimitProperty
The ulimit
settings to pass to the container.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class UlimitProperty : Object, CfnTaskDefinition.IUlimitProperty
Syntax (vb)
Public Class UlimitProperty
Inherits Object
Implements CfnTaskDefinition.IUlimitProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// 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
};
Synopsis
Constructors
UlimitProperty() |
Properties
HardLimit | The hard limit for the |
Name | The |
SoftLimit | The soft limit for the |
Constructors
UlimitProperty()
public UlimitProperty()
Properties
HardLimit
The hard limit for the ulimit
type.
public double HardLimit { get; set; }
Property Value
System.Double
Remarks
Name
The type
of the ulimit
.
public string Name { get; set; }
Property Value
System.String
Remarks
SoftLimit
The soft limit for the ulimit
type.
public double SoftLimit { get; set; }
Property Value
System.Double