Interface CfnPipe.IBatchContainerOverridesProperty
The overrides that are sent to a container.
Namespace: Amazon.CDK.AWS.Pipes
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IBatchContainerOverridesProperty
Syntax (vb)
Public Interface IBatchContainerOverridesProperty
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.Pipes;
var batchContainerOverridesProperty = new BatchContainerOverridesProperty {
Command = new [] { "command" },
Environment = new [] { new BatchEnvironmentVariableProperty {
Name = "name",
Value = "value"
} },
InstanceType = "instanceType",
ResourceRequirements = new [] { new BatchResourceRequirementProperty {
Type = "type",
Value = "value"
} }
};
Synopsis
Properties
Command | The command to send to the container that overrides the default command from the Docker image or the task definition. |
Environment | The environment variables to send to the container. |
Instance |
The instance type to use for a multi-node parallel job. |
Resource |
The type and amount of resources to assign to a container. |
Properties
Command
The command to send to the container that overrides the default command from the Docker image or the task definition.
virtual string[] Command { get; }
Property Value
System.
Remarks
Environment
The environment variables to send to the container.
virtual object Environment { get; }
Property Value
System.
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 task definition.
Environment variables cannot start with " AWS Batch
". This naming convention is reserved for variables that AWS Batch sets.
InstanceType
The instance type to use for a multi-node parallel job.
virtual string InstanceType { get; }
Property Value
System.
Remarks
This parameter isn't applicable to single-node container jobs or jobs that run on Fargate resources, and shouldn't be provided.
ResourceRequirements
The type and amount of resources to assign to a container.
virtual object ResourceRequirements { get; }
Property Value
System.
Remarks
This overrides the settings in the job definition. The supported resources include GPU
, MEMORY
, and VCPU
.