Skip to content
v2.273.0

MultiNodeEcsPropertiesProperty Struct ​

An object that contains the properties for the Amazon ECS resources of a job.

Example ​

ts
// 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 multiNodeEcsPropertiesProperty: batch.CfnJobDefinition.MultiNodeEcsPropertiesProperty = {
  taskProperties: [{
    containers: [{
      image: 'image',

      // the properties below are optional
      command: ['command'],
      dependsOn: [{
        condition: 'condition',
        containerName: 'containerName',
      }],
      environment: [{
        name: 'name',
        value: 'value',
      }],
      essential: false,
      firelensConfiguration: {
        type: 'type',

        // the properties below are optional
        options: {
          optionsKey: 'options',
        },
      },
      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',
        }],
      },
      mountPoints: [{
        containerPath: 'containerPath',
        readOnly: false,
        sourceVolume: 'sourceVolume',
      }],
      name: 'name',
      privileged: false,
      readonlyRootFilesystem: false,
      repositoryCredentials: {
        credentialsParameter: 'credentialsParameter',
      },
      resourceRequirements: [{
        type: 'type',
        value: 'value',
      }],
      secrets: [{
        name: 'name',
        valueFrom: 'valueFrom',
      }],
      startTimeout: 123,
      stopTimeout: 123,
      ulimits: [{
        hardLimit: 123,
        name: 'name',
        softLimit: 123,
      }],
      user: 'user',
    }],
    enableExecuteCommand: false,
    executionRoleArn: 'executionRoleArn',
    ipcMode: 'ipcMode',
    pidMode: 'pidMode',
    taskRoleArn: 'taskRoleArn',
    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',
      s3FilesVolumeConfiguration: {
        fileSystemArn: 'fileSystemArn',

        // the properties below are optional
        accessPointArn: 'accessPointArn',
        rootDirectory: 'rootDirectory',
        transitEncryptionPort: 123,
      },
    }],
  }],
};

Properties ​

taskPropertiesIResolvable | IResolvable | CfnJobDefinition.MultiNodeEcsTaskPropertiesProperty[]task_propertiestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MultiNodeEcsTaskPropertiesProperty]]]taskPropertiesIResolvableTaskPropertiesIResolvableTaskPropertiesinterface{}required#
An object that contains the properties for the Amazon ECS task definition of a job.

This object is currently limited to one task element. However, the task element can run up to 10 containers.