aws-sdk-batch 1.25.0 → 1.26.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 +3 -1
- data/lib/aws-sdk-batch/client_api.rb +2 -0
- data/lib/aws-sdk-batch/types.rb +50 -17
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4f9c9f764e3dad31d4a65fd300728eed93eb12d
|
4
|
+
data.tar.gz: 5db3c7cd6a024c380e8127df499f81b415d480f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf5084553b16e6ce6566d6b6a0536a087aa1bb141483e72d8c811583e635966e0568f72697986676ce65d8ecd735cc7363cc5a22ad79ca095e5885f026bfeefa
|
7
|
+
data.tar.gz: 5a84626d1766586b42216727b72a065176c1e05caae5533e1e7eff0b3ef195fb0fa8096073f54334749c36869b5518323c0a90beddcf00f8d07d53d122a1fc6a
|
data/lib/aws-sdk-batch.rb
CHANGED
data/lib/aws-sdk-batch/client.rb
CHANGED
@@ -497,6 +497,7 @@ module Aws::Batch
|
|
497
497
|
# state: "ENABLED", # accepts ENABLED, DISABLED
|
498
498
|
# compute_resources: {
|
499
499
|
# type: "EC2", # required, accepts EC2, SPOT
|
500
|
+
# allocation_strategy: "BEST_FIT", # accepts BEST_FIT, BEST_FIT_PROGRESSIVE, SPOT_CAPACITY_OPTIMIZED
|
500
501
|
# minv_cpus: 1, # required
|
501
502
|
# maxv_cpus: 1, # required
|
502
503
|
# desiredv_cpus: 1,
|
@@ -877,6 +878,7 @@ module Aws::Batch
|
|
877
878
|
# resp.compute_environments[0].status #=> String, one of "CREATING", "UPDATING", "DELETING", "DELETED", "VALID", "INVALID"
|
878
879
|
# resp.compute_environments[0].status_reason #=> String
|
879
880
|
# resp.compute_environments[0].compute_resources.type #=> String, one of "EC2", "SPOT"
|
881
|
+
# resp.compute_environments[0].compute_resources.allocation_strategy #=> String, one of "BEST_FIT", "BEST_FIT_PROGRESSIVE", "SPOT_CAPACITY_OPTIMIZED"
|
880
882
|
# resp.compute_environments[0].compute_resources.minv_cpus #=> Integer
|
881
883
|
# resp.compute_environments[0].compute_resources.maxv_cpus #=> Integer
|
882
884
|
# resp.compute_environments[0].compute_resources.desiredv_cpus #=> Integer
|
@@ -2139,7 +2141,7 @@ module Aws::Batch
|
|
2139
2141
|
params: params,
|
2140
2142
|
config: config)
|
2141
2143
|
context[:gem_name] = 'aws-sdk-batch'
|
2142
|
-
context[:gem_version] = '1.
|
2144
|
+
context[:gem_version] = '1.26.0'
|
2143
2145
|
Seahorse::Client::Request.new(handlers, context)
|
2144
2146
|
end
|
2145
2147
|
|
@@ -23,6 +23,7 @@ module Aws::Batch
|
|
23
23
|
CEState = Shapes::StringShape.new(name: 'CEState')
|
24
24
|
CEStatus = Shapes::StringShape.new(name: 'CEStatus')
|
25
25
|
CEType = Shapes::StringShape.new(name: 'CEType')
|
26
|
+
CRAllocationStrategy = Shapes::StringShape.new(name: 'CRAllocationStrategy')
|
26
27
|
CRType = Shapes::StringShape.new(name: 'CRType')
|
27
28
|
CancelJobRequest = Shapes::StructureShape.new(name: 'CancelJobRequest')
|
28
29
|
CancelJobResponse = Shapes::StructureShape.new(name: 'CancelJobResponse')
|
@@ -179,6 +180,7 @@ module Aws::Batch
|
|
179
180
|
ComputeEnvironmentOrders.member = Shapes::ShapeRef.new(shape: ComputeEnvironmentOrder)
|
180
181
|
|
181
182
|
ComputeResource.add_member(:type, Shapes::ShapeRef.new(shape: CRType, required: true, location_name: "type"))
|
183
|
+
ComputeResource.add_member(:allocation_strategy, Shapes::ShapeRef.new(shape: CRAllocationStrategy, location_name: "allocationStrategy"))
|
182
184
|
ComputeResource.add_member(:minv_cpus, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "minvCpus"))
|
183
185
|
ComputeResource.add_member(:maxv_cpus, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "maxvCpus"))
|
184
186
|
ComputeResource.add_member(:desiredv_cpus, Shapes::ShapeRef.new(shape: Integer, location_name: "desiredvCpus"))
|
data/lib/aws-sdk-batch/types.rb
CHANGED
@@ -308,6 +308,7 @@ module Aws::Batch
|
|
308
308
|
#
|
309
309
|
# {
|
310
310
|
# type: "EC2", # required, accepts EC2, SPOT
|
311
|
+
# allocation_strategy: "BEST_FIT", # accepts BEST_FIT, BEST_FIT_PROGRESSIVE, SPOT_CAPACITY_OPTIMIZED
|
311
312
|
# minv_cpus: 1, # required
|
312
313
|
# maxv_cpus: 1, # required
|
313
314
|
# desiredv_cpus: 1,
|
@@ -331,27 +332,50 @@ module Aws::Batch
|
|
331
332
|
# }
|
332
333
|
#
|
333
334
|
# @!attribute [rw] type
|
334
|
-
# The type of compute environment: EC2 or SPOT
|
335
|
+
# The type of compute environment: `EC2` or `SPOT`.
|
336
|
+
# @return [String]
|
337
|
+
#
|
338
|
+
# @!attribute [rw] allocation_strategy
|
339
|
+
# The allocation strategy to use for the compute resource in case not
|
340
|
+
# enough instances of the best fitting instance type can be allocated.
|
341
|
+
# This could be due to availability of the instance type in the region
|
342
|
+
# or [Amazon EC2 service limits][1]. If this is not specified, the
|
343
|
+
# default is `BEST_FIT`, which will use only the best fitting instance
|
344
|
+
# type, waiting for additional capacity if it's not available. This
|
345
|
+
# allocation strategy keeps costs lower but can limit scaling.
|
346
|
+
# `BEST_FIT_PROGRESSIVE` will select an additional instance type that
|
347
|
+
# is large enough to meet the requirements of the jobs in the queue,
|
348
|
+
# with a preference for an instance type with a lower cost.
|
349
|
+
# `SPOT_CAPACITY_OPTIMIZED` is only available for Spot Instance
|
350
|
+
# compute resources and will select an additional instance type that
|
351
|
+
# is large enough to meet the requirements of the jobs in the queue,
|
352
|
+
# with a preference for an instance type that is less likely to be
|
353
|
+
# interrupted.
|
354
|
+
#
|
355
|
+
#
|
356
|
+
#
|
357
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html
|
335
358
|
# @return [String]
|
336
359
|
#
|
337
360
|
# @!attribute [rw] minv_cpus
|
338
|
-
# The minimum number of EC2 vCPUs that an environment should
|
339
|
-
# (even if the compute environment is `DISABLED`).
|
361
|
+
# The minimum number of Amazon EC2 vCPUs that an environment should
|
362
|
+
# maintain (even if the compute environment is `DISABLED`).
|
340
363
|
# @return [Integer]
|
341
364
|
#
|
342
365
|
# @!attribute [rw] maxv_cpus
|
343
|
-
# The maximum number of EC2 vCPUs that an environment can
|
366
|
+
# The maximum number of Amazon EC2 vCPUs that an environment can
|
367
|
+
# reach.
|
344
368
|
# @return [Integer]
|
345
369
|
#
|
346
370
|
# @!attribute [rw] desiredv_cpus
|
347
|
-
# The desired number of EC2 vCPUS in the compute environment.
|
371
|
+
# The desired number of Amazon EC2 vCPUS in the compute environment.
|
348
372
|
# @return [Integer]
|
349
373
|
#
|
350
374
|
# @!attribute [rw] instance_types
|
351
375
|
# The instances types that may be launched. You can specify instance
|
352
376
|
# families to launch any instance type within those families (for
|
353
|
-
# example, `
|
354
|
-
# family (such as `
|
377
|
+
# example, `c5` or `p3`), or you can specify specific sizes within a
|
378
|
+
# family (such as `c5.8xlarge`). You can also choose `optimal` to pick
|
355
379
|
# instance types (from the C, M, and R instance families) on the fly
|
356
380
|
# that match the demand of your job queues.
|
357
381
|
# @return [Array<String>]
|
@@ -372,13 +396,17 @@ module Aws::Batch
|
|
372
396
|
# @return [Array<String>]
|
373
397
|
#
|
374
398
|
# @!attribute [rw] security_group_ids
|
375
|
-
# The EC2 security
|
376
|
-
# the compute environment.
|
399
|
+
# The Amazon EC2 security groups associated with instances launched in
|
400
|
+
# the compute environment. One or more security groups must be
|
401
|
+
# specified, either in `securityGroupIds` or using a launch template
|
402
|
+
# referenced in `launchTemplate`. If security groups are specified
|
403
|
+
# using both `securityGroupIds` and `launchTemplate`, the values in
|
404
|
+
# `securityGroupIds` will be used.
|
377
405
|
# @return [Array<String>]
|
378
406
|
#
|
379
407
|
# @!attribute [rw] ec2_key_pair
|
380
|
-
# The EC2 key pair that is used for instances launched in the
|
381
|
-
# environment.
|
408
|
+
# The Amazon EC2 key pair that is used for instances launched in the
|
409
|
+
# compute environment.
|
382
410
|
# @return [String]
|
383
411
|
#
|
384
412
|
# @!attribute [rw] instance_role
|
@@ -423,9 +451,10 @@ module Aws::Batch
|
|
423
451
|
# compared with the On-Demand price for that instance type before
|
424
452
|
# instances are launched. For example, if your maximum percentage is
|
425
453
|
# 20%, then the Spot price must be below 20% of the current On-Demand
|
426
|
-
# price for that EC2 instance. You always pay the lowest
|
427
|
-
# price and never more than your maximum percentage. If you
|
428
|
-
# field empty, the default value is 100% of the On-Demand
|
454
|
+
# price for that Amazon EC2 instance. You always pay the lowest
|
455
|
+
# (market) price and never more than your maximum percentage. If you
|
456
|
+
# leave this field empty, the default value is 100% of the On-Demand
|
457
|
+
# price.
|
429
458
|
# @return [Integer]
|
430
459
|
#
|
431
460
|
# @!attribute [rw] spot_iam_fleet_role
|
@@ -456,6 +485,7 @@ module Aws::Batch
|
|
456
485
|
#
|
457
486
|
class ComputeResource < Struct.new(
|
458
487
|
:type,
|
488
|
+
:allocation_strategy,
|
459
489
|
:minv_cpus,
|
460
490
|
:maxv_cpus,
|
461
491
|
:desiredv_cpus,
|
@@ -486,15 +516,17 @@ module Aws::Batch
|
|
486
516
|
# }
|
487
517
|
#
|
488
518
|
# @!attribute [rw] minv_cpus
|
489
|
-
# The minimum number of EC2 vCPUs that an environment should
|
519
|
+
# The minimum number of Amazon EC2 vCPUs that an environment should
|
520
|
+
# maintain.
|
490
521
|
# @return [Integer]
|
491
522
|
#
|
492
523
|
# @!attribute [rw] maxv_cpus
|
493
|
-
# The maximum number of EC2 vCPUs that an environment can
|
524
|
+
# The maximum number of Amazon EC2 vCPUs that an environment can
|
525
|
+
# reach.
|
494
526
|
# @return [Integer]
|
495
527
|
#
|
496
528
|
# @!attribute [rw] desiredv_cpus
|
497
|
-
# The desired number of EC2 vCPUS in the compute environment.
|
529
|
+
# The desired number of Amazon EC2 vCPUS in the compute environment.
|
498
530
|
# @return [Integer]
|
499
531
|
#
|
500
532
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ComputeResourceUpdate AWS API Documentation
|
@@ -1015,6 +1047,7 @@ module Aws::Batch
|
|
1015
1047
|
# state: "ENABLED", # accepts ENABLED, DISABLED
|
1016
1048
|
# compute_resources: {
|
1017
1049
|
# type: "EC2", # required, accepts EC2, SPOT
|
1050
|
+
# allocation_strategy: "BEST_FIT", # accepts BEST_FIT, BEST_FIT_PROGRESSIVE, SPOT_CAPACITY_OPTIMIZED
|
1018
1051
|
# minv_cpus: 1, # required
|
1019
1052
|
# maxv_cpus: 1, # required
|
1020
1053
|
# desiredv_cpus: 1,
|
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.26.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-
|
11
|
+
date: 2019-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project:
|
84
|
-
rubygems_version: 2.5.2
|
84
|
+
rubygems_version: 2.5.2.3
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: AWS SDK for Ruby - AWS Batch
|