aws-sdk-batch 1.104.0 → 1.105.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
  SHA256:
3
- metadata.gz: 4f764f139f43e281a19f709d761ba0f0a5c3a3da6d0e9b0bf24e9131ca31ca59
4
- data.tar.gz: 5fc7d65f0ff6a214e1378eaa0d9aeda7b1354e1c2dd43ceb2812554d1955c44c
3
+ metadata.gz: 0d8335f038a725dd0cb8a14fb5e05ec020df31f4efdb3b8758d123952f05d7a2
4
+ data.tar.gz: 8d3914d19a2ff35392b2a9c57a9db7ebf0cb52b94978c6d644cd3ed1a93c61c6
5
5
  SHA512:
6
- metadata.gz: 9ef4f0ebe5fdf3fac6541f988fcbfb553036dc304d4568743561c73d15957994e24a9b90a8f3a1204fbd5f0a812d74db112ae1a1bb36deddbebabf5f951d1d2d
7
- data.tar.gz: c8f21f5339e919e849452b6d603d457fd45516493db89a2bf1a2f589076d5790ede2337caa5ec705d1dcecadb2765481a6bbf76124f2242853ca33702f8722de
6
+ metadata.gz: eaf8cccfdc0fe084493e82e8244b4635dfbc55c44295db0761caa60092a6fd117be5f2a4a4067e29222b74be091e5967883fc8b9b02561c79c68fbf3a0417ade
7
+ data.tar.gz: 6535d1de5fc18233731aa52307ac5e3f4b5ebc80e85e97a781a2b973068b62c702490cbb84966e32ee88568bcd0e16391416d219b64c1569bdc2ea497379e969
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.105.0 (2024-11-08)
5
+ ------------------
6
+
7
+ * Feature - This feature allows override LaunchTemplates to be specified in an AWS Batch Compute Environment.
8
+
4
9
  1.104.0 (2024-11-06)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.104.0
1
+ 1.105.0
@@ -859,6 +859,14 @@ module Aws::Batch
859
859
  # launch_template_id: "String",
860
860
  # launch_template_name: "String",
861
861
  # version: "String",
862
+ # overrides: [
863
+ # {
864
+ # launch_template_id: "String",
865
+ # launch_template_name: "String",
866
+ # version: "String",
867
+ # target_instance_types: ["String"],
868
+ # },
869
+ # ],
862
870
  # },
863
871
  # ec2_configuration: [
864
872
  # {
@@ -1413,6 +1421,12 @@ module Aws::Batch
1413
1421
  # resp.compute_environments[0].compute_resources.launch_template.launch_template_id #=> String
1414
1422
  # resp.compute_environments[0].compute_resources.launch_template.launch_template_name #=> String
1415
1423
  # resp.compute_environments[0].compute_resources.launch_template.version #=> String
1424
+ # resp.compute_environments[0].compute_resources.launch_template.overrides #=> Array
1425
+ # resp.compute_environments[0].compute_resources.launch_template.overrides[0].launch_template_id #=> String
1426
+ # resp.compute_environments[0].compute_resources.launch_template.overrides[0].launch_template_name #=> String
1427
+ # resp.compute_environments[0].compute_resources.launch_template.overrides[0].version #=> String
1428
+ # resp.compute_environments[0].compute_resources.launch_template.overrides[0].target_instance_types #=> Array
1429
+ # resp.compute_environments[0].compute_resources.launch_template.overrides[0].target_instance_types[0] #=> String
1416
1430
  # resp.compute_environments[0].compute_resources.ec2_configuration #=> Array
1417
1431
  # resp.compute_environments[0].compute_resources.ec2_configuration[0].image_type #=> String
1418
1432
  # resp.compute_environments[0].compute_resources.ec2_configuration[0].image_id_override #=> String
@@ -4722,6 +4736,14 @@ module Aws::Batch
4722
4736
  # launch_template_id: "String",
4723
4737
  # launch_template_name: "String",
4724
4738
  # version: "String",
4739
+ # overrides: [
4740
+ # {
4741
+ # launch_template_id: "String",
4742
+ # launch_template_name: "String",
4743
+ # version: "String",
4744
+ # target_instance_types: ["String"],
4745
+ # },
4746
+ # ],
4725
4747
  # },
4726
4748
  # ec2_configuration: [
4727
4749
  # {
@@ -4919,7 +4941,7 @@ module Aws::Batch
4919
4941
  tracer: tracer
4920
4942
  )
4921
4943
  context[:gem_name] = 'aws-sdk-batch'
4922
- context[:gem_version] = '1.104.0'
4944
+ context[:gem_version] = '1.105.0'
4923
4945
  Seahorse::Client::Request.new(handlers, context)
4924
4946
  end
4925
4947
 
@@ -158,6 +158,8 @@ module Aws::Batch
158
158
  KeyValuesPair = Shapes::StructureShape.new(name: 'KeyValuesPair')
159
159
  KubernetesVersion = Shapes::StringShape.new(name: 'KubernetesVersion')
160
160
  LaunchTemplateSpecification = Shapes::StructureShape.new(name: 'LaunchTemplateSpecification')
161
+ LaunchTemplateSpecificationOverride = Shapes::StructureShape.new(name: 'LaunchTemplateSpecificationOverride')
162
+ LaunchTemplateSpecificationOverrideList = Shapes::ListShape.new(name: 'LaunchTemplateSpecificationOverrideList')
161
163
  LinuxParameters = Shapes::StructureShape.new(name: 'LinuxParameters')
162
164
  ListAttemptEcsTaskDetails = Shapes::ListShape.new(name: 'ListAttemptEcsTaskDetails')
163
165
  ListAttemptTaskContainerDetails = Shapes::ListShape.new(name: 'ListAttemptTaskContainerDetails')
@@ -908,8 +910,17 @@ module Aws::Batch
908
910
  LaunchTemplateSpecification.add_member(:launch_template_id, Shapes::ShapeRef.new(shape: String, location_name: "launchTemplateId"))
909
911
  LaunchTemplateSpecification.add_member(:launch_template_name, Shapes::ShapeRef.new(shape: String, location_name: "launchTemplateName"))
910
912
  LaunchTemplateSpecification.add_member(:version, Shapes::ShapeRef.new(shape: String, location_name: "version"))
913
+ LaunchTemplateSpecification.add_member(:overrides, Shapes::ShapeRef.new(shape: LaunchTemplateSpecificationOverrideList, location_name: "overrides"))
911
914
  LaunchTemplateSpecification.struct_class = Types::LaunchTemplateSpecification
912
915
 
916
+ LaunchTemplateSpecificationOverride.add_member(:launch_template_id, Shapes::ShapeRef.new(shape: String, location_name: "launchTemplateId"))
917
+ LaunchTemplateSpecificationOverride.add_member(:launch_template_name, Shapes::ShapeRef.new(shape: String, location_name: "launchTemplateName"))
918
+ LaunchTemplateSpecificationOverride.add_member(:version, Shapes::ShapeRef.new(shape: String, location_name: "version"))
919
+ LaunchTemplateSpecificationOverride.add_member(:target_instance_types, Shapes::ShapeRef.new(shape: StringList, location_name: "targetInstanceTypes"))
920
+ LaunchTemplateSpecificationOverride.struct_class = Types::LaunchTemplateSpecificationOverride
921
+
922
+ LaunchTemplateSpecificationOverrideList.member = Shapes::ShapeRef.new(shape: LaunchTemplateSpecificationOverride)
923
+
913
924
  LinuxParameters.add_member(:devices, Shapes::ShapeRef.new(shape: DevicesList, location_name: "devices"))
914
925
  LinuxParameters.add_member(:init_process_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "initProcessEnabled"))
915
926
  LinuxParameters.add_member(:shared_memory_size, Shapes::ShapeRef.new(shape: Integer, location_name: "sharedMemorySize"))
@@ -5442,17 +5442,17 @@ module Aws::Batch
5442
5442
  # @return [String]
5443
5443
  #
5444
5444
  # @!attribute [rw] version
5445
- # The version number of the launch template, `$Latest`, or `$Default`.
5445
+ # The version number of the launch template, `$Default`, or `$Latest`.
5446
5446
  #
5447
- # If the value is `$Latest`, the latest version of the launch template
5448
- # is used. If the value is `$Default`, the default version of the
5449
- # launch template is used.
5447
+ # If the value is `$Default`, the default version of the launch
5448
+ # template is used. If the value is `$Latest`, the latest version of
5449
+ # the launch template is used.
5450
5450
  #
5451
5451
  # If the AMI ID that's used in a compute environment is from the
5452
5452
  # launch template, the AMI isn't changed when the compute environment
5453
5453
  # is updated. It's only changed if the `updateToLatestImageVersion`
5454
5454
  # parameter for the compute environment is set to `true`. During an
5455
- # infrastructure update, if either `$Latest` or `$Default` is
5455
+ # infrastructure update, if either `$Default` or `$Latest` is
5456
5456
  # specified, Batch re-evaluates the launch template version, and it
5457
5457
  # might use a different version of the launch template. This is the
5458
5458
  # case even if the launch template isn't specified in the update.
@@ -5461,19 +5461,156 @@ module Aws::Batch
5461
5461
  # more information, see [Updating compute environments][1] in the
5462
5462
  # *Batch User Guide*.
5463
5463
  #
5464
- # Default: `$Default`.
5464
+ # Default: `$Default`
5465
+ #
5466
+ # Latest: `$Latest`
5465
5467
  #
5466
5468
  #
5467
5469
  #
5468
5470
  # [1]: https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html
5469
5471
  # @return [String]
5470
5472
  #
5473
+ # @!attribute [rw] overrides
5474
+ # A launch template to use in place of the default launch template.
5475
+ # You must specify either the launch template ID or launch template
5476
+ # name in the request, but not both.
5477
+ #
5478
+ # You can specify up to ten (10) launch template overrides that are
5479
+ # associated to unique instance types or families for each compute
5480
+ # environment.
5481
+ #
5482
+ # <note markdown="1"> To unset all override templates for a compute environment, you can
5483
+ # pass an empty array to the [UpdateComputeEnvironment.overrides][1]
5484
+ # parameter, or not include the `overrides` parameter when submitting
5485
+ # the `UpdateComputeEnvironment` API operation.
5486
+ #
5487
+ # </note>
5488
+ #
5489
+ #
5490
+ #
5491
+ # [1]: https://docs.aws.amazon.com/batch/latest/APIReference/API_UpdateComputeEnvironment.html
5492
+ # @return [Array<Types::LaunchTemplateSpecificationOverride>]
5493
+ #
5471
5494
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/LaunchTemplateSpecification AWS API Documentation
5472
5495
  #
5473
5496
  class LaunchTemplateSpecification < Struct.new(
5474
5497
  :launch_template_id,
5475
5498
  :launch_template_name,
5476
- :version)
5499
+ :version,
5500
+ :overrides)
5501
+ SENSITIVE = []
5502
+ include Aws::Structure
5503
+ end
5504
+
5505
+ # An object that represents a launch template to use in place of the
5506
+ # default launch template. You must specify either the launch template
5507
+ # ID or launch template name in the request, but not both.
5508
+ #
5509
+ # If security groups are specified using both the `securityGroupIds`
5510
+ # parameter of `CreateComputeEnvironment` and the launch template, the
5511
+ # values in the `securityGroupIds` parameter of
5512
+ # `CreateComputeEnvironment` will be used.
5513
+ #
5514
+ # You can define up to ten (10) overrides for each compute environment.
5515
+ #
5516
+ # <note markdown="1"> This object isn't applicable to jobs that are running on Fargate
5517
+ # resources.
5518
+ #
5519
+ # </note>
5520
+ #
5521
+ # <note markdown="1"> To unset all override templates for a compute environment, you can
5522
+ # pass an empty array to the [UpdateComputeEnvironment.overrides][1]
5523
+ # parameter, or not include the `overrides` parameter when submitting
5524
+ # the `UpdateComputeEnvironment` API operation.
5525
+ #
5526
+ # </note>
5527
+ #
5528
+ #
5529
+ #
5530
+ # [1]: https://docs.aws.amazon.com/batch/latest/APIReference/API_UpdateComputeEnvironment.html
5531
+ #
5532
+ # @!attribute [rw] launch_template_id
5533
+ # The ID of the launch template.
5534
+ #
5535
+ # **Note:** If you specify the `launchTemplateId` you can't specify
5536
+ # the `launchTemplateName` as well.
5537
+ # @return [String]
5538
+ #
5539
+ # @!attribute [rw] launch_template_name
5540
+ # The name of the launch template.
5541
+ #
5542
+ # **Note:** If you specify the `launchTemplateName` you can't specify
5543
+ # the `launchTemplateId` as well.
5544
+ # @return [String]
5545
+ #
5546
+ # @!attribute [rw] version
5547
+ # The version number of the launch template, `$Default`, or `$Latest`.
5548
+ #
5549
+ # If the value is `$Default`, the default version of the launch
5550
+ # template is used. If the value is `$Latest`, the latest version of
5551
+ # the launch template is used.
5552
+ #
5553
+ # If the AMI ID that's used in a compute environment is from the
5554
+ # launch template, the AMI isn't changed when the compute environment
5555
+ # is updated. It's only changed if the `updateToLatestImageVersion`
5556
+ # parameter for the compute environment is set to `true`. During an
5557
+ # infrastructure update, if either `$Default` or `$Latest` is
5558
+ # specified, Batch re-evaluates the launch template version, and it
5559
+ # might use a different version of the launch template. This is the
5560
+ # case even if the launch template isn't specified in the update.
5561
+ # When updating a compute environment, changing the launch template
5562
+ # requires an infrastructure update of the compute environment. For
5563
+ # more information, see [Updating compute environments][1] in the
5564
+ # *Batch User Guide*.
5565
+ #
5566
+ # Default: `$Default`
5567
+ #
5568
+ # Latest: `$Latest`
5569
+ #
5570
+ #
5571
+ #
5572
+ # [1]: https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html
5573
+ # @return [String]
5574
+ #
5575
+ # @!attribute [rw] target_instance_types
5576
+ # The instance type or family that this this override launch template
5577
+ # should be applied to.
5578
+ #
5579
+ # This parameter is required when defining a launch template override.
5580
+ #
5581
+ # Information included in this parameter must meet the following
5582
+ # requirements:
5583
+ #
5584
+ # * Must be a valid Amazon EC2 instance type or family.
5585
+ #
5586
+ # * `optimal` isn't allowed.
5587
+ #
5588
+ # * `targetInstanceTypes` can target only instance types and families
5589
+ # that are included within the [ `ComputeResource.instanceTypes`
5590
+ # ][1] set. `targetInstanceTypes` doesn't need to include all of
5591
+ # the instances from the `instanceType` set, but at least a subset.
5592
+ # For example, if `ComputeResource.instanceTypes` includes `[m5,
5593
+ # g5]`, `targetInstanceTypes` can include `[m5.2xlarge]` and
5594
+ # `[m5.large]` but not `[c5.large]`.
5595
+ #
5596
+ # * `targetInstanceTypes` included within the same launch template
5597
+ # override or across launch template overrides can't overlap for
5598
+ # the same compute environment. For example, you can't define one
5599
+ # launch template override to target an instance family and another
5600
+ # define an instance type within this same family.
5601
+ #
5602
+ #
5603
+ #
5604
+ # [1]: https://docs.aws.amazon.com/batch/latest/APIReference/API_ComputeResource.html#Batch-Type-ComputeResource-instanceTypes
5605
+ # @return [Array<String>]
5606
+ #
5607
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/LaunchTemplateSpecificationOverride AWS API Documentation
5608
+ #
5609
+ class LaunchTemplateSpecificationOverride < Struct.new(
5610
+ :launch_template_id,
5611
+ :launch_template_name,
5612
+ :version,
5613
+ :target_instance_types)
5477
5614
  SENSITIVE = []
5478
5615
  include Aws::Structure
5479
5616
  end
data/lib/aws-sdk-batch.rb CHANGED
@@ -54,7 +54,7 @@ module Aws::Batch
54
54
  autoload :EndpointProvider, 'aws-sdk-batch/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-batch/endpoints'
56
56
 
57
- GEM_VERSION = '1.104.0'
57
+ GEM_VERSION = '1.105.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -115,7 +115,15 @@ module Aws
115
115
  launch_template: {
116
116
  launch_template_id: ::String?,
117
117
  launch_template_name: ::String?,
118
- version: ::String?
118
+ version: ::String?,
119
+ overrides: Array[
120
+ {
121
+ launch_template_id: ::String?,
122
+ launch_template_name: ::String?,
123
+ version: ::String?,
124
+ target_instance_types: Array[::String]?
125
+ },
126
+ ]?
119
127
  }?,
120
128
  ec2_configuration: Array[
121
129
  {
@@ -1314,7 +1322,15 @@ module Aws
1314
1322
  launch_template: {
1315
1323
  launch_template_id: ::String?,
1316
1324
  launch_template_name: ::String?,
1317
- version: ::String?
1325
+ version: ::String?,
1326
+ overrides: Array[
1327
+ {
1328
+ launch_template_id: ::String?,
1329
+ launch_template_name: ::String?,
1330
+ version: ::String?,
1331
+ target_instance_types: Array[::String]?
1332
+ },
1333
+ ]?
1318
1334
  }?,
1319
1335
  ec2_configuration: Array[
1320
1336
  {
data/sig/types.rbs CHANGED
@@ -785,6 +785,15 @@ module Aws::Batch
785
785
  attr_accessor launch_template_id: ::String
786
786
  attr_accessor launch_template_name: ::String
787
787
  attr_accessor version: ::String
788
+ attr_accessor overrides: ::Array[Types::LaunchTemplateSpecificationOverride]
789
+ SENSITIVE: []
790
+ end
791
+
792
+ class LaunchTemplateSpecificationOverride
793
+ attr_accessor launch_template_id: ::String
794
+ attr_accessor launch_template_name: ::String
795
+ attr_accessor version: ::String
796
+ attr_accessor target_instance_types: ::Array[::String]
788
797
  SENSITIVE: []
789
798
  end
790
799
 
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.104.0
4
+ version: 1.105.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: 2024-11-06 00:00:00.000000000 Z
11
+ date: 2024-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core