aws-sdk-batch 1.67.0 → 1.69.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: e99ba0443af5c6117d862fab503c1190c9d4ec5031e812571837ab4c2cfda2c7
4
+ data.tar.gz: b060571a6d2c87e8f66b25bc54b02d4b7b297963059011f5ddf607b55cd5b369
5
5
  SHA512:
6
- metadata.gz: da67951a08f34044c8383cdd9450d12875c05f34cc07175c18a597622ae8496d40b5e13fcfbbf1ab1781b053384f5d6cc3dff56345a64cbb4d0c4232fa3d6f71
7
- data.tar.gz: 14b4abd37a67fe80041b4568575aeda1154019633f7d958fd1996f2c686433ef5221fee010f29882a7e5db103292286e04d8f1b6a0b4570193287e4228b0951f
6
+ metadata.gz: 871f4c9d3e0abd334978f341409d3fbdd608edd2072206c867e4a70db7831fce54c2886a6ea7ea1de15edbad18b2f6142fa960ef382495b6f4e94841a05eb1b5
7
+ data.tar.gz: 28987410dd745e2de8604f15cc9641a72426062f8d01edc8412a9f9398bcdd73ec26f67fd9f45a88e9da204242bcfc20025e23a74e0f542b42202d96399f34a5
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.69.0 (2023-03-30)
5
+ ------------------
6
+
7
+ * Feature - This feature allows Batch on EKS to support configuration of Pod Labels through Metadata for Batch on EKS Jobs.
8
+
9
+ 1.68.0 (2023-03-23)
10
+ ------------------
11
+
12
+ * Feature - This feature allows Batch to support configuration of ephemeral storage size for jobs running on FARGATE
13
+
4
14
  1.67.0 (2023-01-18)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.67.0
1
+ 1.69.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
@@ -1974,6 +2000,8 @@ module Aws::Batch
1974
2000
  # resp.jobs[0].eks_properties.pod_properties.volumes[0].secret.optional #=> Boolean
1975
2001
  # resp.jobs[0].eks_properties.pod_properties.pod_name #=> String
1976
2002
  # resp.jobs[0].eks_properties.pod_properties.node_name #=> String
2003
+ # resp.jobs[0].eks_properties.pod_properties.metadata.labels #=> Hash
2004
+ # resp.jobs[0].eks_properties.pod_properties.metadata.labels["String"] #=> String
1977
2005
  # resp.jobs[0].eks_attempts #=> Array
1978
2006
  # resp.jobs[0].eks_attempts[0].containers #=> Array
1979
2007
  # resp.jobs[0].eks_attempts[0].containers[0].exit_code #=> Integer
@@ -2649,6 +2677,9 @@ module Aws::Batch
2649
2677
  # fargate_platform_configuration: {
2650
2678
  # platform_version: "String",
2651
2679
  # },
2680
+ # ephemeral_storage: {
2681
+ # size_in_gi_b: 1, # required
2682
+ # },
2652
2683
  # },
2653
2684
  # node_properties: {
2654
2685
  # num_nodes: 1, # required
@@ -2755,6 +2786,9 @@ module Aws::Batch
2755
2786
  # fargate_platform_configuration: {
2756
2787
  # platform_version: "String",
2757
2788
  # },
2789
+ # ephemeral_storage: {
2790
+ # size_in_gi_b: 1, # required
2791
+ # },
2758
2792
  # },
2759
2793
  # },
2760
2794
  # ],
@@ -2836,6 +2870,11 @@ module Aws::Batch
2836
2870
  # },
2837
2871
  # },
2838
2872
  # ],
2873
+ # metadata: {
2874
+ # labels: {
2875
+ # "String" => "String",
2876
+ # },
2877
+ # },
2839
2878
  # },
2840
2879
  # },
2841
2880
  # })
@@ -2917,10 +2956,14 @@ module Aws::Batch
2917
2956
  # child of each dependency to complete before it can begin.
2918
2957
  #
2919
2958
  # @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.
2959
+ # The job definition used by this job. This value can be one of
2960
+ # `definition-name`, `definition-name:revision`, or the Amazon Resource
2961
+ # Name (ARN) for the job definition, with or without the revision
2962
+ # (`arn:aws:batch:region:account:job-definition/definition-name:revision
2963
+ # `, or `arn:aws:batch:region:account:job-definition/definition-name `).
2964
+ #
2965
+ # If the revision is not specified, then the latest active revision is
2966
+ # used.
2924
2967
  #
2925
2968
  # @option params [Hash<String,String>] :parameters
2926
2969
  # Additional parameters passed to the job that replace parameter
@@ -3120,6 +3163,11 @@ module Aws::Batch
3120
3163
  # },
3121
3164
  # },
3122
3165
  # ],
3166
+ # metadata: {
3167
+ # labels: {
3168
+ # "String" => "String",
3169
+ # },
3170
+ # },
3123
3171
  # },
3124
3172
  # },
3125
3173
  # })
@@ -3310,8 +3358,24 @@ module Aws::Batch
3310
3358
  # If the state is `DISABLED`, then the Batch scheduler doesn't attempt
3311
3359
  # to place jobs within the environment. Jobs in a `STARTING` or
3312
3360
  # `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.
3361
+ # environments in the `DISABLED` state don't scale out.
3362
+ #
3363
+ # <note markdown="1"> Compute environments in a `DISABLED` state may continue to incur
3364
+ # billing charges. To prevent additional charges, turn off and then
3365
+ # delete the compute environment. For more information, see [State][1]
3366
+ # in the *Batch User Guide*.
3367
+ #
3368
+ # </note>
3369
+ #
3370
+ # When an instance is idle, the instance scales down to the `minvCpus`
3371
+ # value. However, the instance size doesn't change. For example,
3372
+ # consider a `c5.8xlarge` instance with a `minvCpus` value of `4` and a
3373
+ # `desiredvCpus` value of `36`. This instance doesn't scale down to a
3374
+ # `c5.large` instance.
3375
+ #
3376
+ #
3377
+ #
3378
+ # [1]: https://docs.aws.amazon.com/batch/latest/userguide/compute_environment_parameters.html#compute_environment_state
3315
3379
  #
3316
3380
  # @option params [Integer] :unmanagedv_cpus
3317
3381
  # The maximum number of vCPUs expected to be used for an unmanaged
@@ -3594,7 +3658,7 @@ module Aws::Batch
3594
3658
  params: params,
3595
3659
  config: config)
3596
3660
  context[:gem_name] = 'aws-sdk-batch'
3597
- context[:gem_version] = '1.67.0'
3661
+ context[:gem_version] = '1.69.0'
3598
3662
  Seahorse::Client::Request.new(handlers, context)
3599
3663
  end
3600
3664
 
@@ -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"))
@@ -604,9 +616,11 @@ module Aws::Batch
604
616
  EksPodPropertiesDetail.add_member(:volumes, Shapes::ShapeRef.new(shape: EksVolumes, location_name: "volumes"))
605
617
  EksPodPropertiesDetail.add_member(:pod_name, Shapes::ShapeRef.new(shape: String, location_name: "podName"))
606
618
  EksPodPropertiesDetail.add_member(:node_name, Shapes::ShapeRef.new(shape: String, location_name: "nodeName"))
619
+ EksPodPropertiesDetail.add_member(:metadata, Shapes::ShapeRef.new(shape: EksMetadata, location_name: "metadata"))
607
620
  EksPodPropertiesDetail.struct_class = Types::EksPodPropertiesDetail
608
621
 
609
622
  EksPodPropertiesOverride.add_member(:containers, Shapes::ShapeRef.new(shape: EksContainerOverrideList, location_name: "containers"))
623
+ EksPodPropertiesOverride.add_member(:metadata, Shapes::ShapeRef.new(shape: EksMetadata, location_name: "metadata"))
610
624
  EksPodPropertiesOverride.struct_class = Types::EksPodPropertiesOverride
611
625
 
612
626
  EksProperties.add_member(:pod_properties, Shapes::ShapeRef.new(shape: EksPodProperties, location_name: "podProperties"))
@@ -635,6 +649,9 @@ module Aws::Batch
635
649
 
636
650
  EnvironmentVariables.member = Shapes::ShapeRef.new(shape: KeyValuePair)
637
651
 
652
+ EphemeralStorage.add_member(:size_in_gi_b, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "sizeInGiB"))
653
+ EphemeralStorage.struct_class = Types::EphemeralStorage
654
+
638
655
  EvaluateOnExit.add_member(:on_status_reason, Shapes::ShapeRef.new(shape: String, location_name: "onStatusReason"))
639
656
  EvaluateOnExit.add_member(:on_reason, Shapes::ShapeRef.new(shape: String, location_name: "onReason"))
640
657
  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 allocated 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,31 @@ module Aws::Batch
3528
3587
  include Aws::Structure
3529
3588
  end
3530
3589
 
3590
+ # Describes and uniquely identifies Kubernetes resources. For example,
3591
+ # the compute environment that a pod runs in or the `jobID` for a job
3592
+ # running in the pod. For more information, see [Understanding
3593
+ # Kubernetes Objects][1] in the *Kubernetes documentation*.
3594
+ #
3595
+ #
3596
+ #
3597
+ # [1]: https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/
3598
+ #
3599
+ # @!attribute [rw] labels
3600
+ # Key-value pairs used to identify, sort, and organize cube resources.
3601
+ # Can contain up to 63 uppercase letters, lowercase letters, numbers,
3602
+ # hyphens (-), and underscores (\_). Labels can be added or modified
3603
+ # at any time. Each resource can have multiple labels, but each key
3604
+ # must be unique for a given object.
3605
+ # @return [Hash<String,String>]
3606
+ #
3607
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/EksMetadata AWS API Documentation
3608
+ #
3609
+ class EksMetadata < Struct.new(
3610
+ :labels)
3611
+ SENSITIVE = []
3612
+ include Aws::Structure
3613
+ end
3614
+
3531
3615
  # The properties for the pod.
3532
3616
  #
3533
3617
  # @!attribute [rw] service_account_name
@@ -3585,6 +3669,16 @@ module Aws::Batch
3585
3669
  # resources.
3586
3670
  # @return [Array<Types::EksVolume>]
3587
3671
  #
3672
+ # @!attribute [rw] metadata
3673
+ # Metadata about the Kubernetes pod. For more information, see
3674
+ # [Understanding Kubernetes Objects][1] in the *Kubernetes
3675
+ # documentation*.
3676
+ #
3677
+ #
3678
+ #
3679
+ # [1]: https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/
3680
+ # @return [Types::EksMetadata]
3681
+ #
3588
3682
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/EksPodProperties AWS API Documentation
3589
3683
  #
3590
3684
  class EksPodProperties < Struct.new(
@@ -3592,7 +3686,8 @@ module Aws::Batch
3592
3686
  :host_network,
3593
3687
  :dns_policy,
3594
3688
  :containers,
3595
- :volumes)
3689
+ :volumes,
3690
+ :metadata)
3596
3691
  SENSITIVE = []
3597
3692
  include Aws::Structure
3598
3693
  end
@@ -3670,6 +3765,17 @@ module Aws::Batch
3670
3765
  # The name of the node for this job.
3671
3766
  # @return [String]
3672
3767
  #
3768
+ # @!attribute [rw] metadata
3769
+ # Describes and uniquely identifies Kubernetes resources. For example,
3770
+ # the compute environment that a pod runs in or the `jobID` for a job
3771
+ # running in the pod. For more information, see [Understanding
3772
+ # Kubernetes Objects][1] in the *Kubernetes documentation*.
3773
+ #
3774
+ #
3775
+ #
3776
+ # [1]: https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/
3777
+ # @return [Types::EksMetadata]
3778
+ #
3673
3779
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/EksPodPropertiesDetail AWS API Documentation
3674
3780
  #
3675
3781
  class EksPodPropertiesDetail < Struct.new(
@@ -3679,7 +3785,8 @@ module Aws::Batch
3679
3785
  :containers,
3680
3786
  :volumes,
3681
3787
  :pod_name,
3682
- :node_name)
3788
+ :node_name,
3789
+ :metadata)
3683
3790
  SENSITIVE = []
3684
3791
  include Aws::Structure
3685
3792
  end
@@ -3691,10 +3798,16 @@ module Aws::Batch
3691
3798
  # The overrides for the container that's used on the Amazon EKS pod.
3692
3799
  # @return [Array<Types::EksContainerOverride>]
3693
3800
  #
3801
+ # @!attribute [rw] metadata
3802
+ # Metadata about the overrides for the container that's used on the
3803
+ # Amazon EKS pod.
3804
+ # @return [Types::EksMetadata]
3805
+ #
3694
3806
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/EksPodPropertiesOverride AWS API Documentation
3695
3807
  #
3696
3808
  class EksPodPropertiesOverride < Struct.new(
3697
- :containers)
3809
+ :containers,
3810
+ :metadata)
3698
3811
  SENSITIVE = []
3699
3812
  include Aws::Structure
3700
3813
  end
@@ -3826,6 +3939,24 @@ module Aws::Batch
3826
3939
  include Aws::Structure
3827
3940
  end
3828
3941
 
3942
+ # The amount of ephemeral storage to allocate for the task. This
3943
+ # parameter is used to expand the total amount of ephemeral storage
3944
+ # available, beyond the default amount, for tasks hosted on Fargate.
3945
+ #
3946
+ # @!attribute [rw] size_in_gi_b
3947
+ # The total amount, in GiB, of ephemeral storage to set for the task.
3948
+ # The minimum supported value is `21` GiB and the maximum supported
3949
+ # value is `200` GiB.
3950
+ # @return [Integer]
3951
+ #
3952
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/EphemeralStorage AWS API Documentation
3953
+ #
3954
+ class EphemeralStorage < Struct.new(
3955
+ :size_in_gi_b)
3956
+ SENSITIVE = []
3957
+ include Aws::Structure
3958
+ end
3959
+
3829
3960
  # Specifies an array of up to 5 conditions to be met, and an action to
3830
3961
  # take (`RETRY` or `EXIT`) if all conditions are met. If none of the
3831
3962
  # `EvaluateOnExit` conditions in a `RetryStrategy` match, then the job
@@ -5605,7 +5736,7 @@ module Aws::Batch
5605
5736
  #
5606
5737
  # value = 8192
5607
5738
  #
5608
- # : `VCPU` = 1, 2, 4, or 8
5739
+ # : `VCPU` = 1, 2, or 4
5609
5740
  #
5610
5741
  # value = 9216, 10240, 11264, 12288, 13312, 14336, or 15360
5611
5742
  #
@@ -5944,9 +6075,15 @@ module Aws::Batch
5944
6075
  #
5945
6076
  # @!attribute [rw] job_definition
5946
6077
  # 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.
6078
+ # `definition-name`, `definition-name:revision`, or the Amazon
6079
+ # Resource Name (ARN) for the job definition, with or without the
6080
+ # revision
6081
+ # (`arn:aws:batch:region:account:job-definition/definition-name:revision
6082
+ # `, or `arn:aws:batch:region:account:job-definition/definition-name
6083
+ # `).
6084
+ #
6085
+ # If the revision is not specified, then the latest active revision is
6086
+ # used.
5950
6087
  # @return [String]
5951
6088
  #
5952
6089
  # @!attribute [rw] parameters
@@ -6249,8 +6386,24 @@ module Aws::Batch
6249
6386
  # If the state is `DISABLED`, then the Batch scheduler doesn't
6250
6387
  # attempt to place jobs within the environment. Jobs in a `STARTING`
6251
6388
  # 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.
6389
+ # environments in the `DISABLED` state don't scale out.
6390
+ #
6391
+ # <note markdown="1"> Compute environments in a `DISABLED` state may continue to incur
6392
+ # billing charges. To prevent additional charges, turn off and then
6393
+ # delete the compute environment. For more information, see [State][1]
6394
+ # in the *Batch User Guide*.
6395
+ #
6396
+ # </note>
6397
+ #
6398
+ # When an instance is idle, the instance scales down to the `minvCpus`
6399
+ # value. However, the instance size doesn't change. For example,
6400
+ # consider a `c5.8xlarge` instance with a `minvCpus` value of `4` and
6401
+ # a `desiredvCpus` value of `36`. This instance doesn't scale down to
6402
+ # a `c5.large` instance.
6403
+ #
6404
+ #
6405
+ #
6406
+ # [1]: https://docs.aws.amazon.com/batch/latest/userguide/compute_environment_parameters.html#compute_environment_state
6254
6407
  # @return [String]
6255
6408
  #
6256
6409
  # @!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.69.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.69.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-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core