aws-sdk-batch 1.36.0 → 1.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8e0f0974993d2ea2cd136f0b804c1731cff654bcb310683a388b48e5a499055
4
- data.tar.gz: 1c19dab2477d44f87cb1cd4917778e4b6053a578b593947b031a8961ad6c5855
3
+ metadata.gz: 5a9ce3dab48a911d5cfc8183faa686e48fa82b79e093d5a3dbe90c6367af0096
4
+ data.tar.gz: '0584c59a6926b1740339989a7f605432b3a5784d1ce38cc25313a1c786869761'
5
5
  SHA512:
6
- metadata.gz: adca149b71e7e1465d75287d7d1cf0ee4ef43062f1f022854e97189ccc8fb589aa46977d3f5604e13332140e139198217164e2a6a72e8df57cecea24000cb222
7
- data.tar.gz: 31c4e9c51d73491bf7df3fd053cd8baa91f8a9696aaf2f838d583b7d75a8debeff39c6d14ea63de2ae50e7511a3d469b1542e18fd4aeedba634e067ea3d0e014
6
+ metadata.gz: 3cd1e40d00bae14a7217df0b2ca2bded9fe7c69d5b34a5ceb1137bab63727e60bd7db127e9c8015d13d702874652eb70c16a5223b2aa35d6242c1b89315081ab
7
+ data.tar.gz: 17ca63be0ad0b74e8fe184de01eda26ea8a09864776ad188dc8d19d37730543355ab209bc07bd372c56b31657f3979a9cee59583c5051c3bc37727508ceaa6d6
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-batch/customizations'
48
48
  # @!group service
49
49
  module Aws::Batch
50
50
 
51
- GEM_VERSION = '1.36.0'
51
+ GEM_VERSION = '1.41.0'
52
52
 
53
53
  end
@@ -470,6 +470,22 @@ module Aws::Batch
470
470
  #
471
471
  # </note>
472
472
  #
473
+ # @option params [Hash<String,String>] :tags
474
+ # The tags that you apply to the compute environment to help you
475
+ # categorize and organize your resources. Each tag consists of a key and
476
+ # an optional value. For more information, see [Tagging AWS
477
+ # Resources][1] in *AWS General Reference*.
478
+ #
479
+ # These tags can be updated or removed using the [TagResource][2] and
480
+ # [UntagResource][3] API operations. These tags do not propagate to the
481
+ # underlying compute resources.
482
+ #
483
+ #
484
+ #
485
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
486
+ # [2]: https://docs.aws.amazon.com/batch/latest/APIReference/API_TagResource.html
487
+ # [3]: https://docs.aws.amazon.com/batch/latest/APIReference/API_UntagResource.html
488
+ #
473
489
  # @return [Types::CreateComputeEnvironmentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
474
490
  #
475
491
  # * {Types::CreateComputeEnvironmentResponse#compute_environment_name #compute_environment_name} => String
@@ -591,8 +607,17 @@ module Aws::Batch
591
607
  # launch_template_name: "String",
592
608
  # version: "String",
593
609
  # },
610
+ # ec2_configuration: [
611
+ # {
612
+ # image_type: "ImageType", # required
613
+ # image_id_override: "ImageIdOverride",
614
+ # },
615
+ # ],
594
616
  # },
595
617
  # service_role: "String", # required
618
+ # tags: {
619
+ # "TagKey" => "TagValue",
620
+ # },
596
621
  # })
597
622
  #
598
623
  # @example Response structure
@@ -624,7 +649,9 @@ module Aws::Batch
624
649
  #
625
650
  # @option params [String] :state
626
651
  # The state of the job queue. If the job queue state is `ENABLED`, it is
627
- # able to accept jobs.
652
+ # able to accept jobs. If the job queue state is `DISABLED`, new jobs
653
+ # cannot be added to the queue, but jobs already in the queue can
654
+ # finish.
628
655
  #
629
656
  # @option params [required, Integer] :priority
630
657
  # The priority of the job queue. Job queues with a higher priority (or a
@@ -642,6 +669,16 @@ module Aws::Batch
642
669
  # associate them with a job queue. You can associate up to three compute
643
670
  # environments with a job queue.
644
671
  #
672
+ # @option params [Hash<String,String>] :tags
673
+ # The tags that you apply to the job queue to help you categorize and
674
+ # organize your resources. Each tag consists of a key and an optional
675
+ # value. For more information, see [Tagging AWS Resources][1] in *AWS
676
+ # General Reference*.
677
+ #
678
+ #
679
+ #
680
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
681
+ #
645
682
  # @return [Types::CreateJobQueueResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
646
683
  #
647
684
  # * {Types::CreateJobQueueResponse#job_queue_name #job_queue_name} => String
@@ -709,6 +746,9 @@ module Aws::Batch
709
746
  # compute_environment: "String", # required
710
747
  # },
711
748
  # ],
749
+ # tags: {
750
+ # "TagKey" => "TagValue",
751
+ # },
712
752
  # })
713
753
  #
714
754
  # @example Response structure
@@ -949,6 +989,8 @@ module Aws::Batch
949
989
  # resp.compute_environments[0].compute_environment_name #=> String
950
990
  # resp.compute_environments[0].compute_environment_arn #=> String
951
991
  # resp.compute_environments[0].ecs_cluster_arn #=> String
992
+ # resp.compute_environments[0].tags #=> Hash
993
+ # resp.compute_environments[0].tags["TagKey"] #=> String
952
994
  # resp.compute_environments[0].type #=> String, one of "MANAGED", "UNMANAGED"
953
995
  # resp.compute_environments[0].state #=> String, one of "ENABLED", "DISABLED"
954
996
  # resp.compute_environments[0].status #=> String, one of "CREATING", "UPDATING", "DELETING", "DELETED", "VALID", "INVALID"
@@ -975,6 +1017,9 @@ module Aws::Batch
975
1017
  # resp.compute_environments[0].compute_resources.launch_template.launch_template_id #=> String
976
1018
  # resp.compute_environments[0].compute_resources.launch_template.launch_template_name #=> String
977
1019
  # resp.compute_environments[0].compute_resources.launch_template.version #=> String
1020
+ # resp.compute_environments[0].compute_resources.ec2_configuration #=> Array
1021
+ # resp.compute_environments[0].compute_resources.ec2_configuration[0].image_type #=> String
1022
+ # resp.compute_environments[0].compute_resources.ec2_configuration[0].image_id_override #=> String
978
1023
  # resp.compute_environments[0].service_role #=> String
979
1024
  # resp.next_token #=> String
980
1025
  #
@@ -1091,12 +1136,18 @@ module Aws::Batch
1091
1136
  # resp.job_definitions[0].parameters #=> Hash
1092
1137
  # resp.job_definitions[0].parameters["String"] #=> String
1093
1138
  # resp.job_definitions[0].retry_strategy.attempts #=> Integer
1139
+ # resp.job_definitions[0].retry_strategy.evaluate_on_exit #=> Array
1140
+ # resp.job_definitions[0].retry_strategy.evaluate_on_exit[0].on_status_reason #=> String
1141
+ # resp.job_definitions[0].retry_strategy.evaluate_on_exit[0].on_reason #=> String
1142
+ # resp.job_definitions[0].retry_strategy.evaluate_on_exit[0].on_exit_code #=> String
1143
+ # resp.job_definitions[0].retry_strategy.evaluate_on_exit[0].action #=> String, one of "RETRY", "EXIT"
1094
1144
  # resp.job_definitions[0].container_properties.image #=> String
1095
1145
  # resp.job_definitions[0].container_properties.vcpus #=> Integer
1096
1146
  # resp.job_definitions[0].container_properties.memory #=> Integer
1097
1147
  # resp.job_definitions[0].container_properties.command #=> Array
1098
1148
  # resp.job_definitions[0].container_properties.command[0] #=> String
1099
1149
  # resp.job_definitions[0].container_properties.job_role_arn #=> String
1150
+ # resp.job_definitions[0].container_properties.execution_role_arn #=> String
1100
1151
  # resp.job_definitions[0].container_properties.volumes #=> Array
1101
1152
  # resp.job_definitions[0].container_properties.volumes[0].host.source_path #=> String
1102
1153
  # resp.job_definitions[0].container_properties.volumes[0].name #=> String
@@ -1123,6 +1174,24 @@ module Aws::Batch
1123
1174
  # resp.job_definitions[0].container_properties.linux_parameters.devices[0].container_path #=> String
1124
1175
  # resp.job_definitions[0].container_properties.linux_parameters.devices[0].permissions #=> Array
1125
1176
  # resp.job_definitions[0].container_properties.linux_parameters.devices[0].permissions[0] #=> String, one of "READ", "WRITE", "MKNOD"
1177
+ # resp.job_definitions[0].container_properties.linux_parameters.init_process_enabled #=> Boolean
1178
+ # resp.job_definitions[0].container_properties.linux_parameters.shared_memory_size #=> Integer
1179
+ # resp.job_definitions[0].container_properties.linux_parameters.tmpfs #=> Array
1180
+ # resp.job_definitions[0].container_properties.linux_parameters.tmpfs[0].container_path #=> String
1181
+ # resp.job_definitions[0].container_properties.linux_parameters.tmpfs[0].size #=> Integer
1182
+ # resp.job_definitions[0].container_properties.linux_parameters.tmpfs[0].mount_options #=> Array
1183
+ # resp.job_definitions[0].container_properties.linux_parameters.tmpfs[0].mount_options[0] #=> String
1184
+ # resp.job_definitions[0].container_properties.linux_parameters.max_swap #=> Integer
1185
+ # resp.job_definitions[0].container_properties.linux_parameters.swappiness #=> Integer
1186
+ # resp.job_definitions[0].container_properties.log_configuration.log_driver #=> String, one of "json-file", "syslog", "journald", "gelf", "fluentd", "awslogs", "splunk"
1187
+ # resp.job_definitions[0].container_properties.log_configuration.options #=> Hash
1188
+ # resp.job_definitions[0].container_properties.log_configuration.options["String"] #=> String
1189
+ # resp.job_definitions[0].container_properties.log_configuration.secret_options #=> Array
1190
+ # resp.job_definitions[0].container_properties.log_configuration.secret_options[0].name #=> String
1191
+ # resp.job_definitions[0].container_properties.log_configuration.secret_options[0].value_from #=> String
1192
+ # resp.job_definitions[0].container_properties.secrets #=> Array
1193
+ # resp.job_definitions[0].container_properties.secrets[0].name #=> String
1194
+ # resp.job_definitions[0].container_properties.secrets[0].value_from #=> String
1126
1195
  # resp.job_definitions[0].timeout.attempt_duration_seconds #=> Integer
1127
1196
  # resp.job_definitions[0].node_properties.num_nodes #=> Integer
1128
1197
  # resp.job_definitions[0].node_properties.main_node #=> Integer
@@ -1134,6 +1203,7 @@ module Aws::Batch
1134
1203
  # resp.job_definitions[0].node_properties.node_range_properties[0].container.command #=> Array
1135
1204
  # resp.job_definitions[0].node_properties.node_range_properties[0].container.command[0] #=> String
1136
1205
  # resp.job_definitions[0].node_properties.node_range_properties[0].container.job_role_arn #=> String
1206
+ # resp.job_definitions[0].node_properties.node_range_properties[0].container.execution_role_arn #=> String
1137
1207
  # resp.job_definitions[0].node_properties.node_range_properties[0].container.volumes #=> Array
1138
1208
  # resp.job_definitions[0].node_properties.node_range_properties[0].container.volumes[0].host.source_path #=> String
1139
1209
  # resp.job_definitions[0].node_properties.node_range_properties[0].container.volumes[0].name #=> String
@@ -1160,6 +1230,26 @@ module Aws::Batch
1160
1230
  # resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.devices[0].container_path #=> String
1161
1231
  # resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.devices[0].permissions #=> Array
1162
1232
  # resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.devices[0].permissions[0] #=> String, one of "READ", "WRITE", "MKNOD"
1233
+ # resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.init_process_enabled #=> Boolean
1234
+ # resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.shared_memory_size #=> Integer
1235
+ # resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.tmpfs #=> Array
1236
+ # resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.tmpfs[0].container_path #=> String
1237
+ # resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.tmpfs[0].size #=> Integer
1238
+ # resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.tmpfs[0].mount_options #=> Array
1239
+ # resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.tmpfs[0].mount_options[0] #=> String
1240
+ # resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.max_swap #=> Integer
1241
+ # resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.swappiness #=> Integer
1242
+ # resp.job_definitions[0].node_properties.node_range_properties[0].container.log_configuration.log_driver #=> String, one of "json-file", "syslog", "journald", "gelf", "fluentd", "awslogs", "splunk"
1243
+ # resp.job_definitions[0].node_properties.node_range_properties[0].container.log_configuration.options #=> Hash
1244
+ # resp.job_definitions[0].node_properties.node_range_properties[0].container.log_configuration.options["String"] #=> String
1245
+ # resp.job_definitions[0].node_properties.node_range_properties[0].container.log_configuration.secret_options #=> Array
1246
+ # resp.job_definitions[0].node_properties.node_range_properties[0].container.log_configuration.secret_options[0].name #=> String
1247
+ # resp.job_definitions[0].node_properties.node_range_properties[0].container.log_configuration.secret_options[0].value_from #=> String
1248
+ # resp.job_definitions[0].node_properties.node_range_properties[0].container.secrets #=> Array
1249
+ # resp.job_definitions[0].node_properties.node_range_properties[0].container.secrets[0].name #=> String
1250
+ # resp.job_definitions[0].node_properties.node_range_properties[0].container.secrets[0].value_from #=> String
1251
+ # resp.job_definitions[0].tags #=> Hash
1252
+ # resp.job_definitions[0].tags["TagKey"] #=> String
1163
1253
  # resp.next_token #=> String
1164
1254
  #
1165
1255
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions AWS API Documentation
@@ -1258,6 +1348,8 @@ module Aws::Batch
1258
1348
  # resp.job_queues[0].compute_environment_order #=> Array
1259
1349
  # resp.job_queues[0].compute_environment_order[0].order #=> Integer
1260
1350
  # resp.job_queues[0].compute_environment_order[0].compute_environment #=> String
1351
+ # resp.job_queues[0].tags #=> Hash
1352
+ # resp.job_queues[0].tags["TagKey"] #=> String
1261
1353
  # resp.next_token #=> String
1262
1354
  #
1263
1355
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues AWS API Documentation
@@ -1337,6 +1429,7 @@ module Aws::Batch
1337
1429
  # @example Response structure
1338
1430
  #
1339
1431
  # resp.jobs #=> Array
1432
+ # resp.jobs[0].job_arn #=> String
1340
1433
  # resp.jobs[0].job_name #=> String
1341
1434
  # resp.jobs[0].job_id #=> String
1342
1435
  # resp.jobs[0].job_queue #=> String
@@ -1357,6 +1450,11 @@ module Aws::Batch
1357
1450
  # resp.jobs[0].status_reason #=> String
1358
1451
  # resp.jobs[0].created_at #=> Integer
1359
1452
  # resp.jobs[0].retry_strategy.attempts #=> Integer
1453
+ # resp.jobs[0].retry_strategy.evaluate_on_exit #=> Array
1454
+ # resp.jobs[0].retry_strategy.evaluate_on_exit[0].on_status_reason #=> String
1455
+ # resp.jobs[0].retry_strategy.evaluate_on_exit[0].on_reason #=> String
1456
+ # resp.jobs[0].retry_strategy.evaluate_on_exit[0].on_exit_code #=> String
1457
+ # resp.jobs[0].retry_strategy.evaluate_on_exit[0].action #=> String, one of "RETRY", "EXIT"
1360
1458
  # resp.jobs[0].started_at #=> Integer
1361
1459
  # resp.jobs[0].stopped_at #=> Integer
1362
1460
  # resp.jobs[0].depends_on #=> Array
@@ -1371,6 +1469,7 @@ module Aws::Batch
1371
1469
  # resp.jobs[0].container.command #=> Array
1372
1470
  # resp.jobs[0].container.command[0] #=> String
1373
1471
  # resp.jobs[0].container.job_role_arn #=> String
1472
+ # resp.jobs[0].container.execution_role_arn #=> String
1374
1473
  # resp.jobs[0].container.volumes #=> Array
1375
1474
  # resp.jobs[0].container.volumes[0].host.source_path #=> String
1376
1475
  # resp.jobs[0].container.volumes[0].name #=> String
@@ -1406,6 +1505,24 @@ module Aws::Batch
1406
1505
  # resp.jobs[0].container.linux_parameters.devices[0].container_path #=> String
1407
1506
  # resp.jobs[0].container.linux_parameters.devices[0].permissions #=> Array
1408
1507
  # resp.jobs[0].container.linux_parameters.devices[0].permissions[0] #=> String, one of "READ", "WRITE", "MKNOD"
1508
+ # resp.jobs[0].container.linux_parameters.init_process_enabled #=> Boolean
1509
+ # resp.jobs[0].container.linux_parameters.shared_memory_size #=> Integer
1510
+ # resp.jobs[0].container.linux_parameters.tmpfs #=> Array
1511
+ # resp.jobs[0].container.linux_parameters.tmpfs[0].container_path #=> String
1512
+ # resp.jobs[0].container.linux_parameters.tmpfs[0].size #=> Integer
1513
+ # resp.jobs[0].container.linux_parameters.tmpfs[0].mount_options #=> Array
1514
+ # resp.jobs[0].container.linux_parameters.tmpfs[0].mount_options[0] #=> String
1515
+ # resp.jobs[0].container.linux_parameters.max_swap #=> Integer
1516
+ # resp.jobs[0].container.linux_parameters.swappiness #=> Integer
1517
+ # resp.jobs[0].container.log_configuration.log_driver #=> String, one of "json-file", "syslog", "journald", "gelf", "fluentd", "awslogs", "splunk"
1518
+ # resp.jobs[0].container.log_configuration.options #=> Hash
1519
+ # resp.jobs[0].container.log_configuration.options["String"] #=> String
1520
+ # resp.jobs[0].container.log_configuration.secret_options #=> Array
1521
+ # resp.jobs[0].container.log_configuration.secret_options[0].name #=> String
1522
+ # resp.jobs[0].container.log_configuration.secret_options[0].value_from #=> String
1523
+ # resp.jobs[0].container.secrets #=> Array
1524
+ # resp.jobs[0].container.secrets[0].name #=> String
1525
+ # resp.jobs[0].container.secrets[0].value_from #=> String
1409
1526
  # resp.jobs[0].node_details.node_index #=> Integer
1410
1527
  # resp.jobs[0].node_details.is_main_node #=> Boolean
1411
1528
  # resp.jobs[0].node_properties.num_nodes #=> Integer
@@ -1418,6 +1535,7 @@ module Aws::Batch
1418
1535
  # resp.jobs[0].node_properties.node_range_properties[0].container.command #=> Array
1419
1536
  # resp.jobs[0].node_properties.node_range_properties[0].container.command[0] #=> String
1420
1537
  # resp.jobs[0].node_properties.node_range_properties[0].container.job_role_arn #=> String
1538
+ # resp.jobs[0].node_properties.node_range_properties[0].container.execution_role_arn #=> String
1421
1539
  # resp.jobs[0].node_properties.node_range_properties[0].container.volumes #=> Array
1422
1540
  # resp.jobs[0].node_properties.node_range_properties[0].container.volumes[0].host.source_path #=> String
1423
1541
  # resp.jobs[0].node_properties.node_range_properties[0].container.volumes[0].name #=> String
@@ -1444,11 +1562,31 @@ module Aws::Batch
1444
1562
  # resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.devices[0].container_path #=> String
1445
1563
  # resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.devices[0].permissions #=> Array
1446
1564
  # resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.devices[0].permissions[0] #=> String, one of "READ", "WRITE", "MKNOD"
1565
+ # resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.init_process_enabled #=> Boolean
1566
+ # resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.shared_memory_size #=> Integer
1567
+ # resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.tmpfs #=> Array
1568
+ # resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.tmpfs[0].container_path #=> String
1569
+ # resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.tmpfs[0].size #=> Integer
1570
+ # resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.tmpfs[0].mount_options #=> Array
1571
+ # resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.tmpfs[0].mount_options[0] #=> String
1572
+ # resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.max_swap #=> Integer
1573
+ # resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.swappiness #=> Integer
1574
+ # resp.jobs[0].node_properties.node_range_properties[0].container.log_configuration.log_driver #=> String, one of "json-file", "syslog", "journald", "gelf", "fluentd", "awslogs", "splunk"
1575
+ # resp.jobs[0].node_properties.node_range_properties[0].container.log_configuration.options #=> Hash
1576
+ # resp.jobs[0].node_properties.node_range_properties[0].container.log_configuration.options["String"] #=> String
1577
+ # resp.jobs[0].node_properties.node_range_properties[0].container.log_configuration.secret_options #=> Array
1578
+ # resp.jobs[0].node_properties.node_range_properties[0].container.log_configuration.secret_options[0].name #=> String
1579
+ # resp.jobs[0].node_properties.node_range_properties[0].container.log_configuration.secret_options[0].value_from #=> String
1580
+ # resp.jobs[0].node_properties.node_range_properties[0].container.secrets #=> Array
1581
+ # resp.jobs[0].node_properties.node_range_properties[0].container.secrets[0].name #=> String
1582
+ # resp.jobs[0].node_properties.node_range_properties[0].container.secrets[0].value_from #=> String
1447
1583
  # resp.jobs[0].array_properties.status_summary #=> Hash
1448
1584
  # resp.jobs[0].array_properties.status_summary["String"] #=> Integer
1449
1585
  # resp.jobs[0].array_properties.size #=> Integer
1450
1586
  # resp.jobs[0].array_properties.index #=> Integer
1451
1587
  # resp.jobs[0].timeout.attempt_duration_seconds #=> Integer
1588
+ # resp.jobs[0].tags #=> Hash
1589
+ # resp.jobs[0].tags["TagKey"] #=> String
1452
1590
  #
1453
1591
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobs AWS API Documentation
1454
1592
  #
@@ -1572,6 +1710,7 @@ module Aws::Batch
1572
1710
  # @example Response structure
1573
1711
  #
1574
1712
  # resp.job_summary_list #=> Array
1713
+ # resp.job_summary_list[0].job_arn #=> String
1575
1714
  # resp.job_summary_list[0].job_id #=> String
1576
1715
  # resp.job_summary_list[0].job_name #=> String
1577
1716
  # resp.job_summary_list[0].created_at #=> Integer
@@ -1597,6 +1736,59 @@ module Aws::Batch
1597
1736
  req.send_request(options)
1598
1737
  end
1599
1738
 
1739
+ # List the tags for an AWS Batch resource. AWS Batch resources that
1740
+ # support tags are compute environments, jobs, job definitions, and job
1741
+ # queues. ARNs for child jobs of array and multi-node parallel (MNP)
1742
+ # jobs are not supported.
1743
+ #
1744
+ # @option params [required, String] :resource_arn
1745
+ # The Amazon Resource Name (ARN) that identifies the resource for which
1746
+ # to list the tags. AWS Batch resources that support tags are compute
1747
+ # environments, jobs, job definitions, and job queues. ARNs for child
1748
+ # jobs of array and multi-node parallel (MNP) jobs are not supported.
1749
+ #
1750
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1751
+ #
1752
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash&lt;String,String&gt;
1753
+ #
1754
+ #
1755
+ # @example Example: ListTagsForResource Example
1756
+ #
1757
+ # # This demonstrates calling the ListTagsForResource action.
1758
+ #
1759
+ # resp = client.list_tags_for_resource({
1760
+ # resource_arn: "arn:aws:batch:us-east-1:123456789012:job-definition/sleep30:1",
1761
+ # })
1762
+ #
1763
+ # resp.to_h outputs the following:
1764
+ # {
1765
+ # tags: {
1766
+ # "Department" => "Engineering",
1767
+ # "Stage" => "Alpha",
1768
+ # "User" => "JaneDoe",
1769
+ # },
1770
+ # }
1771
+ #
1772
+ # @example Request syntax with placeholder values
1773
+ #
1774
+ # resp = client.list_tags_for_resource({
1775
+ # resource_arn: "String", # required
1776
+ # })
1777
+ #
1778
+ # @example Response structure
1779
+ #
1780
+ # resp.tags #=> Hash
1781
+ # resp.tags["TagKey"] #=> String
1782
+ #
1783
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListTagsForResource AWS API Documentation
1784
+ #
1785
+ # @overload list_tags_for_resource(params = {})
1786
+ # @param [Hash] params ({})
1787
+ def list_tags_for_resource(params = {}, options = {})
1788
+ req = build_request(:list_tags_for_resource, params)
1789
+ req.send_request(options)
1790
+ end
1791
+
1600
1792
  # Registers an AWS Batch job definition.
1601
1793
  #
1602
1794
  # @option params [required, String] :job_definition_name
@@ -1651,6 +1843,16 @@ module Aws::Batch
1651
1843
  #
1652
1844
  # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/job_timeouts.html
1653
1845
  #
1846
+ # @option params [Hash<String,String>] :tags
1847
+ # The tags that you apply to the job definition to help you categorize
1848
+ # and organize your resources. Each tag consists of a key and an
1849
+ # optional value. For more information, see [Tagging AWS Resources][1]
1850
+ # in *AWS General Reference*.
1851
+ #
1852
+ #
1853
+ #
1854
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
1855
+ #
1654
1856
  # @return [Types::RegisterJobDefinitionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1655
1857
  #
1656
1858
  # * {Types::RegisterJobDefinitionResponse#job_definition_name #job_definition_name} => String
@@ -1683,6 +1885,35 @@ module Aws::Batch
1683
1885
  # revision: 1,
1684
1886
  # }
1685
1887
  #
1888
+ # @example Example: RegisterJobDefinition with tags
1889
+ #
1890
+ # # This demonstrates calling the RegisterJobDefinition action, including tags.
1891
+ #
1892
+ # resp = client.register_job_definition({
1893
+ # type: "container",
1894
+ # container_properties: {
1895
+ # command: [
1896
+ # "sleep",
1897
+ # "30",
1898
+ # ],
1899
+ # image: "busybox",
1900
+ # memory: 128,
1901
+ # vcpus: 1,
1902
+ # },
1903
+ # job_definition_name: "sleep30",
1904
+ # tags: {
1905
+ # "Department" => "Engineering",
1906
+ # "User" => "JaneDoe",
1907
+ # },
1908
+ # })
1909
+ #
1910
+ # resp.to_h outputs the following:
1911
+ # {
1912
+ # job_definition_arn: "arn:aws:batch:us-east-1:012345678910:job-definition/sleep30:1",
1913
+ # job_definition_name: "sleep30",
1914
+ # revision: 1,
1915
+ # }
1916
+ #
1686
1917
  # @example Request syntax with placeholder values
1687
1918
  #
1688
1919
  # resp = client.register_job_definition({
@@ -1697,6 +1928,7 @@ module Aws::Batch
1697
1928
  # memory: 1,
1698
1929
  # command: ["String"],
1699
1930
  # job_role_arn: "String",
1931
+ # execution_role_arn: "String",
1700
1932
  # volumes: [
1701
1933
  # {
1702
1934
  # host: {
@@ -1743,7 +1975,36 @@ module Aws::Batch
1743
1975
  # permissions: ["READ"], # accepts READ, WRITE, MKNOD
1744
1976
  # },
1745
1977
  # ],
1978
+ # init_process_enabled: false,
1979
+ # shared_memory_size: 1,
1980
+ # tmpfs: [
1981
+ # {
1982
+ # container_path: "String", # required
1983
+ # size: 1, # required
1984
+ # mount_options: ["String"],
1985
+ # },
1986
+ # ],
1987
+ # max_swap: 1,
1988
+ # swappiness: 1,
1746
1989
  # },
1990
+ # log_configuration: {
1991
+ # log_driver: "json-file", # required, accepts json-file, syslog, journald, gelf, fluentd, awslogs, splunk
1992
+ # options: {
1993
+ # "String" => "String",
1994
+ # },
1995
+ # secret_options: [
1996
+ # {
1997
+ # name: "String", # required
1998
+ # value_from: "String", # required
1999
+ # },
2000
+ # ],
2001
+ # },
2002
+ # secrets: [
2003
+ # {
2004
+ # name: "String", # required
2005
+ # value_from: "String", # required
2006
+ # },
2007
+ # ],
1747
2008
  # },
1748
2009
  # node_properties: {
1749
2010
  # num_nodes: 1, # required
@@ -1757,6 +2018,7 @@ module Aws::Batch
1757
2018
  # memory: 1,
1758
2019
  # command: ["String"],
1759
2020
  # job_role_arn: "String",
2021
+ # execution_role_arn: "String",
1760
2022
  # volumes: [
1761
2023
  # {
1762
2024
  # host: {
@@ -1803,17 +2065,57 @@ module Aws::Batch
1803
2065
  # permissions: ["READ"], # accepts READ, WRITE, MKNOD
1804
2066
  # },
1805
2067
  # ],
2068
+ # init_process_enabled: false,
2069
+ # shared_memory_size: 1,
2070
+ # tmpfs: [
2071
+ # {
2072
+ # container_path: "String", # required
2073
+ # size: 1, # required
2074
+ # mount_options: ["String"],
2075
+ # },
2076
+ # ],
2077
+ # max_swap: 1,
2078
+ # swappiness: 1,
2079
+ # },
2080
+ # log_configuration: {
2081
+ # log_driver: "json-file", # required, accepts json-file, syslog, journald, gelf, fluentd, awslogs, splunk
2082
+ # options: {
2083
+ # "String" => "String",
2084
+ # },
2085
+ # secret_options: [
2086
+ # {
2087
+ # name: "String", # required
2088
+ # value_from: "String", # required
2089
+ # },
2090
+ # ],
1806
2091
  # },
2092
+ # secrets: [
2093
+ # {
2094
+ # name: "String", # required
2095
+ # value_from: "String", # required
2096
+ # },
2097
+ # ],
1807
2098
  # },
1808
2099
  # },
1809
2100
  # ],
1810
2101
  # },
1811
2102
  # retry_strategy: {
1812
2103
  # attempts: 1,
2104
+ # evaluate_on_exit: [
2105
+ # {
2106
+ # on_status_reason: "String",
2107
+ # on_reason: "String",
2108
+ # on_exit_code: "String",
2109
+ # action: "RETRY", # required, accepts RETRY, EXIT
2110
+ # },
2111
+ # ],
1813
2112
  # },
1814
2113
  # timeout: {
1815
2114
  # attempt_duration_seconds: 1,
1816
2115
  # },
2116
+ # tags: {
2117
+ # "TagKey" => "TagValue",
2118
+ # },
1817
2119
  # })
1818
2120
  #
1819
2121
  # @example Response structure
@@ -1909,8 +2211,19 @@ module Aws::Batch
1909
2211
  #
1910
2212
  # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/job_timeouts.html
1911
2213
  #
2214
+ # @option params [Hash<String,String>] :tags
2215
+ # The tags that you apply to the job request to help you categorize and
2216
+ # organize your resources. Each tag consists of a key and an optional
2217
+ # value. For more information, see [Tagging AWS Resources][1] in *AWS
2218
+ # General Reference*.
2219
+ #
2220
+ #
2221
+ #
2222
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
2223
+ #
1912
2224
  # @return [Types::SubmitJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1913
2225
  #
2226
+ # * {Types::SubmitJobResponse#job_arn #job_arn} => String
1914
2227
  # * {Types::SubmitJobResponse#job_name #job_name} => String
1915
2228
  # * {Types::SubmitJobResponse#job_id #job_id} => String
1916
2229
  #
@@ -1995,14 +2308,26 @@ module Aws::Batch
1995
2308
  # },
1996
2309
  # retry_strategy: {
1997
2310
  # attempts: 1,
2311
+ # evaluate_on_exit: [
2312
+ # {
2313
+ # on_status_reason: "String",
2314
+ # on_reason: "String",
2315
+ # on_exit_code: "String",
2316
+ # action: "RETRY", # required, accepts RETRY, EXIT
2317
+ # },
2318
+ # ],
1998
2319
  # },
1999
2320
  # timeout: {
2000
2321
  # attempt_duration_seconds: 1,
2001
2322
  # },
2323
+ # tags: {
2324
+ # "TagKey" => "TagValue",
2325
+ # },
2002
2326
  # })
2003
2327
  #
2004
2328
  # @example Response structure
2005
2329
  #
2330
+ # resp.job_arn #=> String
2006
2331
  # resp.job_name #=> String
2007
2332
  # resp.job_id #=> String
2008
2333
  #
@@ -2015,6 +2340,66 @@ module Aws::Batch
2015
2340
  req.send_request(options)
2016
2341
  end
2017
2342
 
2343
+ # Associates the specified tags to a resource with the specified
2344
+ # `resourceArn`. If existing tags on a resource are not specified in the
2345
+ # request parameters, they are not changed. When a resource is deleted,
2346
+ # the tags associated with that resource are deleted as well. AWS Batch
2347
+ # resources that support tags are compute environments, jobs, job
2348
+ # definitions, and job queues. ARNs for child jobs of array and
2349
+ # multi-node parallel (MNP) jobs are not supported.
2350
+ #
2351
+ # @option params [required, String] :resource_arn
2352
+ # The Amazon Resource Name (ARN) of the resource to which to add tags.
2353
+ # AWS Batch resources that support tags are compute environments, jobs,
2354
+ # job definitions, and job queues. ARNs for child jobs of array and
2355
+ # multi-node parallel (MNP) jobs are not supported.
2356
+ #
2357
+ # @option params [required, Hash<String,String>] :tags
2358
+ # The tags that you apply to the resource to help you categorize and
2359
+ # organize your resources. Each tag consists of a key and an optional
2360
+ # value. For more information, see [Tagging AWS Resources][1] in *AWS
2361
+ # General Reference*.
2362
+ #
2363
+ #
2364
+ #
2365
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
2366
+ #
2367
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2368
+ #
2369
+ #
2370
+ # @example Example: TagResource Example
2371
+ #
2372
+ # # This demonstrates calling the TagResource action.
2373
+ #
2374
+ # resp = client.tag_resource({
2375
+ # resource_arn: "arn:aws:batch:us-east-1:123456789012:job-definition/sleep30:1",
2376
+ # tags: {
2377
+ # "Stage" => "Alpha",
2378
+ # },
2379
+ # })
2380
+ #
2381
+ # resp.to_h outputs the following:
2382
+ # {
2383
+ # }
2384
+ #
2385
+ # @example Request syntax with placeholder values
2386
+ #
2387
+ # resp = client.tag_resource({
2388
+ # resource_arn: "String", # required
2389
+ # tags: { # required
2390
+ # "TagKey" => "TagValue",
2391
+ # },
2392
+ # })
2393
+ #
2394
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TagResource AWS API Documentation
2395
+ #
2396
+ # @overload tag_resource(params = {})
2397
+ # @param [Hash] params ({})
2398
+ def tag_resource(params = {}, options = {})
2399
+ req = build_request(:tag_resource, params)
2400
+ req.send_request(options)
2401
+ end
2402
+
2018
2403
  # Terminates a job in a job queue. Jobs that are in the `STARTING` or
2019
2404
  # `RUNNING` state are terminated, which causes them to transition to
2020
2405
  # `FAILED`. Jobs that have not progressed to the `STARTING` state are
@@ -2060,6 +2445,51 @@ module Aws::Batch
2060
2445
  req.send_request(options)
2061
2446
  end
2062
2447
 
2448
+ # Deletes specified tags from an AWS Batch resource.
2449
+ #
2450
+ # @option params [required, String] :resource_arn
2451
+ # The Amazon Resource Name (ARN) of the resource from which to delete
2452
+ # tags. AWS Batch resources that support tags are compute environments,
2453
+ # jobs, job definitions, and job queues. ARNs for child jobs of array
2454
+ # and multi-node parallel (MNP) jobs are not supported.
2455
+ #
2456
+ # @option params [required, Array<String>] :tag_keys
2457
+ # The keys of the tags to be removed.
2458
+ #
2459
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2460
+ #
2461
+ #
2462
+ # @example Example: UntagResource Example
2463
+ #
2464
+ # # This demonstrates calling the UntagResource action.
2465
+ #
2466
+ # resp = client.untag_resource({
2467
+ # resource_arn: "arn:aws:batch:us-east-1:123456789012:job-definition/sleep30:1",
2468
+ # tag_keys: [
2469
+ # "Stage",
2470
+ # ],
2471
+ # })
2472
+ #
2473
+ # resp.to_h outputs the following:
2474
+ # {
2475
+ # }
2476
+ #
2477
+ # @example Request syntax with placeholder values
2478
+ #
2479
+ # resp = client.untag_resource({
2480
+ # resource_arn: "String", # required
2481
+ # tag_keys: ["TagKey"], # required
2482
+ # })
2483
+ #
2484
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UntagResource AWS API Documentation
2485
+ #
2486
+ # @overload untag_resource(params = {})
2487
+ # @param [Hash] params ({})
2488
+ def untag_resource(params = {}, options = {})
2489
+ req = build_request(:untag_resource, params)
2490
+ req.send_request(options)
2491
+ end
2492
+
2063
2493
  # Updates an AWS Batch compute environment.
2064
2494
  #
2065
2495
  # @option params [required, String] :compute_environment
@@ -2146,7 +2576,10 @@ module Aws::Batch
2146
2576
  # The name or the Amazon Resource Name (ARN) of the job queue.
2147
2577
  #
2148
2578
  # @option params [String] :state
2149
- # Describes the queue's ability to accept new jobs.
2579
+ # Describes the queue's ability to accept new jobs. If the job queue
2580
+ # state is `ENABLED`, it is able to accept jobs. If the job queue state
2581
+ # is `DISABLED`, new jobs cannot be added to the queue, but jobs already
2582
+ # in the queue can finish.
2150
2583
  #
2151
2584
  # @option params [Integer] :priority
2152
2585
  # The priority of the job queue. Job queues with a higher priority (or a
@@ -2224,7 +2657,7 @@ module Aws::Batch
2224
2657
  params: params,
2225
2658
  config: config)
2226
2659
  context[:gem_name] = 'aws-sdk-batch'
2227
- context[:gem_version] = '1.36.0'
2660
+ context[:gem_version] = '1.41.0'
2228
2661
  Seahorse::Client::Request.new(handlers, context)
2229
2662
  end
2230
2663