Class ContainerOverrides
The overrides that should be sent to a container.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ContainerOverrides : Object, IContainerOverrides
Syntax (vb)
Public Class ContainerOverrides
Inherits Object
Implements IContainerOverrides
Remarks
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.EC2;
using Amazon.CDK.AWS.StepFunctions.Tasks;
InstanceType instanceType;
var containerOverrides = new ContainerOverrides {
Command = new [] { "command" },
Environment = new Dictionary<string, string> {
{ "environmentKey", "environment" }
},
GpuCount = 123,
InstanceType = instanceType,
Memory = 123,
Vcpus = 123
};
Synopsis
Constructors
ContainerOverrides() |
Properties
Command | The command to send to the container that overrides the default command from the Docker image or the job definition. |
Environment | The environment variables to send to the container. |
GpuCount | The number of physical GPUs to reserve for the container. |
InstanceType | The instance type to use for a multi-node parallel job. |
Memory | The number of MiB of memory reserved for the job. |
Vcpus | The number of vCPUs to reserve for the container. |
Constructors
ContainerOverrides()
public ContainerOverrides()
Properties
Command
The command to send to the container that overrides the default command from the Docker image or the job definition.
public string[] Command { get; set; }
Property Value
System.String[]
Remarks
Default: - No command overrides
Environment
The environment variables to send to the container.
public IDictionary<string, string> Environment { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Remarks
You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the job definition.
Default: - No environment overrides
GpuCount
The number of physical GPUs to reserve for the container.
public Nullable<double> GpuCount { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
The number of GPUs reserved for all containers in a job should not exceed the number of available GPUs on the compute resource that the job is launched on.
Default: - No GPU reservation
InstanceType
The instance type to use for a multi-node parallel job.
public InstanceType InstanceType { get; set; }
Property Value
Remarks
This parameter is not valid for single-node container jobs.
Default: - No instance type overrides
Memory
The number of MiB of memory reserved for the job.
public Nullable<double> Memory { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
This value overrides the value set in the job definition.
Default: - No memory overrides
Vcpus
The number of vCPUs to reserve for the container.
public Nullable<double> Vcpus { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
This value overrides the value set in the job definition.
Default: - No vCPUs overrides