aws-sdk-batch 1.66.0 → 1.68.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-batch/client.rb +76 -14
- data/lib/aws-sdk-batch/client_api.rb +16 -0
- data/lib/aws-sdk-batch/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-batch/endpoint_provider.rb +44 -104
- data/lib/aws-sdk-batch/types.rb +138 -20
- data/lib/aws-sdk-batch.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c346d8e5823142438ef0d4a9214fcaea8cd6a106c073590f5f698f4ed1f36b6
|
4
|
+
data.tar.gz: 1991abc736fa5611bdf676a5a4194da6ed80ed8ec5132fdb2130bdf8b8f17f33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14f9fc1bf9bfdd50207613a3b049caf537cd92bf5470ad4e6b9cd9b72baf863d1e31e30f34f0c0d6c7be7fc915209ed092f0d61d5e4bfe15fa654c439f0f8b2d
|
7
|
+
data.tar.gz: a3ee30dac6555e6b3a2ea3a32f34a3bb82145f46460aa2f413026af44e65ba3a8c3575b5a4ee7634f05566972147c43e6f8a9a2538ceb131d147fe0007d29224
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.68.0 (2023-03-23)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This feature allows Batch to support configuration of ephemeral storage size for jobs running on FARGATE
|
8
|
+
|
9
|
+
1.67.0 (2023-01-18)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
15
|
+
|
4
16
|
1.66.0 (2022-12-20)
|
5
17
|
------------------
|
6
18
|
|
@@ -400,4 +412,4 @@ Unreleased Changes
|
|
400
412
|
1.0.0.rc1 (2017-01-24)
|
401
413
|
------------------
|
402
414
|
|
403
|
-
* Feature - Initial preview release of `aws-sdk-batch` gem.
|
415
|
+
* Feature - Initial preview release of `aws-sdk-batch` gem.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.68.0
|
data/lib/aws-sdk-batch/client.rb
CHANGED
@@ -368,11 +368,15 @@ module Aws::Batch
|
|
368
368
|
|
369
369
|
# @!group API Operations
|
370
370
|
|
371
|
-
# Cancels a job in an Batch job queue. Jobs that are in the `SUBMITTED
|
372
|
-
#
|
373
|
-
# the
|
374
|
-
#
|
375
|
-
#
|
371
|
+
# Cancels a job in an Batch job queue. Jobs that are in the `SUBMITTED`
|
372
|
+
# or `PENDING` are canceled. A job in`RUNNABLE` remains in `RUNNABLE`
|
373
|
+
# until it reaches the head of the job queue. Then the job status is
|
374
|
+
# updated to `FAILED`.
|
375
|
+
#
|
376
|
+
# Jobs that progressed to the `STARTING` or `RUNNING` state aren't
|
377
|
+
# canceled. However, the API operation still succeeds, even if no job is
|
378
|
+
# canceled. These jobs must be terminated with the TerminateJob
|
379
|
+
# operation.
|
376
380
|
#
|
377
381
|
# @option params [required, String] :job_id
|
378
382
|
# The Batch job ID of the job to cancel.
|
@@ -544,8 +548,24 @@ module Aws::Batch
|
|
544
548
|
# If the state is `DISABLED`, then the Batch scheduler doesn't attempt
|
545
549
|
# to place jobs within the environment. Jobs in a `STARTING` or
|
546
550
|
# `RUNNING` state continue to progress normally. Managed compute
|
547
|
-
# environments in the `DISABLED` state don't scale out.
|
548
|
-
#
|
551
|
+
# environments in the `DISABLED` state don't scale out.
|
552
|
+
#
|
553
|
+
# <note markdown="1"> Compute environments in a `DISABLED` state may continue to incur
|
554
|
+
# billing charges. To prevent additional charges, turn off and then
|
555
|
+
# delete the compute environment. For more information, see [State][1]
|
556
|
+
# in the *Batch User Guide*.
|
557
|
+
#
|
558
|
+
# </note>
|
559
|
+
#
|
560
|
+
# When an instance is idle, the instance scales down to the `minvCpus`
|
561
|
+
# value. However, the instance size doesn't change. For example,
|
562
|
+
# consider a `c5.8xlarge` instance with a `minvCpus` value of `4` and a
|
563
|
+
# `desiredvCpus` value of `36`. This instance doesn't scale down to a
|
564
|
+
# `c5.large` instance.
|
565
|
+
#
|
566
|
+
#
|
567
|
+
#
|
568
|
+
# [1]: https://docs.aws.amazon.com/batch/latest/userguide/compute_environment_parameters.html#compute_environment_state
|
549
569
|
#
|
550
570
|
# @option params [Integer] :unmanagedv_cpus
|
551
571
|
# The maximum number of vCPUs for an unmanaged compute environment. This
|
@@ -1474,6 +1494,7 @@ module Aws::Batch
|
|
1474
1494
|
# resp.job_definitions[0].container_properties.secrets[0].value_from #=> String
|
1475
1495
|
# resp.job_definitions[0].container_properties.network_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
|
1476
1496
|
# resp.job_definitions[0].container_properties.fargate_platform_configuration.platform_version #=> String
|
1497
|
+
# resp.job_definitions[0].container_properties.ephemeral_storage.size_in_gi_b #=> Integer
|
1477
1498
|
# resp.job_definitions[0].timeout.attempt_duration_seconds #=> Integer
|
1478
1499
|
# resp.job_definitions[0].node_properties.num_nodes #=> Integer
|
1479
1500
|
# resp.job_definitions[0].node_properties.main_node #=> Integer
|
@@ -1538,6 +1559,7 @@ module Aws::Batch
|
|
1538
1559
|
# resp.job_definitions[0].node_properties.node_range_properties[0].container.secrets[0].value_from #=> String
|
1539
1560
|
# resp.job_definitions[0].node_properties.node_range_properties[0].container.network_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
|
1540
1561
|
# resp.job_definitions[0].node_properties.node_range_properties[0].container.fargate_platform_configuration.platform_version #=> String
|
1562
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.ephemeral_storage.size_in_gi_b #=> Integer
|
1541
1563
|
# resp.job_definitions[0].tags #=> Hash
|
1542
1564
|
# resp.job_definitions[0].tags["TagKey"] #=> String
|
1543
1565
|
# resp.job_definitions[0].propagate_tags #=> Boolean
|
@@ -1577,6 +1599,8 @@ module Aws::Batch
|
|
1577
1599
|
# resp.job_definitions[0].eks_properties.pod_properties.volumes[0].empty_dir.size_limit #=> String
|
1578
1600
|
# resp.job_definitions[0].eks_properties.pod_properties.volumes[0].secret.secret_name #=> String
|
1579
1601
|
# resp.job_definitions[0].eks_properties.pod_properties.volumes[0].secret.optional #=> Boolean
|
1602
|
+
# resp.job_definitions[0].eks_properties.pod_properties.metadata.labels #=> Hash
|
1603
|
+
# resp.job_definitions[0].eks_properties.pod_properties.metadata.labels["String"] #=> String
|
1580
1604
|
# resp.job_definitions[0].container_orchestration_type #=> String, one of "ECS", "EKS"
|
1581
1605
|
# resp.next_token #=> String
|
1582
1606
|
#
|
@@ -1861,6 +1885,7 @@ module Aws::Batch
|
|
1861
1885
|
# resp.jobs[0].container.secrets[0].value_from #=> String
|
1862
1886
|
# resp.jobs[0].container.network_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
|
1863
1887
|
# resp.jobs[0].container.fargate_platform_configuration.platform_version #=> String
|
1888
|
+
# resp.jobs[0].container.ephemeral_storage.size_in_gi_b #=> Integer
|
1864
1889
|
# resp.jobs[0].node_details.node_index #=> Integer
|
1865
1890
|
# resp.jobs[0].node_details.is_main_node #=> Boolean
|
1866
1891
|
# resp.jobs[0].node_properties.num_nodes #=> Integer
|
@@ -1926,6 +1951,7 @@ module Aws::Batch
|
|
1926
1951
|
# resp.jobs[0].node_properties.node_range_properties[0].container.secrets[0].value_from #=> String
|
1927
1952
|
# resp.jobs[0].node_properties.node_range_properties[0].container.network_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
|
1928
1953
|
# resp.jobs[0].node_properties.node_range_properties[0].container.fargate_platform_configuration.platform_version #=> String
|
1954
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.ephemeral_storage.size_in_gi_b #=> Integer
|
1929
1955
|
# resp.jobs[0].array_properties.status_summary #=> Hash
|
1930
1956
|
# resp.jobs[0].array_properties.status_summary["String"] #=> Integer
|
1931
1957
|
# resp.jobs[0].array_properties.size #=> Integer
|
@@ -2649,6 +2675,9 @@ module Aws::Batch
|
|
2649
2675
|
# fargate_platform_configuration: {
|
2650
2676
|
# platform_version: "String",
|
2651
2677
|
# },
|
2678
|
+
# ephemeral_storage: {
|
2679
|
+
# size_in_gi_b: 1, # required
|
2680
|
+
# },
|
2652
2681
|
# },
|
2653
2682
|
# node_properties: {
|
2654
2683
|
# num_nodes: 1, # required
|
@@ -2755,6 +2784,9 @@ module Aws::Batch
|
|
2755
2784
|
# fargate_platform_configuration: {
|
2756
2785
|
# platform_version: "String",
|
2757
2786
|
# },
|
2787
|
+
# ephemeral_storage: {
|
2788
|
+
# size_in_gi_b: 1, # required
|
2789
|
+
# },
|
2758
2790
|
# },
|
2759
2791
|
# },
|
2760
2792
|
# ],
|
@@ -2836,6 +2868,11 @@ module Aws::Batch
|
|
2836
2868
|
# },
|
2837
2869
|
# },
|
2838
2870
|
# ],
|
2871
|
+
# metadata: {
|
2872
|
+
# labels: {
|
2873
|
+
# "String" => "String",
|
2874
|
+
# },
|
2875
|
+
# },
|
2839
2876
|
# },
|
2840
2877
|
# },
|
2841
2878
|
# })
|
@@ -2917,10 +2954,14 @@ module Aws::Batch
|
|
2917
2954
|
# child of each dependency to complete before it can begin.
|
2918
2955
|
#
|
2919
2956
|
# @option params [required, String] :job_definition
|
2920
|
-
# The job definition used by this job. This value can be one of
|
2921
|
-
# `name:revision`, or the Amazon Resource
|
2922
|
-
#
|
2923
|
-
#
|
2957
|
+
# The job definition used by this job. This value can be one of
|
2958
|
+
# `definition-name`, `definition-name:revision`, or the Amazon Resource
|
2959
|
+
# Name (ARN) for the job definition, with or without the revision
|
2960
|
+
# (`arn:aws:batch:region:account:job-definition/definition-name:revision
|
2961
|
+
# `, or `arn:aws:batch:region:account:job-definition/definition-name `).
|
2962
|
+
#
|
2963
|
+
# If the revision is not specified, then the latest active revision is
|
2964
|
+
# used.
|
2924
2965
|
#
|
2925
2966
|
# @option params [Hash<String,String>] :parameters
|
2926
2967
|
# Additional parameters passed to the job that replace parameter
|
@@ -3120,6 +3161,11 @@ module Aws::Batch
|
|
3120
3161
|
# },
|
3121
3162
|
# },
|
3122
3163
|
# ],
|
3164
|
+
# metadata: {
|
3165
|
+
# labels: {
|
3166
|
+
# "String" => "String",
|
3167
|
+
# },
|
3168
|
+
# },
|
3123
3169
|
# },
|
3124
3170
|
# },
|
3125
3171
|
# })
|
@@ -3310,8 +3356,24 @@ module Aws::Batch
|
|
3310
3356
|
# If the state is `DISABLED`, then the Batch scheduler doesn't attempt
|
3311
3357
|
# to place jobs within the environment. Jobs in a `STARTING` or
|
3312
3358
|
# `RUNNING` state continue to progress normally. Managed compute
|
3313
|
-
# environments in the `DISABLED` state don't scale out.
|
3314
|
-
#
|
3359
|
+
# environments in the `DISABLED` state don't scale out.
|
3360
|
+
#
|
3361
|
+
# <note markdown="1"> Compute environments in a `DISABLED` state may continue to incur
|
3362
|
+
# billing charges. To prevent additional charges, turn off and then
|
3363
|
+
# delete the compute environment. For more information, see [State][1]
|
3364
|
+
# in the *Batch User Guide*.
|
3365
|
+
#
|
3366
|
+
# </note>
|
3367
|
+
#
|
3368
|
+
# When an instance is idle, the instance scales down to the `minvCpus`
|
3369
|
+
# value. However, the instance size doesn't change. For example,
|
3370
|
+
# consider a `c5.8xlarge` instance with a `minvCpus` value of `4` and a
|
3371
|
+
# `desiredvCpus` value of `36`. This instance doesn't scale down to a
|
3372
|
+
# `c5.large` instance.
|
3373
|
+
#
|
3374
|
+
#
|
3375
|
+
#
|
3376
|
+
# [1]: https://docs.aws.amazon.com/batch/latest/userguide/compute_environment_parameters.html#compute_environment_state
|
3315
3377
|
#
|
3316
3378
|
# @option params [Integer] :unmanagedv_cpus
|
3317
3379
|
# The maximum number of vCPUs expected to be used for an unmanaged
|
@@ -3594,7 +3656,7 @@ module Aws::Batch
|
|
3594
3656
|
params: params,
|
3595
3657
|
config: config)
|
3596
3658
|
context[:gem_name] = 'aws-sdk-batch'
|
3597
|
-
context[:gem_version] = '1.
|
3659
|
+
context[:gem_version] = '1.68.0'
|
3598
3660
|
Seahorse::Client::Request.new(handlers, context)
|
3599
3661
|
end
|
3600
3662
|
|
@@ -95,7 +95,9 @@ module Aws::Batch
|
|
95
95
|
EksContainers = Shapes::ListShape.new(name: 'EksContainers')
|
96
96
|
EksEmptyDir = Shapes::StructureShape.new(name: 'EksEmptyDir')
|
97
97
|
EksHostPath = Shapes::StructureShape.new(name: 'EksHostPath')
|
98
|
+
EksLabelsMap = Shapes::MapShape.new(name: 'EksLabelsMap')
|
98
99
|
EksLimits = Shapes::MapShape.new(name: 'EksLimits')
|
100
|
+
EksMetadata = Shapes::StructureShape.new(name: 'EksMetadata')
|
99
101
|
EksPodProperties = Shapes::StructureShape.new(name: 'EksPodProperties')
|
100
102
|
EksPodPropertiesDetail = Shapes::StructureShape.new(name: 'EksPodPropertiesDetail')
|
101
103
|
EksPodPropertiesOverride = Shapes::StructureShape.new(name: 'EksPodPropertiesOverride')
|
@@ -107,6 +109,7 @@ module Aws::Batch
|
|
107
109
|
EksVolume = Shapes::StructureShape.new(name: 'EksVolume')
|
108
110
|
EksVolumes = Shapes::ListShape.new(name: 'EksVolumes')
|
109
111
|
EnvironmentVariables = Shapes::ListShape.new(name: 'EnvironmentVariables')
|
112
|
+
EphemeralStorage = Shapes::StructureShape.new(name: 'EphemeralStorage')
|
110
113
|
EvaluateOnExit = Shapes::StructureShape.new(name: 'EvaluateOnExit')
|
111
114
|
EvaluateOnExitList = Shapes::ListShape.new(name: 'EvaluateOnExitList')
|
112
115
|
FairsharePolicy = Shapes::StructureShape.new(name: 'FairsharePolicy')
|
@@ -340,6 +343,7 @@ module Aws::Batch
|
|
340
343
|
ContainerDetail.add_member(:secrets, Shapes::ShapeRef.new(shape: SecretList, location_name: "secrets"))
|
341
344
|
ContainerDetail.add_member(:network_configuration, Shapes::ShapeRef.new(shape: NetworkConfiguration, location_name: "networkConfiguration"))
|
342
345
|
ContainerDetail.add_member(:fargate_platform_configuration, Shapes::ShapeRef.new(shape: FargatePlatformConfiguration, location_name: "fargatePlatformConfiguration"))
|
346
|
+
ContainerDetail.add_member(:ephemeral_storage, Shapes::ShapeRef.new(shape: EphemeralStorage, location_name: "ephemeralStorage"))
|
343
347
|
ContainerDetail.struct_class = Types::ContainerDetail
|
344
348
|
|
345
349
|
ContainerOverrides.add_member(:vcpus, Shapes::ShapeRef.new(shape: Integer, deprecated: true, location_name: "vcpus", metadata: {"deprecatedMessage"=>"This field is deprecated, use resourceRequirements instead."}))
|
@@ -370,6 +374,7 @@ module Aws::Batch
|
|
370
374
|
ContainerProperties.add_member(:secrets, Shapes::ShapeRef.new(shape: SecretList, location_name: "secrets"))
|
371
375
|
ContainerProperties.add_member(:network_configuration, Shapes::ShapeRef.new(shape: NetworkConfiguration, location_name: "networkConfiguration"))
|
372
376
|
ContainerProperties.add_member(:fargate_platform_configuration, Shapes::ShapeRef.new(shape: FargatePlatformConfiguration, location_name: "fargatePlatformConfiguration"))
|
377
|
+
ContainerProperties.add_member(:ephemeral_storage, Shapes::ShapeRef.new(shape: EphemeralStorage, location_name: "ephemeralStorage"))
|
373
378
|
ContainerProperties.struct_class = Types::ContainerProperties
|
374
379
|
|
375
380
|
ContainerSummary.add_member(:exit_code, Shapes::ShapeRef.new(shape: Integer, location_name: "exitCode"))
|
@@ -587,14 +592,21 @@ module Aws::Batch
|
|
587
592
|
EksHostPath.add_member(:path, Shapes::ShapeRef.new(shape: String, location_name: "path"))
|
588
593
|
EksHostPath.struct_class = Types::EksHostPath
|
589
594
|
|
595
|
+
EksLabelsMap.key = Shapes::ShapeRef.new(shape: String)
|
596
|
+
EksLabelsMap.value = Shapes::ShapeRef.new(shape: String)
|
597
|
+
|
590
598
|
EksLimits.key = Shapes::ShapeRef.new(shape: String)
|
591
599
|
EksLimits.value = Shapes::ShapeRef.new(shape: Quantity)
|
592
600
|
|
601
|
+
EksMetadata.add_member(:labels, Shapes::ShapeRef.new(shape: EksLabelsMap, location_name: "labels"))
|
602
|
+
EksMetadata.struct_class = Types::EksMetadata
|
603
|
+
|
593
604
|
EksPodProperties.add_member(:service_account_name, Shapes::ShapeRef.new(shape: String, location_name: "serviceAccountName"))
|
594
605
|
EksPodProperties.add_member(:host_network, Shapes::ShapeRef.new(shape: Boolean, location_name: "hostNetwork"))
|
595
606
|
EksPodProperties.add_member(:dns_policy, Shapes::ShapeRef.new(shape: String, location_name: "dnsPolicy"))
|
596
607
|
EksPodProperties.add_member(:containers, Shapes::ShapeRef.new(shape: EksContainers, location_name: "containers"))
|
597
608
|
EksPodProperties.add_member(:volumes, Shapes::ShapeRef.new(shape: EksVolumes, location_name: "volumes"))
|
609
|
+
EksPodProperties.add_member(:metadata, Shapes::ShapeRef.new(shape: EksMetadata, location_name: "metadata"))
|
598
610
|
EksPodProperties.struct_class = Types::EksPodProperties
|
599
611
|
|
600
612
|
EksPodPropertiesDetail.add_member(:service_account_name, Shapes::ShapeRef.new(shape: String, location_name: "serviceAccountName"))
|
@@ -607,6 +619,7 @@ module Aws::Batch
|
|
607
619
|
EksPodPropertiesDetail.struct_class = Types::EksPodPropertiesDetail
|
608
620
|
|
609
621
|
EksPodPropertiesOverride.add_member(:containers, Shapes::ShapeRef.new(shape: EksContainerOverrideList, location_name: "containers"))
|
622
|
+
EksPodPropertiesOverride.add_member(:metadata, Shapes::ShapeRef.new(shape: EksMetadata, location_name: "metadata"))
|
610
623
|
EksPodPropertiesOverride.struct_class = Types::EksPodPropertiesOverride
|
611
624
|
|
612
625
|
EksProperties.add_member(:pod_properties, Shapes::ShapeRef.new(shape: EksPodProperties, location_name: "podProperties"))
|
@@ -635,6 +648,9 @@ module Aws::Batch
|
|
635
648
|
|
636
649
|
EnvironmentVariables.member = Shapes::ShapeRef.new(shape: KeyValuePair)
|
637
650
|
|
651
|
+
EphemeralStorage.add_member(:size_in_gi_b, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "sizeInGiB"))
|
652
|
+
EphemeralStorage.struct_class = Types::EphemeralStorage
|
653
|
+
|
638
654
|
EvaluateOnExit.add_member(:on_status_reason, Shapes::ShapeRef.new(shape: String, location_name: "onStatusReason"))
|
639
655
|
EvaluateOnExit.add_member(:on_reason, Shapes::ShapeRef.new(shape: String, location_name: "onReason"))
|
640
656
|
EvaluateOnExit.add_member(:on_exit_code, Shapes::ShapeRef.new(shape: String, location_name: "onExitCode"))
|
@@ -50,9 +50,6 @@ module Aws::Batch
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
-
if self[:region].nil?
|
54
|
-
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
-
end
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
55
|
if self[:use_dual_stack].nil?
|
@@ -9,112 +9,52 @@
|
|
9
9
|
|
10
10
|
module Aws::Batch
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
20
|
+
end
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
21
25
|
end
|
22
|
-
|
23
|
-
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://batch-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
if Aws::Endpoints::Matchers.string_equals?("aws", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
37
|
+
return Aws::Endpoints::Endpoint.new(url: "https://fips.batch.#{region}.amazonaws.com", headers: {}, properties: {})
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
40
|
+
return Aws::Endpoints::Endpoint.new(url: "https://batch.#{region}.amazonaws.com", headers: {}, properties: {})
|
41
|
+
end
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://batch-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
45
|
+
end
|
46
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
47
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
48
|
+
return Aws::Endpoints::Endpoint.new(url: "https://batch.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
49
|
+
end
|
50
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
51
|
+
end
|
52
|
+
return Aws::Endpoints::Endpoint.new(url: "https://batch.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
53
|
+
end
|
54
|
+
end
|
55
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
56
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
57
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-
@provider.resolve_endpoint(parameters)
|
27
58
|
end
|
28
|
-
|
29
|
-
# @api private
|
30
|
-
RULES = <<-JSON
|
31
|
-
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
-
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
|
33
|
-
YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
|
34
|
-
ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
|
35
|
-
aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
|
36
|
-
ZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRhdGlvbiI6IldoZW4gdHJ1ZSwgdXNl
|
37
|
-
IHRoZSBkdWFsLXN0YWNrIGVuZHBvaW50LiBJZiB0aGUgY29uZmlndXJlZCBl
|
38
|
-
bmRwb2ludCBkb2VzIG5vdCBzdXBwb3J0IGR1YWwtc3RhY2ssIGRpc3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9IiwicHJvcGVydGllcyI6
|
116
|
-
e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfV19
|
117
|
-
|
118
|
-
JSON
|
119
59
|
end
|
120
60
|
end
|
data/lib/aws-sdk-batch/types.rb
CHANGED
@@ -245,8 +245,24 @@ module Aws::Batch
|
|
245
245
|
# If the state is `DISABLED`, then the Batch scheduler doesn't
|
246
246
|
# attempt to place jobs within the environment. Jobs in a `STARTING`
|
247
247
|
# or `RUNNING` state continue to progress normally. Managed compute
|
248
|
-
# environments in the `DISABLED` state don't scale out.
|
249
|
-
#
|
248
|
+
# environments in the `DISABLED` state don't scale out.
|
249
|
+
#
|
250
|
+
# <note markdown="1"> Compute environments in a `DISABLED` state may continue to incur
|
251
|
+
# billing charges. To prevent additional charges, turn off and then
|
252
|
+
# delete the compute environment. For more information, see [State][1]
|
253
|
+
# in the *Batch User Guide*.
|
254
|
+
#
|
255
|
+
# </note>
|
256
|
+
#
|
257
|
+
# When an instance is idle, the instance scales down to the `minvCpus`
|
258
|
+
# value. However, the instance size doesn't change. For example,
|
259
|
+
# consider a `c5.8xlarge` instance with a `minvCpus` value of `4` and
|
260
|
+
# a `desiredvCpus` value of `36`. This instance doesn't scale down to
|
261
|
+
# a `c5.large` instance.
|
262
|
+
#
|
263
|
+
#
|
264
|
+
#
|
265
|
+
# [1]: https://docs.aws.amazon.com/batch/latest/userguide/compute_environment_parameters.html#compute_environment_state
|
250
266
|
# @return [String]
|
251
267
|
#
|
252
268
|
# @!attribute [rw] status
|
@@ -786,6 +802,19 @@ module Aws::Batch
|
|
786
802
|
# compute environments using Amazon EKS clusters.
|
787
803
|
#
|
788
804
|
# </note>
|
805
|
+
#
|
806
|
+
# <note markdown="1"> When you update the `desiredvCpus` setting, the value must be
|
807
|
+
# between the `minvCpus` and `maxvCpus` values.
|
808
|
+
#
|
809
|
+
# Additionally, the updated `desiredvCpus` value must be greater than
|
810
|
+
# or equal to the current `desiredvCpus` value. For more information,
|
811
|
+
# see [Troubleshooting Batch][1] in the *Batch User Guide*.
|
812
|
+
#
|
813
|
+
# </note>
|
814
|
+
#
|
815
|
+
#
|
816
|
+
#
|
817
|
+
# [1]: https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#error-desired-vcpus-update
|
789
818
|
# @return [Integer]
|
790
819
|
#
|
791
820
|
# @!attribute [rw] subnets
|
@@ -1450,6 +1479,12 @@ module Aws::Batch
|
|
1450
1479
|
# this parameter.
|
1451
1480
|
# @return [Types::FargatePlatformConfiguration]
|
1452
1481
|
#
|
1482
|
+
# @!attribute [rw] ephemeral_storage
|
1483
|
+
# The amount of ephemeral storage to allocate for the task. This
|
1484
|
+
# parameter is used to expand the total amount of ephemeral storage
|
1485
|
+
# available, beyond the default amount, for tasks hosted on Fargate.
|
1486
|
+
# @return [Types::EphemeralStorage]
|
1487
|
+
#
|
1453
1488
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ContainerDetail AWS API Documentation
|
1454
1489
|
#
|
1455
1490
|
class ContainerDetail < Struct.new(
|
@@ -1478,7 +1513,8 @@ module Aws::Batch
|
|
1478
1513
|
:log_configuration,
|
1479
1514
|
:secrets,
|
1480
1515
|
:network_configuration,
|
1481
|
-
:fargate_platform_configuration
|
1516
|
+
:fargate_platform_configuration,
|
1517
|
+
:ephemeral_storage)
|
1482
1518
|
SENSITIVE = []
|
1483
1519
|
include Aws::Structure
|
1484
1520
|
end
|
@@ -1865,6 +1901,12 @@ module Aws::Batch
|
|
1865
1901
|
# this parameter.
|
1866
1902
|
# @return [Types::FargatePlatformConfiguration]
|
1867
1903
|
#
|
1904
|
+
# @!attribute [rw] ephemeral_storage
|
1905
|
+
# The amount of ephemeral storage to allocate for the task. This
|
1906
|
+
# parameter is used to expand the total amount of ephemeral storage
|
1907
|
+
# available, beyond the default amount, for tasks hosted on Fargate.
|
1908
|
+
# @return [Types::EphemeralStorage]
|
1909
|
+
#
|
1868
1910
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ContainerProperties AWS API Documentation
|
1869
1911
|
#
|
1870
1912
|
class ContainerProperties < Struct.new(
|
@@ -1887,7 +1929,8 @@ module Aws::Batch
|
|
1887
1929
|
:log_configuration,
|
1888
1930
|
:secrets,
|
1889
1931
|
:network_configuration,
|
1890
|
-
:fargate_platform_configuration
|
1932
|
+
:fargate_platform_configuration,
|
1933
|
+
:ephemeral_storage)
|
1891
1934
|
SENSITIVE = []
|
1892
1935
|
include Aws::Structure
|
1893
1936
|
end
|
@@ -1944,8 +1987,24 @@ module Aws::Batch
|
|
1944
1987
|
# If the state is `DISABLED`, then the Batch scheduler doesn't
|
1945
1988
|
# attempt to place jobs within the environment. Jobs in a `STARTING`
|
1946
1989
|
# or `RUNNING` state continue to progress normally. Managed compute
|
1947
|
-
# environments in the `DISABLED` state don't scale out.
|
1948
|
-
#
|
1990
|
+
# environments in the `DISABLED` state don't scale out.
|
1991
|
+
#
|
1992
|
+
# <note markdown="1"> Compute environments in a `DISABLED` state may continue to incur
|
1993
|
+
# billing charges. To prevent additional charges, turn off and then
|
1994
|
+
# delete the compute environment. For more information, see [State][1]
|
1995
|
+
# in the *Batch User Guide*.
|
1996
|
+
#
|
1997
|
+
# </note>
|
1998
|
+
#
|
1999
|
+
# When an instance is idle, the instance scales down to the `minvCpus`
|
2000
|
+
# value. However, the instance size doesn't change. For example,
|
2001
|
+
# consider a `c5.8xlarge` instance with a `minvCpus` value of `4` and
|
2002
|
+
# a `desiredvCpus` value of `36`. This instance doesn't scale down to
|
2003
|
+
# a `c5.large` instance.
|
2004
|
+
#
|
2005
|
+
#
|
2006
|
+
#
|
2007
|
+
# [1]: https://docs.aws.amazon.com/batch/latest/userguide/compute_environment_parameters.html#compute_environment_state
|
1949
2008
|
# @return [String]
|
1950
2009
|
#
|
1951
2010
|
# @!attribute [rw] unmanagedv_cpus
|
@@ -2721,13 +2780,13 @@ module Aws::Batch
|
|
2721
2780
|
#
|
2722
2781
|
# ECS\_AL2
|
2723
2782
|
#
|
2724
|
-
# : [Amazon Linux 2][1]
|
2783
|
+
# : [Amazon Linux 2][1]: Default for all non-GPU instance families.
|
2725
2784
|
#
|
2726
2785
|
# ECS\_AL2\_NVIDIA
|
2727
2786
|
#
|
2728
|
-
# : [Amazon Linux 2 (GPU)][2]
|
2729
|
-
#
|
2730
|
-
#
|
2787
|
+
# : [Amazon Linux 2 (GPU)][2]: Default for all GPU instance families
|
2788
|
+
# (for example `P4` and `G4`) and can be used for all non Amazon
|
2789
|
+
# Web Services Graviton-based instance types.
|
2731
2790
|
#
|
2732
2791
|
# ECS\_AL1
|
2733
2792
|
#
|
@@ -2746,11 +2805,11 @@ module Aws::Batch
|
|
2746
2805
|
#
|
2747
2806
|
# EKS\_AL2
|
2748
2807
|
#
|
2749
|
-
# : [Amazon Linux 2][5]
|
2808
|
+
# : [Amazon Linux 2][5]: Default for all non-GPU instance families.
|
2750
2809
|
#
|
2751
2810
|
# EKS\_AL2\_NVIDIA
|
2752
2811
|
#
|
2753
|
-
# : [Amazon Linux 2 (accelerated)][5]
|
2812
|
+
# : [Amazon Linux 2 (accelerated)][5]: Default for all GPU instance
|
2754
2813
|
# families (for example, `P4` and `G4`) and can be used for all
|
2755
2814
|
# non Amazon Web Services Graviton-based instance types.
|
2756
2815
|
#
|
@@ -3528,6 +3587,17 @@ module Aws::Batch
|
|
3528
3587
|
include Aws::Structure
|
3529
3588
|
end
|
3530
3589
|
|
3590
|
+
# @!attribute [rw] labels
|
3591
|
+
# @return [Hash<String,String>]
|
3592
|
+
#
|
3593
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/EksMetadata AWS API Documentation
|
3594
|
+
#
|
3595
|
+
class EksMetadata < Struct.new(
|
3596
|
+
:labels)
|
3597
|
+
SENSITIVE = []
|
3598
|
+
include Aws::Structure
|
3599
|
+
end
|
3600
|
+
|
3531
3601
|
# The properties for the pod.
|
3532
3602
|
#
|
3533
3603
|
# @!attribute [rw] service_account_name
|
@@ -3585,6 +3655,9 @@ module Aws::Batch
|
|
3585
3655
|
# resources.
|
3586
3656
|
# @return [Array<Types::EksVolume>]
|
3587
3657
|
#
|
3658
|
+
# @!attribute [rw] metadata
|
3659
|
+
# @return [Types::EksMetadata]
|
3660
|
+
#
|
3588
3661
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/EksPodProperties AWS API Documentation
|
3589
3662
|
#
|
3590
3663
|
class EksPodProperties < Struct.new(
|
@@ -3592,7 +3665,8 @@ module Aws::Batch
|
|
3592
3665
|
:host_network,
|
3593
3666
|
:dns_policy,
|
3594
3667
|
:containers,
|
3595
|
-
:volumes
|
3668
|
+
:volumes,
|
3669
|
+
:metadata)
|
3596
3670
|
SENSITIVE = []
|
3597
3671
|
include Aws::Structure
|
3598
3672
|
end
|
@@ -3691,10 +3765,14 @@ module Aws::Batch
|
|
3691
3765
|
# The overrides for the container that's used on the Amazon EKS pod.
|
3692
3766
|
# @return [Array<Types::EksContainerOverride>]
|
3693
3767
|
#
|
3768
|
+
# @!attribute [rw] metadata
|
3769
|
+
# @return [Types::EksMetadata]
|
3770
|
+
#
|
3694
3771
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/EksPodPropertiesOverride AWS API Documentation
|
3695
3772
|
#
|
3696
3773
|
class EksPodPropertiesOverride < Struct.new(
|
3697
|
-
:containers
|
3774
|
+
:containers,
|
3775
|
+
:metadata)
|
3698
3776
|
SENSITIVE = []
|
3699
3777
|
include Aws::Structure
|
3700
3778
|
end
|
@@ -3826,6 +3904,24 @@ module Aws::Batch
|
|
3826
3904
|
include Aws::Structure
|
3827
3905
|
end
|
3828
3906
|
|
3907
|
+
# The amount of ephemeral storage to allocate for the task. This
|
3908
|
+
# parameter is used to expand the total amount of ephemeral storage
|
3909
|
+
# available, beyond the default amount, for tasks hosted on Fargate.
|
3910
|
+
#
|
3911
|
+
# @!attribute [rw] size_in_gi_b
|
3912
|
+
# The total amount, in GiB, of ephemeral storage to set for the task.
|
3913
|
+
# The minimum supported value is `21` GiB and the maximum supported
|
3914
|
+
# value is `200` GiB.
|
3915
|
+
# @return [Integer]
|
3916
|
+
#
|
3917
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/EphemeralStorage AWS API Documentation
|
3918
|
+
#
|
3919
|
+
class EphemeralStorage < Struct.new(
|
3920
|
+
:size_in_gi_b)
|
3921
|
+
SENSITIVE = []
|
3922
|
+
include Aws::Structure
|
3923
|
+
end
|
3924
|
+
|
3829
3925
|
# Specifies an array of up to 5 conditions to be met, and an action to
|
3830
3926
|
# take (`RETRY` or `EXIT`) if all conditions are met. If none of the
|
3831
3927
|
# `EvaluateOnExit` conditions in a `RetryStrategy` match, then the job
|
@@ -5605,7 +5701,7 @@ module Aws::Batch
|
|
5605
5701
|
#
|
5606
5702
|
# value = 8192
|
5607
5703
|
#
|
5608
|
-
# : `VCPU` = 1, 2,
|
5704
|
+
# : `VCPU` = 1, 2, or 4
|
5609
5705
|
#
|
5610
5706
|
# value = 9216, 10240, 11264, 12288, 13312, 14336, or 15360
|
5611
5707
|
#
|
@@ -5944,9 +6040,15 @@ module Aws::Batch
|
|
5944
6040
|
#
|
5945
6041
|
# @!attribute [rw] job_definition
|
5946
6042
|
# The job definition used by this job. This value can be one of
|
5947
|
-
# `name`, `name:revision`, or the Amazon
|
5948
|
-
#
|
5949
|
-
#
|
6043
|
+
# `definition-name`, `definition-name:revision`, or the Amazon
|
6044
|
+
# Resource Name (ARN) for the job definition, with or without the
|
6045
|
+
# revision
|
6046
|
+
# (`arn:aws:batch:region:account:job-definition/definition-name:revision
|
6047
|
+
# `, or `arn:aws:batch:region:account:job-definition/definition-name
|
6048
|
+
# `).
|
6049
|
+
#
|
6050
|
+
# If the revision is not specified, then the latest active revision is
|
6051
|
+
# used.
|
5950
6052
|
# @return [String]
|
5951
6053
|
#
|
5952
6054
|
# @!attribute [rw] parameters
|
@@ -6249,8 +6351,24 @@ module Aws::Batch
|
|
6249
6351
|
# If the state is `DISABLED`, then the Batch scheduler doesn't
|
6250
6352
|
# attempt to place jobs within the environment. Jobs in a `STARTING`
|
6251
6353
|
# or `RUNNING` state continue to progress normally. Managed compute
|
6252
|
-
# environments in the `DISABLED` state don't scale out.
|
6253
|
-
#
|
6354
|
+
# environments in the `DISABLED` state don't scale out.
|
6355
|
+
#
|
6356
|
+
# <note markdown="1"> Compute environments in a `DISABLED` state may continue to incur
|
6357
|
+
# billing charges. To prevent additional charges, turn off and then
|
6358
|
+
# delete the compute environment. For more information, see [State][1]
|
6359
|
+
# in the *Batch User Guide*.
|
6360
|
+
#
|
6361
|
+
# </note>
|
6362
|
+
#
|
6363
|
+
# When an instance is idle, the instance scales down to the `minvCpus`
|
6364
|
+
# value. However, the instance size doesn't change. For example,
|
6365
|
+
# consider a `c5.8xlarge` instance with a `minvCpus` value of `4` and
|
6366
|
+
# a `desiredvCpus` value of `36`. This instance doesn't scale down to
|
6367
|
+
# a `c5.large` instance.
|
6368
|
+
#
|
6369
|
+
#
|
6370
|
+
#
|
6371
|
+
# [1]: https://docs.aws.amazon.com/batch/latest/userguide/compute_environment_parameters.html#compute_environment_state
|
6254
6372
|
# @return [String]
|
6255
6373
|
#
|
6256
6374
|
# @!attribute [rw] unmanagedv_cpus
|
data/lib/aws-sdk-batch.rb
CHANGED
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.68.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:
|
11
|
+
date: 2023-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|