Class CfnPipePropsMixin.BatchContainerOverridesProperty
The overrides that are sent to a container.
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.Pipes.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnPipePropsMixin.BatchContainerOverridesProperty : CfnPipePropsMixin.IBatchContainerOverridesProperty
Syntax (vb)
Public Class CfnPipePropsMixin.BatchContainerOverridesProperty Implements CfnPipePropsMixin.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.Mixins.Preview.AWS.Pipes.Mixins;
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
Constructors
| BatchContainerOverridesProperty() | The overrides that are sent 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. |
| Environment | The environment variables to send to the container. |
| InstanceType | The instance type to use for a multi-node parallel job. |
| ResourceRequirements | The type and amount of resources to assign to a container. |
Constructors
BatchContainerOverridesProperty()
The overrides that are sent to a container.
public BatchContainerOverridesProperty()
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.Mixins.Preview.AWS.Pipes.Mixins;
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"
} }
};
Properties
Command
The command to send to the container that overrides the default command from the Docker image or the task definition.
public string[]? Command { get; set; }
Property Value
string[]
Remarks
Environment
The environment variables to send to the container.
public object? Environment { get; set; }
Property Value
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 " <code>AWS Batch</code> ". This naming convention is reserved for variables that AWS Batch sets.
Type union: either IResolvable or (either IResolvable or CfnPipePropsMixin.IBatchEnvironmentVariableProperty)[]
InstanceType
The instance type to use for a multi-node parallel job.
public string? InstanceType { get; set; }
Property Value
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.
public object? ResourceRequirements { get; set; }
Property Value
Remarks
This overrides the settings in the job definition. The supported resources include GPU , MEMORY , and VCPU .
Type union: either IResolvable or (either IResolvable or CfnPipePropsMixin.IBatchResourceRequirementProperty)[]