aws-sdk-batch 1.40.0 → 1.41.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
  SHA256:
3
- metadata.gz: 36addf6b2f87fc50b90b815bde8467754bc105f327671194cc51c07ebaad32dd
4
- data.tar.gz: 815ea6e5c8144e1ecd12d3a03e171bef5160ed4581dc966ecd793891f2349500
3
+ metadata.gz: 5a9ce3dab48a911d5cfc8183faa686e48fa82b79e093d5a3dbe90c6367af0096
4
+ data.tar.gz: '0584c59a6926b1740339989a7f605432b3a5784d1ce38cc25313a1c786869761'
5
5
  SHA512:
6
- metadata.gz: 583d4c3a6926f9bf9e79327893e7f285764e71f9e5d453d9f1974a0231ced5a38c921b08f6b5a984c16e92bdafae408c5b730446b77ef6adcbede910300cbad5
7
- data.tar.gz: 123559d810b0e5256e9eb74a6675b4a16756f2e5dc18885a037c5d008b1b72c0ed77fcafa226b47d2c3fc08e11d1b9b6383363061d34a06f6b12e73337443f29
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.40.0'
51
+ GEM_VERSION = '1.41.0'
52
52
 
53
53
  end
@@ -607,6 +607,12 @@ module Aws::Batch
607
607
  # launch_template_name: "String",
608
608
  # version: "String",
609
609
  # },
610
+ # ec2_configuration: [
611
+ # {
612
+ # image_type: "ImageType", # required
613
+ # image_id_override: "ImageIdOverride",
614
+ # },
615
+ # ],
610
616
  # },
611
617
  # service_role: "String", # required
612
618
  # tags: {
@@ -1011,6 +1017,9 @@ module Aws::Batch
1011
1017
  # resp.compute_environments[0].compute_resources.launch_template.launch_template_id #=> String
1012
1018
  # resp.compute_environments[0].compute_resources.launch_template.launch_template_name #=> String
1013
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
1014
1023
  # resp.compute_environments[0].service_role #=> String
1015
1024
  # resp.next_token #=> String
1016
1025
  #
@@ -2648,7 +2657,7 @@ module Aws::Batch
2648
2657
  params: params,
2649
2658
  config: config)
2650
2659
  context[:gem_name] = 'aws-sdk-batch'
2651
- context[:gem_version] = '1.40.0'
2660
+ context[:gem_version] = '1.41.0'
2652
2661
  Seahorse::Client::Request.new(handlers, context)
2653
2662
  end
2654
2663
 
@@ -62,10 +62,14 @@ module Aws::Batch
62
62
  DeviceCgroupPermission = Shapes::StringShape.new(name: 'DeviceCgroupPermission')
63
63
  DeviceCgroupPermissions = Shapes::ListShape.new(name: 'DeviceCgroupPermissions')
64
64
  DevicesList = Shapes::ListShape.new(name: 'DevicesList')
65
+ Ec2Configuration = Shapes::StructureShape.new(name: 'Ec2Configuration')
66
+ Ec2ConfigurationList = Shapes::ListShape.new(name: 'Ec2ConfigurationList')
65
67
  EnvironmentVariables = Shapes::ListShape.new(name: 'EnvironmentVariables')
66
68
  EvaluateOnExit = Shapes::StructureShape.new(name: 'EvaluateOnExit')
67
69
  EvaluateOnExitList = Shapes::ListShape.new(name: 'EvaluateOnExitList')
68
70
  Host = Shapes::StructureShape.new(name: 'Host')
71
+ ImageIdOverride = Shapes::StringShape.new(name: 'ImageIdOverride')
72
+ ImageType = Shapes::StringShape.new(name: 'ImageType')
69
73
  Integer = Shapes::IntegerShape.new(name: 'Integer')
70
74
  JQState = Shapes::StringShape.new(name: 'JQState')
71
75
  JQStatus = Shapes::StringShape.new(name: 'JQStatus')
@@ -208,7 +212,7 @@ module Aws::Batch
208
212
  ComputeResource.add_member(:maxv_cpus, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "maxvCpus"))
209
213
  ComputeResource.add_member(:desiredv_cpus, Shapes::ShapeRef.new(shape: Integer, location_name: "desiredvCpus"))
210
214
  ComputeResource.add_member(:instance_types, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "instanceTypes"))
211
- ComputeResource.add_member(:image_id, Shapes::ShapeRef.new(shape: String, location_name: "imageId"))
215
+ ComputeResource.add_member(:image_id, Shapes::ShapeRef.new(shape: String, deprecated: true, location_name: "imageId", metadata: {"deprecatedMessage"=>"This field is deprecated, use ec2Configuration[].imageIdOverride instead."}))
212
216
  ComputeResource.add_member(:subnets, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "subnets"))
213
217
  ComputeResource.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: StringList, location_name: "securityGroupIds"))
214
218
  ComputeResource.add_member(:ec2_key_pair, Shapes::ShapeRef.new(shape: String, location_name: "ec2KeyPair"))
@@ -218,6 +222,7 @@ module Aws::Batch
218
222
  ComputeResource.add_member(:bid_percentage, Shapes::ShapeRef.new(shape: Integer, location_name: "bidPercentage"))
219
223
  ComputeResource.add_member(:spot_iam_fleet_role, Shapes::ShapeRef.new(shape: String, location_name: "spotIamFleetRole"))
220
224
  ComputeResource.add_member(:launch_template, Shapes::ShapeRef.new(shape: LaunchTemplateSpecification, location_name: "launchTemplate"))
225
+ ComputeResource.add_member(:ec2_configuration, Shapes::ShapeRef.new(shape: Ec2ConfigurationList, location_name: "ec2Configuration"))
221
226
  ComputeResource.struct_class = Types::ComputeResource
222
227
 
223
228
  ComputeResourceUpdate.add_member(:minv_cpus, Shapes::ShapeRef.new(shape: Integer, location_name: "minvCpus"))
@@ -365,6 +370,12 @@ module Aws::Batch
365
370
 
366
371
  DevicesList.member = Shapes::ShapeRef.new(shape: Device)
367
372
 
373
+ Ec2Configuration.add_member(:image_type, Shapes::ShapeRef.new(shape: ImageType, required: true, location_name: "imageType"))
374
+ Ec2Configuration.add_member(:image_id_override, Shapes::ShapeRef.new(shape: ImageIdOverride, location_name: "imageIdOverride"))
375
+ Ec2Configuration.struct_class = Types::Ec2Configuration
376
+
377
+ Ec2ConfigurationList.member = Shapes::ShapeRef.new(shape: Ec2Configuration)
378
+
368
379
  EnvironmentVariables.member = Shapes::ShapeRef.new(shape: KeyValuePair)
369
380
 
370
381
  EvaluateOnExit.add_member(:on_status_reason, Shapes::ShapeRef.new(shape: String, location_name: "onStatusReason"))
@@ -344,6 +344,12 @@ module Aws::Batch
344
344
  # launch_template_name: "String",
345
345
  # version: "String",
346
346
  # },
347
+ # ec2_configuration: [
348
+ # {
349
+ # image_type: "ImageType", # required
350
+ # image_id_override: "ImageIdOverride",
351
+ # },
352
+ # ],
347
353
  # }
348
354
  #
349
355
  # @!attribute [rw] type
@@ -400,7 +406,8 @@ module Aws::Batch
400
406
  #
401
407
  # @!attribute [rw] image_id
402
408
  # The Amazon Machine Image (AMI) ID used for instances launched in the
403
- # compute environment.
409
+ # compute environment. This parameter is overridden by the
410
+ # `imageIdOverride` member of the `Ec2Configuration` structure.
404
411
  # @return [String]
405
412
  #
406
413
  # @!attribute [rw] subnets
@@ -505,6 +512,11 @@ module Aws::Batch
505
512
  # [1]: https://docs.aws.amazon.com/batch/latest/userguide/launch-templates.html
506
513
  # @return [Types::LaunchTemplateSpecification]
507
514
  #
515
+ # @!attribute [rw] ec2_configuration
516
+ # Provides additional details used to selecting the AMI to use for
517
+ # instances in a compute environment.
518
+ # @return [Array<Types::Ec2Configuration>]
519
+ #
508
520
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ComputeResource AWS API Documentation
509
521
  #
510
522
  class ComputeResource < Struct.new(
@@ -523,7 +535,8 @@ module Aws::Batch
523
535
  :placement_group,
524
536
  :bid_percentage,
525
537
  :spot_iam_fleet_role,
526
- :launch_template)
538
+ :launch_template,
539
+ :ec2_configuration)
527
540
  SENSITIVE = []
528
541
  include Aws::Structure
529
542
  end
@@ -1273,6 +1286,12 @@ module Aws::Batch
1273
1286
  # launch_template_name: "String",
1274
1287
  # version: "String",
1275
1288
  # },
1289
+ # ec2_configuration: [
1290
+ # {
1291
+ # image_type: "ImageType", # required
1292
+ # image_id_override: "ImageIdOverride",
1293
+ # },
1294
+ # ],
1276
1295
  # },
1277
1296
  # service_role: "String", # required
1278
1297
  # tags: {
@@ -1830,6 +1849,65 @@ module Aws::Batch
1830
1849
  include Aws::Structure
1831
1850
  end
1832
1851
 
1852
+ # Provides information used to select Amazon Machine Images (AMIs) for
1853
+ # instances in the compute environment. If the `Ec2Configuration` is not
1854
+ # specified, the default is `ECS_AL1`.
1855
+ #
1856
+ # @note When making an API call, you may pass Ec2Configuration
1857
+ # data as a hash:
1858
+ #
1859
+ # {
1860
+ # image_type: "ImageType", # required
1861
+ # image_id_override: "ImageIdOverride",
1862
+ # }
1863
+ #
1864
+ # @!attribute [rw] image_type
1865
+ # The image type to match with the instance type to pick an AMI. If
1866
+ # the `imageIdOverride` parameter is not specified, then a recent
1867
+ # [Amazon ECS-optimized AMI][1] will be used.
1868
+ #
1869
+ # ECS\_AL2
1870
+ #
1871
+ # : [Amazon Linux 2][2]− Default for all AWS Graviton-based instance
1872
+ # families (for example, `C6g`, `M6g`, `R6g`, and `T4g`) and can be
1873
+ # used for all non-GPU instance types.
1874
+ #
1875
+ # ECS\_AL2\_NVIDIA
1876
+ #
1877
+ # : [Amazon Linux 2 (GPU)][3]−Default for all GPU instance families
1878
+ # (for example `P4` and `G4`) and can be used for all non-AWS
1879
+ # Graviton-based instance types.
1880
+ #
1881
+ # ECS\_AL1
1882
+ #
1883
+ # : [Amazon Linux][4]−Default for all non-GPU, non-AWS-Graviton
1884
+ # instance families. Amazon Linux is reaching the end-of-life of
1885
+ # standard support. For more information, see [Amazon Linux AMI][5].
1886
+ #
1887
+ #
1888
+ #
1889
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html
1890
+ # [2]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami
1891
+ # [3]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#gpuami
1892
+ # [4]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#alami
1893
+ # [5]: https://aws.amazon.com/amazon-linux-ami/
1894
+ # @return [String]
1895
+ #
1896
+ # @!attribute [rw] image_id_override
1897
+ # The AMI ID used for instances launched in the compute environment
1898
+ # that match the image type. This setting overrides the `imageId` set
1899
+ # in the `computeResource` object.
1900
+ # @return [String]
1901
+ #
1902
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/Ec2Configuration AWS API Documentation
1903
+ #
1904
+ class Ec2Configuration < Struct.new(
1905
+ :image_type,
1906
+ :image_id_override)
1907
+ SENSITIVE = []
1908
+ include Aws::Structure
1909
+ end
1910
+
1833
1911
  # Specifies a set of conditions to be met, and an action to take
1834
1912
  # (`RETRY` or `EXIT`) if all conditions are met.
1835
1913
  #
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.40.0
4
+ version: 1.41.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: 2020-10-20 00:00:00.000000000 Z
11
+ date: 2020-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core