Interface IEcsEc2ContainerDefinition
A container orchestrated by ECS that uses EC2 resources.
Inherited Members
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IEcsEc2ContainerDefinition : IEcsContainerDefinition, IConstruct, IDependable
Syntax (vb)
Public Interface IEcsEc2ContainerDefinition Inherits IEcsContainerDefinition, IConstruct, IDependable
Synopsis
Properties
| Gpu | The number of physical GPUs to reserve for the container. |
| Privileged | When this parameter is true, the container is given elevated permissions on the host container instance (similar to the root user). |
| Ulimits | Limits to set for the user this docker container will run as. |
Methods
| AddUlimit(IUlimit) | Add a ulimit to this container. |
Properties
Gpu
The number of physical GPUs to reserve for the container.
double? Gpu { get; }
Property Value
Remarks
Make sure that the number of GPUs reserved for all containers in a job doesn't exceed the number of available GPUs on the compute resource that the job is launched on.
Default: - no gpus
Privileged
When this parameter is true, the container is given elevated permissions on the host container instance (similar to the root user).
bool? Privileged { get; }
Property Value
bool?
Remarks
Default: false
Ulimits
Limits to set for the user this docker container will run as.
IUlimit[] Ulimits { get; }
Property Value
IUlimit[]