NodeRangePropertyProperty Struct
This is an object that represents the properties of the node range for a multi-node parallel 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 labels: any;
declare const limits: any;
declare const options: any;
declare const requests: any;
const nodeRangePropertyProperty: batch.CfnJobDefinition.NodeRangePropertyProperty = {
targetNodes: 'targetNodes',
// the properties below are optional
consumableResourceProperties: {
consumableResourceList: [{
consumableResource: 'consumableResource',
quantity: 123,
}],
},
container: {
image: 'image',
// the properties below are optional
command: ['command'],
enableExecuteCommand: false,
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,
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: {
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,
},
}],
},
ecsProperties: {
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,
},
}],
}],
},
eksProperties: {
podProperties: {
containers: [{
image: 'image',
// the properties below are optional
args: ['args'],
command: ['command'],
env: [{
name: 'name',
// the properties below are optional
value: 'value',
}],
imagePullPolicy: 'imagePullPolicy',
name: 'name',
resources: {
limits: limits,
requests: requests,
},
securityContext: {
allowPrivilegeEscalation: false,
capabilities: {
add: ['add'],
drop: ['drop'],
},
privileged: false,
readOnlyRootFilesystem: false,
runAsGroup: 123,
runAsNonRoot: false,
runAsUser: 123,
seccompProfile: {
type: 'type',
// the properties below are optional
localhostProfile: 'localhostProfile',
},
},
volumeMounts: [{
mountPath: 'mountPath',
name: 'name',
readOnly: false,
subPath: 'subPath',
}],
}],
dnsPolicy: 'dnsPolicy',
hostNetwork: false,
imagePullSecrets: [{
name: 'name',
}],
initContainers: [{
image: 'image',
// the properties below are optional
args: ['args'],
command: ['command'],
env: [{
name: 'name',
// the properties below are optional
value: 'value',
}],
imagePullPolicy: 'imagePullPolicy',
name: 'name',
resources: {
limits: limits,
requests: requests,
},
securityContext: {
allowPrivilegeEscalation: false,
capabilities: {
add: ['add'],
drop: ['drop'],
},
privileged: false,
readOnlyRootFilesystem: false,
runAsGroup: 123,
runAsNonRoot: false,
runAsUser: 123,
seccompProfile: {
type: 'type',
// the properties below are optional
localhostProfile: 'localhostProfile',
},
},
volumeMounts: [{
mountPath: 'mountPath',
name: 'name',
readOnly: false,
subPath: 'subPath',
}],
}],
metadata: {
labels: labels,
},
securityContext: {
fsGroup: 123,
runAsGroup: 123,
runAsNonRoot: false,
runAsUser: 123,
seccompProfile: {
type: 'type',
// the properties below are optional
localhostProfile: 'localhostProfile',
},
},
serviceAccountName: 'serviceAccountName',
shareProcessNamespace: false,
volumes: [{
name: 'name',
// the properties below are optional
emptyDir: {
medium: 'medium',
sizeLimit: 'sizeLimit',
},
hostPath: {
path: 'path',
},
persistentVolumeClaim: {
claimName: 'claimName',
// the properties below are optional
readOnly: false,
},
secret: {
secretName: 'secretName',
// the properties below are optional
optional: false,
},
}],
},
},
instanceTypes: ['instanceTypes'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_batch as batch
# labels: Any
# limits: Any
# options: Any
# requests: Any
node_range_property_property = batch.CfnJobDefinition.NodeRangePropertyProperty(
target_nodes="targetNodes",
# the properties below are optional
consumable_resource_properties=batch.CfnJobDefinition.ConsumableResourcePropertiesProperty(
consumable_resource_list=[batch.CfnJobDefinition.ConsumableResourceRequirementProperty(
consumable_resource="consumableResource",
quantity=123
)]
),
container=batch.CfnJobDefinition.ContainerPropertiesProperty(
image="image",
# the properties below are optional
command=["command"],
enable_execute_command=False,
environment=[batch.CfnJobDefinition.EnvironmentProperty(
name="name",
value="value"
)],
ephemeral_storage=batch.CfnJobDefinition.EphemeralStorageProperty(
size_in_gi_b=123
),
execution_role_arn="executionRoleArn",
fargate_platform_configuration=batch.CfnJobDefinition.FargatePlatformConfigurationProperty(
platform_version="platformVersion"
),
instance_type="instanceType",
job_role_arn="jobRoleArn",
linux_parameters=batch.CfnJobDefinition.LinuxParametersProperty(
devices=[batch.CfnJobDefinition.DeviceProperty(
container_path="containerPath",
host_path="hostPath",
permissions=["permissions"]
)],
init_process_enabled=False,
max_swap=123,
shared_memory_size=123,
swappiness=123,
tmpfs=[batch.CfnJobDefinition.TmpfsProperty(
container_path="containerPath",
size=123,
# the properties below are optional
mount_options=["mountOptions"]
)]
),
log_configuration=batch.CfnJobDefinition.LogConfigurationProperty(
log_driver="logDriver",
# the properties below are optional
options=options,
secret_options=[batch.CfnJobDefinition.SecretProperty(
name="name",
value_from="valueFrom"
)]
),
memory=123,
mount_points=[batch.CfnJobDefinition.MountPointsProperty(
container_path="containerPath",
read_only=False,
source_volume="sourceVolume"
)],
network_configuration=batch.CfnJobDefinition.NetworkConfigurationProperty(
assign_public_ip="assignPublicIp"
),
privileged=False,
readonly_root_filesystem=False,
repository_credentials=batch.CfnJobDefinition.RepositoryCredentialsProperty(
credentials_parameter="credentialsParameter"
),
resource_requirements=[batch.CfnJobDefinition.ResourceRequirementProperty(
type="type",
value="value"
)],
runtime_platform=batch.CfnJobDefinition.RuntimePlatformProperty(
cpu_architecture="cpuArchitecture",
operating_system_family="operatingSystemFamily"
),
secrets=[batch.CfnJobDefinition.SecretProperty(
name="name",
value_from="valueFrom"
)],
ulimits=[batch.CfnJobDefinition.UlimitProperty(
hard_limit=123,
name="name",
soft_limit=123
)],
user="user",
vcpus=123,
volumes=[batch.CfnJobDefinition.VolumesProperty(
efs_volume_configuration=batch.CfnJobDefinition.EfsVolumeConfigurationProperty(
file_system_id="fileSystemId",
# the properties below are optional
authorization_config=batch.CfnJobDefinition.AuthorizationConfigProperty(
access_point_id="accessPointId",
iam="iam"
),
root_directory="rootDirectory",
transit_encryption="transitEncryption",
transit_encryption_port=123
),
host=batch.CfnJobDefinition.VolumesHostProperty(
source_path="sourcePath"
),
name="name",
s3_files_volume_configuration=batch.CfnJobDefinition.S3FilesVolumeConfigurationProperty(
file_system_arn="fileSystemArn",
# the properties below are optional
access_point_arn="accessPointArn",
root_directory="rootDirectory",
transit_encryption_port=123
)
)]
),
ecs_properties=batch.CfnJobDefinition.MultiNodeEcsPropertiesProperty(
task_properties=[batch.CfnJobDefinition.MultiNodeEcsTaskPropertiesProperty(
containers=[batch.CfnJobDefinition.TaskContainerPropertiesProperty(
image="image",
# the properties below are optional
command=["command"],
depends_on=[batch.CfnJobDefinition.TaskContainerDependencyProperty(
condition="condition",
container_name="containerName"
)],
environment=[batch.CfnJobDefinition.EnvironmentProperty(
name="name",
value="value"
)],
essential=False,
firelens_configuration=batch.CfnJobDefinition.FirelensConfigurationProperty(
type="type",
# the properties below are optional
options={
"options_key": "options"
}
),
linux_parameters=batch.CfnJobDefinition.LinuxParametersProperty(
devices=[batch.CfnJobDefinition.DeviceProperty(
container_path="containerPath",
host_path="hostPath",
permissions=["permissions"]
)],
init_process_enabled=False,
max_swap=123,
shared_memory_size=123,
swappiness=123,
tmpfs=[batch.CfnJobDefinition.TmpfsProperty(
container_path="containerPath",
size=123,
# the properties below are optional
mount_options=["mountOptions"]
)]
),
log_configuration=batch.CfnJobDefinition.LogConfigurationProperty(
log_driver="logDriver",
# the properties below are optional
options=options,
secret_options=[batch.CfnJobDefinition.SecretProperty(
name="name",
value_from="valueFrom"
)]
),
mount_points=[batch.CfnJobDefinition.MountPointProperty(
container_path="containerPath",
read_only=False,
source_volume="sourceVolume"
)],
name="name",
privileged=False,
readonly_root_filesystem=False,
repository_credentials=batch.CfnJobDefinition.RepositoryCredentialsProperty(
credentials_parameter="credentialsParameter"
),
resource_requirements=[batch.CfnJobDefinition.ResourceRequirementProperty(
type="type",
value="value"
)],
secrets=[batch.CfnJobDefinition.SecretProperty(
name="name",
value_from="valueFrom"
)],
start_timeout=123,
stop_timeout=123,
ulimits=[batch.CfnJobDefinition.UlimitProperty(
hard_limit=123,
name="name",
soft_limit=123
)],
user="user"
)],
enable_execute_command=False,
execution_role_arn="executionRoleArn",
ipc_mode="ipcMode",
pid_mode="pidMode",
task_role_arn="taskRoleArn",
volumes=[batch.CfnJobDefinition.VolumesProperty(
efs_volume_configuration=batch.CfnJobDefinition.EfsVolumeConfigurationProperty(
file_system_id="fileSystemId",
# the properties below are optional
authorization_config=batch.CfnJobDefinition.AuthorizationConfigProperty(
access_point_id="accessPointId",
iam="iam"
),
root_directory="rootDirectory",
transit_encryption="transitEncryption",
transit_encryption_port=123
),
host=batch.CfnJobDefinition.VolumesHostProperty(
source_path="sourcePath"
),
name="name",
s3_files_volume_configuration=batch.CfnJobDefinition.S3FilesVolumeConfigurationProperty(
file_system_arn="fileSystemArn",
# the properties below are optional
access_point_arn="accessPointArn",
root_directory="rootDirectory",
transit_encryption_port=123
)
)]
)]
),
eks_properties=batch.CfnJobDefinition.EksPropertiesProperty(
pod_properties=batch.CfnJobDefinition.PodPropertiesProperty(
containers=[batch.CfnJobDefinition.EksContainerProperty(
image="image",
# the properties below are optional
args=["args"],
command=["command"],
env=[batch.CfnJobDefinition.EksContainerEnvironmentVariableProperty(
name="name",
# the properties below are optional
value="value"
)],
image_pull_policy="imagePullPolicy",
name="name",
resources=batch.CfnJobDefinition.ResourcesProperty(
limits=limits,
requests=requests
),
security_context=batch.CfnJobDefinition.SecurityContextProperty(
allow_privilege_escalation=False,
capabilities=batch.CfnJobDefinition.EksContainerLinuxCapabilitiesProperty(
add=["add"],
drop=["drop"]
),
privileged=False,
read_only_root_filesystem=False,
run_as_group=123,
run_as_non_root=False,
run_as_user=123,
seccomp_profile=batch.CfnJobDefinition.EksSeccompProfileProperty(
type="type",
# the properties below are optional
localhost_profile="localhostProfile"
)
),
volume_mounts=[batch.CfnJobDefinition.EksContainerVolumeMountProperty(
mount_path="mountPath",
name="name",
read_only=False,
sub_path="subPath"
)]
)],
dns_policy="dnsPolicy",
host_network=False,
image_pull_secrets=[batch.CfnJobDefinition.ImagePullSecretProperty(
name="name"
)],
init_containers=[batch.CfnJobDefinition.EksContainerProperty(
image="image",
# the properties below are optional
args=["args"],
command=["command"],
env=[batch.CfnJobDefinition.EksContainerEnvironmentVariableProperty(
name="name",
# the properties below are optional
value="value"
)],
image_pull_policy="imagePullPolicy",
name="name",
resources=batch.CfnJobDefinition.ResourcesProperty(
limits=limits,
requests=requests
),
security_context=batch.CfnJobDefinition.SecurityContextProperty(
allow_privilege_escalation=False,
capabilities=batch.CfnJobDefinition.EksContainerLinuxCapabilitiesProperty(
add=["add"],
drop=["drop"]
),
privileged=False,
read_only_root_filesystem=False,
run_as_group=123,
run_as_non_root=False,
run_as_user=123,
seccomp_profile=batch.CfnJobDefinition.EksSeccompProfileProperty(
type="type",
# the properties below are optional
localhost_profile="localhostProfile"
)
),
volume_mounts=[batch.CfnJobDefinition.EksContainerVolumeMountProperty(
mount_path="mountPath",
name="name",
read_only=False,
sub_path="subPath"
)]
)],
metadata=batch.CfnJobDefinition.MetadataProperty(
labels=labels
),
security_context=batch.CfnJobDefinition.EksPodSecurityContextProperty(
fs_group=123,
run_as_group=123,
run_as_non_root=False,
run_as_user=123,
seccomp_profile=batch.CfnJobDefinition.EksSeccompProfileProperty(
type="type",
# the properties below are optional
localhost_profile="localhostProfile"
)
),
service_account_name="serviceAccountName",
share_process_namespace=False,
volumes=[batch.CfnJobDefinition.EksVolumeProperty(
name="name",
# the properties below are optional
empty_dir=batch.CfnJobDefinition.EmptyDirProperty(
medium="medium",
size_limit="sizeLimit"
),
host_path=batch.CfnJobDefinition.HostPathProperty(
path="path"
),
persistent_volume_claim=batch.CfnJobDefinition.EksPersistentVolumeClaimProperty(
claim_name="claimName",
# the properties below are optional
read_only=False
),
secret=batch.CfnJobDefinition.EksSecretProperty(
secret_name="secretName",
# the properties below are optional
optional=False
)
)]
)
),
instance_types=["instanceTypes"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.batch.*;
Object labels;
Object limits;
Object options;
Object requests;
NodeRangePropertyProperty nodeRangePropertyProperty = NodeRangePropertyProperty.builder()
.targetNodes("targetNodes")
// the properties below are optional
.consumableResourceProperties(ConsumableResourcePropertiesProperty.builder()
.consumableResourceList(List.of(ConsumableResourceRequirementProperty.builder()
.consumableResource("consumableResource")
.quantity(123)
.build()))
.build())
.container(ContainerPropertiesProperty.builder()
.image("image")
// the properties below are optional
.command(List.of("command"))
.enableExecuteCommand(false)
.environment(List.of(EnvironmentProperty.builder()
.name("name")
.value("value")
.build()))
.ephemeralStorage(EphemeralStorageProperty.builder()
.sizeInGiB(123)
.build())
.executionRoleArn("executionRoleArn")
.fargatePlatformConfiguration(FargatePlatformConfigurationProperty.builder()
.platformVersion("platformVersion")
.build())
.instanceType("instanceType")
.jobRoleArn("jobRoleArn")
.linuxParameters(LinuxParametersProperty.builder()
.devices(List.of(DeviceProperty.builder()
.containerPath("containerPath")
.hostPath("hostPath")
.permissions(List.of("permissions"))
.build()))
.initProcessEnabled(false)
.maxSwap(123)
.sharedMemorySize(123)
.swappiness(123)
.tmpfs(List.of(TmpfsProperty.builder()
.containerPath("containerPath")
.size(123)
// the properties below are optional
.mountOptions(List.of("mountOptions"))
.build()))
.build())
.logConfiguration(LogConfigurationProperty.builder()
.logDriver("logDriver")
// the properties below are optional
.options(options)
.secretOptions(List.of(SecretProperty.builder()
.name("name")
.valueFrom("valueFrom")
.build()))
.build())
.memory(123)
.mountPoints(List.of(MountPointsProperty.builder()
.containerPath("containerPath")
.readOnly(false)
.sourceVolume("sourceVolume")
.build()))
.networkConfiguration(NetworkConfigurationProperty.builder()
.assignPublicIp("assignPublicIp")
.build())
.privileged(false)
.readonlyRootFilesystem(false)
.repositoryCredentials(RepositoryCredentialsProperty.builder()
.credentialsParameter("credentialsParameter")
.build())
.resourceRequirements(List.of(ResourceRequirementProperty.builder()
.type("type")
.value("value")
.build()))
.runtimePlatform(RuntimePlatformProperty.builder()
.cpuArchitecture("cpuArchitecture")
.operatingSystemFamily("operatingSystemFamily")
.build())
.secrets(List.of(SecretProperty.builder()
.name("name")
.valueFrom("valueFrom")
.build()))
.ulimits(List.of(UlimitProperty.builder()
.hardLimit(123)
.name("name")
.softLimit(123)
.build()))
.user("user")
.vcpus(123)
.volumes(List.of(VolumesProperty.builder()
.efsVolumeConfiguration(EfsVolumeConfigurationProperty.builder()
.fileSystemId("fileSystemId")
// the properties below are optional
.authorizationConfig(AuthorizationConfigProperty.builder()
.accessPointId("accessPointId")
.iam("iam")
.build())
.rootDirectory("rootDirectory")
.transitEncryption("transitEncryption")
.transitEncryptionPort(123)
.build())
.host(VolumesHostProperty.builder()
.sourcePath("sourcePath")
.build())
.name("name")
.s3FilesVolumeConfiguration(S3FilesVolumeConfigurationProperty.builder()
.fileSystemArn("fileSystemArn")
// the properties below are optional
.accessPointArn("accessPointArn")
.rootDirectory("rootDirectory")
.transitEncryptionPort(123)
.build())
.build()))
.build())
.ecsProperties(MultiNodeEcsPropertiesProperty.builder()
.taskProperties(List.of(MultiNodeEcsTaskPropertiesProperty.builder()
.containers(List.of(TaskContainerPropertiesProperty.builder()
.image("image")
// the properties below are optional
.command(List.of("command"))
.dependsOn(List.of(TaskContainerDependencyProperty.builder()
.condition("condition")
.containerName("containerName")
.build()))
.environment(List.of(EnvironmentProperty.builder()
.name("name")
.value("value")
.build()))
.essential(false)
.firelensConfiguration(FirelensConfigurationProperty.builder()
.type("type")
// the properties below are optional
.options(Map.of(
"optionsKey", "options"))
.build())
.linuxParameters(LinuxParametersProperty.builder()
.devices(List.of(DeviceProperty.builder()
.containerPath("containerPath")
.hostPath("hostPath")
.permissions(List.of("permissions"))
.build()))
.initProcessEnabled(false)
.maxSwap(123)
.sharedMemorySize(123)
.swappiness(123)
.tmpfs(List.of(TmpfsProperty.builder()
.containerPath("containerPath")
.size(123)
// the properties below are optional
.mountOptions(List.of("mountOptions"))
.build()))
.build())
.logConfiguration(LogConfigurationProperty.builder()
.logDriver("logDriver")
// the properties below are optional
.options(options)
.secretOptions(List.of(SecretProperty.builder()
.name("name")
.valueFrom("valueFrom")
.build()))
.build())
.mountPoints(List.of(MountPointProperty.builder()
.containerPath("containerPath")
.readOnly(false)
.sourceVolume("sourceVolume")
.build()))
.name("name")
.privileged(false)
.readonlyRootFilesystem(false)
.repositoryCredentials(RepositoryCredentialsProperty.builder()
.credentialsParameter("credentialsParameter")
.build())
.resourceRequirements(List.of(ResourceRequirementProperty.builder()
.type("type")
.value("value")
.build()))
.secrets(List.of(SecretProperty.builder()
.name("name")
.valueFrom("valueFrom")
.build()))
.startTimeout(123)
.stopTimeout(123)
.ulimits(List.of(UlimitProperty.builder()
.hardLimit(123)
.name("name")
.softLimit(123)
.build()))
.user("user")
.build()))
.enableExecuteCommand(false)
.executionRoleArn("executionRoleArn")
.ipcMode("ipcMode")
.pidMode("pidMode")
.taskRoleArn("taskRoleArn")
.volumes(List.of(VolumesProperty.builder()
.efsVolumeConfiguration(EfsVolumeConfigurationProperty.builder()
.fileSystemId("fileSystemId")
// the properties below are optional
.authorizationConfig(AuthorizationConfigProperty.builder()
.accessPointId("accessPointId")
.iam("iam")
.build())
.rootDirectory("rootDirectory")
.transitEncryption("transitEncryption")
.transitEncryptionPort(123)
.build())
.host(VolumesHostProperty.builder()
.sourcePath("sourcePath")
.build())
.name("name")
.s3FilesVolumeConfiguration(S3FilesVolumeConfigurationProperty.builder()
.fileSystemArn("fileSystemArn")
// the properties below are optional
.accessPointArn("accessPointArn")
.rootDirectory("rootDirectory")
.transitEncryptionPort(123)
.build())
.build()))
.build()))
.build())
.eksProperties(EksPropertiesProperty.builder()
.podProperties(PodPropertiesProperty.builder()
.containers(List.of(EksContainerProperty.builder()
.image("image")
// the properties below are optional
.args(List.of("args"))
.command(List.of("command"))
.env(List.of(EksContainerEnvironmentVariableProperty.builder()
.name("name")
// the properties below are optional
.value("value")
.build()))
.imagePullPolicy("imagePullPolicy")
.name("name")
.resources(ResourcesProperty.builder()
.limits(limits)
.requests(requests)
.build())
.securityContext(SecurityContextProperty.builder()
.allowPrivilegeEscalation(false)
.capabilities(EksContainerLinuxCapabilitiesProperty.builder()
.add(List.of("add"))
.drop(List.of("drop"))
.build())
.privileged(false)
.readOnlyRootFilesystem(false)
.runAsGroup(123)
.runAsNonRoot(false)
.runAsUser(123)
.seccompProfile(EksSeccompProfileProperty.builder()
.type("type")
// the properties below are optional
.localhostProfile("localhostProfile")
.build())
.build())
.volumeMounts(List.of(EksContainerVolumeMountProperty.builder()
.mountPath("mountPath")
.name("name")
.readOnly(false)
.subPath("subPath")
.build()))
.build()))
.dnsPolicy("dnsPolicy")
.hostNetwork(false)
.imagePullSecrets(List.of(ImagePullSecretProperty.builder()
.name("name")
.build()))
.initContainers(List.of(EksContainerProperty.builder()
.image("image")
// the properties below are optional
.args(List.of("args"))
.command(List.of("command"))
.env(List.of(EksContainerEnvironmentVariableProperty.builder()
.name("name")
// the properties below are optional
.value("value")
.build()))
.imagePullPolicy("imagePullPolicy")
.name("name")
.resources(ResourcesProperty.builder()
.limits(limits)
.requests(requests)
.build())
.securityContext(SecurityContextProperty.builder()
.allowPrivilegeEscalation(false)
.capabilities(EksContainerLinuxCapabilitiesProperty.builder()
.add(List.of("add"))
.drop(List.of("drop"))
.build())
.privileged(false)
.readOnlyRootFilesystem(false)
.runAsGroup(123)
.runAsNonRoot(false)
.runAsUser(123)
.seccompProfile(EksSeccompProfileProperty.builder()
.type("type")
// the properties below are optional
.localhostProfile("localhostProfile")
.build())
.build())
.volumeMounts(List.of(EksContainerVolumeMountProperty.builder()
.mountPath("mountPath")
.name("name")
.readOnly(false)
.subPath("subPath")
.build()))
.build()))
.metadata(MetadataProperty.builder()
.labels(labels)
.build())
.securityContext(EksPodSecurityContextProperty.builder()
.fsGroup(123)
.runAsGroup(123)
.runAsNonRoot(false)
.runAsUser(123)
.seccompProfile(EksSeccompProfileProperty.builder()
.type("type")
// the properties below are optional
.localhostProfile("localhostProfile")
.build())
.build())
.serviceAccountName("serviceAccountName")
.shareProcessNamespace(false)
.volumes(List.of(EksVolumeProperty.builder()
.name("name")
// the properties below are optional
.emptyDir(EmptyDirProperty.builder()
.medium("medium")
.sizeLimit("sizeLimit")
.build())
.hostPath(HostPathProperty.builder()
.path("path")
.build())
.persistentVolumeClaim(EksPersistentVolumeClaimProperty.builder()
.claimName("claimName")
// the properties below are optional
.readOnly(false)
.build())
.secret(EksSecretProperty.builder()
.secretName("secretName")
// the properties below are optional
.optional(false)
.build())
.build()))
.build())
.build())
.instanceTypes(List.of("instanceTypes"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;
var labels;
var limits;
var options;
var requests;
var nodeRangePropertyProperty = new NodeRangePropertyProperty {
TargetNodes = "targetNodes",
// the properties below are optional
ConsumableResourceProperties = new ConsumableResourcePropertiesProperty {
ConsumableResourceList = new [] { new ConsumableResourceRequirementProperty {
ConsumableResource = "consumableResource",
Quantity = 123
} }
},
Container = new ContainerPropertiesProperty {
Image = "image",
// the properties below are optional
Command = new [] { "command" },
EnableExecuteCommand = false,
Environment = new [] { new EnvironmentProperty {
Name = "name",
Value = "value"
} },
EphemeralStorage = new EphemeralStorageProperty {
SizeInGiB = 123
},
ExecutionRoleArn = "executionRoleArn",
FargatePlatformConfiguration = new FargatePlatformConfigurationProperty {
PlatformVersion = "platformVersion"
},
InstanceType = "instanceType",
JobRoleArn = "jobRoleArn",
LinuxParameters = new LinuxParametersProperty {
Devices = new [] { new DeviceProperty {
ContainerPath = "containerPath",
HostPath = "hostPath",
Permissions = new [] { "permissions" }
} },
InitProcessEnabled = false,
MaxSwap = 123,
SharedMemorySize = 123,
Swappiness = 123,
Tmpfs = new [] { new TmpfsProperty {
ContainerPath = "containerPath",
Size = 123,
// the properties below are optional
MountOptions = new [] { "mountOptions" }
} }
},
LogConfiguration = new LogConfigurationProperty {
LogDriver = "logDriver",
// the properties below are optional
Options = options,
SecretOptions = new [] { new SecretProperty {
Name = "name",
ValueFrom = "valueFrom"
} }
},
Memory = 123,
MountPoints = new [] { new MountPointsProperty {
ContainerPath = "containerPath",
ReadOnly = false,
SourceVolume = "sourceVolume"
} },
NetworkConfiguration = new NetworkConfigurationProperty {
AssignPublicIp = "assignPublicIp"
},
Privileged = false,
ReadonlyRootFilesystem = false,
RepositoryCredentials = new RepositoryCredentialsProperty {
CredentialsParameter = "credentialsParameter"
},
ResourceRequirements = new [] { new ResourceRequirementProperty {
Type = "type",
Value = "value"
} },
RuntimePlatform = new RuntimePlatformProperty {
CpuArchitecture = "cpuArchitecture",
OperatingSystemFamily = "operatingSystemFamily"
},
Secrets = new [] { new SecretProperty {
Name = "name",
ValueFrom = "valueFrom"
} },
Ulimits = new [] { new UlimitProperty {
HardLimit = 123,
Name = "name",
SoftLimit = 123
} },
User = "user",
Vcpus = 123,
Volumes = new [] { new VolumesProperty {
EfsVolumeConfiguration = new EfsVolumeConfigurationProperty {
FileSystemId = "fileSystemId",
// the properties below are optional
AuthorizationConfig = new AuthorizationConfigProperty {
AccessPointId = "accessPointId",
Iam = "iam"
},
RootDirectory = "rootDirectory",
TransitEncryption = "transitEncryption",
TransitEncryptionPort = 123
},
Host = new VolumesHostProperty {
SourcePath = "sourcePath"
},
Name = "name",
S3FilesVolumeConfiguration = new S3FilesVolumeConfigurationProperty {
FileSystemArn = "fileSystemArn",
// the properties below are optional
AccessPointArn = "accessPointArn",
RootDirectory = "rootDirectory",
TransitEncryptionPort = 123
}
} }
},
EcsProperties = new MultiNodeEcsPropertiesProperty {
TaskProperties = new [] { new MultiNodeEcsTaskPropertiesProperty {
Containers = new [] { new TaskContainerPropertiesProperty {
Image = "image",
// the properties below are optional
Command = new [] { "command" },
DependsOn = new [] { new TaskContainerDependencyProperty {
Condition = "condition",
ContainerName = "containerName"
} },
Environment = new [] { new EnvironmentProperty {
Name = "name",
Value = "value"
} },
Essential = false,
FirelensConfiguration = new FirelensConfigurationProperty {
Type = "type",
// the properties below are optional
Options = new Dictionary<string, string> {
{ "optionsKey", "options" }
}
},
LinuxParameters = new LinuxParametersProperty {
Devices = new [] { new DeviceProperty {
ContainerPath = "containerPath",
HostPath = "hostPath",
Permissions = new [] { "permissions" }
} },
InitProcessEnabled = false,
MaxSwap = 123,
SharedMemorySize = 123,
Swappiness = 123,
Tmpfs = new [] { new TmpfsProperty {
ContainerPath = "containerPath",
Size = 123,
// the properties below are optional
MountOptions = new [] { "mountOptions" }
} }
},
LogConfiguration = new LogConfigurationProperty {
LogDriver = "logDriver",
// the properties below are optional
Options = options,
SecretOptions = new [] { new SecretProperty {
Name = "name",
ValueFrom = "valueFrom"
} }
},
MountPoints = new [] { new MountPointProperty {
ContainerPath = "containerPath",
ReadOnly = false,
SourceVolume = "sourceVolume"
} },
Name = "name",
Privileged = false,
ReadonlyRootFilesystem = false,
RepositoryCredentials = new RepositoryCredentialsProperty {
CredentialsParameter = "credentialsParameter"
},
ResourceRequirements = new [] { new ResourceRequirementProperty {
Type = "type",
Value = "value"
} },
Secrets = new [] { new SecretProperty {
Name = "name",
ValueFrom = "valueFrom"
} },
StartTimeout = 123,
StopTimeout = 123,
Ulimits = new [] { new UlimitProperty {
HardLimit = 123,
Name = "name",
SoftLimit = 123
} },
User = "user"
} },
EnableExecuteCommand = false,
ExecutionRoleArn = "executionRoleArn",
IpcMode = "ipcMode",
PidMode = "pidMode",
TaskRoleArn = "taskRoleArn",
Volumes = new [] { new VolumesProperty {
EfsVolumeConfiguration = new EfsVolumeConfigurationProperty {
FileSystemId = "fileSystemId",
// the properties below are optional
AuthorizationConfig = new AuthorizationConfigProperty {
AccessPointId = "accessPointId",
Iam = "iam"
},
RootDirectory = "rootDirectory",
TransitEncryption = "transitEncryption",
TransitEncryptionPort = 123
},
Host = new VolumesHostProperty {
SourcePath = "sourcePath"
},
Name = "name",
S3FilesVolumeConfiguration = new S3FilesVolumeConfigurationProperty {
FileSystemArn = "fileSystemArn",
// the properties below are optional
AccessPointArn = "accessPointArn",
RootDirectory = "rootDirectory",
TransitEncryptionPort = 123
}
} }
} }
},
EksProperties = new EksPropertiesProperty {
PodProperties = new PodPropertiesProperty {
Containers = new [] { new EksContainerProperty {
Image = "image",
// the properties below are optional
Args = new [] { "args" },
Command = new [] { "command" },
Env = new [] { new EksContainerEnvironmentVariableProperty {
Name = "name",
// the properties below are optional
Value = "value"
} },
ImagePullPolicy = "imagePullPolicy",
Name = "name",
Resources = new ResourcesProperty {
Limits = limits,
Requests = requests
},
SecurityContext = new SecurityContextProperty {
AllowPrivilegeEscalation = false,
Capabilities = new EksContainerLinuxCapabilitiesProperty {
Add = new [] { "add" },
Drop = new [] { "drop" }
},
Privileged = false,
ReadOnlyRootFilesystem = false,
RunAsGroup = 123,
RunAsNonRoot = false,
RunAsUser = 123,
SeccompProfile = new EksSeccompProfileProperty {
Type = "type",
// the properties below are optional
LocalhostProfile = "localhostProfile"
}
},
VolumeMounts = new [] { new EksContainerVolumeMountProperty {
MountPath = "mountPath",
Name = "name",
ReadOnly = false,
SubPath = "subPath"
} }
} },
DnsPolicy = "dnsPolicy",
HostNetwork = false,
ImagePullSecrets = new [] { new ImagePullSecretProperty {
Name = "name"
} },
InitContainers = new [] { new EksContainerProperty {
Image = "image",
// the properties below are optional
Args = new [] { "args" },
Command = new [] { "command" },
Env = new [] { new EksContainerEnvironmentVariableProperty {
Name = "name",
// the properties below are optional
Value = "value"
} },
ImagePullPolicy = "imagePullPolicy",
Name = "name",
Resources = new ResourcesProperty {
Limits = limits,
Requests = requests
},
SecurityContext = new SecurityContextProperty {
AllowPrivilegeEscalation = false,
Capabilities = new EksContainerLinuxCapabilitiesProperty {
Add = new [] { "add" },
Drop = new [] { "drop" }
},
Privileged = false,
ReadOnlyRootFilesystem = false,
RunAsGroup = 123,
RunAsNonRoot = false,
RunAsUser = 123,
SeccompProfile = new EksSeccompProfileProperty {
Type = "type",
// the properties below are optional
LocalhostProfile = "localhostProfile"
}
},
VolumeMounts = new [] { new EksContainerVolumeMountProperty {
MountPath = "mountPath",
Name = "name",
ReadOnly = false,
SubPath = "subPath"
} }
} },
Metadata = new MetadataProperty {
Labels = labels
},
SecurityContext = new EksPodSecurityContextProperty {
FsGroup = 123,
RunAsGroup = 123,
RunAsNonRoot = false,
RunAsUser = 123,
SeccompProfile = new EksSeccompProfileProperty {
Type = "type",
// the properties below are optional
LocalhostProfile = "localhostProfile"
}
},
ServiceAccountName = "serviceAccountName",
ShareProcessNamespace = false,
Volumes = new [] { new EksVolumeProperty {
Name = "name",
// the properties below are optional
EmptyDir = new EmptyDirProperty {
Medium = "medium",
SizeLimit = "sizeLimit"
},
HostPath = new HostPathProperty {
Path = "path"
},
PersistentVolumeClaim = new EksPersistentVolumeClaimProperty {
ClaimName = "claimName",
// the properties below are optional
ReadOnly = false
},
Secret = new EksSecretProperty {
SecretName = "secretName",
// the properties below are optional
Optional = false
}
} }
}
},
InstanceTypes = new [] { "instanceTypes" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var labels interface{}
var limits interface{}
var options interface{}
var requests interface{}
nodeRangePropertyProperty := &NodeRangePropertyProperty{
TargetNodes: jsii.String("targetNodes"),
// the properties below are optional
ConsumableResourceProperties: &ConsumableResourcePropertiesProperty{
ConsumableResourceList: []interface{}{
&ConsumableResourceRequirementProperty{
ConsumableResource: jsii.String("consumableResource"),
Quantity: jsii.Number(123),
},
},
},
Container: &ContainerPropertiesProperty{
Image: jsii.String("image"),
// the properties below are optional
Command: []*string{
jsii.String("command"),
},
EnableExecuteCommand: jsii.Boolean(false),
Environment: []interface{}{
&EnvironmentProperty{
Name: jsii.String("name"),
Value: jsii.String("value"),
},
},
EphemeralStorage: &EphemeralStorageProperty{
SizeInGiB: jsii.Number(123),
},
ExecutionRoleArn: jsii.String("executionRoleArn"),
FargatePlatformConfiguration: &FargatePlatformConfigurationProperty{
PlatformVersion: jsii.String("platformVersion"),
},
InstanceType: jsii.String("instanceType"),
JobRoleArn: jsii.String("jobRoleArn"),
LinuxParameters: &LinuxParametersProperty{
Devices: []interface{}{
&DeviceProperty{
ContainerPath: jsii.String("containerPath"),
HostPath: jsii.String("hostPath"),
Permissions: []*string{
jsii.String("permissions"),
},
},
},
InitProcessEnabled: jsii.Boolean(false),
MaxSwap: jsii.Number(123),
SharedMemorySize: jsii.Number(123),
Swappiness: jsii.Number(123),
Tmpfs: []interface{}{
&TmpfsProperty{
ContainerPath: jsii.String("containerPath"),
Size: jsii.Number(123),
// the properties below are optional
MountOptions: []*string{
jsii.String("mountOptions"),
},
},
},
},
LogConfiguration: &LogConfigurationProperty{
LogDriver: jsii.String("logDriver"),
// the properties below are optional
Options: options,
SecretOptions: []interface{}{
&SecretProperty{
Name: jsii.String("name"),
ValueFrom: jsii.String("valueFrom"),
},
},
},
Memory: jsii.Number(123),
MountPoints: []interface{}{
&MountPointsProperty{
ContainerPath: jsii.String("containerPath"),
ReadOnly: jsii.Boolean(false),
SourceVolume: jsii.String("sourceVolume"),
},
},
NetworkConfiguration: &NetworkConfigurationProperty{
AssignPublicIp: jsii.String("assignPublicIp"),
},
Privileged: jsii.Boolean(false),
ReadonlyRootFilesystem: jsii.Boolean(false),
RepositoryCredentials: &RepositoryCredentialsProperty{
CredentialsParameter: jsii.String("credentialsParameter"),
},
ResourceRequirements: []interface{}{
&ResourceRequirementProperty{
Type: jsii.String("type"),
Value: jsii.String("value"),
},
},
RuntimePlatform: &RuntimePlatformProperty{
CpuArchitecture: jsii.String("cpuArchitecture"),
OperatingSystemFamily: jsii.String("operatingSystemFamily"),
},
Secrets: []interface{}{
&SecretProperty{
Name: jsii.String("name"),
ValueFrom: jsii.String("valueFrom"),
},
},
Ulimits: []interface{}{
&UlimitProperty{
HardLimit: jsii.Number(123),
Name: jsii.String("name"),
SoftLimit: jsii.Number(123),
},
},
User: jsii.String("user"),
Vcpus: jsii.Number(123),
Volumes: []interface{}{
&VolumesProperty{
EfsVolumeConfiguration: &EfsVolumeConfigurationProperty{
FileSystemId: jsii.String("fileSystemId"),
// the properties below are optional
AuthorizationConfig: &AuthorizationConfigProperty{
AccessPointId: jsii.String("accessPointId"),
Iam: jsii.String("iam"),
},
RootDirectory: jsii.String("rootDirectory"),
TransitEncryption: jsii.String("transitEncryption"),
TransitEncryptionPort: jsii.Number(123),
},
Host: &VolumesHostProperty{
SourcePath: jsii.String("sourcePath"),
},
Name: jsii.String("name"),
S3FilesVolumeConfiguration: &S3FilesVolumeConfigurationProperty{
FileSystemArn: jsii.String("fileSystemArn"),
// the properties below are optional
AccessPointArn: jsii.String("accessPointArn"),
RootDirectory: jsii.String("rootDirectory"),
TransitEncryptionPort: jsii.Number(123),
},
},
},
},
EcsProperties: &MultiNodeEcsPropertiesProperty{
TaskProperties: []interface{}{
&MultiNodeEcsTaskPropertiesProperty{
Containers: []interface{}{
&TaskContainerPropertiesProperty{
Image: jsii.String("image"),
// the properties below are optional
Command: []*string{
jsii.String("command"),
},
DependsOn: []interface{}{
&TaskContainerDependencyProperty{
Condition: jsii.String("condition"),
ContainerName: jsii.String("containerName"),
},
},
Environment: []interface{}{
&EnvironmentProperty{
Name: jsii.String("name"),
Value: jsii.String("value"),
},
},
Essential: jsii.Boolean(false),
FirelensConfiguration: &FirelensConfigurationProperty{
Type: jsii.String("type"),
// the properties below are optional
Options: map[string]*string{
"optionsKey": jsii.String("options"),
},
},
LinuxParameters: &LinuxParametersProperty{
Devices: []interface{}{
&DeviceProperty{
ContainerPath: jsii.String("containerPath"),
HostPath: jsii.String("hostPath"),
Permissions: []*string{
jsii.String("permissions"),
},
},
},
InitProcessEnabled: jsii.Boolean(false),
MaxSwap: jsii.Number(123),
SharedMemorySize: jsii.Number(123),
Swappiness: jsii.Number(123),
Tmpfs: []interface{}{
&TmpfsProperty{
ContainerPath: jsii.String("containerPath"),
Size: jsii.Number(123),
// the properties below are optional
MountOptions: []*string{
jsii.String("mountOptions"),
},
},
},
},
LogConfiguration: &LogConfigurationProperty{
LogDriver: jsii.String("logDriver"),
// the properties below are optional
Options: options,
SecretOptions: []interface{}{
&SecretProperty{
Name: jsii.String("name"),
ValueFrom: jsii.String("valueFrom"),
},
},
},
MountPoints: []interface{}{
&MountPointProperty{
ContainerPath: jsii.String("containerPath"),
ReadOnly: jsii.Boolean(false),
SourceVolume: jsii.String("sourceVolume"),
},
},
Name: jsii.String("name"),
Privileged: jsii.Boolean(false),
ReadonlyRootFilesystem: jsii.Boolean(false),
RepositoryCredentials: &RepositoryCredentialsProperty{
CredentialsParameter: jsii.String("credentialsParameter"),
},
ResourceRequirements: []interface{}{
&ResourceRequirementProperty{
Type: jsii.String("type"),
Value: jsii.String("value"),
},
},
Secrets: []interface{}{
&SecretProperty{
Name: jsii.String("name"),
ValueFrom: jsii.String("valueFrom"),
},
},
StartTimeout: jsii.Number(123),
StopTimeout: jsii.Number(123),
Ulimits: []interface{}{
&UlimitProperty{
HardLimit: jsii.Number(123),
Name: jsii.String("name"),
SoftLimit: jsii.Number(123),
},
},
User: jsii.String("user"),
},
},
EnableExecuteCommand: jsii.Boolean(false),
ExecutionRoleArn: jsii.String("executionRoleArn"),
IpcMode: jsii.String("ipcMode"),
PidMode: jsii.String("pidMode"),
TaskRoleArn: jsii.String("taskRoleArn"),
Volumes: []interface{}{
&VolumesProperty{
EfsVolumeConfiguration: &EfsVolumeConfigurationProperty{
FileSystemId: jsii.String("fileSystemId"),
// the properties below are optional
AuthorizationConfig: &AuthorizationConfigProperty{
AccessPointId: jsii.String("accessPointId"),
Iam: jsii.String("iam"),
},
RootDirectory: jsii.String("rootDirectory"),
TransitEncryption: jsii.String("transitEncryption"),
TransitEncryptionPort: jsii.Number(123),
},
Host: &VolumesHostProperty{
SourcePath: jsii.String("sourcePath"),
},
Name: jsii.String("name"),
S3FilesVolumeConfiguration: &S3FilesVolumeConfigurationProperty{
FileSystemArn: jsii.String("fileSystemArn"),
// the properties below are optional
AccessPointArn: jsii.String("accessPointArn"),
RootDirectory: jsii.String("rootDirectory"),
TransitEncryptionPort: jsii.Number(123),
},
},
},
},
},
},
EksProperties: &EksPropertiesProperty{
PodProperties: &PodPropertiesProperty{
Containers: []interface{}{
&EksContainerProperty{
Image: jsii.String("image"),
// the properties below are optional
Args: []*string{
jsii.String("args"),
},
Command: []*string{
jsii.String("command"),
},
Env: []interface{}{
&EksContainerEnvironmentVariableProperty{
Name: jsii.String("name"),
// the properties below are optional
Value: jsii.String("value"),
},
},
ImagePullPolicy: jsii.String("imagePullPolicy"),
Name: jsii.String("name"),
Resources: &ResourcesProperty{
Limits: limits,
Requests: requests,
},
SecurityContext: &SecurityContextProperty{
AllowPrivilegeEscalation: jsii.Boolean(false),
Capabilities: &EksContainerLinuxCapabilitiesProperty{
Add: []*string{
jsii.String("add"),
},
Drop: []*string{
jsii.String("drop"),
},
},
Privileged: jsii.Boolean(false),
ReadOnlyRootFilesystem: jsii.Boolean(false),
RunAsGroup: jsii.Number(123),
RunAsNonRoot: jsii.Boolean(false),
RunAsUser: jsii.Number(123),
SeccompProfile: &EksSeccompProfileProperty{
Type: jsii.String("type"),
// the properties below are optional
LocalhostProfile: jsii.String("localhostProfile"),
},
},
VolumeMounts: []interface{}{
&EksContainerVolumeMountProperty{
MountPath: jsii.String("mountPath"),
Name: jsii.String("name"),
ReadOnly: jsii.Boolean(false),
SubPath: jsii.String("subPath"),
},
},
},
},
DnsPolicy: jsii.String("dnsPolicy"),
HostNetwork: jsii.Boolean(false),
ImagePullSecrets: []interface{}{
&ImagePullSecretProperty{
Name: jsii.String("name"),
},
},
InitContainers: []interface{}{
&EksContainerProperty{
Image: jsii.String("image"),
// the properties below are optional
Args: []*string{
jsii.String("args"),
},
Command: []*string{
jsii.String("command"),
},
Env: []interface{}{
&EksContainerEnvironmentVariableProperty{
Name: jsii.String("name"),
// the properties below are optional
Value: jsii.String("value"),
},
},
ImagePullPolicy: jsii.String("imagePullPolicy"),
Name: jsii.String("name"),
Resources: &ResourcesProperty{
Limits: limits,
Requests: requests,
},
SecurityContext: &SecurityContextProperty{
AllowPrivilegeEscalation: jsii.Boolean(false),
Capabilities: &EksContainerLinuxCapabilitiesProperty{
Add: []*string{
jsii.String("add"),
},
Drop: []*string{
jsii.String("drop"),
},
},
Privileged: jsii.Boolean(false),
ReadOnlyRootFilesystem: jsii.Boolean(false),
RunAsGroup: jsii.Number(123),
RunAsNonRoot: jsii.Boolean(false),
RunAsUser: jsii.Number(123),
SeccompProfile: &EksSeccompProfileProperty{
Type: jsii.String("type"),
// the properties below are optional
LocalhostProfile: jsii.String("localhostProfile"),
},
},
VolumeMounts: []interface{}{
&EksContainerVolumeMountProperty{
MountPath: jsii.String("mountPath"),
Name: jsii.String("name"),
ReadOnly: jsii.Boolean(false),
SubPath: jsii.String("subPath"),
},
},
},
},
Metadata: &MetadataProperty{
Labels: labels,
},
SecurityContext: &EksPodSecurityContextProperty{
FsGroup: jsii.Number(123),
RunAsGroup: jsii.Number(123),
RunAsNonRoot: jsii.Boolean(false),
RunAsUser: jsii.Number(123),
SeccompProfile: &EksSeccompProfileProperty{
Type: jsii.String("type"),
// the properties below are optional
LocalhostProfile: jsii.String("localhostProfile"),
},
},
ServiceAccountName: jsii.String("serviceAccountName"),
ShareProcessNamespace: jsii.Boolean(false),
Volumes: []interface{}{
&EksVolumeProperty{
Name: jsii.String("name"),
// the properties below are optional
EmptyDir: &EmptyDirProperty{
Medium: jsii.String("medium"),
SizeLimit: jsii.String("sizeLimit"),
},
HostPath: &HostPathProperty{
Path: jsii.String("path"),
},
PersistentVolumeClaim: &EksPersistentVolumeClaimProperty{
ClaimName: jsii.String("claimName"),
// the properties below are optional
ReadOnly: jsii.Boolean(false),
},
Secret: &EksSecretProperty{
SecretName: jsii.String("secretName"),
// the properties below are optional
Optional: jsii.Boolean(false),
},
},
},
},
},
InstanceTypes: []*string{
jsii.String("instanceTypes"),
},
}
Properties
consumableResourcePropertiesoptionalIResolvable | CfnJobDefinition.ConsumableResourcePropertiesPropertyconsumable_resource_propertiesoptionaltyping.Union[IResolvable, ConsumableResourcePropertiesProperty]consumableResourcePropertiesoptionalIResolvableConsumableResourcePropertiesoptionalIResolvableConsumableResourcePropertiesoptionalinterface{}#Contains a list of consumable resources required by a job.
containeroptionalIResolvable | CfnJobDefinition.ContainerPropertiesPropertycontaineroptionaltyping.Union[IResolvable, ContainerPropertiesProperty]containeroptionalIResolvableContaineroptionalIResolvableContaineroptionalinterface{}#The container details for the node range.
ecsPropertiesoptionalIResolvable | CfnJobDefinition.MultiNodeEcsPropertiesPropertyecs_propertiesoptionaltyping.Union[IResolvable, MultiNodeEcsPropertiesProperty]ecsPropertiesoptionalIResolvableEcsPropertiesoptionalIResolvableEcsPropertiesoptionalinterface{}#This is an object that represents the properties of the node range for a multi-node parallel job.
eksPropertiesoptionalIResolvable | CfnJobDefinition.EksPropertiesPropertyeks_propertiesoptionaltyping.Union[IResolvable, EksPropertiesProperty]eksPropertiesoptionalIResolvableEksPropertiesoptionalIResolvableEksPropertiesoptionalinterface{}#This is an object that represents the properties of the node range for a multi-node parallel job.
instanceTypesoptionalstring[]instance_typesoptionaltyping.List[str]instanceTypesoptionalList<String>InstanceTypesoptionalstring[]InstanceTypesoptional*[]*string#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.
The range of nodes, using node index values.
notes
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.