aws-sdk-batch 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 929589033e7b170e8002a972f4f4859eee98ca70
4
- data.tar.gz: 4ae83527a75082b2563b89c8ee7bd09ca011b1bd
3
+ metadata.gz: ecb3b409c127709eb461ec05519851b4fa8e1349
4
+ data.tar.gz: 81cc383a6570aae421fc2c7b9bf4aad1c1458758
5
5
  SHA512:
6
- metadata.gz: 8e03d506be9b7e5c494905e5d11680814416af0e9829cb315b57fdd74fe809f3f2c687394500e3161c841ecafff65568542adf9b1a4afc85ad878c10ce4b6bdb
7
- data.tar.gz: c0fdcc8a82ed674312071e3a149ff49c5ec8b373f79abb1cebb4a61a301328b5697067e2ce73df1ed781cb9175a01252e386c9f0fdad74c29dcaab4d69c147f3
6
+ metadata.gz: 6645c1903096f25d6c755f4277a405543cf89d7e99b2640ffd2cea73cfb00e74418ce8801eb03cec805ec75219ec0cd897cb5d41a7d8951e94529210f2db8a28
7
+ data.tar.gz: 399dcf194e64feba6b53611b773aef2ca7ccae3c7e3f34ffa6eefd4c4804b4815ebb38020e73a792e5d62b9ea1b1dce71fd53a3797916e343c734df80eb47d32
data/lib/aws-sdk-batch.rb CHANGED
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-batch/customizations'
42
42
  # @service
43
43
  module Aws::Batch
44
44
 
45
- GEM_VERSION = '1.0.0'
45
+ GEM_VERSION = '1.1.0'
46
46
 
47
47
  end
@@ -197,10 +197,11 @@ module Aws::Batch
197
197
  # In a managed compute environment, AWS Batch manages the compute
198
198
  # resources within the environment, based on the compute resources that
199
199
  # you specify. Instances launched into a managed compute environment use
200
- # the latest Amazon ECS-optimized AMI. You can choose to use Amazon EC2
201
- # On-Demand instances in your managed compute environment, or you can
202
- # use Amazon EC2 Spot instances that only launch when the Spot bid price
203
- # is below a specified percentage of the On-Demand price.
200
+ # a recent, approved version of the Amazon ECS-optimized AMI. You can
201
+ # choose to use Amazon EC2 On-Demand instances in your managed compute
202
+ # environment, or you can use Amazon EC2 Spot instances that only launch
203
+ # when the Spot bid price is below a specified percentage of the
204
+ # On-Demand price.
204
205
  #
205
206
  # In an unmanaged compute environment, you can manage your own compute
206
207
  # resources. This provides more compute resource configuration options,
@@ -240,6 +241,19 @@ module Aws::Batch
240
241
  # The full Amazon Resource Name (ARN) of the IAM role that allows AWS
241
242
  # Batch to make calls to other AWS services on your behalf.
242
243
  #
244
+ # If your specified role has a path other than `/`, then you must either
245
+ # specify the full role ARN (this is recommended) or prefix the role
246
+ # name with the path.
247
+ #
248
+ # <note markdown="1"> Depending on how you created your AWS Batch service role, its ARN may
249
+ # contain the `service-role` path prefix. When you only specify the name
250
+ # of the service role, AWS Batch assumes that your ARN does not use the
251
+ # `service-role` path prefix. Because of this, we recommend that you
252
+ # specify the full ARN of your service role when you create compute
253
+ # environments.
254
+ #
255
+ # </note>
256
+ #
243
257
  # @return [Types::CreateComputeEnvironmentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
244
258
  #
245
259
  # * {Types::CreateComputeEnvironmentResponse#compute_environment_name #compute_environment_name} => String
@@ -248,7 +262,8 @@ module Aws::Batch
248
262
  #
249
263
  # @example Example: To create a managed EC2 compute environment
250
264
  #
251
- # # This example creates a managed compute environment with specific C4 instance types that are launched on demand. The compute environment is called C4OnDemand.
265
+ # # This example creates a managed compute environment with specific C4 instance types that are launched on demand. The
266
+ # # compute environment is called C4OnDemand.
252
267
  #
253
268
  # resp = client.create_compute_environment({
254
269
  # type: "MANAGED",
@@ -291,7 +306,8 @@ module Aws::Batch
291
306
  #
292
307
  # @example Example: To create a managed EC2 Spot compute environment
293
308
  #
294
- # # This example creates a managed compute environment with the M4 instance type that is launched when the Spot bid price is at or below 20% of the On-Demand price for the instance type. The compute environment is called M4Spot.
309
+ # # This example creates a managed compute environment with the M4 instance type that is launched when the Spot bid price is
310
+ # # at or below 20% of the On-Demand price for the instance type. The compute environment is called M4Spot.
295
311
  #
296
312
  # resp = client.create_compute_environment({
297
313
  # type: "MANAGED",
@@ -389,11 +405,11 @@ module Aws::Batch
389
405
  #
390
406
  # @option params [required, Integer] :priority
391
407
  # The priority of the job queue. Job queues with a higher priority (or a
392
- # lower integer value for the `priority` parameter) are evaluated first
408
+ # higher integer value for the `priority` parameter) are evaluated first
393
409
  # when associated with same compute environment. Priority is determined
394
- # in ascending order, for example, a job queue with a priority value of
395
- # `1` is given scheduling preference over a job queue with a priority
396
- # value of `10`.
410
+ # in descending order, for example, a job queue with a priority value of
411
+ # `10` is given scheduling preference over a job queue with a priority
412
+ # value of `1`.
397
413
  #
398
414
  # @option params [required, Array<Types::ComputeEnvironmentOrder>] :compute_environment_order
399
415
  # The set of compute environments mapped to a job queue and their order
@@ -421,7 +437,7 @@ module Aws::Batch
421
437
  # },
422
438
  # ],
423
439
  # job_queue_name: "LowPriority",
424
- # priority: 10,
440
+ # priority: 1,
425
441
  # state: "ENABLED",
426
442
  # })
427
443
  #
@@ -433,7 +449,8 @@ module Aws::Batch
433
449
  #
434
450
  # @example Example: To create a job queue with multiple compute environments
435
451
  #
436
- # # This example creates a job queue called HighPriority that uses the C4OnDemand compute environment with an order of 1 and the M4Spot compute environment with an order of 2.
452
+ # # This example creates a job queue called HighPriority that uses the C4OnDemand compute environment with an order of 1 and
453
+ # # the M4Spot compute environment with an order of 2.
437
454
  #
438
455
  # resp = client.create_job_queue({
439
456
  # compute_environment_order: [
@@ -447,7 +464,7 @@ module Aws::Batch
447
464
  # },
448
465
  # ],
449
466
  # job_queue_name: "HighPriority",
450
- # priority: 1,
467
+ # priority: 10,
451
468
  # state: "ENABLED",
452
469
  # })
453
470
  #
@@ -527,8 +544,8 @@ module Aws::Batch
527
544
  end
528
545
 
529
546
  # Deletes the specified job queue. You must first disable submissions
530
- # for a queue with the UpdateJobQueue operation and terminate any jobs
531
- # that have not completed with the TerminateJob.
547
+ # for a queue with the UpdateJobQueue operation. All jobs in the queue
548
+ # are terminated when you delete a job queue.
532
549
  #
533
550
  # It is not necessary to disassociate compute environments from a queue
534
551
  # before submitting a `DeleteJobQueue` request.
@@ -1101,14 +1118,16 @@ module Aws::Batch
1101
1118
  end
1102
1119
 
1103
1120
  # Returns a list of task jobs for a specified job queue. You can filter
1104
- # the results by job status with the `jobStatus` parameter.
1121
+ # the results by job status with the `jobStatus` parameter. If you do
1122
+ # not specify a status, only `RUNNING` jobs are returned.
1105
1123
  #
1106
1124
  # @option params [required, String] :job_queue
1107
1125
  # The name or full Amazon Resource Name (ARN) of the job queue with
1108
1126
  # which to list jobs.
1109
1127
  #
1110
1128
  # @option params [String] :job_status
1111
- # The job status with which to filter jobs in the specified queue.
1129
+ # The job status with which to filter jobs in the specified queue. If
1130
+ # you do not specify a status, only `RUNNING` jobs are returned.
1112
1131
  #
1113
1132
  # @option params [Integer] :max_results
1114
1133
  # The maximum number of results returned by `ListJobs` in paginated
@@ -1204,7 +1223,9 @@ module Aws::Batch
1204
1223
  # Registers an AWS Batch job definition.
1205
1224
  #
1206
1225
  # @option params [required, String] :job_definition_name
1207
- # The name of the job definition to register.
1226
+ # The name of the job definition to register. Up to 128 letters
1227
+ # (uppercase and lowercase), numbers, hyphens, and underscores are
1228
+ # allowed.
1208
1229
  #
1209
1230
  # @option params [required, String] :type
1210
1231
  # The type of job definition.
@@ -1326,9 +1347,9 @@ module Aws::Batch
1326
1347
  # during SubmitJob override parameters defined in the job definition.
1327
1348
  #
1328
1349
  # @option params [required, String] :job_name
1329
- # The name of the job. A name must be 1 to 128 characters in length.
1330
- #
1331
- # Pattern: ^\[a-zA-Z0-9\_\]+$
1350
+ # The name of the job. The first character must be alphanumeric, and up
1351
+ # to 128 letters (uppercase and lowercase), numbers, hyphens, and
1352
+ # underscores are allowed.
1332
1353
  #
1333
1354
  # @option params [required, String] :job_queue
1334
1355
  # The job queue into which the job will be submitted. You can specify
@@ -1336,7 +1357,7 @@ module Aws::Batch
1336
1357
  #
1337
1358
  # @option params [Array<Types::JobDependency>] :depends_on
1338
1359
  # A list of job IDs on which this job depends. A job can depend upon a
1339
- # maximum of 100 jobs.
1360
+ # maximum of 20 jobs.
1340
1361
  #
1341
1362
  # @option params [required, String] :job_definition
1342
1363
  # The job definition used by this job. This value can be either a
@@ -1492,9 +1513,21 @@ module Aws::Batch
1492
1513
  # Required for a managed compute environment.
1493
1514
  #
1494
1515
  # @option params [String] :service_role
1495
- # The name or full Amazon Resource Name (ARN) of the IAM role that
1496
- # allows AWS Batch to make calls to ECS, Auto Scaling, and EC2 on your
1497
- # behalf.
1516
+ # The full Amazon Resource Name (ARN) of the IAM role that allows AWS
1517
+ # Batch to make calls to other AWS services on your behalf.
1518
+ #
1519
+ # If your specified role has a path other than `/`, then you must either
1520
+ # specify the full role ARN (this is recommended) or prefix the role
1521
+ # name with the path.
1522
+ #
1523
+ # <note markdown="1"> Depending on how you created your AWS Batch service role, its ARN may
1524
+ # contain the `service-role` path prefix. When you only specify the name
1525
+ # of the service role, AWS Batch assumes that your ARN does not use the
1526
+ # `service-role` path prefix. Because of this, we recommend that you
1527
+ # specify the full ARN of your service role when you create compute
1528
+ # environments.
1529
+ #
1530
+ # </note>
1498
1531
  #
1499
1532
  # @return [Types::UpdateComputeEnvironmentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1500
1533
  #
@@ -1554,11 +1587,11 @@ module Aws::Batch
1554
1587
  #
1555
1588
  # @option params [Integer] :priority
1556
1589
  # The priority of the job queue. Job queues with a higher priority (or a
1557
- # lower integer value for the `priority` parameter) are evaluated first
1590
+ # higher integer value for the `priority` parameter) are evaluated first
1558
1591
  # when associated with same compute environment. Priority is determined
1559
- # in ascending order, for example, a job queue with a priority value of
1560
- # `1` is given scheduling preference over a job queue with a priority
1561
- # value of `10`.
1592
+ # in descending order, for example, a job queue with a priority value of
1593
+ # `10` is given scheduling preference over a job queue with a priority
1594
+ # value of `1`.
1562
1595
  #
1563
1596
  # @option params [Array<Types::ComputeEnvironmentOrder>] :compute_environment_order
1564
1597
  # Details the set of compute environments mapped to a job queue and
@@ -1628,7 +1661,7 @@ module Aws::Batch
1628
1661
  params: params,
1629
1662
  config: config)
1630
1663
  context[:gem_name] = 'aws-sdk-batch'
1631
- context[:gem_version] = '1.0.0'
1664
+ context[:gem_version] = '1.1.0'
1632
1665
  Seahorse::Client::Request.new(handlers, context)
1633
1666
  end
1634
1667
 
@@ -32,6 +32,10 @@ module Aws::Batch
32
32
  # @return [String]
33
33
  #
34
34
  # @!attribute [rw] log_stream_name
35
+ # The name of the CloudWatch Logs log stream associated with the
36
+ # container. The log group for AWS Batch jobs is `/aws/batch/job`.
37
+ # Each container attempt receives a log stream name when they reach
38
+ # the `RUNNING` status.
35
39
  # @return [String]
36
40
  #
37
41
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/AttemptContainerDetail AWS API Documentation
@@ -260,8 +264,17 @@ module Aws::Batch
260
264
  # @return [String]
261
265
  #
262
266
  # @!attribute [rw] instance_role
263
- # The Amazon ECS instance role applied to Amazon EC2 instances in a
264
- # compute environment.
267
+ # The Amazon ECS instance profile applied to Amazon EC2 instances in a
268
+ # compute environment. You can specify the short name or full Amazon
269
+ # Resource Name (ARN) of an instance profile. For example,
270
+ # `ecsInstanceRole` or
271
+ # `arn:aws:iam::<aws_account_id>:instance-profile/ecsInstanceRole`.
272
+ # For more information, see [Amazon ECS Instance Role][1] in the *AWS
273
+ # Batch User Guide*.
274
+ #
275
+ #
276
+ #
277
+ # [1]: http://docs.aws.amazon.com/batch/latest/userguide/instance_IAM_role.html
265
278
  # @return [String]
266
279
  #
267
280
  # @!attribute [rw] tags
@@ -409,6 +422,10 @@ module Aws::Batch
409
422
  # @return [String]
410
423
  #
411
424
  # @!attribute [rw] log_stream_name
425
+ # The name of the CloudWatch Logs log stream associated with the
426
+ # container. The log group for AWS Batch jobs is `/aws/batch/job`.
427
+ # Each container attempt receives a log stream name when they reach
428
+ # the `RUNNING` status.
412
429
  # @return [String]
413
430
  #
414
431
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ContainerDetail AWS API Documentation
@@ -562,7 +579,8 @@ module Aws::Batch
562
579
  # The number of vCPUs reserved for the container. This parameter maps
563
580
  # to `CpuShares` in the [Create a container][1] section of the [Docker
564
581
  # Remote API][2] and the `--cpu-shares` option to [docker run][3].
565
- # Each vCPU is equivalent to 1,024 CPU shares.
582
+ # Each vCPU is equivalent to 1,024 CPU shares. You must specify at
583
+ # least 1 vCPU.
566
584
  #
567
585
  #
568
586
  #
@@ -576,7 +594,8 @@ module Aws::Batch
576
594
  # your container attempts to exceed the memory specified here, the
577
595
  # container is killed. This parameter maps to `Memory` in the [Create
578
596
  # a container][1] section of the [Docker Remote API][2] and the
579
- # `--memory` option to [docker run][3].
597
+ # `--memory` option to [docker run][3]. You must specify at least 4
598
+ # MiB of memory for a job.
580
599
  #
581
600
  #
582
601
  #
@@ -754,6 +773,19 @@ module Aws::Batch
754
773
  # @!attribute [rw] service_role
755
774
  # The full Amazon Resource Name (ARN) of the IAM role that allows AWS
756
775
  # Batch to make calls to other AWS services on your behalf.
776
+ #
777
+ # If your specified role has a path other than `/`, then you must
778
+ # either specify the full role ARN (this is recommended) or prefix the
779
+ # role name with the path.
780
+ #
781
+ # <note markdown="1"> Depending on how you created your AWS Batch service role, its ARN
782
+ # may contain the `service-role` path prefix. When you only specify
783
+ # the name of the service role, AWS Batch assumes that your ARN does
784
+ # not use the `service-role` path prefix. Because of this, we
785
+ # recommend that you specify the full ARN of your service role when
786
+ # you create compute environments.
787
+ #
788
+ # </note>
757
789
  # @return [String]
758
790
  #
759
791
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironmentRequest AWS API Documentation
@@ -809,11 +841,11 @@ module Aws::Batch
809
841
  #
810
842
  # @!attribute [rw] priority
811
843
  # The priority of the job queue. Job queues with a higher priority (or
812
- # a lower integer value for the `priority` parameter) are evaluated
844
+ # a higher integer value for the `priority` parameter) are evaluated
813
845
  # first when associated with same compute environment. Priority is
814
- # determined in ascending order, for example, a job queue with a
815
- # priority value of `1` is given scheduling preference over a job
816
- # queue with a priority value of `10`.
846
+ # determined in descending order, for example, a job queue with a
847
+ # priority value of `10` is given scheduling preference over a job
848
+ # queue with a priority value of `1`.
817
849
  # @return [Integer]
818
850
  #
819
851
  # @!attribute [rw] compute_environment_order
@@ -1468,7 +1500,8 @@ module Aws::Batch
1468
1500
  # @return [String]
1469
1501
  #
1470
1502
  # @!attribute [rw] job_status
1471
- # The job status with which to filter jobs in the specified queue.
1503
+ # The job status with which to filter jobs in the specified queue. If
1504
+ # you do not specify a status, only `RUNNING` jobs are returned.
1472
1505
  # @return [String]
1473
1506
  #
1474
1507
  # @!attribute [rw] max_results
@@ -1613,7 +1646,9 @@ module Aws::Batch
1613
1646
  # }
1614
1647
  #
1615
1648
  # @!attribute [rw] job_definition_name
1616
- # The name of the job definition to register.
1649
+ # The name of the job definition to register. Up to 128 letters
1650
+ # (uppercase and lowercase), numbers, hyphens, and underscores are
1651
+ # allowed.
1617
1652
  # @return [String]
1618
1653
  #
1619
1654
  # @!attribute [rw] type
@@ -1725,9 +1760,9 @@ module Aws::Batch
1725
1760
  # }
1726
1761
  #
1727
1762
  # @!attribute [rw] job_name
1728
- # The name of the job. A name must be 1 to 128 characters in length.
1729
- #
1730
- # Pattern: ^\[a-zA-Z0-9\_\]+$
1763
+ # The name of the job. The first character must be alphanumeric, and
1764
+ # up to 128 letters (uppercase and lowercase), numbers, hyphens, and
1765
+ # underscores are allowed.
1731
1766
  # @return [String]
1732
1767
  #
1733
1768
  # @!attribute [rw] job_queue
@@ -1737,7 +1772,7 @@ module Aws::Batch
1737
1772
  #
1738
1773
  # @!attribute [rw] depends_on
1739
1774
  # A list of job IDs on which this job depends. A job can depend upon a
1740
- # maximum of 100 jobs.
1775
+ # maximum of 20 jobs.
1741
1776
  # @return [Array<Types::JobDependency>]
1742
1777
  #
1743
1778
  # @!attribute [rw] job_definition
@@ -1894,9 +1929,21 @@ module Aws::Batch
1894
1929
  # @return [Types::ComputeResourceUpdate]
1895
1930
  #
1896
1931
  # @!attribute [rw] service_role
1897
- # The name or full Amazon Resource Name (ARN) of the IAM role that
1898
- # allows AWS Batch to make calls to ECS, Auto Scaling, and EC2 on your
1899
- # behalf.
1932
+ # The full Amazon Resource Name (ARN) of the IAM role that allows AWS
1933
+ # Batch to make calls to other AWS services on your behalf.
1934
+ #
1935
+ # If your specified role has a path other than `/`, then you must
1936
+ # either specify the full role ARN (this is recommended) or prefix the
1937
+ # role name with the path.
1938
+ #
1939
+ # <note markdown="1"> Depending on how you created your AWS Batch service role, its ARN
1940
+ # may contain the `service-role` path prefix. When you only specify
1941
+ # the name of the service role, AWS Batch assumes that your ARN does
1942
+ # not use the `service-role` path prefix. Because of this, we
1943
+ # recommend that you specify the full ARN of your service role when
1944
+ # you create compute environments.
1945
+ #
1946
+ # </note>
1900
1947
  # @return [String]
1901
1948
  #
1902
1949
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateComputeEnvironmentRequest AWS API Documentation
@@ -1950,11 +1997,11 @@ module Aws::Batch
1950
1997
  #
1951
1998
  # @!attribute [rw] priority
1952
1999
  # The priority of the job queue. Job queues with a higher priority (or
1953
- # a lower integer value for the `priority` parameter) are evaluated
2000
+ # a higher integer value for the `priority` parameter) are evaluated
1954
2001
  # first when associated with same compute environment. Priority is
1955
- # determined in ascending order, for example, a job queue with a
1956
- # priority value of `1` is given scheduling preference over a job
1957
- # queue with a priority value of `10`.
2002
+ # determined in descending order, for example, a job queue with a
2003
+ # priority value of `10` is given scheduling preference over a job
2004
+ # queue with a priority value of `1`.
1958
2005
  # @return [Integer]
1959
2006
  #
1960
2007
  # @!attribute [rw] compute_environment_order
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.0.0
4
+ version: 1.1.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-08-29 00:00:00.000000000 Z
11
+ date: 2017-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -56,7 +56,9 @@ files:
56
56
  homepage: http://github.com/aws/aws-sdk-ruby
57
57
  licenses:
58
58
  - Apache-2.0
59
- metadata: {}
59
+ metadata:
60
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-batch
61
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-batch/CHANGELOG.md
60
62
  post_install_message:
61
63
  rdoc_options: []
62
64
  require_paths: