Show / Hide Table of Contents

Interface IEcsEc2ContainerDefinition

A container orchestrated by ECS that uses EC2 resources.

Inherited Members
IEcsContainerDefinition.AddVolume(EcsVolume)
IEcsContainerDefinition.Cpu
IEcsContainerDefinition.ExecutionRole
IEcsContainerDefinition.Image
IEcsContainerDefinition.Memory
IEcsContainerDefinition.Volumes
IEcsContainerDefinition.Command
IEcsContainerDefinition.EnableExecuteCommand
IEcsContainerDefinition.Environment
IEcsContainerDefinition.JobRole
IEcsContainerDefinition.LinuxParameters
IEcsContainerDefinition.LogDriverConfig
IEcsContainerDefinition.ReadonlyRootFilesystem
IEcsContainerDefinition.Secrets
IEcsContainerDefinition.User
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

double?

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[]

Methods

AddUlimit(IUlimit)

Add a ulimit to this container.

void AddUlimit(IUlimit ulimit)
Parameters
ulimit IUlimit
Back to top Generated by DocFX