aws-sdk-batch 1.3.0 → 1.4.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
  SHA1:
3
- metadata.gz: 660540f10f4b01f51f15f8ba707a1b8831790c2b
4
- data.tar.gz: 98289444c3b798267f4f512a86f54bbe9a89adbd
3
+ metadata.gz: c6cec8aac28cdf503dc1884567175d278acb0fdf
4
+ data.tar.gz: 88d7664fee2b6ff704b5b697ab189862716c540a
5
5
  SHA512:
6
- metadata.gz: f2fe01fe2f20a2eb89d53265827e7680ef954a173aa277a5520de285b6757ff612bc178143245056b8a79574f085108bb3a389e8e7b56cf25fe1f389eebac770
7
- data.tar.gz: 074804531a19749e5bb5bc32224029d509600fca759046b980455233e214ac1b419b0305efa9f3e35ef772a7c17f553d8155fc13eaaa275e38f08888d84f2ad0
6
+ metadata.gz: 70f650e9cacd80136037c1b424b4b68a6553a3949117cb98214861f188a512e5414ec8ed54211adaadeb7e1d9884d14ef72cea6c83d8180fd14f826a56b8c805
7
+ data.tar.gz: b2ebb1d0639ef5327d7377bdea549f5ecd87d7cec5c72aa7ebe475edceab1bb292b5b8248180914fa8f5832b0901eef95275785d5be3826fb6f98b4d0c7fa28f
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-batch/customizations'
42
42
  # @service
43
43
  module Aws::Batch
44
44
 
45
- GEM_VERSION = '1.3.0'
45
+ GEM_VERSION = '1.4.0'
46
46
 
47
47
  end
@@ -881,6 +881,7 @@ module Aws::Batch
881
881
  # resp.job_definitions[0].container_properties.ulimits[0].name #=> String
882
882
  # resp.job_definitions[0].container_properties.ulimits[0].soft_limit #=> Integer
883
883
  # resp.job_definitions[0].container_properties.user #=> String
884
+ # resp.job_definitions[0].timeout.attempt_duration_seconds #=> Integer
884
885
  # resp.next_token #=> String
885
886
  #
886
887
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions AWS API Documentation
@@ -1112,6 +1113,7 @@ module Aws::Batch
1112
1113
  # resp.jobs[0].array_properties.status_summary["String"] #=> Integer
1113
1114
  # resp.jobs[0].array_properties.size #=> Integer
1114
1115
  # resp.jobs[0].array_properties.index #=> Integer
1116
+ # resp.jobs[0].timeout.attempt_duration_seconds #=> Integer
1115
1117
  #
1116
1118
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobs AWS API Documentation
1117
1119
  #
@@ -1262,7 +1264,22 @@ module Aws::Batch
1262
1264
  # @option params [Types::RetryStrategy] :retry_strategy
1263
1265
  # The retry strategy to use for failed jobs that are submitted with this
1264
1266
  # job definition. Any retry strategy that is specified during a
1265
- # SubmitJob operation overrides the retry strategy defined here.
1267
+ # SubmitJob operation overrides the retry strategy defined here. If a
1268
+ # job is terminated due to a timeout, it is not retried.
1269
+ #
1270
+ # @option params [Types::JobTimeout] :timeout
1271
+ # The timeout configuration for jobs that are submitted with this job
1272
+ # definition, after which AWS Batch terminates your jobs if they have
1273
+ # not finished. If a job is terminated due to a timeout, it is not
1274
+ # retried. The minimum value for the timeout is 60 seconds. Any timeout
1275
+ # configuration that is specified during a SubmitJob operation overrides
1276
+ # the timeout configuration defined here. For more information, see [Job
1277
+ # Timeouts][1] in the *Amazon Elastic Container Service Developer
1278
+ # Guide*.
1279
+ #
1280
+ #
1281
+ #
1282
+ # [1]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/job_timeouts.html
1266
1283
  #
1267
1284
  # @return [Types::RegisterJobDefinitionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1268
1285
  #
@@ -1345,6 +1362,9 @@ module Aws::Batch
1345
1362
  # retry_strategy: {
1346
1363
  # attempts: 1,
1347
1364
  # },
1365
+ # timeout: {
1366
+ # attempt_duration_seconds: 1,
1367
+ # },
1348
1368
  # })
1349
1369
  #
1350
1370
  # @example Response structure
@@ -1420,6 +1440,21 @@ module Aws::Batch
1420
1440
  # operation. When a retry strategy is specified here, it overrides the
1421
1441
  # retry strategy defined in the job definition.
1422
1442
  #
1443
+ # @option params [Types::JobTimeout] :timeout
1444
+ # The timeout configuration for this SubmitJob operation. You can
1445
+ # specify a timeout duration after which AWS Batch terminates your jobs
1446
+ # if they have not finished. If a job is terminated due to a timeout, it
1447
+ # is not retried. The minimum value for the timeout is 60 seconds. This
1448
+ # configuration overrides any timeout configuration specified in the job
1449
+ # definition. For array jobs, child jobs have the same timeout
1450
+ # configuration as the parent job. For more information, see [Job
1451
+ # Timeouts][1] in the *Amazon Elastic Container Service Developer
1452
+ # Guide*.
1453
+ #
1454
+ #
1455
+ #
1456
+ # [1]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/job_timeouts.html
1457
+ #
1423
1458
  # @return [Types::SubmitJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1424
1459
  #
1425
1460
  # * {Types::SubmitJobResponse#job_name #job_name} => String
@@ -1474,6 +1509,9 @@ module Aws::Batch
1474
1509
  # retry_strategy: {
1475
1510
  # attempts: 1,
1476
1511
  # },
1512
+ # timeout: {
1513
+ # attempt_duration_seconds: 1,
1514
+ # },
1477
1515
  # })
1478
1516
  #
1479
1517
  # @example Response structure
@@ -1699,7 +1737,7 @@ module Aws::Batch
1699
1737
  params: params,
1700
1738
  config: config)
1701
1739
  context[:gem_name] = 'aws-sdk-batch'
1702
- context[:gem_version] = '1.3.0'
1740
+ context[:gem_version] = '1.4.0'
1703
1741
  Seahorse::Client::Request.new(handlers, context)
1704
1742
  end
1705
1743
 
@@ -72,6 +72,7 @@ module Aws::Batch
72
72
  JobStatus = Shapes::StringShape.new(name: 'JobStatus')
73
73
  JobSummary = Shapes::StructureShape.new(name: 'JobSummary')
74
74
  JobSummaryList = Shapes::ListShape.new(name: 'JobSummaryList')
75
+ JobTimeout = Shapes::StructureShape.new(name: 'JobTimeout')
75
76
  KeyValuePair = Shapes::StructureShape.new(name: 'KeyValuePair')
76
77
  ListJobsRequest = Shapes::StructureShape.new(name: 'ListJobsRequest')
77
78
  ListJobsResponse = Shapes::StructureShape.new(name: 'ListJobsResponse')
@@ -301,6 +302,7 @@ module Aws::Batch
301
302
  JobDefinition.add_member(:parameters, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "parameters"))
302
303
  JobDefinition.add_member(:retry_strategy, Shapes::ShapeRef.new(shape: RetryStrategy, location_name: "retryStrategy"))
303
304
  JobDefinition.add_member(:container_properties, Shapes::ShapeRef.new(shape: ContainerProperties, location_name: "containerProperties"))
305
+ JobDefinition.add_member(:timeout, Shapes::ShapeRef.new(shape: JobTimeout, location_name: "timeout"))
304
306
  JobDefinition.struct_class = Types::JobDefinition
305
307
 
306
308
  JobDefinitionList.member = Shapes::ShapeRef.new(shape: JobDefinition)
@@ -326,6 +328,7 @@ module Aws::Batch
326
328
  JobDetail.add_member(:parameters, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "parameters"))
327
329
  JobDetail.add_member(:container, Shapes::ShapeRef.new(shape: ContainerDetail, location_name: "container"))
328
330
  JobDetail.add_member(:array_properties, Shapes::ShapeRef.new(shape: ArrayPropertiesDetail, location_name: "arrayProperties"))
331
+ JobDetail.add_member(:timeout, Shapes::ShapeRef.new(shape: JobTimeout, location_name: "timeout"))
329
332
  JobDetail.struct_class = Types::JobDetail
330
333
 
331
334
  JobDetailList.member = Shapes::ShapeRef.new(shape: JobDetail)
@@ -354,6 +357,9 @@ module Aws::Batch
354
357
 
355
358
  JobSummaryList.member = Shapes::ShapeRef.new(shape: JobSummary)
356
359
 
360
+ JobTimeout.add_member(:attempt_duration_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "attemptDurationSeconds"))
361
+ JobTimeout.struct_class = Types::JobTimeout
362
+
357
363
  KeyValuePair.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
358
364
  KeyValuePair.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
359
365
  KeyValuePair.struct_class = Types::KeyValuePair
@@ -384,6 +390,7 @@ module Aws::Batch
384
390
  RegisterJobDefinitionRequest.add_member(:parameters, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "parameters"))
385
391
  RegisterJobDefinitionRequest.add_member(:container_properties, Shapes::ShapeRef.new(shape: ContainerProperties, location_name: "containerProperties"))
386
392
  RegisterJobDefinitionRequest.add_member(:retry_strategy, Shapes::ShapeRef.new(shape: RetryStrategy, location_name: "retryStrategy"))
393
+ RegisterJobDefinitionRequest.add_member(:timeout, Shapes::ShapeRef.new(shape: JobTimeout, location_name: "timeout"))
387
394
  RegisterJobDefinitionRequest.struct_class = Types::RegisterJobDefinitionRequest
388
395
 
389
396
  RegisterJobDefinitionResponse.add_member(:job_definition_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "jobDefinitionName"))
@@ -404,6 +411,7 @@ module Aws::Batch
404
411
  SubmitJobRequest.add_member(:parameters, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "parameters"))
405
412
  SubmitJobRequest.add_member(:container_overrides, Shapes::ShapeRef.new(shape: ContainerOverrides, location_name: "containerOverrides"))
406
413
  SubmitJobRequest.add_member(:retry_strategy, Shapes::ShapeRef.new(shape: RetryStrategy, location_name: "retryStrategy"))
414
+ SubmitJobRequest.add_member(:timeout, Shapes::ShapeRef.new(shape: JobTimeout, location_name: "timeout"))
407
415
  SubmitJobRequest.struct_class = Types::SubmitJobRequest
408
416
 
409
417
  SubmitJobResponse.add_member(:job_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "jobName"))
@@ -123,15 +123,16 @@ module Aws::Batch
123
123
  # @return [Types::AttemptContainerDetail]
124
124
  #
125
125
  # @!attribute [rw] started_at
126
- # The Unix time stamp for when the attempt was started (when the
127
- # attempt transitioned from the `STARTING` state to the `RUNNING`
128
- # state).
126
+ # The Unix time stamp (in seconds and milliseconds) for when the
127
+ # attempt was started (when the attempt transitioned from the
128
+ # `STARTING` state to the `RUNNING` state).
129
129
  # @return [Integer]
130
130
  #
131
131
  # @!attribute [rw] stopped_at
132
- # The Unix time stamp for when the attempt was stopped (when the
133
- # attempt transitioned from the `RUNNING` state to a terminal state,
134
- # such as `SUCCEEDED` or `FAILED`).
132
+ # The Unix time stamp (in seconds and milliseconds) for when the
133
+ # attempt was stopped (when the attempt transitioned from the
134
+ # `RUNNING` state to a terminal state, such as `SUCCEEDED` or
135
+ # `FAILED`).
135
136
  # @return [Integer]
136
137
  #
137
138
  # @!attribute [rw] status_reason
@@ -684,11 +685,18 @@ module Aws::Batch
684
685
  # `--memory` option to [docker run][3]. You must specify at least 4
685
686
  # MiB of memory for a job.
686
687
  #
688
+ # <note markdown="1"> If you are trying to maximize your resource utilization by providing
689
+ # your jobs as much memory as possible for a particular instance type,
690
+ # see [Memory Management][4] in the *AWS Batch User Guide*.
691
+ #
692
+ # </note>
693
+ #
687
694
  #
688
695
  #
689
696
  # [1]: https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container
690
697
  # [2]: https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/
691
698
  # [3]: https://docs.docker.com/engine/reference/run/
699
+ # [4]: http://docs.aws.amazon.com/batch/latest/userguide/memory-management.html
692
700
  # @return [Integer]
693
701
  #
694
702
  # @!attribute [rw] command
@@ -1384,6 +1392,12 @@ module Aws::Batch
1384
1392
  # An object with various properties specific to container-based jobs.
1385
1393
  # @return [Types::ContainerProperties]
1386
1394
  #
1395
+ # @!attribute [rw] timeout
1396
+ # The timeout configuration for jobs that are submitted with this job
1397
+ # definition. You can specify a timeout duration after which AWS Batch
1398
+ # terminates your jobs if they have not finished.
1399
+ # @return [Types::JobTimeout]
1400
+ #
1387
1401
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/JobDefinition AWS API Documentation
1388
1402
  #
1389
1403
  class JobDefinition < Struct.new(
@@ -1394,7 +1408,8 @@ module Aws::Batch
1394
1408
  :type,
1395
1409
  :parameters,
1396
1410
  :retry_strategy,
1397
- :container_properties)
1411
+ :container_properties,
1412
+ :timeout)
1398
1413
  include Aws::Structure
1399
1414
  end
1400
1415
 
@@ -1453,11 +1468,11 @@ module Aws::Batch
1453
1468
  # @return [String]
1454
1469
  #
1455
1470
  # @!attribute [rw] created_at
1456
- # The Unix time stamp for when the job was created. For non-array jobs
1457
- # and parent array jobs, this is when the job entered the `SUBMITTED`
1458
- # state (at the time SubmitJob was called). For array child jobs, this
1459
- # is when the child job was spawned by its parent and entered the
1460
- # `PENDING` state.
1471
+ # The Unix time stamp (in seconds and milliseconds) for when the job
1472
+ # was created. For non-array jobs and parent array jobs, this is when
1473
+ # the job entered the `SUBMITTED` state (at the time SubmitJob was
1474
+ # called). For array child jobs, this is when the child job was
1475
+ # spawned by its parent and entered the `PENDING` state.
1461
1476
  # @return [Integer]
1462
1477
  #
1463
1478
  # @!attribute [rw] retry_strategy
@@ -1465,14 +1480,15 @@ module Aws::Batch
1465
1480
  # @return [Types::RetryStrategy]
1466
1481
  #
1467
1482
  # @!attribute [rw] started_at
1468
- # The Unix time stamp for when the job was started (when the job
1469
- # transitioned from the `STARTING` state to the `RUNNING` state).
1483
+ # The Unix time stamp (in seconds and milliseconds) for when the job
1484
+ # was started (when the job transitioned from the `STARTING` state to
1485
+ # the `RUNNING` state).
1470
1486
  # @return [Integer]
1471
1487
  #
1472
1488
  # @!attribute [rw] stopped_at
1473
- # The Unix time stamp for when the job was stopped (when the job
1474
- # transitioned from the `RUNNING` state to a terminal state, such as
1475
- # `SUCCEEDED` or `FAILED`).
1489
+ # The Unix time stamp (in seconds and milliseconds) for when the job
1490
+ # was stopped (when the job transitioned from the `RUNNING` state to a
1491
+ # terminal state, such as `SUCCEEDED` or `FAILED`).
1476
1492
  # @return [Integer]
1477
1493
  #
1478
1494
  # @!attribute [rw] depends_on
@@ -1498,6 +1514,10 @@ module Aws::Batch
1498
1514
  # The array properties of the job, if it is an array job.
1499
1515
  # @return [Types::ArrayPropertiesDetail]
1500
1516
  #
1517
+ # @!attribute [rw] timeout
1518
+ # The timeout configuration for the job.
1519
+ # @return [Types::JobTimeout]
1520
+ #
1501
1521
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/JobDetail AWS API Documentation
1502
1522
  #
1503
1523
  class JobDetail < Struct.new(
@@ -1515,7 +1535,8 @@ module Aws::Batch
1515
1535
  :job_definition,
1516
1536
  :parameters,
1517
1537
  :container,
1518
- :array_properties)
1538
+ :array_properties,
1539
+ :timeout)
1519
1540
  include Aws::Structure
1520
1541
  end
1521
1542
 
@@ -1627,6 +1648,28 @@ module Aws::Batch
1627
1648
  include Aws::Structure
1628
1649
  end
1629
1650
 
1651
+ # An object representing a job timeout configuration.
1652
+ #
1653
+ # @note When making an API call, you may pass JobTimeout
1654
+ # data as a hash:
1655
+ #
1656
+ # {
1657
+ # attempt_duration_seconds: 1,
1658
+ # }
1659
+ #
1660
+ # @!attribute [rw] attempt_duration_seconds
1661
+ # The time duration in seconds (measured from the job attempt's
1662
+ # `startedAt` timestamp) after which AWS Batch terminates your jobs if
1663
+ # they have not finished.
1664
+ # @return [Integer]
1665
+ #
1666
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/JobTimeout AWS API Documentation
1667
+ #
1668
+ class JobTimeout < Struct.new(
1669
+ :attempt_duration_seconds)
1670
+ include Aws::Structure
1671
+ end
1672
+
1630
1673
  # A key-value pair object.
1631
1674
  #
1632
1675
  # @note When making an API call, you may pass KeyValuePair
@@ -1821,6 +1864,9 @@ module Aws::Batch
1821
1864
  # retry_strategy: {
1822
1865
  # attempts: 1,
1823
1866
  # },
1867
+ # timeout: {
1868
+ # attempt_duration_seconds: 1,
1869
+ # },
1824
1870
  # }
1825
1871
  #
1826
1872
  # @!attribute [rw] job_definition_name
@@ -1848,9 +1894,25 @@ module Aws::Batch
1848
1894
  # @!attribute [rw] retry_strategy
1849
1895
  # The retry strategy to use for failed jobs that are submitted with
1850
1896
  # this job definition. Any retry strategy that is specified during a
1851
- # SubmitJob operation overrides the retry strategy defined here.
1897
+ # SubmitJob operation overrides the retry strategy defined here. If a
1898
+ # job is terminated due to a timeout, it is not retried.
1852
1899
  # @return [Types::RetryStrategy]
1853
1900
  #
1901
+ # @!attribute [rw] timeout
1902
+ # The timeout configuration for jobs that are submitted with this job
1903
+ # definition, after which AWS Batch terminates your jobs if they have
1904
+ # not finished. If a job is terminated due to a timeout, it is not
1905
+ # retried. The minimum value for the timeout is 60 seconds. Any
1906
+ # timeout configuration that is specified during a SubmitJob operation
1907
+ # overrides the timeout configuration defined here. For more
1908
+ # information, see [Job Timeouts][1] in the *Amazon Elastic Container
1909
+ # Service Developer Guide*.
1910
+ #
1911
+ #
1912
+ #
1913
+ # [1]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/job_timeouts.html
1914
+ # @return [Types::JobTimeout]
1915
+ #
1854
1916
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinitionRequest AWS API Documentation
1855
1917
  #
1856
1918
  class RegisterJobDefinitionRequest < Struct.new(
@@ -1858,7 +1920,8 @@ module Aws::Batch
1858
1920
  :type,
1859
1921
  :parameters,
1860
1922
  :container_properties,
1861
- :retry_strategy)
1923
+ :retry_strategy,
1924
+ :timeout)
1862
1925
  include Aws::Structure
1863
1926
  end
1864
1927
 
@@ -1939,6 +2002,9 @@ module Aws::Batch
1939
2002
  # retry_strategy: {
1940
2003
  # attempts: 1,
1941
2004
  # },
2005
+ # timeout: {
2006
+ # attempt_duration_seconds: 1,
2007
+ # },
1942
2008
  # }
1943
2009
  #
1944
2010
  # @!attribute [rw] job_name
@@ -2004,6 +2070,22 @@ module Aws::Batch
2004
2070
  # retry strategy defined in the job definition.
2005
2071
  # @return [Types::RetryStrategy]
2006
2072
  #
2073
+ # @!attribute [rw] timeout
2074
+ # The timeout configuration for this SubmitJob operation. You can
2075
+ # specify a timeout duration after which AWS Batch terminates your
2076
+ # jobs if they have not finished. If a job is terminated due to a
2077
+ # timeout, it is not retried. The minimum value for the timeout is 60
2078
+ # seconds. This configuration overrides any timeout configuration
2079
+ # specified in the job definition. For array jobs, child jobs have the
2080
+ # same timeout configuration as the parent job. For more information,
2081
+ # see [Job Timeouts][1] in the *Amazon Elastic Container Service
2082
+ # Developer Guide*.
2083
+ #
2084
+ #
2085
+ #
2086
+ # [1]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/job_timeouts.html
2087
+ # @return [Types::JobTimeout]
2088
+ #
2007
2089
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJobRequest AWS API Documentation
2008
2090
  #
2009
2091
  class SubmitJobRequest < Struct.new(
@@ -2014,7 +2096,8 @@ module Aws::Batch
2014
2096
  :job_definition,
2015
2097
  :parameters,
2016
2098
  :container_overrides,
2017
- :retry_strategy)
2099
+ :retry_strategy,
2100
+ :timeout)
2018
2101
  include Aws::Structure
2019
2102
  end
2020
2103
 
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.3.0
4
+ version: 1.4.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: 2017-11-29 00:00:00.000000000 Z
11
+ date: 2018-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.5.1
78
+ rubygems_version: 2.5.2.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: AWS SDK for Ruby - AWS Batch