aws-sdk-batch 1.67.0 → 1.68.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: dac54b0ce62d71706672bf25cb0ccb51b1df8b336f0f828fedbb41bc40c9faa3
4
- data.tar.gz: 692b918f87f8aeb5b99947a9fd9d0597b844459504054f1ffb0908957c72963b
3
+ metadata.gz: 8c346d8e5823142438ef0d4a9214fcaea8cd6a106c073590f5f698f4ed1f36b6
4
+ data.tar.gz: 1991abc736fa5611bdf676a5a4194da6ed80ed8ec5132fdb2130bdf8b8f17f33
5
5
  SHA512:
6
- metadata.gz: da67951a08f34044c8383cdd9450d12875c05f34cc07175c18a597622ae8496d40b5e13fcfbbf1ab1781b053384f5d6cc3dff56345a64cbb4d0c4232fa3d6f71
7
- data.tar.gz: 14b4abd37a67fe80041b4568575aeda1154019633f7d958fd1996f2c686433ef5221fee010f29882a7e5db103292286e04d8f1b6a0b4570193287e4228b0951f
6
+ metadata.gz: 14f9fc1bf9bfdd50207613a3b049caf537cd92bf5470ad4e6b9cd9b72baf863d1e31e30f34f0c0d6c7be7fc915209ed092f0d61d5e4bfe15fa654c439f0f8b2d
7
+ data.tar.gz: a3ee30dac6555e6b3a2ea3a32f34a3bb82145f46460aa2f413026af44e65ba3a8c3575b5a4ee7634f05566972147c43e6f8a9a2538ceb131d147fe0007d29224
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.67.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.67.0
1
+ 1.68.0
@@ -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
- # `PENDING`, or `RUNNABLE` state are canceled. Jobs that progressed to
373
- # the `STARTING` or `RUNNING` state aren't canceled. However, the API
374
- # operation still succeeds, even if no job is canceled. These jobs must
375
- # be terminated with the TerminateJob operation.
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. However, they
548
- # scale in to `minvCpus` value after instances become idle.
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 `name`,
2921
- # `name:revision`, or the Amazon Resource Name (ARN) for the job
2922
- # definition. If `name` is specified without a revision then the latest
2923
- # active revision is used.
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. However, they
3314
- # scale in to `minvCpus` value after instances become idle.
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.67.0'
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?
@@ -14,42 +14,45 @@ module Aws::Batch
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint)
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
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"
26
20
  end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- 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"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://batch-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
32
23
  end
33
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- if Aws::Endpoints::Matchers.string_equals?("aws", Aws::Endpoints::Matchers.attr(partition_result, "name"))
36
- return Aws::Endpoints::Endpoint.new(url: "https://fips.batch.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
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: {})
37
31
  end
38
- if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
39
- return Aws::Endpoints::Endpoint.new(url: "https://batch.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
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: {})
40
43
  end
41
- return Aws::Endpoints::Endpoint.new(url: "https://batch-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
42
45
  end
43
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
44
- end
45
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
46
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
47
- return Aws::Endpoints::Endpoint.new(url: "https://batch.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
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"
48
51
  end
49
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
52
+ return Aws::Endpoints::Endpoint.new(url: "https://batch.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
50
53
  end
51
- return Aws::Endpoints::Endpoint.new(url: "https://batch.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
52
54
  end
55
+ raise ArgumentError, "Invalid Configuration: Missing Region"
53
56
  raise ArgumentError, 'No endpoint could be resolved'
54
57
 
55
58
  end
@@ -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. However, they
249
- # scale in to `minvCpus` value after instances become idle.
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. However, they
1948
- # scale in to `minvCpus` value after instances become idle.
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]\: Default for all non-GPU instance families.
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]\: Default for all GPU instance
2729
- # families (for example `P4` and `G4`) and can be used for all non
2730
- # Amazon Web Services Graviton-based instance types.
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]\: Default for all non-GPU instance families.
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]\: Default for all GPU instance
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, 4, or 8
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 Resource Name (ARN) for the
5948
- # job definition. If `name` is specified without a revision then the
5949
- # latest active revision is used.
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. However, they
6253
- # scale in to `minvCpus` value after instances become idle.
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
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-batch/customizations'
52
52
  # @!group service
53
53
  module Aws::Batch
54
54
 
55
- GEM_VERSION = '1.67.0'
55
+ GEM_VERSION = '1.68.0'
56
56
 
57
57
  end
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.67.0
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: 2023-01-18 00:00:00.000000000 Z
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