aws-cdk-lib.aws_batch.CfnJobDefinition.NodeRangePropertyProperty

interface NodeRangePropertyProperty

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

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

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 nodeRangePropertyProperty: batch.CfnJobDefinition.NodeRangePropertyProperty = {
  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',
    }],
  },
};

Properties

NameTypeDescription
targetNodesstringThe range of nodes, using node index values.
container?IResolvable | ContainerPropertiesPropertyThe container details for the node range.

targetNodes

Type: string

The range of nodes, using node index values.

A range of 0:3 indicates nodes with index values of 0 through 3 . If the starting range value is omitted ( :n ), then 0 is used to start the range. If the ending range value is omitted ( n: ), then the highest possible node index is used to end the range. Your accumulative node ranges must account for all nodes ( 0:n ). You can nest node ranges (for example, 0:10 and 4:5 ). In this case, the 4:5 range properties override the 0:10 properties.


container?

Type: IResolvable | ContainerPropertiesProperty (optional)

The container details for the node range.