aws-sdk-batch 1.15.0 → 1.16.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 +4 -4
- data/lib/aws-sdk-batch.rb +1 -1
- data/lib/aws-sdk-batch/client.rb +87 -7
- data/lib/aws-sdk-batch/client_api.rb +13 -0
- data/lib/aws-sdk-batch/types.rb +145 -10
- 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: e7b2f574c3512864944b9b716c5ffafb6fab864e
|
4
|
+
data.tar.gz: 1277827ec3160b25debb9f4e4fd0edb52968fb9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eace7aa9d324baa85af66a7d5269dbed386d0e5abfc49b543cdbd3116981987ac5d95fda471007cecf501dddc760bc90f2edd0ab272f8460db0b5f130da6a9ee
|
7
|
+
data.tar.gz: af116f6658a494ccce464f02a61105a3525964d31b3f6573ff9c6a8d9e106f378df6812287f74b1625d577efd9442cd1223c09866b2b54561a9c6ca711422e9b
|
data/lib/aws-sdk-batch.rb
CHANGED
data/lib/aws-sdk-batch/client.rb
CHANGED
@@ -199,6 +199,49 @@ module Aws::Batch
|
|
199
199
|
# When `true`, request parameters are validated before
|
200
200
|
# sending the request.
|
201
201
|
#
|
202
|
+
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
203
|
+
# requests through. Formatted like 'http://proxy.com:123'.
|
204
|
+
#
|
205
|
+
# @option options [Float] :http_open_timeout (15) The number of
|
206
|
+
# seconds to wait when opening a HTTP session before rasing a
|
207
|
+
# `Timeout::Error`.
|
208
|
+
#
|
209
|
+
# @option options [Integer] :http_read_timeout (60) The default
|
210
|
+
# number of seconds to wait for response data. This value can
|
211
|
+
# safely be set
|
212
|
+
# per-request on the session yeidled by {#session_for}.
|
213
|
+
#
|
214
|
+
# @option options [Float] :http_idle_timeout (5) The number of
|
215
|
+
# seconds a connection is allowed to sit idble before it is
|
216
|
+
# considered stale. Stale connections are closed and removed
|
217
|
+
# from the pool before making a request.
|
218
|
+
#
|
219
|
+
# @option options [Float] :http_continue_timeout (1) The number of
|
220
|
+
# seconds to wait for a 100-continue response before sending the
|
221
|
+
# request body. This option has no effect unless the request has
|
222
|
+
# "Expect" header set to "100-continue". Defaults to `nil` which
|
223
|
+
# disables this behaviour. This value can safely be set per
|
224
|
+
# request on the session yeidled by {#session_for}.
|
225
|
+
#
|
226
|
+
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
227
|
+
# HTTP debug output will be sent to the `:logger`.
|
228
|
+
#
|
229
|
+
# @option options [Boolean] :ssl_verify_peer (true) When `true`,
|
230
|
+
# SSL peer certificates are verified when establishing a
|
231
|
+
# connection.
|
232
|
+
#
|
233
|
+
# @option options [String] :ssl_ca_bundle Full path to the SSL
|
234
|
+
# certificate authority bundle file that should be used when
|
235
|
+
# verifying peer certificates. If you do not pass
|
236
|
+
# `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
|
237
|
+
# will be used if available.
|
238
|
+
#
|
239
|
+
# @option options [String] :ssl_ca_directory Full path of the
|
240
|
+
# directory that contains the unbundled SSL certificate
|
241
|
+
# authority files for verifying peer certificates. If you do
|
242
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
|
243
|
+
# system default will be used if available.
|
244
|
+
#
|
202
245
|
def initialize(*args)
|
203
246
|
super
|
204
247
|
end
|
@@ -300,9 +343,9 @@ module Aws::Batch
|
|
300
343
|
#
|
301
344
|
#
|
302
345
|
#
|
303
|
-
# [1]:
|
304
|
-
# [2]:
|
305
|
-
# [3]:
|
346
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html
|
347
|
+
# [2]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_instance_AMIs.html
|
348
|
+
# [3]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html
|
306
349
|
#
|
307
350
|
# @option params [required, String] :compute_environment_name
|
308
351
|
# The name for your compute environment. Up to 128 letters (uppercase
|
@@ -314,7 +357,7 @@ module Aws::Batch
|
|
314
357
|
#
|
315
358
|
#
|
316
359
|
#
|
317
|
-
# [1]:
|
360
|
+
# [1]: https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html
|
318
361
|
#
|
319
362
|
# @option params [String] :state
|
320
363
|
# The state of the compute environment. If the state is `ENABLED`, then
|
@@ -980,6 +1023,9 @@ module Aws::Batch
|
|
980
1023
|
# resp.job_definitions[0].container_properties.ulimits[0].soft_limit #=> Integer
|
981
1024
|
# resp.job_definitions[0].container_properties.user #=> String
|
982
1025
|
# resp.job_definitions[0].container_properties.instance_type #=> String
|
1026
|
+
# resp.job_definitions[0].container_properties.resource_requirements #=> Array
|
1027
|
+
# resp.job_definitions[0].container_properties.resource_requirements[0].value #=> String
|
1028
|
+
# resp.job_definitions[0].container_properties.resource_requirements[0].type #=> String, one of "GPU"
|
983
1029
|
# resp.job_definitions[0].timeout.attempt_duration_seconds #=> Integer
|
984
1030
|
# resp.job_definitions[0].node_properties.num_nodes #=> Integer
|
985
1031
|
# resp.job_definitions[0].node_properties.main_node #=> Integer
|
@@ -1009,6 +1055,9 @@ module Aws::Batch
|
|
1009
1055
|
# resp.job_definitions[0].node_properties.node_range_properties[0].container.ulimits[0].soft_limit #=> Integer
|
1010
1056
|
# resp.job_definitions[0].node_properties.node_range_properties[0].container.user #=> String
|
1011
1057
|
# resp.job_definitions[0].node_properties.node_range_properties[0].container.instance_type #=> String
|
1058
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.resource_requirements #=> Array
|
1059
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.resource_requirements[0].value #=> String
|
1060
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.resource_requirements[0].type #=> String, one of "GPU"
|
1012
1061
|
# resp.next_token #=> String
|
1013
1062
|
#
|
1014
1063
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions AWS API Documentation
|
@@ -1245,6 +1294,9 @@ module Aws::Batch
|
|
1245
1294
|
# resp.jobs[0].container.network_interfaces[0].attachment_id #=> String
|
1246
1295
|
# resp.jobs[0].container.network_interfaces[0].ipv6_address #=> String
|
1247
1296
|
# resp.jobs[0].container.network_interfaces[0].private_ipv_4_address #=> String
|
1297
|
+
# resp.jobs[0].container.resource_requirements #=> Array
|
1298
|
+
# resp.jobs[0].container.resource_requirements[0].value #=> String
|
1299
|
+
# resp.jobs[0].container.resource_requirements[0].type #=> String, one of "GPU"
|
1248
1300
|
# resp.jobs[0].node_details.node_index #=> Integer
|
1249
1301
|
# resp.jobs[0].node_details.is_main_node #=> Boolean
|
1250
1302
|
# resp.jobs[0].node_properties.num_nodes #=> Integer
|
@@ -1275,6 +1327,9 @@ module Aws::Batch
|
|
1275
1327
|
# resp.jobs[0].node_properties.node_range_properties[0].container.ulimits[0].soft_limit #=> Integer
|
1276
1328
|
# resp.jobs[0].node_properties.node_range_properties[0].container.user #=> String
|
1277
1329
|
# resp.jobs[0].node_properties.node_range_properties[0].container.instance_type #=> String
|
1330
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.resource_requirements #=> Array
|
1331
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.resource_requirements[0].value #=> String
|
1332
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.resource_requirements[0].type #=> String, one of "GPU"
|
1278
1333
|
# resp.jobs[0].array_properties.status_summary #=> Hash
|
1279
1334
|
# resp.jobs[0].array_properties.status_summary["String"] #=> Integer
|
1280
1335
|
# resp.jobs[0].array_properties.size #=> Integer
|
@@ -1478,7 +1533,7 @@ module Aws::Batch
|
|
1478
1533
|
#
|
1479
1534
|
#
|
1480
1535
|
#
|
1481
|
-
# [1]:
|
1536
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/job_timeouts.html
|
1482
1537
|
#
|
1483
1538
|
# @return [Types::RegisterJobDefinitionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1484
1539
|
#
|
@@ -1558,6 +1613,12 @@ module Aws::Batch
|
|
1558
1613
|
# ],
|
1559
1614
|
# user: "String",
|
1560
1615
|
# instance_type: "String",
|
1616
|
+
# resource_requirements: [
|
1617
|
+
# {
|
1618
|
+
# value: "String", # required
|
1619
|
+
# type: "GPU", # required, accepts GPU
|
1620
|
+
# },
|
1621
|
+
# ],
|
1561
1622
|
# },
|
1562
1623
|
# node_properties: {
|
1563
1624
|
# num_nodes: 1, # required
|
@@ -1603,6 +1664,12 @@ module Aws::Batch
|
|
1603
1664
|
# ],
|
1604
1665
|
# user: "String",
|
1605
1666
|
# instance_type: "String",
|
1667
|
+
# resource_requirements: [
|
1668
|
+
# {
|
1669
|
+
# value: "String", # required
|
1670
|
+
# type: "GPU", # required, accepts GPU
|
1671
|
+
# },
|
1672
|
+
# ],
|
1606
1673
|
# },
|
1607
1674
|
# },
|
1608
1675
|
# ],
|
@@ -1705,7 +1772,7 @@ module Aws::Batch
|
|
1705
1772
|
#
|
1706
1773
|
#
|
1707
1774
|
#
|
1708
|
-
# [1]:
|
1775
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/job_timeouts.html
|
1709
1776
|
#
|
1710
1777
|
# @return [Types::SubmitJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1711
1778
|
#
|
@@ -1758,8 +1825,15 @@ module Aws::Batch
|
|
1758
1825
|
# value: "String",
|
1759
1826
|
# },
|
1760
1827
|
# ],
|
1828
|
+
# resource_requirements: [
|
1829
|
+
# {
|
1830
|
+
# value: "String", # required
|
1831
|
+
# type: "GPU", # required, accepts GPU
|
1832
|
+
# },
|
1833
|
+
# ],
|
1761
1834
|
# },
|
1762
1835
|
# node_overrides: {
|
1836
|
+
# num_nodes: 1,
|
1763
1837
|
# node_property_overrides: [
|
1764
1838
|
# {
|
1765
1839
|
# target_nodes: "String", # required
|
@@ -1774,6 +1848,12 @@ module Aws::Batch
|
|
1774
1848
|
# value: "String",
|
1775
1849
|
# },
|
1776
1850
|
# ],
|
1851
|
+
# resource_requirements: [
|
1852
|
+
# {
|
1853
|
+
# value: "String", # required
|
1854
|
+
# type: "GPU", # required, accepts GPU
|
1855
|
+
# },
|
1856
|
+
# ],
|
1777
1857
|
# },
|
1778
1858
|
# },
|
1779
1859
|
# ],
|
@@ -2009,7 +2089,7 @@ module Aws::Batch
|
|
2009
2089
|
params: params,
|
2010
2090
|
config: config)
|
2011
2091
|
context[:gem_name] = 'aws-sdk-batch'
|
2012
|
-
context[:gem_version] = '1.
|
2092
|
+
context[:gem_version] = '1.16.0'
|
2013
2093
|
Seahorse::Client::Request.new(handlers, context)
|
2014
2094
|
end
|
2015
2095
|
|
@@ -93,6 +93,9 @@ module Aws::Batch
|
|
93
93
|
ParametersMap = Shapes::MapShape.new(name: 'ParametersMap')
|
94
94
|
RegisterJobDefinitionRequest = Shapes::StructureShape.new(name: 'RegisterJobDefinitionRequest')
|
95
95
|
RegisterJobDefinitionResponse = Shapes::StructureShape.new(name: 'RegisterJobDefinitionResponse')
|
96
|
+
ResourceRequirement = Shapes::StructureShape.new(name: 'ResourceRequirement')
|
97
|
+
ResourceRequirements = Shapes::ListShape.new(name: 'ResourceRequirements')
|
98
|
+
ResourceType = Shapes::StringShape.new(name: 'ResourceType')
|
96
99
|
RetryStrategy = Shapes::StructureShape.new(name: 'RetryStrategy')
|
97
100
|
ServerException = Shapes::StructureShape.new(name: 'ServerException')
|
98
101
|
String = Shapes::StringShape.new(name: 'String')
|
@@ -208,6 +211,7 @@ module Aws::Batch
|
|
208
211
|
ContainerDetail.add_member(:log_stream_name, Shapes::ShapeRef.new(shape: String, location_name: "logStreamName"))
|
209
212
|
ContainerDetail.add_member(:instance_type, Shapes::ShapeRef.new(shape: String, location_name: "instanceType"))
|
210
213
|
ContainerDetail.add_member(:network_interfaces, Shapes::ShapeRef.new(shape: NetworkInterfaceList, location_name: "networkInterfaces"))
|
214
|
+
ContainerDetail.add_member(:resource_requirements, Shapes::ShapeRef.new(shape: ResourceRequirements, location_name: "resourceRequirements"))
|
211
215
|
ContainerDetail.struct_class = Types::ContainerDetail
|
212
216
|
|
213
217
|
ContainerOverrides.add_member(:vcpus, Shapes::ShapeRef.new(shape: Integer, location_name: "vcpus"))
|
@@ -215,6 +219,7 @@ module Aws::Batch
|
|
215
219
|
ContainerOverrides.add_member(:command, Shapes::ShapeRef.new(shape: StringList, location_name: "command"))
|
216
220
|
ContainerOverrides.add_member(:instance_type, Shapes::ShapeRef.new(shape: String, location_name: "instanceType"))
|
217
221
|
ContainerOverrides.add_member(:environment, Shapes::ShapeRef.new(shape: EnvironmentVariables, location_name: "environment"))
|
222
|
+
ContainerOverrides.add_member(:resource_requirements, Shapes::ShapeRef.new(shape: ResourceRequirements, location_name: "resourceRequirements"))
|
218
223
|
ContainerOverrides.struct_class = Types::ContainerOverrides
|
219
224
|
|
220
225
|
ContainerProperties.add_member(:image, Shapes::ShapeRef.new(shape: String, location_name: "image"))
|
@@ -230,6 +235,7 @@ module Aws::Batch
|
|
230
235
|
ContainerProperties.add_member(:ulimits, Shapes::ShapeRef.new(shape: Ulimits, location_name: "ulimits"))
|
231
236
|
ContainerProperties.add_member(:user, Shapes::ShapeRef.new(shape: String, location_name: "user"))
|
232
237
|
ContainerProperties.add_member(:instance_type, Shapes::ShapeRef.new(shape: String, location_name: "instanceType"))
|
238
|
+
ContainerProperties.add_member(:resource_requirements, Shapes::ShapeRef.new(shape: ResourceRequirements, location_name: "resourceRequirements"))
|
233
239
|
ContainerProperties.struct_class = Types::ContainerProperties
|
234
240
|
|
235
241
|
ContainerSummary.add_member(:exit_code, Shapes::ShapeRef.new(shape: Integer, location_name: "exitCode"))
|
@@ -421,6 +427,7 @@ module Aws::Batch
|
|
421
427
|
NodeDetails.add_member(:is_main_node, Shapes::ShapeRef.new(shape: Boolean, location_name: "isMainNode"))
|
422
428
|
NodeDetails.struct_class = Types::NodeDetails
|
423
429
|
|
430
|
+
NodeOverrides.add_member(:num_nodes, Shapes::ShapeRef.new(shape: Integer, location_name: "numNodes"))
|
424
431
|
NodeOverrides.add_member(:node_property_overrides, Shapes::ShapeRef.new(shape: NodePropertyOverrides, location_name: "nodePropertyOverrides"))
|
425
432
|
NodeOverrides.struct_class = Types::NodeOverrides
|
426
433
|
|
@@ -463,6 +470,12 @@ module Aws::Batch
|
|
463
470
|
RegisterJobDefinitionResponse.add_member(:revision, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "revision"))
|
464
471
|
RegisterJobDefinitionResponse.struct_class = Types::RegisterJobDefinitionResponse
|
465
472
|
|
473
|
+
ResourceRequirement.add_member(:value, Shapes::ShapeRef.new(shape: String, required: true, location_name: "value"))
|
474
|
+
ResourceRequirement.add_member(:type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "type"))
|
475
|
+
ResourceRequirement.struct_class = Types::ResourceRequirement
|
476
|
+
|
477
|
+
ResourceRequirements.member = Shapes::ShapeRef.new(shape: ResourceRequirement)
|
478
|
+
|
466
479
|
RetryStrategy.add_member(:attempts, Shapes::ShapeRef.new(shape: Integer, location_name: "attempts"))
|
467
480
|
RetryStrategy.struct_class = Types::RetryStrategy
|
468
481
|
|
data/lib/aws-sdk-batch/types.rb
CHANGED
@@ -391,7 +391,7 @@ module Aws::Batch
|
|
391
391
|
#
|
392
392
|
#
|
393
393
|
#
|
394
|
-
# [1]:
|
394
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
|
395
395
|
# @return [String]
|
396
396
|
#
|
397
397
|
# @!attribute [rw] bid_percentage
|
@@ -568,6 +568,11 @@ module Aws::Batch
|
|
568
568
|
# The network interfaces associated with the job.
|
569
569
|
# @return [Array<Types::NetworkInterface>]
|
570
570
|
#
|
571
|
+
# @!attribute [rw] resource_requirements
|
572
|
+
# The type and amount of a resource to assign to a container.
|
573
|
+
# Currently, the only supported resource is `GPU`.
|
574
|
+
# @return [Array<Types::ResourceRequirement>]
|
575
|
+
#
|
571
576
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ContainerDetail AWS API Documentation
|
572
577
|
#
|
573
578
|
class ContainerDetail < Struct.new(
|
@@ -589,7 +594,8 @@ module Aws::Batch
|
|
589
594
|
:task_arn,
|
590
595
|
:log_stream_name,
|
591
596
|
:instance_type,
|
592
|
-
:network_interfaces
|
597
|
+
:network_interfaces,
|
598
|
+
:resource_requirements)
|
593
599
|
include Aws::Structure
|
594
600
|
end
|
595
601
|
|
@@ -609,6 +615,12 @@ module Aws::Batch
|
|
609
615
|
# value: "String",
|
610
616
|
# },
|
611
617
|
# ],
|
618
|
+
# resource_requirements: [
|
619
|
+
# {
|
620
|
+
# value: "String", # required
|
621
|
+
# type: "GPU", # required, accepts GPU
|
622
|
+
# },
|
623
|
+
# ],
|
612
624
|
# }
|
613
625
|
#
|
614
626
|
# @!attribute [rw] vcpus
|
@@ -644,6 +656,12 @@ module Aws::Batch
|
|
644
656
|
# </note>
|
645
657
|
# @return [Array<Types::KeyValuePair>]
|
646
658
|
#
|
659
|
+
# @!attribute [rw] resource_requirements
|
660
|
+
# The type and amount of a resource to assign to a container. This
|
661
|
+
# value overrides the value set in the job definition. Currently, the
|
662
|
+
# only supported resource is `GPU`.
|
663
|
+
# @return [Array<Types::ResourceRequirement>]
|
664
|
+
#
|
647
665
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ContainerOverrides AWS API Documentation
|
648
666
|
#
|
649
667
|
class ContainerOverrides < Struct.new(
|
@@ -651,7 +669,8 @@ module Aws::Batch
|
|
651
669
|
:memory,
|
652
670
|
:command,
|
653
671
|
:instance_type,
|
654
|
-
:environment
|
672
|
+
:environment,
|
673
|
+
:resource_requirements)
|
655
674
|
include Aws::Structure
|
656
675
|
end
|
657
676
|
|
@@ -699,6 +718,12 @@ module Aws::Batch
|
|
699
718
|
# ],
|
700
719
|
# user: "String",
|
701
720
|
# instance_type: "String",
|
721
|
+
# resource_requirements: [
|
722
|
+
# {
|
723
|
+
# value: "String", # required
|
724
|
+
# type: "GPU", # required, accepts GPU
|
725
|
+
# },
|
726
|
+
# ],
|
702
727
|
# }
|
703
728
|
#
|
704
729
|
# @!attribute [rw] image
|
@@ -881,6 +906,11 @@ module Aws::Batch
|
|
881
906
|
# jobs.
|
882
907
|
# @return [String]
|
883
908
|
#
|
909
|
+
# @!attribute [rw] resource_requirements
|
910
|
+
# The type and amount of a resource to assign to a container.
|
911
|
+
# Currently, the only supported resource is `GPU`.
|
912
|
+
# @return [Array<Types::ResourceRequirement>]
|
913
|
+
#
|
884
914
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ContainerProperties AWS API Documentation
|
885
915
|
#
|
886
916
|
class ContainerProperties < Struct.new(
|
@@ -896,7 +926,8 @@ module Aws::Batch
|
|
896
926
|
:privileged,
|
897
927
|
:ulimits,
|
898
928
|
:user,
|
899
|
-
:instance_type
|
929
|
+
:instance_type,
|
930
|
+
:resource_requirements)
|
900
931
|
include Aws::Structure
|
901
932
|
end
|
902
933
|
|
@@ -963,7 +994,7 @@ module Aws::Batch
|
|
963
994
|
#
|
964
995
|
#
|
965
996
|
#
|
966
|
-
# [1]:
|
997
|
+
# [1]: https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html
|
967
998
|
# @return [String]
|
968
999
|
#
|
969
1000
|
# @!attribute [rw] state
|
@@ -1467,7 +1498,13 @@ module Aws::Batch
|
|
1467
1498
|
# Default parameters or parameter substitution placeholders that are
|
1468
1499
|
# set in the job definition. Parameters are specified as a key-value
|
1469
1500
|
# pair mapping. Parameters in a `SubmitJob` request override any
|
1470
|
-
# corresponding parameter defaults from the job definition.
|
1501
|
+
# corresponding parameter defaults from the job definition. For more
|
1502
|
+
# information about specifying parameters, see [Job Definition
|
1503
|
+
# Parameters][1] in the *AWS Batch User Guide*.
|
1504
|
+
#
|
1505
|
+
#
|
1506
|
+
#
|
1507
|
+
# [1]: https://docs.aws.amazon.com/batch/latest/userguide/job_definition_parameters.html
|
1471
1508
|
# @return [Hash<String,String>]
|
1472
1509
|
#
|
1473
1510
|
# @!attribute [rw] retry_strategy
|
@@ -1558,7 +1595,7 @@ module Aws::Batch
|
|
1558
1595
|
#
|
1559
1596
|
#
|
1560
1597
|
#
|
1561
|
-
# [1]:
|
1598
|
+
# [1]: https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#job_stuck_in_runnable
|
1562
1599
|
# @return [String]
|
1563
1600
|
#
|
1564
1601
|
# @!attribute [rw] attempts
|
@@ -2030,6 +2067,7 @@ module Aws::Batch
|
|
2030
2067
|
# data as a hash:
|
2031
2068
|
#
|
2032
2069
|
# {
|
2070
|
+
# num_nodes: 1,
|
2033
2071
|
# node_property_overrides: [
|
2034
2072
|
# {
|
2035
2073
|
# target_nodes: "String", # required
|
@@ -2044,11 +2082,33 @@ module Aws::Batch
|
|
2044
2082
|
# value: "String",
|
2045
2083
|
# },
|
2046
2084
|
# ],
|
2085
|
+
# resource_requirements: [
|
2086
|
+
# {
|
2087
|
+
# value: "String", # required
|
2088
|
+
# type: "GPU", # required, accepts GPU
|
2089
|
+
# },
|
2090
|
+
# ],
|
2047
2091
|
# },
|
2048
2092
|
# },
|
2049
2093
|
# ],
|
2050
2094
|
# }
|
2051
2095
|
#
|
2096
|
+
# @!attribute [rw] num_nodes
|
2097
|
+
# The number of nodes to use with a multi-node parallel job. This
|
2098
|
+
# value overrides the number of nodes that are specified in the job
|
2099
|
+
# definition. To use this override:
|
2100
|
+
#
|
2101
|
+
# * There must be at least one node range in your job definition that
|
2102
|
+
# has an open upper boundary (such as `:` or `n:`).
|
2103
|
+
#
|
2104
|
+
# * The lower boundary of the node range specified in the job
|
2105
|
+
# definition must be fewer than the number of nodes specified in the
|
2106
|
+
# override.
|
2107
|
+
#
|
2108
|
+
# * The main node index specified in the job definition must be fewer
|
2109
|
+
# than the number of nodes specified in the override.
|
2110
|
+
# @return [Integer]
|
2111
|
+
#
|
2052
2112
|
# @!attribute [rw] node_property_overrides
|
2053
2113
|
# The node property overrides for the job.
|
2054
2114
|
# @return [Array<Types::NodePropertyOverride>]
|
@@ -2056,6 +2116,7 @@ module Aws::Batch
|
|
2056
2116
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/NodeOverrides AWS API Documentation
|
2057
2117
|
#
|
2058
2118
|
class NodeOverrides < Struct.new(
|
2119
|
+
:num_nodes,
|
2059
2120
|
:node_property_overrides)
|
2060
2121
|
include Aws::Structure
|
2061
2122
|
end
|
@@ -2110,6 +2171,12 @@ module Aws::Batch
|
|
2110
2171
|
# ],
|
2111
2172
|
# user: "String",
|
2112
2173
|
# instance_type: "String",
|
2174
|
+
# resource_requirements: [
|
2175
|
+
# {
|
2176
|
+
# value: "String", # required
|
2177
|
+
# type: "GPU", # required, accepts GPU
|
2178
|
+
# },
|
2179
|
+
# ],
|
2113
2180
|
# },
|
2114
2181
|
# },
|
2115
2182
|
# ],
|
@@ -2121,7 +2188,7 @@ module Aws::Batch
|
|
2121
2188
|
#
|
2122
2189
|
# @!attribute [rw] main_node
|
2123
2190
|
# Specifies the node index for the main node of a multi-node parallel
|
2124
|
-
# job.
|
2191
|
+
# job. This node index value must be fewer than the number of nodes.
|
2125
2192
|
# @return [Integer]
|
2126
2193
|
#
|
2127
2194
|
# @!attribute [rw] node_range_properties
|
@@ -2184,6 +2251,12 @@ module Aws::Batch
|
|
2184
2251
|
# value: "String",
|
2185
2252
|
# },
|
2186
2253
|
# ],
|
2254
|
+
# resource_requirements: [
|
2255
|
+
# {
|
2256
|
+
# value: "String", # required
|
2257
|
+
# type: "GPU", # required, accepts GPU
|
2258
|
+
# },
|
2259
|
+
# ],
|
2187
2260
|
# },
|
2188
2261
|
# }
|
2189
2262
|
#
|
@@ -2253,6 +2326,12 @@ module Aws::Batch
|
|
2253
2326
|
# ],
|
2254
2327
|
# user: "String",
|
2255
2328
|
# instance_type: "String",
|
2329
|
+
# resource_requirements: [
|
2330
|
+
# {
|
2331
|
+
# value: "String", # required
|
2332
|
+
# type: "GPU", # required, accepts GPU
|
2333
|
+
# },
|
2334
|
+
# ],
|
2256
2335
|
# },
|
2257
2336
|
# }
|
2258
2337
|
#
|
@@ -2326,6 +2405,12 @@ module Aws::Batch
|
|
2326
2405
|
# ],
|
2327
2406
|
# user: "String",
|
2328
2407
|
# instance_type: "String",
|
2408
|
+
# resource_requirements: [
|
2409
|
+
# {
|
2410
|
+
# value: "String", # required
|
2411
|
+
# type: "GPU", # required, accepts GPU
|
2412
|
+
# },
|
2413
|
+
# ],
|
2329
2414
|
# },
|
2330
2415
|
# node_properties: {
|
2331
2416
|
# num_nodes: 1, # required
|
@@ -2371,6 +2456,12 @@ module Aws::Batch
|
|
2371
2456
|
# ],
|
2372
2457
|
# user: "String",
|
2373
2458
|
# instance_type: "String",
|
2459
|
+
# resource_requirements: [
|
2460
|
+
# {
|
2461
|
+
# value: "String", # required
|
2462
|
+
# type: "GPU", # required, accepts GPU
|
2463
|
+
# },
|
2464
|
+
# ],
|
2374
2465
|
# },
|
2375
2466
|
# },
|
2376
2467
|
# ],
|
@@ -2439,7 +2530,7 @@ module Aws::Batch
|
|
2439
2530
|
#
|
2440
2531
|
#
|
2441
2532
|
#
|
2442
|
-
# [1]:
|
2533
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/job_timeouts.html
|
2443
2534
|
# @return [Types::JobTimeout]
|
2444
2535
|
#
|
2445
2536
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinitionRequest AWS API Documentation
|
@@ -2476,6 +2567,37 @@ module Aws::Batch
|
|
2476
2567
|
include Aws::Structure
|
2477
2568
|
end
|
2478
2569
|
|
2570
|
+
# The type and amount of a resource to assign to a container. Currently,
|
2571
|
+
# the only supported resource type is `GPU`.
|
2572
|
+
#
|
2573
|
+
# @note When making an API call, you may pass ResourceRequirement
|
2574
|
+
# data as a hash:
|
2575
|
+
#
|
2576
|
+
# {
|
2577
|
+
# value: "String", # required
|
2578
|
+
# type: "GPU", # required, accepts GPU
|
2579
|
+
# }
|
2580
|
+
#
|
2581
|
+
# @!attribute [rw] value
|
2582
|
+
# The number of physical GPUs to reserve for the container. The number
|
2583
|
+
# of GPUs reserved for all containers in a job should not exceed the
|
2584
|
+
# number of available GPUs on the compute resource that the job is
|
2585
|
+
# launched on.
|
2586
|
+
# @return [String]
|
2587
|
+
#
|
2588
|
+
# @!attribute [rw] type
|
2589
|
+
# The type of resource to assign to a container. Currently, the only
|
2590
|
+
# supported resource type is `GPU`.
|
2591
|
+
# @return [String]
|
2592
|
+
#
|
2593
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ResourceRequirement AWS API Documentation
|
2594
|
+
#
|
2595
|
+
class ResourceRequirement < Struct.new(
|
2596
|
+
:value,
|
2597
|
+
:type)
|
2598
|
+
include Aws::Structure
|
2599
|
+
end
|
2600
|
+
|
2479
2601
|
# The retry strategy associated with a job.
|
2480
2602
|
#
|
2481
2603
|
# @note When making an API call, you may pass RetryStrategy
|
@@ -2529,8 +2651,15 @@ module Aws::Batch
|
|
2529
2651
|
# value: "String",
|
2530
2652
|
# },
|
2531
2653
|
# ],
|
2654
|
+
# resource_requirements: [
|
2655
|
+
# {
|
2656
|
+
# value: "String", # required
|
2657
|
+
# type: "GPU", # required, accepts GPU
|
2658
|
+
# },
|
2659
|
+
# ],
|
2532
2660
|
# },
|
2533
2661
|
# node_overrides: {
|
2662
|
+
# num_nodes: 1,
|
2534
2663
|
# node_property_overrides: [
|
2535
2664
|
# {
|
2536
2665
|
# target_nodes: "String", # required
|
@@ -2545,6 +2674,12 @@ module Aws::Batch
|
|
2545
2674
|
# value: "String",
|
2546
2675
|
# },
|
2547
2676
|
# ],
|
2677
|
+
# resource_requirements: [
|
2678
|
+
# {
|
2679
|
+
# value: "String", # required
|
2680
|
+
# type: "GPU", # required, accepts GPU
|
2681
|
+
# },
|
2682
|
+
# ],
|
2548
2683
|
# },
|
2549
2684
|
# },
|
2550
2685
|
# ],
|
@@ -2638,7 +2773,7 @@ module Aws::Batch
|
|
2638
2773
|
#
|
2639
2774
|
#
|
2640
2775
|
#
|
2641
|
-
# [1]:
|
2776
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/job_timeouts.html
|
2642
2777
|
# @return [Types::JobTimeout]
|
2643
2778
|
#
|
2644
2779
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJobRequest AWS API Documentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-batch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03
|
11
|
+
date: 2019-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|