aws-cdk-lib.aws_pipes.CfnPipe.BatchContainerOverridesProperty

interface BatchContainerOverridesProperty

LanguageType name
.NETAmazon.CDK.AWS.Pipes.CfnPipe.BatchContainerOverridesProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awspipes#CfnPipe_BatchContainerOverridesProperty
Javasoftware.amazon.awscdk.services.pipes.CfnPipe.BatchContainerOverridesProperty
Pythonaws_cdk.aws_pipes.CfnPipe.BatchContainerOverridesProperty
TypeScript aws-cdk-lib » aws_pipes » CfnPipe » BatchContainerOverridesProperty

The overrides that are sent to a container.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pipes as pipes } from 'aws-cdk-lib';
const batchContainerOverridesProperty: pipes.CfnPipe.BatchContainerOverridesProperty = {
  command: ['command'],
  environment: [{
    name: 'name',
    value: 'value',
  }],
  instanceType: 'instanceType',
  resourceRequirements: [{
    type: 'type',
    value: 'value',
  }],
};

Properties

NameTypeDescription
command?string[]The command to send to the container that overrides the default command from the Docker image or the task definition.
environment?IResolvable | IResolvable | BatchEnvironmentVariableProperty[]The environment variables to send to the container.
instanceType?stringThe instance type to use for a multi-node parallel job.
resourceRequirements?IResolvable | IResolvable | BatchResourceRequirementProperty[]The type and amount of resources to assign to a container.

command?

Type: string[] (optional)

The command to send to the container that overrides the default command from the Docker image or the task definition.


environment?

Type: IResolvable | IResolvable | BatchEnvironmentVariableProperty[] (optional)

The environment variables to send to the container.

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?

Type: string (optional)

The instance type to use for a multi-node parallel job.

This parameter isn't applicable to single-node container jobs or jobs that run on Fargate resources, and shouldn't be provided.


resourceRequirements?

Type: IResolvable | IResolvable | BatchResourceRequirementProperty[] (optional)

The type and amount of resources to assign to a container.

This overrides the settings in the job definition. The supported resources include GPU , MEMORY , and VCPU .