Ulimit Struct
Sets limits for a resource with ulimit on linux systems.
Used by the Docker daemon.
| Source | aws-batch/lib/ecs-container-definition.ts |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const ulimit: batch.Ulimit = {
hardLimit: 123,
name: batch.UlimitName.CORE,
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_batch as batch
ulimit = batch.Ulimit(
hard_limit=123,
name=batch.UlimitName.CORE,
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.batch.*;
Ulimit ulimit = Ulimit.builder()
.hardLimit(123)
.name(UlimitName.CORE)
.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.Batch;
var ulimit = new Ulimit {
HardLimit = 123,
Name = UlimitName.CORE,
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"
ulimit := &Ulimit{
HardLimit: jsii.Number(123),
Name: awscdk.Aws_batch.UlimitName_CORE,
SoftLimit: jsii.Number(123),
}
Properties
The hard limit for this resource.
The container will be terminated if it exceeds this limit.
The resource to limit.
The reservation for this resource.
The container will not be terminated if it exceeds this limit.