aws-sdk-batch 1.135.0 → 1.136.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/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-batch/client.rb +8 -1
- data/lib/aws-sdk-batch/client_api.rb +6 -0
- data/lib/aws-sdk-batch/types.rb +53 -2
- data/lib/aws-sdk-batch.rb +1 -1
- data/sig/client.rbs +8 -2
- data/sig/types.rbs +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 133b650a3580788571b132c4a93be6e95eb36413c24703ab44e5addbe8a1a96e
|
|
4
|
+
data.tar.gz: f89064d5dd7b077a481e0d2276ec84c6525c1f43c57761b9a67c5161d4f4396f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 70c3a99cb22adcbb5987eb09f38945b0706948b0409ea1c45179b3d501507f8ca08e9b5228da78725e1d7f8cd5330a265e60e41df17126b619be117c92a84ec1
|
|
7
|
+
data.tar.gz: 7161a662111b1a228c09a69da1b3fac6a8bebb95b5e5bbb9107a7585bfc460172f641fdb787d9731190cdad08b035184c26a46fcbb7fbfae29579141e5e24b07
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.136.0 (2026-02-27)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - This feature allows customers to specify the minimum time (in minutes) that AWS Batch keeps instances running in a compute environment after all jobs on the instance complete
|
|
8
|
+
|
|
4
9
|
1.135.0 (2026-02-25)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.136.0
|
data/lib/aws-sdk-batch/client.rb
CHANGED
|
@@ -847,6 +847,9 @@ module Aws::Batch
|
|
|
847
847
|
# image_kubernetes_version: "KubernetesVersion",
|
|
848
848
|
# },
|
|
849
849
|
# ],
|
|
850
|
+
# scaling_policy: {
|
|
851
|
+
# min_scale_down_delay_minutes: 1,
|
|
852
|
+
# },
|
|
850
853
|
# },
|
|
851
854
|
# service_role: "String",
|
|
852
855
|
# tags: {
|
|
@@ -1631,6 +1634,7 @@ module Aws::Batch
|
|
|
1631
1634
|
# resp.compute_environments[0].compute_resources.ec2_configuration[0].image_type #=> String
|
|
1632
1635
|
# resp.compute_environments[0].compute_resources.ec2_configuration[0].image_id_override #=> String
|
|
1633
1636
|
# resp.compute_environments[0].compute_resources.ec2_configuration[0].image_kubernetes_version #=> String
|
|
1637
|
+
# resp.compute_environments[0].compute_resources.scaling_policy.min_scale_down_delay_minutes #=> Integer
|
|
1634
1638
|
# resp.compute_environments[0].service_role #=> String
|
|
1635
1639
|
# resp.compute_environments[0].update_policy.terminate_jobs_on_update #=> Boolean
|
|
1636
1640
|
# resp.compute_environments[0].update_policy.job_execution_timeout_minutes #=> Integer
|
|
@@ -5865,6 +5869,9 @@ module Aws::Batch
|
|
|
5865
5869
|
# update_to_latest_image_version: false,
|
|
5866
5870
|
# type: "EC2", # accepts EC2, SPOT, FARGATE, FARGATE_SPOT
|
|
5867
5871
|
# image_id: "String",
|
|
5872
|
+
# scaling_policy: {
|
|
5873
|
+
# min_scale_down_delay_minutes: 1,
|
|
5874
|
+
# },
|
|
5868
5875
|
# },
|
|
5869
5876
|
# service_role: "String",
|
|
5870
5877
|
# update_policy: {
|
|
@@ -6196,7 +6203,7 @@ module Aws::Batch
|
|
|
6196
6203
|
tracer: tracer
|
|
6197
6204
|
)
|
|
6198
6205
|
context[:gem_name] = 'aws-sdk-batch'
|
|
6199
|
-
context[:gem_version] = '1.
|
|
6206
|
+
context[:gem_version] = '1.136.0'
|
|
6200
6207
|
Seahorse::Client::Request.new(handlers, context)
|
|
6201
6208
|
end
|
|
6202
6209
|
|
|
@@ -44,6 +44,7 @@ module Aws::Batch
|
|
|
44
44
|
ComputeEnvironmentOrders = Shapes::ListShape.new(name: 'ComputeEnvironmentOrders')
|
|
45
45
|
ComputeResource = Shapes::StructureShape.new(name: 'ComputeResource')
|
|
46
46
|
ComputeResourceUpdate = Shapes::StructureShape.new(name: 'ComputeResourceUpdate')
|
|
47
|
+
ComputeScalingPolicy = Shapes::StructureShape.new(name: 'ComputeScalingPolicy')
|
|
47
48
|
ConsumableResourceList = Shapes::ListShape.new(name: 'ConsumableResourceList')
|
|
48
49
|
ConsumableResourceProperties = Shapes::StructureShape.new(name: 'ConsumableResourceProperties')
|
|
49
50
|
ConsumableResourceRequirement = Shapes::StructureShape.new(name: 'ConsumableResourceRequirement')
|
|
@@ -439,6 +440,7 @@ module Aws::Batch
|
|
|
439
440
|
ComputeResource.add_member(:spot_iam_fleet_role, Shapes::ShapeRef.new(shape: String, location_name: "spotIamFleetRole"))
|
|
440
441
|
ComputeResource.add_member(:launch_template, Shapes::ShapeRef.new(shape: LaunchTemplateSpecification, location_name: "launchTemplate"))
|
|
441
442
|
ComputeResource.add_member(:ec2_configuration, Shapes::ShapeRef.new(shape: Ec2ConfigurationList, location_name: "ec2Configuration"))
|
|
443
|
+
ComputeResource.add_member(:scaling_policy, Shapes::ShapeRef.new(shape: ComputeScalingPolicy, location_name: "scalingPolicy"))
|
|
442
444
|
ComputeResource.struct_class = Types::ComputeResource
|
|
443
445
|
|
|
444
446
|
ComputeResourceUpdate.add_member(:minv_cpus, Shapes::ShapeRef.new(shape: Integer, location_name: "minvCpus"))
|
|
@@ -458,8 +460,12 @@ module Aws::Batch
|
|
|
458
460
|
ComputeResourceUpdate.add_member(:update_to_latest_image_version, Shapes::ShapeRef.new(shape: Boolean, location_name: "updateToLatestImageVersion"))
|
|
459
461
|
ComputeResourceUpdate.add_member(:type, Shapes::ShapeRef.new(shape: CRType, location_name: "type"))
|
|
460
462
|
ComputeResourceUpdate.add_member(:image_id, Shapes::ShapeRef.new(shape: String, location_name: "imageId"))
|
|
463
|
+
ComputeResourceUpdate.add_member(:scaling_policy, Shapes::ShapeRef.new(shape: ComputeScalingPolicy, location_name: "scalingPolicy"))
|
|
461
464
|
ComputeResourceUpdate.struct_class = Types::ComputeResourceUpdate
|
|
462
465
|
|
|
466
|
+
ComputeScalingPolicy.add_member(:min_scale_down_delay_minutes, Shapes::ShapeRef.new(shape: Integer, location_name: "minScaleDownDelayMinutes"))
|
|
467
|
+
ComputeScalingPolicy.struct_class = Types::ComputeScalingPolicy
|
|
468
|
+
|
|
463
469
|
ConsumableResourceList.member = Shapes::ShapeRef.new(shape: ConsumableResourceRequirement)
|
|
464
470
|
|
|
465
471
|
ConsumableResourceProperties.add_member(:consumable_resource_list, Shapes::ShapeRef.new(shape: ConsumableResourceList, location_name: "consumableResourceList"))
|
data/lib/aws-sdk-batch/types.rb
CHANGED
|
@@ -915,6 +915,15 @@ module Aws::Batch
|
|
|
915
915
|
# </note>
|
|
916
916
|
# @return [Array<Types::Ec2Configuration>]
|
|
917
917
|
#
|
|
918
|
+
# @!attribute [rw] scaling_policy
|
|
919
|
+
# The scaling policy configuration for the compute environment.
|
|
920
|
+
#
|
|
921
|
+
# <note markdown="1"> This parameter isn't applicable to jobs that are running on Fargate
|
|
922
|
+
# resources. Don't specify it.
|
|
923
|
+
#
|
|
924
|
+
# </note>
|
|
925
|
+
# @return [Types::ComputeScalingPolicy]
|
|
926
|
+
#
|
|
918
927
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ComputeResource AWS API Documentation
|
|
919
928
|
#
|
|
920
929
|
class ComputeResource < Struct.new(
|
|
@@ -934,7 +943,8 @@ module Aws::Batch
|
|
|
934
943
|
:bid_percentage,
|
|
935
944
|
:spot_iam_fleet_role,
|
|
936
945
|
:launch_template,
|
|
937
|
-
:ec2_configuration
|
|
946
|
+
:ec2_configuration,
|
|
947
|
+
:scaling_policy)
|
|
938
948
|
SENSITIVE = []
|
|
939
949
|
include Aws::Structure
|
|
940
950
|
end
|
|
@@ -1437,6 +1447,15 @@ module Aws::Batch
|
|
|
1437
1447
|
# [2]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#ecs-optimized-ami-linux-variants.html
|
|
1438
1448
|
# @return [String]
|
|
1439
1449
|
#
|
|
1450
|
+
# @!attribute [rw] scaling_policy
|
|
1451
|
+
# The scaling policy configuration for the compute environment.
|
|
1452
|
+
#
|
|
1453
|
+
# <note markdown="1"> This parameter isn't applicable to jobs that are running on Fargate
|
|
1454
|
+
# resources. Don't specify it.
|
|
1455
|
+
#
|
|
1456
|
+
# </note>
|
|
1457
|
+
# @return [Types::ComputeScalingPolicy]
|
|
1458
|
+
#
|
|
1440
1459
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ComputeResourceUpdate AWS API Documentation
|
|
1441
1460
|
#
|
|
1442
1461
|
class ComputeResourceUpdate < Struct.new(
|
|
@@ -1456,7 +1475,39 @@ module Aws::Batch
|
|
|
1456
1475
|
:ec2_configuration,
|
|
1457
1476
|
:update_to_latest_image_version,
|
|
1458
1477
|
:type,
|
|
1459
|
-
:image_id
|
|
1478
|
+
:image_id,
|
|
1479
|
+
:scaling_policy)
|
|
1480
|
+
SENSITIVE = []
|
|
1481
|
+
include Aws::Structure
|
|
1482
|
+
end
|
|
1483
|
+
|
|
1484
|
+
# An object that represents a scaling policy for a compute environment.
|
|
1485
|
+
#
|
|
1486
|
+
# @!attribute [rw] min_scale_down_delay_minutes
|
|
1487
|
+
# The minimum time (in minutes) that Batch keeps instances running in
|
|
1488
|
+
# the compute environment after their jobs complete. For each
|
|
1489
|
+
# instance, the delay period begins when the last job finishes. If no
|
|
1490
|
+
# new jobs are placed on the instance during this delay, Batch
|
|
1491
|
+
# terminates the instance once the delay expires.
|
|
1492
|
+
#
|
|
1493
|
+
# Valid Range: Minimum value of 20. Maximum value of 10080. Use 0 to
|
|
1494
|
+
# unset and disable the scale down delay.
|
|
1495
|
+
#
|
|
1496
|
+
# <note markdown="1"> The scale down delay does not apply to:
|
|
1497
|
+
#
|
|
1498
|
+
# * Instances being replaced during infrastructure updates
|
|
1499
|
+
#
|
|
1500
|
+
# * Newly launched instances that have not yet run any jobs
|
|
1501
|
+
#
|
|
1502
|
+
# * Spot instances reclaimed due to interruption
|
|
1503
|
+
#
|
|
1504
|
+
# </note>
|
|
1505
|
+
# @return [Integer]
|
|
1506
|
+
#
|
|
1507
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ComputeScalingPolicy AWS API Documentation
|
|
1508
|
+
#
|
|
1509
|
+
class ComputeScalingPolicy < Struct.new(
|
|
1510
|
+
:min_scale_down_delay_minutes)
|
|
1460
1511
|
SENSITIVE = []
|
|
1461
1512
|
include Aws::Structure
|
|
1462
1513
|
end
|
data/lib/aws-sdk-batch.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -136,7 +136,10 @@ module Aws
|
|
|
136
136
|
image_id_override: ::String?,
|
|
137
137
|
image_kubernetes_version: ::String?
|
|
138
138
|
},
|
|
139
|
-
]
|
|
139
|
+
]?,
|
|
140
|
+
scaling_policy: {
|
|
141
|
+
min_scale_down_delay_minutes: ::Integer?
|
|
142
|
+
}?
|
|
140
143
|
},
|
|
141
144
|
?service_role: ::String,
|
|
142
145
|
?tags: Hash[::String, ::String],
|
|
@@ -1630,7 +1633,10 @@ module Aws
|
|
|
1630
1633
|
]?,
|
|
1631
1634
|
update_to_latest_image_version: bool?,
|
|
1632
1635
|
type: ("EC2" | "SPOT" | "FARGATE" | "FARGATE_SPOT")?,
|
|
1633
|
-
image_id: ::String
|
|
1636
|
+
image_id: ::String?,
|
|
1637
|
+
scaling_policy: {
|
|
1638
|
+
min_scale_down_delay_minutes: ::Integer?
|
|
1639
|
+
}?
|
|
1634
1640
|
},
|
|
1635
1641
|
?service_role: ::String,
|
|
1636
1642
|
?update_policy: {
|
data/sig/types.rbs
CHANGED
|
@@ -128,6 +128,7 @@ module Aws::Batch
|
|
|
128
128
|
attr_accessor spot_iam_fleet_role: ::String
|
|
129
129
|
attr_accessor launch_template: Types::LaunchTemplateSpecification
|
|
130
130
|
attr_accessor ec2_configuration: ::Array[Types::Ec2Configuration]
|
|
131
|
+
attr_accessor scaling_policy: Types::ComputeScalingPolicy
|
|
131
132
|
SENSITIVE: []
|
|
132
133
|
end
|
|
133
134
|
|
|
@@ -149,6 +150,12 @@ module Aws::Batch
|
|
|
149
150
|
attr_accessor update_to_latest_image_version: bool
|
|
150
151
|
attr_accessor type: ("EC2" | "SPOT" | "FARGATE" | "FARGATE_SPOT")
|
|
151
152
|
attr_accessor image_id: ::String
|
|
153
|
+
attr_accessor scaling_policy: Types::ComputeScalingPolicy
|
|
154
|
+
SENSITIVE: []
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
class ComputeScalingPolicy
|
|
158
|
+
attr_accessor min_scale_down_delay_minutes: ::Integer
|
|
152
159
|
SENSITIVE: []
|
|
153
160
|
end
|
|
154
161
|
|