aws-sdk-batch 1.86.0 → 1.88.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2b6057784d7b574f4b7f7c98087ba7633aad9a2ba1cd595999c90d11af465fc
4
- data.tar.gz: fee7336408b31dea7331fc00f19c05e94f9918439ce0dcd3451b3bd9d651d5c2
3
+ metadata.gz: 38b5257ca4fdc54345c4d2fd65ce8ece2f11a777a5374f44dcb0f2c03fdd334a
4
+ data.tar.gz: 6f0b3a1d89cfd41cb077488a62bce20db5ab6eb506ae00f7ed414a2213288c31
5
5
  SHA512:
6
- metadata.gz: 775c0a4ab7512d74355f28a86aa4b14b1379112b58ff0f01a2352ea13f32d9b9767d988022831c4aa594da2b95715c22f1b5b4b9cc2effb5cd844be758ec7430
7
- data.tar.gz: 1ddfc05c13b6db5f05487ae8c89395b9ba4688819b9460b04d7de258ccc1ed7550b4ac318cfb14f4b922dfc53b520376c9ddedabd8c2270639ba15ca06cbc1ec
6
+ metadata.gz: 46f7e2cd285f19cbd8add1705c57027a0b926b3aeac0d95813e9a2bec0b4f5cbe0ec8f67973ec829bb1cd4f57416a980201c5d048b48f23aea24216b0369b38a
7
+ data.tar.gz: 0f1ea81a5b72d8cf8bcc5a853637ef13dbb1b14aebab85b20265d42ea2f500900535f9acfb119e645a79fdb0d583e07e15118a27cfbf79c661ec1e603241094b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.88.0 (2024-06-03)
5
+ ------------------
6
+
7
+ * Feature - This release adds support for the AWS Batch GetJobQueueSnapshot API operation.
8
+
9
+ 1.87.0 (2024-05-13)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.86.0 (2024-04-25)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.86.0
1
+ 1.88.0
@@ -301,8 +301,9 @@ module Aws::Batch
301
301
  #
302
302
  # @option options [String] :sdk_ua_app_id
303
303
  # A unique and opaque application ID that is appended to the
304
- # User-Agent header as app/<sdk_ua_app_id>. It should have a
305
- # maximum length of 50.
304
+ # User-Agent header as app/sdk_ua_app_id. It should have a
305
+ # maximum length of 50. This variable is sourced from environment
306
+ # variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.
306
307
  #
307
308
  # @option options [String] :secret_access_key
308
309
  #
@@ -2516,6 +2517,38 @@ module Aws::Batch
2516
2517
  req.send_request(options)
2517
2518
  end
2518
2519
 
2520
+ # Provides a list of the first 100 `RUNNABLE` jobs associated to a
2521
+ # single job queue.
2522
+ #
2523
+ # @option params [required, String] :job_queue
2524
+ # The job queue’s name or full queue Amazon Resource Name (ARN).
2525
+ #
2526
+ # @return [Types::GetJobQueueSnapshotResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2527
+ #
2528
+ # * {Types::GetJobQueueSnapshotResponse#front_of_queue #front_of_queue} => Types::FrontOfQueueDetail
2529
+ #
2530
+ # @example Request syntax with placeholder values
2531
+ #
2532
+ # resp = client.get_job_queue_snapshot({
2533
+ # job_queue: "String", # required
2534
+ # })
2535
+ #
2536
+ # @example Response structure
2537
+ #
2538
+ # resp.front_of_queue.jobs #=> Array
2539
+ # resp.front_of_queue.jobs[0].job_arn #=> String
2540
+ # resp.front_of_queue.jobs[0].earliest_time_at_position #=> Integer
2541
+ # resp.front_of_queue.last_updated_at #=> Integer
2542
+ #
2543
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/GetJobQueueSnapshot AWS API Documentation
2544
+ #
2545
+ # @overload get_job_queue_snapshot(params = {})
2546
+ # @param [Hash] params ({})
2547
+ def get_job_queue_snapshot(params = {}, options = {})
2548
+ req = build_request(:get_job_queue_snapshot, params)
2549
+ req.send_request(options)
2550
+ end
2551
+
2519
2552
  # Returns a list of Batch jobs.
2520
2553
  #
2521
2554
  # You must specify only one of the following items:
@@ -2550,14 +2583,24 @@ module Aws::Batch
2550
2583
  # only `RUNNING` jobs are returned.
2551
2584
  #
2552
2585
  # @option params [Integer] :max_results
2553
- # The maximum number of results returned by `ListJobs` in paginated
2554
- # output. When this parameter is used, `ListJobs` only returns
2586
+ # The maximum number of results returned by `ListJobs` in a paginated
2587
+ # output. When this parameter is used, `ListJobs` returns up to
2555
2588
  # `maxResults` results in a single page and a `nextToken` response
2556
- # element. The remaining results of the initial request can be seen by
2557
- # sending another `ListJobs` request with the returned `nextToken`
2558
- # value. This value can be between 1 and 100. If this parameter isn't
2559
- # used, then `ListJobs` returns up to 100 results and a `nextToken`
2560
- # value if applicable.
2589
+ # element, if applicable. The remaining results of the initial request
2590
+ # can be seen by sending another `ListJobs` request with the returned
2591
+ # `nextToken` value.
2592
+ #
2593
+ # The following outlines key parameters and limitations:
2594
+ #
2595
+ # * The minimum value is 1.
2596
+ #
2597
+ # * When `--job-status` is used, Batch returns up to 1000 values.
2598
+ #
2599
+ # * When `--filters` is used, Batch returns up to 100 values.
2600
+ #
2601
+ # * If neither parameter is used, then `ListJobs` returns up to 1000
2602
+ # results (jobs that are in the `RUNNING` status) and a `nextToken`
2603
+ # value, if applicable.
2561
2604
  #
2562
2605
  # @option params [String] :next_token
2563
2606
  # The `nextToken` value returned from a previous paginated `ListJobs`
@@ -4518,7 +4561,7 @@ module Aws::Batch
4518
4561
  params: params,
4519
4562
  config: config)
4520
4563
  context[:gem_name] = 'aws-sdk-batch'
4521
- context[:gem_version] = '1.86.0'
4564
+ context[:gem_version] = '1.88.0'
4522
4565
  Seahorse::Client::Request.new(handlers, context)
4523
4566
  end
4524
4567
 
@@ -122,6 +122,11 @@ module Aws::Batch
122
122
  FairsharePolicy = Shapes::StructureShape.new(name: 'FairsharePolicy')
123
123
  FargatePlatformConfiguration = Shapes::StructureShape.new(name: 'FargatePlatformConfiguration')
124
124
  Float = Shapes::FloatShape.new(name: 'Float')
125
+ FrontOfQueueDetail = Shapes::StructureShape.new(name: 'FrontOfQueueDetail')
126
+ FrontOfQueueJobSummary = Shapes::StructureShape.new(name: 'FrontOfQueueJobSummary')
127
+ FrontOfQueueJobSummaryList = Shapes::ListShape.new(name: 'FrontOfQueueJobSummaryList')
128
+ GetJobQueueSnapshotRequest = Shapes::StructureShape.new(name: 'GetJobQueueSnapshotRequest')
129
+ GetJobQueueSnapshotResponse = Shapes::StructureShape.new(name: 'GetJobQueueSnapshotResponse')
125
130
  Host = Shapes::StructureShape.new(name: 'Host')
126
131
  ImageIdOverride = Shapes::StringShape.new(name: 'ImageIdOverride')
127
132
  ImagePullSecret = Shapes::StructureShape.new(name: 'ImagePullSecret')
@@ -761,6 +766,22 @@ module Aws::Batch
761
766
  FargatePlatformConfiguration.add_member(:platform_version, Shapes::ShapeRef.new(shape: String, location_name: "platformVersion"))
762
767
  FargatePlatformConfiguration.struct_class = Types::FargatePlatformConfiguration
763
768
 
769
+ FrontOfQueueDetail.add_member(:jobs, Shapes::ShapeRef.new(shape: FrontOfQueueJobSummaryList, location_name: "jobs"))
770
+ FrontOfQueueDetail.add_member(:last_updated_at, Shapes::ShapeRef.new(shape: Long, location_name: "lastUpdatedAt"))
771
+ FrontOfQueueDetail.struct_class = Types::FrontOfQueueDetail
772
+
773
+ FrontOfQueueJobSummary.add_member(:job_arn, Shapes::ShapeRef.new(shape: String, location_name: "jobArn"))
774
+ FrontOfQueueJobSummary.add_member(:earliest_time_at_position, Shapes::ShapeRef.new(shape: Long, location_name: "earliestTimeAtPosition"))
775
+ FrontOfQueueJobSummary.struct_class = Types::FrontOfQueueJobSummary
776
+
777
+ FrontOfQueueJobSummaryList.member = Shapes::ShapeRef.new(shape: FrontOfQueueJobSummary)
778
+
779
+ GetJobQueueSnapshotRequest.add_member(:job_queue, Shapes::ShapeRef.new(shape: String, required: true, location_name: "jobQueue"))
780
+ GetJobQueueSnapshotRequest.struct_class = Types::GetJobQueueSnapshotRequest
781
+
782
+ GetJobQueueSnapshotResponse.add_member(:front_of_queue, Shapes::ShapeRef.new(shape: FrontOfQueueDetail, location_name: "frontOfQueue"))
783
+ GetJobQueueSnapshotResponse.struct_class = Types::GetJobQueueSnapshotResponse
784
+
764
785
  Host.add_member(:source_path, Shapes::ShapeRef.new(shape: String, location_name: "sourcePath"))
765
786
  Host.struct_class = Types::Host
766
787
 
@@ -1237,6 +1258,7 @@ module Aws::Batch
1237
1258
  "endpointPrefix" => "batch",
1238
1259
  "jsonVersion" => "1.1",
1239
1260
  "protocol" => "rest-json",
1261
+ "protocols" => ["rest-json"],
1240
1262
  "serviceAbbreviation" => "AWS Batch",
1241
1263
  "serviceFullName" => "AWS Batch",
1242
1264
  "serviceId" => "Batch",
@@ -1392,6 +1414,16 @@ module Aws::Batch
1392
1414
  o.errors << Shapes::ShapeRef.new(shape: ServerException)
1393
1415
  end)
1394
1416
 
1417
+ api.add_operation(:get_job_queue_snapshot, Seahorse::Model::Operation.new.tap do |o|
1418
+ o.name = "GetJobQueueSnapshot"
1419
+ o.http_method = "POST"
1420
+ o.http_request_uri = "/v1/getjobqueuesnapshot"
1421
+ o.input = Shapes::ShapeRef.new(shape: GetJobQueueSnapshotRequest)
1422
+ o.output = Shapes::ShapeRef.new(shape: GetJobQueueSnapshotResponse)
1423
+ o.errors << Shapes::ShapeRef.new(shape: ClientException)
1424
+ o.errors << Shapes::ShapeRef.new(shape: ServerException)
1425
+ end)
1426
+
1395
1427
  api.add_operation(:list_jobs, Seahorse::Model::Operation.new.tap do |o|
1396
1428
  o.name = "ListJobs"
1397
1429
  o.http_method = "POST"
@@ -194,6 +194,20 @@ module Aws::Batch
194
194
  end
195
195
  end
196
196
 
197
+ class GetJobQueueSnapshot
198
+ def self.build(context)
199
+ unless context.config.regional_endpoint
200
+ endpoint = context.config.endpoint.to_s
201
+ end
202
+ Aws::Batch::EndpointParameters.new(
203
+ region: context.config.region,
204
+ use_dual_stack: context.config.use_dualstack_endpoint,
205
+ use_fips: context.config.use_fips_endpoint,
206
+ endpoint: endpoint,
207
+ )
208
+ end
209
+ end
210
+
197
211
  class ListJobs
198
212
  def self.build(context)
199
213
  unless context.config.regional_endpoint
@@ -84,6 +84,8 @@ module Aws::Batch
84
84
  Aws::Batch::Endpoints::DescribeJobs.build(context)
85
85
  when :describe_scheduling_policies
86
86
  Aws::Batch::Endpoints::DescribeSchedulingPolicies.build(context)
87
+ when :get_job_queue_snapshot
88
+ Aws::Batch::Endpoints::GetJobQueueSnapshot.build(context)
87
89
  when :list_jobs
88
90
  Aws::Batch::Endpoints::ListJobs.build(context)
89
91
  when :list_scheduling_policies
@@ -4609,6 +4609,79 @@ module Aws::Batch
4609
4609
  include Aws::Structure
4610
4610
  end
4611
4611
 
4612
+ # Contains a list of the first 100 `RUNNABLE` jobs associated to a
4613
+ # single job queue.
4614
+ #
4615
+ # @!attribute [rw] jobs
4616
+ # The Amazon Resource Names (ARNs) of the first 100 `RUNNABLE` jobs in
4617
+ # a named job queue. For first-in-first-out (FIFO) job queues, jobs
4618
+ # are ordered based on their submission time. For fair share
4619
+ # scheduling (FSS) job queues, jobs are ordered based on their job
4620
+ # priority and share usage.
4621
+ # @return [Array<Types::FrontOfQueueJobSummary>]
4622
+ #
4623
+ # @!attribute [rw] last_updated_at
4624
+ # The Unix timestamp (in milliseconds) for when each of the first 100
4625
+ # `RUNNABLE` jobs were last updated.
4626
+ # @return [Integer]
4627
+ #
4628
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/FrontOfQueueDetail AWS API Documentation
4629
+ #
4630
+ class FrontOfQueueDetail < Struct.new(
4631
+ :jobs,
4632
+ :last_updated_at)
4633
+ SENSITIVE = []
4634
+ include Aws::Structure
4635
+ end
4636
+
4637
+ # An object that represents summary details for the first 100 `RUNNABLE`
4638
+ # jobs in a job queue.
4639
+ #
4640
+ # @!attribute [rw] job_arn
4641
+ # The ARN for a job in a named job queue.
4642
+ # @return [String]
4643
+ #
4644
+ # @!attribute [rw] earliest_time_at_position
4645
+ # The Unix timestamp (in milliseconds) for when the job transitioned
4646
+ # to its current position in the job queue.
4647
+ # @return [Integer]
4648
+ #
4649
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/FrontOfQueueJobSummary AWS API Documentation
4650
+ #
4651
+ class FrontOfQueueJobSummary < Struct.new(
4652
+ :job_arn,
4653
+ :earliest_time_at_position)
4654
+ SENSITIVE = []
4655
+ include Aws::Structure
4656
+ end
4657
+
4658
+ # @!attribute [rw] job_queue
4659
+ # The job queue’s name or full queue Amazon Resource Name (ARN).
4660
+ # @return [String]
4661
+ #
4662
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/GetJobQueueSnapshotRequest AWS API Documentation
4663
+ #
4664
+ class GetJobQueueSnapshotRequest < Struct.new(
4665
+ :job_queue)
4666
+ SENSITIVE = []
4667
+ include Aws::Structure
4668
+ end
4669
+
4670
+ # @!attribute [rw] front_of_queue
4671
+ # The list of the first 100 `RUNNABLE` jobs in each job queue. For
4672
+ # first-in-first-out (FIFO) job queues, jobs are ordered based on
4673
+ # their submission time. For fair share scheduling (FSS) job queues,
4674
+ # jobs are ordered based on their job priority and share usage.
4675
+ # @return [Types::FrontOfQueueDetail]
4676
+ #
4677
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/GetJobQueueSnapshotResponse AWS API Documentation
4678
+ #
4679
+ class GetJobQueueSnapshotResponse < Struct.new(
4680
+ :front_of_queue)
4681
+ SENSITIVE = []
4682
+ include Aws::Structure
4683
+ end
4684
+
4612
4685
  # Determine whether your data volume persists on the host container
4613
4686
  # instance and where it's stored. If this parameter is empty, then the
4614
4687
  # Docker daemon assigns a host path for your data volume. However, the
@@ -5543,14 +5616,24 @@ module Aws::Batch
5543
5616
  # @return [String]
5544
5617
  #
5545
5618
  # @!attribute [rw] max_results
5546
- # The maximum number of results returned by `ListJobs` in paginated
5547
- # output. When this parameter is used, `ListJobs` only returns
5619
+ # The maximum number of results returned by `ListJobs` in a paginated
5620
+ # output. When this parameter is used, `ListJobs` returns up to
5548
5621
  # `maxResults` results in a single page and a `nextToken` response
5549
- # element. The remaining results of the initial request can be seen by
5550
- # sending another `ListJobs` request with the returned `nextToken`
5551
- # value. This value can be between 1 and 100. If this parameter isn't
5552
- # used, then `ListJobs` returns up to 100 results and a `nextToken`
5553
- # value if applicable.
5622
+ # element, if applicable. The remaining results of the initial request
5623
+ # can be seen by sending another `ListJobs` request with the returned
5624
+ # `nextToken` value.
5625
+ #
5626
+ # The following outlines key parameters and limitations:
5627
+ #
5628
+ # * The minimum value is 1.
5629
+ #
5630
+ # * When `--job-status` is used, Batch returns up to 1000 values.
5631
+ #
5632
+ # * When `--filters` is used, Batch returns up to 100 values.
5633
+ #
5634
+ # * If neither parameter is used, then `ListJobs` returns up to 1000
5635
+ # results (jobs that are in the `RUNNING` status) and a `nextToken`
5636
+ # value, if applicable.
5554
5637
  # @return [Integer]
5555
5638
  #
5556
5639
  # @!attribute [rw] next_token
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.86.0'
55
+ GEM_VERSION = '1.88.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -279,6 +279,16 @@ module Aws
279
279
  ) -> _DescribeSchedulingPoliciesResponseSuccess
280
280
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeSchedulingPoliciesResponseSuccess
281
281
 
282
+ interface _GetJobQueueSnapshotResponseSuccess
283
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetJobQueueSnapshotResponse]
284
+ def front_of_queue: () -> Types::FrontOfQueueDetail
285
+ end
286
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#get_job_queue_snapshot-instance_method
287
+ def get_job_queue_snapshot: (
288
+ job_queue: ::String
289
+ ) -> _GetJobQueueSnapshotResponseSuccess
290
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetJobQueueSnapshotResponseSuccess
291
+
282
292
  interface _ListJobsResponseSuccess
283
293
  include ::Seahorse::Client::_ResponseSuccess[Types::ListJobsResponse]
284
294
  def job_summary_list: () -> ::Array[Types::JobSummary]
data/sig/types.rbs CHANGED
@@ -629,6 +629,28 @@ module Aws::Batch
629
629
  SENSITIVE: []
630
630
  end
631
631
 
632
+ class FrontOfQueueDetail
633
+ attr_accessor jobs: ::Array[Types::FrontOfQueueJobSummary]
634
+ attr_accessor last_updated_at: ::Integer
635
+ SENSITIVE: []
636
+ end
637
+
638
+ class FrontOfQueueJobSummary
639
+ attr_accessor job_arn: ::String
640
+ attr_accessor earliest_time_at_position: ::Integer
641
+ SENSITIVE: []
642
+ end
643
+
644
+ class GetJobQueueSnapshotRequest
645
+ attr_accessor job_queue: ::String
646
+ SENSITIVE: []
647
+ end
648
+
649
+ class GetJobQueueSnapshotResponse
650
+ attr_accessor front_of_queue: Types::FrontOfQueueDetail
651
+ SENSITIVE: []
652
+ end
653
+
632
654
  class Host
633
655
  attr_accessor source_path: ::String
634
656
  SENSITIVE: []
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.86.0
4
+ version: 1.88.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-25 00:00:00.000000000 Z
11
+ date: 2024-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core