Class Ulimit
Sets limits for a resource with ulimit on linux systems.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class Ulimit : IUlimit
Syntax (vb)
Public Class Ulimit Implements IUlimit
Remarks
Used by the Docker daemon.
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.Batch;
var ulimit = new Ulimit {
HardLimit = 123,
Name = UlimitName.CORE,
SoftLimit = 123
};
Synopsis
Constructors
| Ulimit() | Sets limits for a resource with |
Properties
| HardLimit | The hard limit for this resource. |
| Name | The resource to limit. |
| SoftLimit | The reservation for this resource. |
Constructors
Ulimit()
Sets limits for a resource with ulimit on linux systems.
public Ulimit()
Remarks
Used by the Docker daemon.
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.Batch;
var ulimit = new Ulimit {
HardLimit = 123,
Name = UlimitName.CORE,
SoftLimit = 123
};
Properties
HardLimit
The hard limit for this resource.
public double HardLimit { get; set; }
Property Value
Remarks
The container will be terminated if it exceeds this limit.
Name
The resource to limit.
public UlimitName Name { get; set; }
Property Value
Remarks
Used by the Docker daemon.
ExampleMetadata: fixture=_generated
SoftLimit
The reservation for this resource.
public double SoftLimit { get; set; }
Property Value
Remarks
The container will not be terminated if it exceeds this limit.