aws-cdk-lib.aws_batch.CfnJobDefinition.NodePropertiesProperty

interface NodePropertiesProperty

LanguageType name
.NETAmazon.CDK.AWS.Batch.CfnJobDefinition.NodePropertiesProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsbatch#CfnJobDefinition_NodePropertiesProperty
Javasoftware.amazon.awscdk.services.batch.CfnJobDefinition.NodePropertiesProperty
Pythonaws_cdk.aws_batch.CfnJobDefinition.NodePropertiesProperty
TypeScript aws-cdk-lib » aws_batch » CfnJobDefinition » NodePropertiesProperty

An object that represents the node properties of a multi-node parallel job.

Node properties can't be specified for Amazon EKS based job definitions.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';

declare const options: any;
const nodePropertiesProperty: batch.CfnJobDefinition.NodePropertiesProperty = {
  mainNode: 123,
  nodeRangeProperties: [{
    targetNodes: 'targetNodes',

    // the properties below are optional
    container: {
      image: 'image',

      // the properties below are optional
      command: ['command'],
      environment: [{
        name: 'name',
        value: 'value',
      }],
      ephemeralStorage: {
        sizeInGiB: 123,
      },
      executionRoleArn: 'executionRoleArn',
      fargatePlatformConfiguration: {
        platformVersion: 'platformVersion',
      },
      instanceType: 'instanceType',
      jobRoleArn: 'jobRoleArn',
      linuxParameters: {
        devices: [{
          containerPath: 'containerPath',
          hostPath: 'hostPath',
          permissions: ['permissions'],
        }],
        initProcessEnabled: false,
        maxSwap: 123,
        sharedMemorySize: 123,
        swappiness: 123,
        tmpfs: [{
          containerPath: 'containerPath',
          size: 123,

          // the properties below are optional
          mountOptions: ['mountOptions'],
        }],
      },
      logConfiguration: {
        logDriver: 'logDriver',

        // the properties below are optional
        options: options,
        secretOptions: [{
          name: 'name',
          valueFrom: 'valueFrom',
        }],
      },
      memory: 123,
      mountPoints: [{
        containerPath: 'containerPath',
        readOnly: false,
        sourceVolume: 'sourceVolume',
      }],
      networkConfiguration: {
        assignPublicIp: 'assignPublicIp',
      },
      privileged: false,
      readonlyRootFilesystem: false,
      resourceRequirements: [{
        type: 'type',
        value: 'value',
      }],
      secrets: [{
        name: 'name',
        valueFrom: 'valueFrom',
      }],
      ulimits: [{
        hardLimit: 123,
        name: 'name',
        softLimit: 123,
      }],
      user: 'user',
      vcpus: 123,
      volumes: [{
        efsVolumeConfiguration: {
          fileSystemId: 'fileSystemId',

          // the properties below are optional
          authorizationConfig: {
            accessPointId: 'accessPointId',
            iam: 'iam',
          },
          rootDirectory: 'rootDirectory',
          transitEncryption: 'transitEncryption',
          transitEncryptionPort: 123,
        },
        host: {
          sourcePath: 'sourcePath',
        },
        name: 'name',
      }],
    },
  }],
  numNodes: 123,
};

Properties

NameTypeDescription
mainNodenumberSpecifies the node index for the main node of a multi-node parallel job.
nodeRangePropertiesIResolvable | IResolvable | NodeRangePropertyProperty[]A list of node ranges and their properties that are associated with a multi-node parallel job.
numNodesnumberThe number of nodes that are associated with a multi-node parallel job.

mainNode

Type: number

Specifies the node index for the main node of a multi-node parallel job.

This node index value must be fewer than the number of nodes.


nodeRangeProperties

Type: IResolvable | IResolvable | NodeRangePropertyProperty[]

A list of node ranges and their properties that are associated with a multi-node parallel job.


numNodes

Type: number

The number of nodes that are associated with a multi-node parallel job.