interface NodeRangePropertyProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Batch.Mixins.CfnJobDefinitionPropsMixin.NodeRangePropertyProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsbatch/mixins#CfnJobDefinitionPropsMixin_NodeRangePropertyProperty |
Java | software.amazon.awscdk.mixins.preview.services.batch.mixins.CfnJobDefinitionPropsMixin.NodeRangePropertyProperty |
Python | aws_cdk.mixins_preview.aws_batch.mixins.CfnJobDefinitionPropsMixin.NodeRangePropertyProperty |
TypeScript | @aws-cdk/mixins-preview » aws_batch » mixins » CfnJobDefinitionPropsMixin » NodeRangePropertyProperty |
This is 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 { mixins as batch_mixins } from '@aws-cdk/mixins-preview/aws-batch';
declare const labels: any;
declare const limits: any;
declare const options: any;
declare const requests: any;
const nodeRangePropertyProperty: batch_mixins.CfnJobDefinitionPropsMixin.NodeRangePropertyProperty = {
consumableResourceProperties: {
consumableResourceList: [{
consumableResource: 'consumableResource',
quantity: 123,
}],
},
container: {
command: ['command'],
enableExecuteCommand: false,
environment: [{
name: 'name',
value: 'value',
}],
ephemeralStorage: {
sizeInGiB: 123,
},
executionRoleArn: 'executionRoleArn',
fargatePlatformConfiguration: {
platformVersion: 'platformVersion',
},
image: 'image',
instanceType: 'instanceType',
jobRoleArn: 'jobRoleArn',
linuxParameters: {
devices: [{
containerPath: 'containerPath',
hostPath: 'hostPath',
permissions: ['permissions'],
}],
initProcessEnabled: false,
maxSwap: 123,
sharedMemorySize: 123,
swappiness: 123,
tmpfs: [{
containerPath: 'containerPath',
mountOptions: ['mountOptions'],
size: 123,
}],
},
logConfiguration: {
logDriver: 'logDriver',
options: options,
secretOptions: [{
name: 'name',
valueFrom: 'valueFrom',
}],
},
memory: 123,
mountPoints: [{
containerPath: 'containerPath',
readOnly: false,
sourceVolume: 'sourceVolume',
}],
networkConfiguration: {
assignPublicIp: 'assignPublicIp',
},
privileged: false,
readonlyRootFilesystem: false,
repositoryCredentials: {
credentialsParameter: 'credentialsParameter',
},
resourceRequirements: [{
type: 'type',
value: 'value',
}],
runtimePlatform: {
cpuArchitecture: 'cpuArchitecture',
operatingSystemFamily: 'operatingSystemFamily',
},
secrets: [{
name: 'name',
valueFrom: 'valueFrom',
}],
ulimits: [{
hardLimit: 123,
name: 'name',
softLimit: 123,
}],
user: 'user',
vcpus: 123,
volumes: [{
efsVolumeConfiguration: {
authorizationConfig: {
accessPointId: 'accessPointId',
iam: 'iam',
},
fileSystemId: 'fileSystemId',
rootDirectory: 'rootDirectory',
transitEncryption: 'transitEncryption',
transitEncryptionPort: 123,
},
host: {
sourcePath: 'sourcePath',
},
name: 'name',
}],
},
ecsProperties: {
taskProperties: [{
containers: [{
command: ['command'],
dependsOn: [{
condition: 'condition',
containerName: 'containerName',
}],
environment: [{
name: 'name',
value: 'value',
}],
essential: false,
firelensConfiguration: {
options: {
optionsKey: 'options',
},
type: 'type',
},
image: 'image',
linuxParameters: {
devices: [{
containerPath: 'containerPath',
hostPath: 'hostPath',
permissions: ['permissions'],
}],
initProcessEnabled: false,
maxSwap: 123,
sharedMemorySize: 123,
swappiness: 123,
tmpfs: [{
containerPath: 'containerPath',
mountOptions: ['mountOptions'],
size: 123,
}],
},
logConfiguration: {
logDriver: 'logDriver',
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',
}],
ulimits: [{
hardLimit: 123,
name: 'name',
softLimit: 123,
}],
user: 'user',
}],
enableExecuteCommand: false,
executionRoleArn: 'executionRoleArn',
ipcMode: 'ipcMode',
pidMode: 'pidMode',
taskRoleArn: 'taskRoleArn',
volumes: [{
efsVolumeConfiguration: {
authorizationConfig: {
accessPointId: 'accessPointId',
iam: 'iam',
},
fileSystemId: 'fileSystemId',
rootDirectory: 'rootDirectory',
transitEncryption: 'transitEncryption',
transitEncryptionPort: 123,
},
host: {
sourcePath: 'sourcePath',
},
name: 'name',
}],
}],
},
eksProperties: {
podProperties: {
containers: [{
args: ['args'],
command: ['command'],
env: [{
name: 'name',
value: 'value',
}],
image: 'image',
imagePullPolicy: 'imagePullPolicy',
name: 'name',
resources: {
limits: limits,
requests: requests,
},
securityContext: {
allowPrivilegeEscalation: false,
privileged: false,
readOnlyRootFilesystem: false,
runAsGroup: 123,
runAsNonRoot: false,
runAsUser: 123,
},
volumeMounts: [{
mountPath: 'mountPath',
name: 'name',
readOnly: false,
subPath: 'subPath',
}],
}],
dnsPolicy: 'dnsPolicy',
hostNetwork: false,
imagePullSecrets: [{
name: 'name',
}],
initContainers: [{
args: ['args'],
command: ['command'],
env: [{
name: 'name',
value: 'value',
}],
image: 'image',
imagePullPolicy: 'imagePullPolicy',
name: 'name',
resources: {
limits: limits,
requests: requests,
},
securityContext: {
allowPrivilegeEscalation: false,
privileged: false,
readOnlyRootFilesystem: false,
runAsGroup: 123,
runAsNonRoot: false,
runAsUser: 123,
},
volumeMounts: [{
mountPath: 'mountPath',
name: 'name',
readOnly: false,
subPath: 'subPath',
}],
}],
metadata: {
labels: labels,
},
serviceAccountName: 'serviceAccountName',
shareProcessNamespace: false,
volumes: [{
emptyDir: {
medium: 'medium',
sizeLimit: 'sizeLimit',
},
hostPath: {
path: 'path',
},
name: 'name',
persistentVolumeClaim: {
claimName: 'claimName',
readOnly: false,
},
secret: {
optional: false,
secretName: 'secretName',
},
}],
},
},
instanceTypes: ['instanceTypes'],
targetNodes: 'targetNodes',
};
Properties
| Name | Type | Description |
|---|---|---|
| consumable | IResolvable | Consumable | Contains a list of consumable resources required by a job. |
| container? | IResolvable | Container | The container details for the node range. |
| ecs | IResolvable | Multi | This is an object that represents the properties of the node range for a multi-node parallel job. |
| eks | IResolvable | Eks | This is an object that represents the properties of the node range for a multi-node parallel job. |
| instance | string[] | The instance types of the underlying host infrastructure of a multi-node parallel job. |
| target | string | The range of nodes, using node index values. |
consumableResourceProperties?
Type:
IResolvable | Consumable
(optional)
Contains a list of consumable resources required by a job.
container?
Type:
IResolvable | Container
(optional)
The container details for the node range.
ecsProperties?
Type:
IResolvable | Multi
(optional)
This is an object that represents the properties of the node range for a multi-node parallel job.
eksProperties?
Type:
IResolvable | Eks
(optional)
This is an object that represents the properties of the node range for a multi-node parallel job.
instanceTypes?
Type:
string[]
(optional)
The instance types of the underlying host infrastructure of a multi-node parallel job.
This parameter isn't applicable to jobs that are running on Fargate resources.
In addition, this list object is currently limited to one element.
targetNodes?
Type:
string
(optional)
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.

.NET
Go
Java
Python
TypeScript