aws-sdk-batch 1.10.1 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-batch.rb +1 -1
- data/lib/aws-sdk-batch/client.rb +207 -34
- data/lib/aws-sdk-batch/client_api.rb +62 -3
- data/lib/aws-sdk-batch/types.rb +508 -37
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9835f01254684e8ca57b14a3b9e502f375c0b3b5
|
4
|
+
data.tar.gz: 840b5e03c21192bf7179d8ce7128fd6324b6a377
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 688d7cb9d9797ea09cbdaf92a3f8ed459f9ee2ec54b939c70e5598025ea6954efc16883cbe0a7c95f9834755438ed65baf85a5651d99c75fdf1196e4453391aa
|
7
|
+
data.tar.gz: f9fd7e8807aecfd66bce175739977742125d0d3987e046ec7f31b4945ec8496440c877a92eeebed386c6350ca8b780ce6fcc9132dfc84be42cfdc3a98a0346f0
|
data/lib/aws-sdk-batch.rb
CHANGED
data/lib/aws-sdk-batch/client.rb
CHANGED
@@ -249,13 +249,17 @@ module Aws::Batch
|
|
249
249
|
# `UNMANAGED` compute environments.
|
250
250
|
#
|
251
251
|
# In a managed compute environment, AWS Batch manages the capacity and
|
252
|
-
# instance types of the compute resources within the environment
|
253
|
-
# on the compute resource specification that you define or
|
254
|
-
# template][1] that you specify when you create the compute
|
255
|
-
# You can choose to use Amazon EC2 On-Demand Instances or
|
256
|
-
# in your managed compute environment. You can optionally
|
257
|
-
# price so that Spot Instances only launch when the Spot
|
258
|
-
# is below a specified percentage of the On-Demand price.
|
252
|
+
# instance types of the compute resources within the environment. This
|
253
|
+
# is based on the compute resource specification that you define or the
|
254
|
+
# [launch template][1] that you specify when you create the compute
|
255
|
+
# environment. You can choose to use Amazon EC2 On-Demand Instances or
|
256
|
+
# Spot Instances in your managed compute environment. You can optionally
|
257
|
+
# set a maximum price so that Spot Instances only launch when the Spot
|
258
|
+
# Instance price is below a specified percentage of the On-Demand price.
|
259
|
+
#
|
260
|
+
# <note markdown="1"> Multi-node parallel jobs are not supported on Spot Instances.
|
261
|
+
#
|
262
|
+
# </note>
|
259
263
|
#
|
260
264
|
# In an unmanaged compute environment, you can manage your own compute
|
261
265
|
# resources. This provides more compute resource configuration options,
|
@@ -265,7 +269,7 @@ module Aws::Batch
|
|
265
269
|
# Container Service Developer Guide*. After you have created your
|
266
270
|
# unmanaged compute environment, you can use the
|
267
271
|
# DescribeComputeEnvironments operation to find the Amazon ECS cluster
|
268
|
-
# that is associated with it
|
272
|
+
# that is associated with it. Then, manually launch your container
|
269
273
|
# instances into that Amazon ECS cluster. For more information, see
|
270
274
|
# [Launching an Amazon ECS Container Instance][3] in the *Amazon Elastic
|
271
275
|
# Container Service Developer Guide*.
|
@@ -444,6 +448,7 @@ module Aws::Batch
|
|
444
448
|
# tags: {
|
445
449
|
# "String" => "String",
|
446
450
|
# },
|
451
|
+
# placement_group: "String",
|
447
452
|
# bid_percentage: 1,
|
448
453
|
# spot_iam_fleet_role: "String",
|
449
454
|
# launch_template: {
|
@@ -489,10 +494,10 @@ module Aws::Batch
|
|
489
494
|
# @option params [required, Integer] :priority
|
490
495
|
# The priority of the job queue. Job queues with a higher priority (or a
|
491
496
|
# higher integer value for the `priority` parameter) are evaluated first
|
492
|
-
# when associated with same compute environment. Priority is
|
493
|
-
# in descending order, for example, a job queue with a
|
494
|
-
# `10` is given scheduling preference over a job queue
|
495
|
-
# value of `1`.
|
497
|
+
# when associated with the same compute environment. Priority is
|
498
|
+
# determined in descending order, for example, a job queue with a
|
499
|
+
# priority value of `10` is given scheduling preference over a job queue
|
500
|
+
# with a priority value of `1`.
|
496
501
|
#
|
497
502
|
# @option params [required, Array<Types::ComputeEnvironmentOrder>] :compute_environment_order
|
498
503
|
# The set of compute environments mapped to a job queue and their order
|
@@ -825,6 +830,7 @@ module Aws::Batch
|
|
825
830
|
# resp.compute_environments[0].compute_resources.instance_role #=> String
|
826
831
|
# resp.compute_environments[0].compute_resources.tags #=> Hash
|
827
832
|
# resp.compute_environments[0].compute_resources.tags["String"] #=> String
|
833
|
+
# resp.compute_environments[0].compute_resources.placement_group #=> String
|
828
834
|
# resp.compute_environments[0].compute_resources.bid_percentage #=> Integer
|
829
835
|
# resp.compute_environments[0].compute_resources.spot_iam_fleet_role #=> String
|
830
836
|
# resp.compute_environments[0].compute_resources.launch_template.launch_template_id #=> String
|
@@ -967,7 +973,36 @@ module Aws::Batch
|
|
967
973
|
# resp.job_definitions[0].container_properties.ulimits[0].name #=> String
|
968
974
|
# resp.job_definitions[0].container_properties.ulimits[0].soft_limit #=> Integer
|
969
975
|
# resp.job_definitions[0].container_properties.user #=> String
|
976
|
+
# resp.job_definitions[0].container_properties.instance_type #=> String
|
970
977
|
# resp.job_definitions[0].timeout.attempt_duration_seconds #=> Integer
|
978
|
+
# resp.job_definitions[0].node_properties.num_nodes #=> Integer
|
979
|
+
# resp.job_definitions[0].node_properties.main_node #=> Integer
|
980
|
+
# resp.job_definitions[0].node_properties.node_range_properties #=> Array
|
981
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].target_nodes #=> String
|
982
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.image #=> String
|
983
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.vcpus #=> Integer
|
984
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.memory #=> Integer
|
985
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.command #=> Array
|
986
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.command[0] #=> String
|
987
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.job_role_arn #=> String
|
988
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.volumes #=> Array
|
989
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.volumes[0].host.source_path #=> String
|
990
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.volumes[0].name #=> String
|
991
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.environment #=> Array
|
992
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.environment[0].name #=> String
|
993
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.environment[0].value #=> String
|
994
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.mount_points #=> Array
|
995
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.mount_points[0].container_path #=> String
|
996
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.mount_points[0].read_only #=> Boolean
|
997
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.mount_points[0].source_volume #=> String
|
998
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.readonly_root_filesystem #=> Boolean
|
999
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.privileged #=> Boolean
|
1000
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.ulimits #=> Array
|
1001
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.ulimits[0].hard_limit #=> Integer
|
1002
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.ulimits[0].name #=> String
|
1003
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.ulimits[0].soft_limit #=> Integer
|
1004
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.user #=> String
|
1005
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.instance_type #=> String
|
971
1006
|
# resp.next_token #=> String
|
972
1007
|
#
|
973
1008
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions AWS API Documentation
|
@@ -1153,6 +1188,10 @@ module Aws::Batch
|
|
1153
1188
|
# resp.jobs[0].attempts[0].container.exit_code #=> Integer
|
1154
1189
|
# resp.jobs[0].attempts[0].container.reason #=> String
|
1155
1190
|
# resp.jobs[0].attempts[0].container.log_stream_name #=> String
|
1191
|
+
# resp.jobs[0].attempts[0].container.network_interfaces #=> Array
|
1192
|
+
# resp.jobs[0].attempts[0].container.network_interfaces[0].attachment_id #=> String
|
1193
|
+
# resp.jobs[0].attempts[0].container.network_interfaces[0].ipv6_address #=> String
|
1194
|
+
# resp.jobs[0].attempts[0].container.network_interfaces[0].private_ipv_4_address #=> String
|
1156
1195
|
# resp.jobs[0].attempts[0].started_at #=> Integer
|
1157
1196
|
# resp.jobs[0].attempts[0].stopped_at #=> Integer
|
1158
1197
|
# resp.jobs[0].attempts[0].status_reason #=> String
|
@@ -1195,6 +1234,41 @@ module Aws::Batch
|
|
1195
1234
|
# resp.jobs[0].container.container_instance_arn #=> String
|
1196
1235
|
# resp.jobs[0].container.task_arn #=> String
|
1197
1236
|
# resp.jobs[0].container.log_stream_name #=> String
|
1237
|
+
# resp.jobs[0].container.instance_type #=> String
|
1238
|
+
# resp.jobs[0].container.network_interfaces #=> Array
|
1239
|
+
# resp.jobs[0].container.network_interfaces[0].attachment_id #=> String
|
1240
|
+
# resp.jobs[0].container.network_interfaces[0].ipv6_address #=> String
|
1241
|
+
# resp.jobs[0].container.network_interfaces[0].private_ipv_4_address #=> String
|
1242
|
+
# resp.jobs[0].node_details.node_index #=> Integer
|
1243
|
+
# resp.jobs[0].node_details.is_main_node #=> Boolean
|
1244
|
+
# resp.jobs[0].node_properties.num_nodes #=> Integer
|
1245
|
+
# resp.jobs[0].node_properties.main_node #=> Integer
|
1246
|
+
# resp.jobs[0].node_properties.node_range_properties #=> Array
|
1247
|
+
# resp.jobs[0].node_properties.node_range_properties[0].target_nodes #=> String
|
1248
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.image #=> String
|
1249
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.vcpus #=> Integer
|
1250
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.memory #=> Integer
|
1251
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.command #=> Array
|
1252
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.command[0] #=> String
|
1253
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.job_role_arn #=> String
|
1254
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.volumes #=> Array
|
1255
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.volumes[0].host.source_path #=> String
|
1256
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.volumes[0].name #=> String
|
1257
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.environment #=> Array
|
1258
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.environment[0].name #=> String
|
1259
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.environment[0].value #=> String
|
1260
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.mount_points #=> Array
|
1261
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.mount_points[0].container_path #=> String
|
1262
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.mount_points[0].read_only #=> Boolean
|
1263
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.mount_points[0].source_volume #=> String
|
1264
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.readonly_root_filesystem #=> Boolean
|
1265
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.privileged #=> Boolean
|
1266
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.ulimits #=> Array
|
1267
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.ulimits[0].hard_limit #=> Integer
|
1268
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.ulimits[0].name #=> String
|
1269
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.ulimits[0].soft_limit #=> Integer
|
1270
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.user #=> String
|
1271
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.instance_type #=> String
|
1198
1272
|
# resp.jobs[0].array_properties.status_summary #=> Hash
|
1199
1273
|
# resp.jobs[0].array_properties.status_summary["String"] #=> Integer
|
1200
1274
|
# resp.jobs[0].array_properties.size #=> Integer
|
@@ -1210,10 +1284,15 @@ module Aws::Batch
|
|
1210
1284
|
req.send_request(options)
|
1211
1285
|
end
|
1212
1286
|
|
1213
|
-
# Returns a list of AWS Batch jobs.
|
1214
|
-
#
|
1215
|
-
#
|
1216
|
-
#
|
1287
|
+
# Returns a list of AWS Batch jobs.
|
1288
|
+
#
|
1289
|
+
# You must specify only one of the following:
|
1290
|
+
#
|
1291
|
+
# * a job queue ID to return a list of jobs in that job queue
|
1292
|
+
#
|
1293
|
+
# * a multi-node parallel job ID to return a list of that job's nodes
|
1294
|
+
#
|
1295
|
+
# * an array job ID to return a list of that job's children
|
1217
1296
|
#
|
1218
1297
|
# You can filter the results by job status with the `jobStatus`
|
1219
1298
|
# parameter. If you do not specify a status, only `RUNNING` jobs are
|
@@ -1221,13 +1300,16 @@ module Aws::Batch
|
|
1221
1300
|
#
|
1222
1301
|
# @option params [String] :job_queue
|
1223
1302
|
# The name or full Amazon Resource Name (ARN) of the job queue with
|
1224
|
-
# which to list jobs.
|
1225
|
-
# job ID.
|
1303
|
+
# which to list jobs.
|
1226
1304
|
#
|
1227
1305
|
# @option params [String] :array_job_id
|
1228
1306
|
# The job ID for an array job. Specifying an array job ID with this
|
1229
|
-
# parameter lists all child jobs from within the specified array.
|
1230
|
-
#
|
1307
|
+
# parameter lists all child jobs from within the specified array.
|
1308
|
+
#
|
1309
|
+
# @option params [String] :multi_node_job_id
|
1310
|
+
# The job ID for a multi-node parallel job. Specifying a multi-node
|
1311
|
+
# parallel job ID with this parameter lists all nodes that are
|
1312
|
+
# associated with the specified job.
|
1231
1313
|
#
|
1232
1314
|
# @option params [String] :job_status
|
1233
1315
|
# The job status with which to filter jobs in the specified queue. If
|
@@ -1304,6 +1386,7 @@ module Aws::Batch
|
|
1304
1386
|
# resp = client.list_jobs({
|
1305
1387
|
# job_queue: "String",
|
1306
1388
|
# array_job_id: "String",
|
1389
|
+
# multi_node_job_id: "String",
|
1307
1390
|
# job_status: "SUBMITTED", # accepts SUBMITTED, PENDING, RUNNABLE, STARTING, RUNNING, SUCCEEDED, FAILED
|
1308
1391
|
# max_results: 1,
|
1309
1392
|
# next_token: "String",
|
@@ -1323,6 +1406,9 @@ module Aws::Batch
|
|
1323
1406
|
# resp.job_summary_list[0].container.reason #=> String
|
1324
1407
|
# resp.job_summary_list[0].array_properties.size #=> Integer
|
1325
1408
|
# resp.job_summary_list[0].array_properties.index #=> Integer
|
1409
|
+
# resp.job_summary_list[0].node_properties.is_main_node #=> Boolean
|
1410
|
+
# resp.job_summary_list[0].node_properties.num_nodes #=> Integer
|
1411
|
+
# resp.job_summary_list[0].node_properties.node_index #=> Integer
|
1326
1412
|
# resp.next_token #=> String
|
1327
1413
|
#
|
1328
1414
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobs AWS API Documentation
|
@@ -1351,8 +1437,22 @@ module Aws::Batch
|
|
1351
1437
|
# parameter defaults from the job definition.
|
1352
1438
|
#
|
1353
1439
|
# @option params [Types::ContainerProperties] :container_properties
|
1354
|
-
# An object with various properties specific
|
1355
|
-
#
|
1440
|
+
# An object with various properties specific to single-node
|
1441
|
+
# container-based jobs. If the job definition's `type` parameter is
|
1442
|
+
# `container`, then you must specify either `containerProperties` or
|
1443
|
+
# `nodeProperties`.
|
1444
|
+
#
|
1445
|
+
# @option params [Types::NodeProperties] :node_properties
|
1446
|
+
# An object with various properties specific to multi-node parallel
|
1447
|
+
# jobs. If you specify node properties for a job, it becomes a
|
1448
|
+
# multi-node parallel job. For more information, see [Multi-node
|
1449
|
+
# Parallel Jobs][1] in the *AWS Batch User Guide*. If the job
|
1450
|
+
# definition's `type` parameter is `container`, then you must specify
|
1451
|
+
# either `containerProperties` or `nodeProperties`.
|
1452
|
+
#
|
1453
|
+
#
|
1454
|
+
#
|
1455
|
+
# [1]: http://docs.aws.amazon.com/batch/latest/userguide/multi-node-parallel-jobs.html
|
1356
1456
|
#
|
1357
1457
|
# @option params [Types::RetryStrategy] :retry_strategy
|
1358
1458
|
# The retry strategy to use for failed jobs that are submitted with this
|
@@ -1410,14 +1510,14 @@ module Aws::Batch
|
|
1410
1510
|
#
|
1411
1511
|
# resp = client.register_job_definition({
|
1412
1512
|
# job_definition_name: "String", # required
|
1413
|
-
# type: "container", # required, accepts container
|
1513
|
+
# type: "container", # required, accepts container, multinode
|
1414
1514
|
# parameters: {
|
1415
1515
|
# "String" => "String",
|
1416
1516
|
# },
|
1417
1517
|
# container_properties: {
|
1418
|
-
# image: "String",
|
1419
|
-
# vcpus: 1,
|
1420
|
-
# memory: 1,
|
1518
|
+
# image: "String",
|
1519
|
+
# vcpus: 1,
|
1520
|
+
# memory: 1,
|
1421
1521
|
# command: ["String"],
|
1422
1522
|
# job_role_arn: "String",
|
1423
1523
|
# volumes: [
|
@@ -1451,6 +1551,55 @@ module Aws::Batch
|
|
1451
1551
|
# },
|
1452
1552
|
# ],
|
1453
1553
|
# user: "String",
|
1554
|
+
# instance_type: "String",
|
1555
|
+
# },
|
1556
|
+
# node_properties: {
|
1557
|
+
# num_nodes: 1, # required
|
1558
|
+
# main_node: 1, # required
|
1559
|
+
# node_range_properties: [ # required
|
1560
|
+
# {
|
1561
|
+
# target_nodes: "String", # required
|
1562
|
+
# container: {
|
1563
|
+
# image: "String",
|
1564
|
+
# vcpus: 1,
|
1565
|
+
# memory: 1,
|
1566
|
+
# command: ["String"],
|
1567
|
+
# job_role_arn: "String",
|
1568
|
+
# volumes: [
|
1569
|
+
# {
|
1570
|
+
# host: {
|
1571
|
+
# source_path: "String",
|
1572
|
+
# },
|
1573
|
+
# name: "String",
|
1574
|
+
# },
|
1575
|
+
# ],
|
1576
|
+
# environment: [
|
1577
|
+
# {
|
1578
|
+
# name: "String",
|
1579
|
+
# value: "String",
|
1580
|
+
# },
|
1581
|
+
# ],
|
1582
|
+
# mount_points: [
|
1583
|
+
# {
|
1584
|
+
# container_path: "String",
|
1585
|
+
# read_only: false,
|
1586
|
+
# source_volume: "String",
|
1587
|
+
# },
|
1588
|
+
# ],
|
1589
|
+
# readonly_root_filesystem: false,
|
1590
|
+
# privileged: false,
|
1591
|
+
# ulimits: [
|
1592
|
+
# {
|
1593
|
+
# hard_limit: 1, # required
|
1594
|
+
# name: "String", # required
|
1595
|
+
# soft_limit: 1, # required
|
1596
|
+
# },
|
1597
|
+
# ],
|
1598
|
+
# user: "String",
|
1599
|
+
# instance_type: "String",
|
1600
|
+
# },
|
1601
|
+
# },
|
1602
|
+
# ],
|
1454
1603
|
# },
|
1455
1604
|
# retry_strategy: {
|
1456
1605
|
# attempts: 1,
|
@@ -1502,9 +1651,9 @@ module Aws::Batch
|
|
1502
1651
|
# 20 jobs. You can specify a `SEQUENTIAL` type dependency without
|
1503
1652
|
# specifying a job ID for array jobs so that each child array job
|
1504
1653
|
# completes sequentially, starting at index 0. You can also specify an
|
1505
|
-
# `N_TO_N` type dependency with a job ID for array jobs
|
1506
|
-
# index child of this job must wait for the corresponding index
|
1507
|
-
# each dependency to complete before it can begin.
|
1654
|
+
# `N_TO_N` type dependency with a job ID for array jobs. In that case,
|
1655
|
+
# each index child of this job must wait for the corresponding index
|
1656
|
+
# child of each dependency to complete before it can begin.
|
1508
1657
|
#
|
1509
1658
|
# @option params [required, String] :job_definition
|
1510
1659
|
# The job definition used by this job. This value can be either a
|
@@ -1528,6 +1677,10 @@ module Aws::Batch
|
|
1528
1677
|
# on a container or add new environment variables to it with an
|
1529
1678
|
# `environment` override.
|
1530
1679
|
#
|
1680
|
+
# @option params [Types::NodeOverrides] :node_overrides
|
1681
|
+
# A list of node overrides in JSON format that specify the node range to
|
1682
|
+
# target and the container overrides for that node range.
|
1683
|
+
#
|
1531
1684
|
# @option params [Types::RetryStrategy] :retry_strategy
|
1532
1685
|
# The retry strategy to use for failed jobs from this SubmitJob
|
1533
1686
|
# operation. When a retry strategy is specified here, it overrides the
|
@@ -1592,6 +1745,7 @@ module Aws::Batch
|
|
1592
1745
|
# vcpus: 1,
|
1593
1746
|
# memory: 1,
|
1594
1747
|
# command: ["String"],
|
1748
|
+
# instance_type: "String",
|
1595
1749
|
# environment: [
|
1596
1750
|
# {
|
1597
1751
|
# name: "String",
|
@@ -1599,6 +1753,25 @@ module Aws::Batch
|
|
1599
1753
|
# },
|
1600
1754
|
# ],
|
1601
1755
|
# },
|
1756
|
+
# node_overrides: {
|
1757
|
+
# node_property_overrides: [
|
1758
|
+
# {
|
1759
|
+
# target_nodes: "String", # required
|
1760
|
+
# container_overrides: {
|
1761
|
+
# vcpus: 1,
|
1762
|
+
# memory: 1,
|
1763
|
+
# command: ["String"],
|
1764
|
+
# instance_type: "String",
|
1765
|
+
# environment: [
|
1766
|
+
# {
|
1767
|
+
# name: "String",
|
1768
|
+
# value: "String",
|
1769
|
+
# },
|
1770
|
+
# ],
|
1771
|
+
# },
|
1772
|
+
# },
|
1773
|
+
# ],
|
1774
|
+
# },
|
1602
1775
|
# retry_strategy: {
|
1603
1776
|
# attempts: 1,
|
1604
1777
|
# },
|
@@ -1757,10 +1930,10 @@ module Aws::Batch
|
|
1757
1930
|
# @option params [Integer] :priority
|
1758
1931
|
# The priority of the job queue. Job queues with a higher priority (or a
|
1759
1932
|
# higher integer value for the `priority` parameter) are evaluated first
|
1760
|
-
# when associated with same compute environment. Priority is
|
1761
|
-
# in descending order, for example, a job queue with a
|
1762
|
-
# `10` is given scheduling preference over a job queue
|
1763
|
-
# value of `1`.
|
1933
|
+
# when associated with the same compute environment. Priority is
|
1934
|
+
# determined in descending order, for example, a job queue with a
|
1935
|
+
# priority value of `10` is given scheduling preference over a job queue
|
1936
|
+
# with a priority value of `1`.
|
1764
1937
|
#
|
1765
1938
|
# @option params [Array<Types::ComputeEnvironmentOrder>] :compute_environment_order
|
1766
1939
|
# Details the set of compute environments mapped to a job queue and
|
@@ -1830,7 +2003,7 @@ module Aws::Batch
|
|
1830
2003
|
params: params,
|
1831
2004
|
config: config)
|
1832
2005
|
context[:gem_name] = 'aws-sdk-batch'
|
1833
|
-
context[:gem_version] = '1.
|
2006
|
+
context[:gem_version] = '1.11.0'
|
1834
2007
|
Seahorse::Client::Request.new(handlers, context)
|
1835
2008
|
end
|
1836
2009
|
|
@@ -80,6 +80,16 @@ module Aws::Batch
|
|
80
80
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
81
81
|
MountPoint = Shapes::StructureShape.new(name: 'MountPoint')
|
82
82
|
MountPoints = Shapes::ListShape.new(name: 'MountPoints')
|
83
|
+
NetworkInterface = Shapes::StructureShape.new(name: 'NetworkInterface')
|
84
|
+
NetworkInterfaceList = Shapes::ListShape.new(name: 'NetworkInterfaceList')
|
85
|
+
NodeDetails = Shapes::StructureShape.new(name: 'NodeDetails')
|
86
|
+
NodeOverrides = Shapes::StructureShape.new(name: 'NodeOverrides')
|
87
|
+
NodeProperties = Shapes::StructureShape.new(name: 'NodeProperties')
|
88
|
+
NodePropertiesSummary = Shapes::StructureShape.new(name: 'NodePropertiesSummary')
|
89
|
+
NodePropertyOverride = Shapes::StructureShape.new(name: 'NodePropertyOverride')
|
90
|
+
NodePropertyOverrides = Shapes::ListShape.new(name: 'NodePropertyOverrides')
|
91
|
+
NodeRangeProperties = Shapes::ListShape.new(name: 'NodeRangeProperties')
|
92
|
+
NodeRangeProperty = Shapes::StructureShape.new(name: 'NodeRangeProperty')
|
83
93
|
ParametersMap = Shapes::MapShape.new(name: 'ParametersMap')
|
84
94
|
RegisterJobDefinitionRequest = Shapes::StructureShape.new(name: 'RegisterJobDefinitionRequest')
|
85
95
|
RegisterJobDefinitionResponse = Shapes::StructureShape.new(name: 'RegisterJobDefinitionResponse')
|
@@ -121,6 +131,7 @@ module Aws::Batch
|
|
121
131
|
AttemptContainerDetail.add_member(:exit_code, Shapes::ShapeRef.new(shape: Integer, location_name: "exitCode"))
|
122
132
|
AttemptContainerDetail.add_member(:reason, Shapes::ShapeRef.new(shape: String, location_name: "reason"))
|
123
133
|
AttemptContainerDetail.add_member(:log_stream_name, Shapes::ShapeRef.new(shape: String, location_name: "logStreamName"))
|
134
|
+
AttemptContainerDetail.add_member(:network_interfaces, Shapes::ShapeRef.new(shape: NetworkInterfaceList, location_name: "networkInterfaces"))
|
124
135
|
AttemptContainerDetail.struct_class = Types::AttemptContainerDetail
|
125
136
|
|
126
137
|
AttemptDetail.add_member(:container, Shapes::ShapeRef.new(shape: AttemptContainerDetail, location_name: "container"))
|
@@ -167,6 +178,7 @@ module Aws::Batch
|
|
167
178
|
ComputeResource.add_member(:ec2_key_pair, Shapes::ShapeRef.new(shape: String, location_name: "ec2KeyPair"))
|
168
179
|
ComputeResource.add_member(:instance_role, Shapes::ShapeRef.new(shape: String, required: true, location_name: "instanceRole"))
|
169
180
|
ComputeResource.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
|
181
|
+
ComputeResource.add_member(:placement_group, Shapes::ShapeRef.new(shape: String, location_name: "placementGroup"))
|
170
182
|
ComputeResource.add_member(:bid_percentage, Shapes::ShapeRef.new(shape: Integer, location_name: "bidPercentage"))
|
171
183
|
ComputeResource.add_member(:spot_iam_fleet_role, Shapes::ShapeRef.new(shape: String, location_name: "spotIamFleetRole"))
|
172
184
|
ComputeResource.add_member(:launch_template, Shapes::ShapeRef.new(shape: LaunchTemplateSpecification, location_name: "launchTemplate"))
|
@@ -194,17 +206,20 @@ module Aws::Batch
|
|
194
206
|
ContainerDetail.add_member(:container_instance_arn, Shapes::ShapeRef.new(shape: String, location_name: "containerInstanceArn"))
|
195
207
|
ContainerDetail.add_member(:task_arn, Shapes::ShapeRef.new(shape: String, location_name: "taskArn"))
|
196
208
|
ContainerDetail.add_member(:log_stream_name, Shapes::ShapeRef.new(shape: String, location_name: "logStreamName"))
|
209
|
+
ContainerDetail.add_member(:instance_type, Shapes::ShapeRef.new(shape: String, location_name: "instanceType"))
|
210
|
+
ContainerDetail.add_member(:network_interfaces, Shapes::ShapeRef.new(shape: NetworkInterfaceList, location_name: "networkInterfaces"))
|
197
211
|
ContainerDetail.struct_class = Types::ContainerDetail
|
198
212
|
|
199
213
|
ContainerOverrides.add_member(:vcpus, Shapes::ShapeRef.new(shape: Integer, location_name: "vcpus"))
|
200
214
|
ContainerOverrides.add_member(:memory, Shapes::ShapeRef.new(shape: Integer, location_name: "memory"))
|
201
215
|
ContainerOverrides.add_member(:command, Shapes::ShapeRef.new(shape: StringList, location_name: "command"))
|
216
|
+
ContainerOverrides.add_member(:instance_type, Shapes::ShapeRef.new(shape: String, location_name: "instanceType"))
|
202
217
|
ContainerOverrides.add_member(:environment, Shapes::ShapeRef.new(shape: EnvironmentVariables, location_name: "environment"))
|
203
218
|
ContainerOverrides.struct_class = Types::ContainerOverrides
|
204
219
|
|
205
|
-
ContainerProperties.add_member(:image, Shapes::ShapeRef.new(shape: String,
|
206
|
-
ContainerProperties.add_member(:vcpus, Shapes::ShapeRef.new(shape: Integer,
|
207
|
-
ContainerProperties.add_member(:memory, Shapes::ShapeRef.new(shape: Integer,
|
220
|
+
ContainerProperties.add_member(:image, Shapes::ShapeRef.new(shape: String, location_name: "image"))
|
221
|
+
ContainerProperties.add_member(:vcpus, Shapes::ShapeRef.new(shape: Integer, location_name: "vcpus"))
|
222
|
+
ContainerProperties.add_member(:memory, Shapes::ShapeRef.new(shape: Integer, location_name: "memory"))
|
208
223
|
ContainerProperties.add_member(:command, Shapes::ShapeRef.new(shape: StringList, location_name: "command"))
|
209
224
|
ContainerProperties.add_member(:job_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "jobRoleArn"))
|
210
225
|
ContainerProperties.add_member(:volumes, Shapes::ShapeRef.new(shape: Volumes, location_name: "volumes"))
|
@@ -214,6 +229,7 @@ module Aws::Batch
|
|
214
229
|
ContainerProperties.add_member(:privileged, Shapes::ShapeRef.new(shape: Boolean, location_name: "privileged"))
|
215
230
|
ContainerProperties.add_member(:ulimits, Shapes::ShapeRef.new(shape: Ulimits, location_name: "ulimits"))
|
216
231
|
ContainerProperties.add_member(:user, Shapes::ShapeRef.new(shape: String, location_name: "user"))
|
232
|
+
ContainerProperties.add_member(:instance_type, Shapes::ShapeRef.new(shape: String, location_name: "instanceType"))
|
217
233
|
ContainerProperties.struct_class = Types::ContainerProperties
|
218
234
|
|
219
235
|
ContainerSummary.add_member(:exit_code, Shapes::ShapeRef.new(shape: Integer, location_name: "exitCode"))
|
@@ -305,6 +321,7 @@ module Aws::Batch
|
|
305
321
|
JobDefinition.add_member(:retry_strategy, Shapes::ShapeRef.new(shape: RetryStrategy, location_name: "retryStrategy"))
|
306
322
|
JobDefinition.add_member(:container_properties, Shapes::ShapeRef.new(shape: ContainerProperties, location_name: "containerProperties"))
|
307
323
|
JobDefinition.add_member(:timeout, Shapes::ShapeRef.new(shape: JobTimeout, location_name: "timeout"))
|
324
|
+
JobDefinition.add_member(:node_properties, Shapes::ShapeRef.new(shape: NodeProperties, location_name: "nodeProperties"))
|
308
325
|
JobDefinition.struct_class = Types::JobDefinition
|
309
326
|
|
310
327
|
JobDefinitionList.member = Shapes::ShapeRef.new(shape: JobDefinition)
|
@@ -329,6 +346,8 @@ module Aws::Batch
|
|
329
346
|
JobDetail.add_member(:job_definition, Shapes::ShapeRef.new(shape: String, required: true, location_name: "jobDefinition"))
|
330
347
|
JobDetail.add_member(:parameters, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "parameters"))
|
331
348
|
JobDetail.add_member(:container, Shapes::ShapeRef.new(shape: ContainerDetail, location_name: "container"))
|
349
|
+
JobDetail.add_member(:node_details, Shapes::ShapeRef.new(shape: NodeDetails, location_name: "nodeDetails"))
|
350
|
+
JobDetail.add_member(:node_properties, Shapes::ShapeRef.new(shape: NodeProperties, location_name: "nodeProperties"))
|
332
351
|
JobDetail.add_member(:array_properties, Shapes::ShapeRef.new(shape: ArrayPropertiesDetail, location_name: "arrayProperties"))
|
333
352
|
JobDetail.add_member(:timeout, Shapes::ShapeRef.new(shape: JobTimeout, location_name: "timeout"))
|
334
353
|
JobDetail.struct_class = Types::JobDetail
|
@@ -355,6 +374,7 @@ module Aws::Batch
|
|
355
374
|
JobSummary.add_member(:stopped_at, Shapes::ShapeRef.new(shape: Long, location_name: "stoppedAt"))
|
356
375
|
JobSummary.add_member(:container, Shapes::ShapeRef.new(shape: ContainerSummary, location_name: "container"))
|
357
376
|
JobSummary.add_member(:array_properties, Shapes::ShapeRef.new(shape: ArrayPropertiesSummary, location_name: "arrayProperties"))
|
377
|
+
JobSummary.add_member(:node_properties, Shapes::ShapeRef.new(shape: NodePropertiesSummary, location_name: "nodeProperties"))
|
358
378
|
JobSummary.struct_class = Types::JobSummary
|
359
379
|
|
360
380
|
JobSummaryList.member = Shapes::ShapeRef.new(shape: JobSummary)
|
@@ -373,6 +393,7 @@ module Aws::Batch
|
|
373
393
|
|
374
394
|
ListJobsRequest.add_member(:job_queue, Shapes::ShapeRef.new(shape: String, location_name: "jobQueue"))
|
375
395
|
ListJobsRequest.add_member(:array_job_id, Shapes::ShapeRef.new(shape: String, location_name: "arrayJobId"))
|
396
|
+
ListJobsRequest.add_member(:multi_node_job_id, Shapes::ShapeRef.new(shape: String, location_name: "multiNodeJobId"))
|
376
397
|
ListJobsRequest.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "jobStatus"))
|
377
398
|
ListJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location_name: "maxResults"))
|
378
399
|
ListJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
@@ -389,6 +410,42 @@ module Aws::Batch
|
|
389
410
|
|
390
411
|
MountPoints.member = Shapes::ShapeRef.new(shape: MountPoint)
|
391
412
|
|
413
|
+
NetworkInterface.add_member(:attachment_id, Shapes::ShapeRef.new(shape: String, location_name: "attachmentId"))
|
414
|
+
NetworkInterface.add_member(:ipv6_address, Shapes::ShapeRef.new(shape: String, location_name: "ipv6Address"))
|
415
|
+
NetworkInterface.add_member(:private_ipv_4_address, Shapes::ShapeRef.new(shape: String, location_name: "privateIpv4Address"))
|
416
|
+
NetworkInterface.struct_class = Types::NetworkInterface
|
417
|
+
|
418
|
+
NetworkInterfaceList.member = Shapes::ShapeRef.new(shape: NetworkInterface)
|
419
|
+
|
420
|
+
NodeDetails.add_member(:node_index, Shapes::ShapeRef.new(shape: Integer, location_name: "nodeIndex"))
|
421
|
+
NodeDetails.add_member(:is_main_node, Shapes::ShapeRef.new(shape: Boolean, location_name: "isMainNode"))
|
422
|
+
NodeDetails.struct_class = Types::NodeDetails
|
423
|
+
|
424
|
+
NodeOverrides.add_member(:node_property_overrides, Shapes::ShapeRef.new(shape: NodePropertyOverrides, location_name: "nodePropertyOverrides"))
|
425
|
+
NodeOverrides.struct_class = Types::NodeOverrides
|
426
|
+
|
427
|
+
NodeProperties.add_member(:num_nodes, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "numNodes"))
|
428
|
+
NodeProperties.add_member(:main_node, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "mainNode"))
|
429
|
+
NodeProperties.add_member(:node_range_properties, Shapes::ShapeRef.new(shape: NodeRangeProperties, required: true, location_name: "nodeRangeProperties"))
|
430
|
+
NodeProperties.struct_class = Types::NodeProperties
|
431
|
+
|
432
|
+
NodePropertiesSummary.add_member(:is_main_node, Shapes::ShapeRef.new(shape: Boolean, location_name: "isMainNode"))
|
433
|
+
NodePropertiesSummary.add_member(:num_nodes, Shapes::ShapeRef.new(shape: Integer, location_name: "numNodes"))
|
434
|
+
NodePropertiesSummary.add_member(:node_index, Shapes::ShapeRef.new(shape: Integer, location_name: "nodeIndex"))
|
435
|
+
NodePropertiesSummary.struct_class = Types::NodePropertiesSummary
|
436
|
+
|
437
|
+
NodePropertyOverride.add_member(:target_nodes, Shapes::ShapeRef.new(shape: String, required: true, location_name: "targetNodes"))
|
438
|
+
NodePropertyOverride.add_member(:container_overrides, Shapes::ShapeRef.new(shape: ContainerOverrides, location_name: "containerOverrides"))
|
439
|
+
NodePropertyOverride.struct_class = Types::NodePropertyOverride
|
440
|
+
|
441
|
+
NodePropertyOverrides.member = Shapes::ShapeRef.new(shape: NodePropertyOverride)
|
442
|
+
|
443
|
+
NodeRangeProperties.member = Shapes::ShapeRef.new(shape: NodeRangeProperty)
|
444
|
+
|
445
|
+
NodeRangeProperty.add_member(:target_nodes, Shapes::ShapeRef.new(shape: String, required: true, location_name: "targetNodes"))
|
446
|
+
NodeRangeProperty.add_member(:container, Shapes::ShapeRef.new(shape: ContainerProperties, location_name: "container"))
|
447
|
+
NodeRangeProperty.struct_class = Types::NodeRangeProperty
|
448
|
+
|
392
449
|
ParametersMap.key = Shapes::ShapeRef.new(shape: String)
|
393
450
|
ParametersMap.value = Shapes::ShapeRef.new(shape: String)
|
394
451
|
|
@@ -396,6 +453,7 @@ module Aws::Batch
|
|
396
453
|
RegisterJobDefinitionRequest.add_member(:type, Shapes::ShapeRef.new(shape: JobDefinitionType, required: true, location_name: "type"))
|
397
454
|
RegisterJobDefinitionRequest.add_member(:parameters, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "parameters"))
|
398
455
|
RegisterJobDefinitionRequest.add_member(:container_properties, Shapes::ShapeRef.new(shape: ContainerProperties, location_name: "containerProperties"))
|
456
|
+
RegisterJobDefinitionRequest.add_member(:node_properties, Shapes::ShapeRef.new(shape: NodeProperties, location_name: "nodeProperties"))
|
399
457
|
RegisterJobDefinitionRequest.add_member(:retry_strategy, Shapes::ShapeRef.new(shape: RetryStrategy, location_name: "retryStrategy"))
|
400
458
|
RegisterJobDefinitionRequest.add_member(:timeout, Shapes::ShapeRef.new(shape: JobTimeout, location_name: "timeout"))
|
401
459
|
RegisterJobDefinitionRequest.struct_class = Types::RegisterJobDefinitionRequest
|
@@ -417,6 +475,7 @@ module Aws::Batch
|
|
417
475
|
SubmitJobRequest.add_member(:job_definition, Shapes::ShapeRef.new(shape: String, required: true, location_name: "jobDefinition"))
|
418
476
|
SubmitJobRequest.add_member(:parameters, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "parameters"))
|
419
477
|
SubmitJobRequest.add_member(:container_overrides, Shapes::ShapeRef.new(shape: ContainerOverrides, location_name: "containerOverrides"))
|
478
|
+
SubmitJobRequest.add_member(:node_overrides, Shapes::ShapeRef.new(shape: NodeOverrides, location_name: "nodeOverrides"))
|
420
479
|
SubmitJobRequest.add_member(:retry_strategy, Shapes::ShapeRef.new(shape: RetryStrategy, location_name: "retryStrategy"))
|
421
480
|
SubmitJobRequest.add_member(:timeout, Shapes::ShapeRef.new(shape: JobTimeout, location_name: "timeout"))
|
422
481
|
SubmitJobRequest.struct_class = Types::SubmitJobRequest
|