aws-sdk-batch 1.95.0 → 1.147.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.
data/sig/client.rbs CHANGED
@@ -15,8 +15,10 @@ module Aws
15
15
  ?credentials: untyped,
16
16
  ?region: String,
17
17
  ?access_key_id: String,
18
+ ?account_id: String,
18
19
  ?active_endpoint_cache: bool,
19
20
  ?adaptive_retry_wait_to_fill: bool,
21
+ ?auth_scheme_preference: Array[String],
20
22
  ?client_side_monitoring: bool,
21
23
  ?client_side_monitoring_client_id: String,
22
24
  ?client_side_monitoring_host: String,
@@ -38,7 +40,9 @@ module Aws
38
40
  ?logger: untyped,
39
41
  ?max_attempts: Integer,
40
42
  ?profile: String,
43
+ ?request_checksum_calculation: String,
41
44
  ?request_min_compression_size_bytes: Integer,
45
+ ?response_checksum_validation: String,
42
46
  ?retry_backoff: Proc,
43
47
  ?retry_base_delay: Float,
44
48
  ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
@@ -50,6 +54,7 @@ module Aws
50
54
  ?session_token: String,
51
55
  ?sigv4a_signing_region_set: Array[String],
52
56
  ?stub_responses: untyped,
57
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
53
58
  ?token_provider: untyped,
54
59
  ?use_dualstack_endpoint: bool,
55
60
  ?use_fips_endpoint: bool,
@@ -96,13 +101,13 @@ module Aws
96
101
  ?unmanagedv_cpus: ::Integer,
97
102
  ?compute_resources: {
98
103
  type: ("EC2" | "SPOT" | "FARGATE" | "FARGATE_SPOT"),
99
- allocation_strategy: ("BEST_FIT" | "BEST_FIT_PROGRESSIVE" | "SPOT_CAPACITY_OPTIMIZED" | "SPOT_PRICE_CAPACITY_OPTIMIZED")?,
104
+ allocation_strategy: ("BEST_FIT" | "BEST_FIT_PROGRESSIVE" | "BEST_FIT_PROGRESSIVE_ORDERED" | "SPOT_CAPACITY_OPTIMIZED" | "SPOT_PRICE_CAPACITY_OPTIMIZED" | "SPOT_CAPACITY_OPTIMIZED_PRIORITIZED")?,
100
105
  minv_cpus: ::Integer?,
101
106
  maxv_cpus: ::Integer,
102
107
  desiredv_cpus: ::Integer?,
103
108
  instance_types: Array[::String]?,
104
109
  image_id: ::String?,
105
- subnets: Array[::String],
110
+ subnets: Array[::String]?,
106
111
  security_group_ids: Array[::String]?,
107
112
  ec2_key_pair: ::String?,
108
113
  instance_role: ::String?,
@@ -110,18 +115,18 @@ module Aws
110
115
  placement_group: ::String?,
111
116
  bid_percentage: ::Integer?,
112
117
  spot_iam_fleet_role: ::String?,
113
- launch_template: {
114
- launch_template_id: ::String?,
115
- launch_template_name: ::String?,
116
- version: ::String?
117
- }?,
118
+ launch_template: Params::launch_template_specification?,
118
119
  ec2_configuration: Array[
119
120
  {
120
121
  image_type: ::String,
121
122
  image_id_override: ::String?,
123
+ batch_image_status: ::String?,
122
124
  image_kubernetes_version: ::String?
123
- },
124
- ]?
125
+ }
126
+ ]?,
127
+ scaling_policy: {
128
+ min_scale_down_delay_minutes: ::Integer?
129
+ }?
125
130
  },
126
131
  ?service_role: ::String,
127
132
  ?tags: Hash[::String, ::String],
@@ -133,6 +138,20 @@ module Aws
133
138
  ) -> _CreateComputeEnvironmentResponseSuccess
134
139
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateComputeEnvironmentResponseSuccess
135
140
 
141
+ interface _CreateConsumableResourceResponseSuccess
142
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateConsumableResourceResponse]
143
+ def consumable_resource_name: () -> ::String
144
+ def consumable_resource_arn: () -> ::String
145
+ end
146
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#create_consumable_resource-instance_method
147
+ def create_consumable_resource: (
148
+ consumable_resource_name: ::String,
149
+ ?total_quantity: ::Integer,
150
+ ?resource_type: ::String,
151
+ ?tags: Hash[::String, ::String]
152
+ ) -> _CreateConsumableResourceResponseSuccess
153
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateConsumableResourceResponseSuccess
154
+
136
155
  interface _CreateJobQueueResponseSuccess
137
156
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateJobQueueResponse]
138
157
  def job_queue_name: () -> ::String
@@ -144,24 +163,58 @@ module Aws
144
163
  ?state: ("ENABLED" | "DISABLED"),
145
164
  ?scheduling_policy_arn: ::String,
146
165
  priority: ::Integer,
147
- compute_environment_order: Array[
166
+ ?compute_environment_order: Array[
148
167
  {
149
168
  order: ::Integer,
150
169
  compute_environment: ::String
151
- },
170
+ }
152
171
  ],
172
+ ?service_environment_order: Array[
173
+ {
174
+ order: ::Integer,
175
+ service_environment: ::String
176
+ }
177
+ ],
178
+ ?job_queue_type: ("EKS" | "ECS" | "ECS_FARGATE" | "SAGEMAKER_TRAINING"),
153
179
  ?tags: Hash[::String, ::String],
154
180
  ?job_state_time_limit_actions: Array[
155
181
  {
156
182
  reason: ::String,
157
183
  state: ("RUNNABLE"),
158
184
  max_time_seconds: ::Integer,
159
- action: ("CANCEL")
160
- },
185
+ action: ("CANCEL" | "TERMINATE")
186
+ }
161
187
  ]
162
188
  ) -> _CreateJobQueueResponseSuccess
163
189
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateJobQueueResponseSuccess
164
190
 
191
+ interface _CreateQuotaShareResponseSuccess
192
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateQuotaShareResponse]
193
+ def quota_share_name: () -> ::String
194
+ def quota_share_arn: () -> ::String
195
+ end
196
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#create_quota_share-instance_method
197
+ def create_quota_share: (
198
+ quota_share_name: ::String,
199
+ job_queue: ::String,
200
+ capacity_limits: Array[
201
+ {
202
+ max_capacity: ::Integer,
203
+ capacity_unit: ::String
204
+ }
205
+ ],
206
+ resource_sharing_configuration: {
207
+ strategy: ("RESERVE" | "LEND" | "LEND_AND_BORROW"),
208
+ borrow_limit: ::Integer?
209
+ },
210
+ preemption_configuration: {
211
+ in_share_preemption: ("ENABLED" | "DISABLED")
212
+ },
213
+ ?state: ("ENABLED" | "DISABLED"),
214
+ ?tags: Hash[::String, ::String]
215
+ ) -> _CreateQuotaShareResponseSuccess
216
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateQuotaShareResponseSuccess
217
+
165
218
  interface _CreateSchedulingPolicyResponseSuccess
166
219
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateSchedulingPolicyResponse]
167
220
  def name: () -> ::String
@@ -170,20 +223,34 @@ module Aws
170
223
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#create_scheduling_policy-instance_method
171
224
  def create_scheduling_policy: (
172
225
  name: ::String,
173
- ?fairshare_policy: {
174
- share_decay_seconds: ::Integer?,
175
- compute_reservation: ::Integer?,
176
- share_distribution: Array[
177
- {
178
- share_identifier: ::String,
179
- weight_factor: ::Float?
180
- },
181
- ]?
226
+ ?quota_share_policy: {
227
+ idle_resource_assignment_strategy: ("FIFO")
182
228
  },
229
+ ?fairshare_policy: Params::fairshare_policy,
183
230
  ?tags: Hash[::String, ::String]
184
231
  ) -> _CreateSchedulingPolicyResponseSuccess
185
232
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateSchedulingPolicyResponseSuccess
186
233
 
234
+ interface _CreateServiceEnvironmentResponseSuccess
235
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateServiceEnvironmentResponse]
236
+ def service_environment_name: () -> ::String
237
+ def service_environment_arn: () -> ::String
238
+ end
239
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#create_service_environment-instance_method
240
+ def create_service_environment: (
241
+ service_environment_name: ::String,
242
+ service_environment_type: ("SAGEMAKER_TRAINING"),
243
+ ?state: ("ENABLED" | "DISABLED"),
244
+ capacity_limits: Array[
245
+ {
246
+ max_capacity: ::Integer?,
247
+ capacity_unit: ::String?
248
+ }
249
+ ],
250
+ ?tags: Hash[::String, ::String]
251
+ ) -> _CreateServiceEnvironmentResponseSuccess
252
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateServiceEnvironmentResponseSuccess
253
+
187
254
  interface _DeleteComputeEnvironmentResponseSuccess
188
255
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteComputeEnvironmentResponse]
189
256
  end
@@ -193,6 +260,15 @@ module Aws
193
260
  ) -> _DeleteComputeEnvironmentResponseSuccess
194
261
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteComputeEnvironmentResponseSuccess
195
262
 
263
+ interface _DeleteConsumableResourceResponseSuccess
264
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteConsumableResourceResponse]
265
+ end
266
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#delete_consumable_resource-instance_method
267
+ def delete_consumable_resource: (
268
+ consumable_resource: ::String
269
+ ) -> _DeleteConsumableResourceResponseSuccess
270
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteConsumableResourceResponseSuccess
271
+
196
272
  interface _DeleteJobQueueResponseSuccess
197
273
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteJobQueueResponse]
198
274
  end
@@ -202,6 +278,15 @@ module Aws
202
278
  ) -> _DeleteJobQueueResponseSuccess
203
279
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteJobQueueResponseSuccess
204
280
 
281
+ interface _DeleteQuotaShareResponseSuccess
282
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteQuotaShareResponse]
283
+ end
284
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#delete_quota_share-instance_method
285
+ def delete_quota_share: (
286
+ quota_share_arn: ::String
287
+ ) -> _DeleteQuotaShareResponseSuccess
288
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteQuotaShareResponseSuccess
289
+
205
290
  interface _DeleteSchedulingPolicyResponseSuccess
206
291
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteSchedulingPolicyResponse]
207
292
  end
@@ -211,6 +296,15 @@ module Aws
211
296
  ) -> _DeleteSchedulingPolicyResponseSuccess
212
297
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteSchedulingPolicyResponseSuccess
213
298
 
299
+ interface _DeleteServiceEnvironmentResponseSuccess
300
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteServiceEnvironmentResponse]
301
+ end
302
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#delete_service_environment-instance_method
303
+ def delete_service_environment: (
304
+ service_environment: ::String
305
+ ) -> _DeleteServiceEnvironmentResponseSuccess
306
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteServiceEnvironmentResponseSuccess
307
+
214
308
  interface _DeregisterJobDefinitionResponseSuccess
215
309
  include ::Seahorse::Client::_ResponseSuccess[Types::DeregisterJobDefinitionResponse]
216
310
  end
@@ -233,6 +327,23 @@ module Aws
233
327
  ) -> _DescribeComputeEnvironmentsResponseSuccess
234
328
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeComputeEnvironmentsResponseSuccess
235
329
 
330
+ interface _DescribeConsumableResourceResponseSuccess
331
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeConsumableResourceResponse]
332
+ def consumable_resource_name: () -> ::String
333
+ def consumable_resource_arn: () -> ::String
334
+ def total_quantity: () -> ::Integer
335
+ def in_use_quantity: () -> ::Integer
336
+ def available_quantity: () -> ::Integer
337
+ def resource_type: () -> ::String
338
+ def created_at: () -> ::Integer
339
+ def tags: () -> ::Hash[::String, ::String]
340
+ end
341
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#describe_consumable_resource-instance_method
342
+ def describe_consumable_resource: (
343
+ consumable_resource: ::String
344
+ ) -> _DescribeConsumableResourceResponseSuccess
345
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeConsumableResourceResponseSuccess
346
+
236
347
  interface _DescribeJobDefinitionsResponseSuccess
237
348
  include ::Seahorse::Client::_ResponseSuccess[Types::DescribeJobDefinitionsResponse]
238
349
  def job_definitions: () -> ::Array[Types::JobDefinition]
@@ -271,6 +382,24 @@ module Aws
271
382
  ) -> _DescribeJobsResponseSuccess
272
383
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeJobsResponseSuccess
273
384
 
385
+ interface _DescribeQuotaShareResponseSuccess
386
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeQuotaShareResponse]
387
+ def quota_share_name: () -> ::String
388
+ def quota_share_arn: () -> ::String
389
+ def job_queue_arn: () -> ::String
390
+ def capacity_limits: () -> ::Array[Types::QuotaShareCapacityLimit]
391
+ def resource_sharing_configuration: () -> Types::QuotaShareResourceSharingConfiguration
392
+ def preemption_configuration: () -> Types::QuotaSharePreemptionConfiguration
393
+ def state: () -> ("ENABLED" | "DISABLED")
394
+ def status: () -> ("CREATING" | "VALID" | "INVALID" | "UPDATING" | "DELETING")
395
+ def tags: () -> ::Hash[::String, ::String]
396
+ end
397
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#describe_quota_share-instance_method
398
+ def describe_quota_share: (
399
+ quota_share_arn: ::String
400
+ ) -> _DescribeQuotaShareResponseSuccess
401
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeQuotaShareResponseSuccess
402
+
274
403
  interface _DescribeSchedulingPoliciesResponseSuccess
275
404
  include ::Seahorse::Client::_ResponseSuccess[Types::DescribeSchedulingPoliciesResponse]
276
405
  def scheduling_policies: () -> ::Array[Types::SchedulingPolicyDetail]
@@ -281,9 +410,57 @@ module Aws
281
410
  ) -> _DescribeSchedulingPoliciesResponseSuccess
282
411
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeSchedulingPoliciesResponseSuccess
283
412
 
413
+ interface _DescribeServiceEnvironmentsResponseSuccess
414
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeServiceEnvironmentsResponse]
415
+ def service_environments: () -> ::Array[Types::ServiceEnvironmentDetail]
416
+ def next_token: () -> ::String
417
+ end
418
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#describe_service_environments-instance_method
419
+ def describe_service_environments: (
420
+ ?service_environments: Array[::String],
421
+ ?max_results: ::Integer,
422
+ ?next_token: ::String
423
+ ) -> _DescribeServiceEnvironmentsResponseSuccess
424
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeServiceEnvironmentsResponseSuccess
425
+
426
+ interface _DescribeServiceJobResponseSuccess
427
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeServiceJobResponse]
428
+ def attempts: () -> ::Array[Types::ServiceJobAttemptDetail]
429
+ def capacity_usage: () -> ::Array[Types::ServiceJobCapacityUsageDetail]
430
+ def created_at: () -> ::Integer
431
+ def is_terminated: () -> bool
432
+ def job_arn: () -> ::String
433
+ def job_id: () -> ::String
434
+ def job_name: () -> ::String
435
+ def job_queue: () -> ::String
436
+ def latest_attempt: () -> Types::LatestServiceJobAttempt
437
+ def retry_strategy: () -> Types::ServiceJobRetryStrategy
438
+ def scheduled_at: () -> ::Integer
439
+ def scheduling_priority: () -> ::Integer
440
+ def service_request_payload: () -> ::String
441
+ def service_job_type: () -> ("SAGEMAKER_TRAINING")
442
+ def share_identifier: () -> ::String
443
+ def quota_share_name: () -> ::String
444
+ def preemption_configuration: () -> Types::ServiceJobPreemptionConfiguration
445
+ def preemption_summary: () -> Types::ServiceJobPreemptionSummary
446
+ def started_at: () -> ::Integer
447
+ def status: () -> ("SUBMITTED" | "PENDING" | "RUNNABLE" | "SCHEDULED" | "STARTING" | "RUNNING" | "SUCCEEDED" | "FAILED")
448
+ def status_reason: () -> ::String
449
+ def stopped_at: () -> ::Integer
450
+ def tags: () -> ::Hash[::String, ::String]
451
+ def timeout_config: () -> Types::ServiceJobTimeout
452
+ end
453
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#describe_service_job-instance_method
454
+ def describe_service_job: (
455
+ job_id: ::String
456
+ ) -> _DescribeServiceJobResponseSuccess
457
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeServiceJobResponseSuccess
458
+
284
459
  interface _GetJobQueueSnapshotResponseSuccess
285
460
  include ::Seahorse::Client::_ResponseSuccess[Types::GetJobQueueSnapshotResponse]
286
461
  def front_of_queue: () -> Types::FrontOfQueueDetail
462
+ def front_of_quota_shares: () -> Types::FrontOfQuotaSharesDetail
463
+ def queue_utilization: () -> Types::QueueSnapshotUtilizationDetail
287
464
  end
288
465
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#get_job_queue_snapshot-instance_method
289
466
  def get_job_queue_snapshot: (
@@ -291,6 +468,24 @@ module Aws
291
468
  ) -> _GetJobQueueSnapshotResponseSuccess
292
469
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetJobQueueSnapshotResponseSuccess
293
470
 
471
+ interface _ListConsumableResourcesResponseSuccess
472
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListConsumableResourcesResponse]
473
+ def consumable_resources: () -> ::Array[Types::ConsumableResourceSummary]
474
+ def next_token: () -> ::String
475
+ end
476
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#list_consumable_resources-instance_method
477
+ def list_consumable_resources: (
478
+ ?filters: Array[
479
+ {
480
+ name: ::String?,
481
+ values: Array[::String]?
482
+ }
483
+ ],
484
+ ?max_results: ::Integer,
485
+ ?next_token: ::String
486
+ ) -> _ListConsumableResourcesResponseSuccess
487
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListConsumableResourcesResponseSuccess
488
+
294
489
  interface _ListJobsResponseSuccess
295
490
  include ::Seahorse::Client::_ResponseSuccess[Types::ListJobsResponse]
296
491
  def job_summary_list: () -> ::Array[Types::JobSummary]
@@ -308,11 +503,43 @@ module Aws
308
503
  {
309
504
  name: ::String?,
310
505
  values: Array[::String]?
311
- },
506
+ }
312
507
  ]
313
508
  ) -> _ListJobsResponseSuccess
314
509
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListJobsResponseSuccess
315
510
 
511
+ interface _ListJobsByConsumableResourceResponseSuccess
512
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListJobsByConsumableResourceResponse]
513
+ def jobs: () -> ::Array[Types::ListJobsByConsumableResourceSummary]
514
+ def next_token: () -> ::String
515
+ end
516
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#list_jobs_by_consumable_resource-instance_method
517
+ def list_jobs_by_consumable_resource: (
518
+ consumable_resource: ::String,
519
+ ?filters: Array[
520
+ {
521
+ name: ::String?,
522
+ values: Array[::String]?
523
+ }
524
+ ],
525
+ ?max_results: ::Integer,
526
+ ?next_token: ::String
527
+ ) -> _ListJobsByConsumableResourceResponseSuccess
528
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListJobsByConsumableResourceResponseSuccess
529
+
530
+ interface _ListQuotaSharesResponseSuccess
531
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListQuotaSharesResponse]
532
+ def quota_shares: () -> ::Array[Types::QuotaShareDetail]
533
+ def next_token: () -> ::String
534
+ end
535
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#list_quota_shares-instance_method
536
+ def list_quota_shares: (
537
+ job_queue: ::String,
538
+ ?max_results: ::Integer,
539
+ ?next_token: ::String
540
+ ) -> _ListQuotaSharesResponseSuccess
541
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListQuotaSharesResponseSuccess
542
+
316
543
  interface _ListSchedulingPoliciesResponseSuccess
317
544
  include ::Seahorse::Client::_ResponseSuccess[Types::ListSchedulingPoliciesResponse]
318
545
  def scheduling_policies: () -> ::Array[Types::SchedulingPolicyListingDetail]
@@ -325,6 +552,26 @@ module Aws
325
552
  ) -> _ListSchedulingPoliciesResponseSuccess
326
553
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListSchedulingPoliciesResponseSuccess
327
554
 
555
+ interface _ListServiceJobsResponseSuccess
556
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListServiceJobsResponse]
557
+ def job_summary_list: () -> ::Array[Types::ServiceJobSummary]
558
+ def next_token: () -> ::String
559
+ end
560
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#list_service_jobs-instance_method
561
+ def list_service_jobs: (
562
+ ?job_queue: ::String,
563
+ ?job_status: ("SUBMITTED" | "PENDING" | "RUNNABLE" | "SCHEDULED" | "STARTING" | "RUNNING" | "SUCCEEDED" | "FAILED"),
564
+ ?max_results: ::Integer,
565
+ ?next_token: ::String,
566
+ ?filters: Array[
567
+ {
568
+ name: ::String?,
569
+ values: Array[::String]?
570
+ }
571
+ ]
572
+ ) -> _ListServiceJobsResponseSuccess
573
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListServiceJobsResponseSuccess
574
+
328
575
  interface _ListTagsForResourceResponseSuccess
329
576
  include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
330
577
  def tags: () -> ::Hash[::String, ::String]
@@ -347,690 +594,44 @@ module Aws
347
594
  type: ("container" | "multinode"),
348
595
  ?parameters: Hash[::String, ::String],
349
596
  ?scheduling_priority: ::Integer,
350
- ?container_properties: {
351
- image: ::String?,
352
- vcpus: ::Integer?,
353
- memory: ::Integer?,
354
- command: Array[::String]?,
355
- job_role_arn: ::String?,
356
- execution_role_arn: ::String?,
357
- volumes: Array[
358
- {
359
- host: {
360
- source_path: ::String?
361
- }?,
362
- name: ::String?,
363
- efs_volume_configuration: {
364
- file_system_id: ::String,
365
- root_directory: ::String?,
366
- transit_encryption: ("ENABLED" | "DISABLED")?,
367
- transit_encryption_port: ::Integer?,
368
- authorization_config: {
369
- access_point_id: ::String?,
370
- iam: ("ENABLED" | "DISABLED")?
371
- }?
372
- }?
373
- },
374
- ]?,
375
- environment: Array[
376
- {
377
- name: ::String?,
378
- value: ::String?
379
- },
380
- ]?,
381
- mount_points: Array[
382
- {
383
- container_path: ::String?,
384
- read_only: bool?,
385
- source_volume: ::String?
386
- },
387
- ]?,
388
- readonly_root_filesystem: bool?,
389
- privileged: bool?,
390
- ulimits: Array[
391
- {
392
- hard_limit: ::Integer,
393
- name: ::String,
394
- soft_limit: ::Integer
395
- },
396
- ]?,
397
- user: ::String?,
398
- instance_type: ::String?,
399
- resource_requirements: Array[
400
- {
401
- value: ::String,
402
- type: ("GPU" | "VCPU" | "MEMORY")
403
- },
404
- ]?,
405
- linux_parameters: {
406
- devices: Array[
407
- {
408
- host_path: ::String,
409
- container_path: ::String?,
410
- permissions: Array[("READ" | "WRITE" | "MKNOD")]?
411
- },
412
- ]?,
413
- init_process_enabled: bool?,
414
- shared_memory_size: ::Integer?,
415
- tmpfs: Array[
416
- {
417
- container_path: ::String,
418
- size: ::Integer,
419
- mount_options: Array[::String]?
420
- },
421
- ]?,
422
- max_swap: ::Integer?,
423
- swappiness: ::Integer?
424
- }?,
425
- log_configuration: {
426
- log_driver: ("json-file" | "syslog" | "journald" | "gelf" | "fluentd" | "awslogs" | "splunk"),
427
- options: Hash[::String, ::String]?,
428
- secret_options: Array[
429
- {
430
- name: ::String,
431
- value_from: ::String
432
- },
433
- ]?
434
- }?,
435
- secrets: Array[
436
- {
437
- name: ::String,
438
- value_from: ::String
439
- },
440
- ]?,
441
- network_configuration: {
442
- assign_public_ip: ("ENABLED" | "DISABLED")?
443
- }?,
444
- fargate_platform_configuration: {
445
- platform_version: ::String?
446
- }?,
447
- ephemeral_storage: {
448
- size_in_gi_b: ::Integer
449
- }?,
450
- runtime_platform: {
451
- operating_system_family: ::String?,
452
- cpu_architecture: ::String?
453
- }?,
454
- repository_credentials: {
455
- credentials_parameter: ::String
456
- }?
457
- },
597
+ ?container_properties: Params::container_properties,
458
598
  ?node_properties: {
459
599
  num_nodes: ::Integer,
460
600
  main_node: ::Integer,
461
601
  node_range_properties: Array[
462
602
  {
463
603
  target_nodes: ::String,
464
- container: {
465
- image: ::String?,
466
- vcpus: ::Integer?,
467
- memory: ::Integer?,
468
- command: Array[::String]?,
469
- job_role_arn: ::String?,
470
- execution_role_arn: ::String?,
471
- volumes: Array[
472
- {
473
- host: {
474
- source_path: ::String?
475
- }?,
476
- name: ::String?,
477
- efs_volume_configuration: {
478
- file_system_id: ::String,
479
- root_directory: ::String?,
480
- transit_encryption: ("ENABLED" | "DISABLED")?,
481
- transit_encryption_port: ::Integer?,
482
- authorization_config: {
483
- access_point_id: ::String?,
484
- iam: ("ENABLED" | "DISABLED")?
485
- }?
486
- }?
487
- },
488
- ]?,
489
- environment: Array[
490
- {
491
- name: ::String?,
492
- value: ::String?
493
- },
494
- ]?,
495
- mount_points: Array[
496
- {
497
- container_path: ::String?,
498
- read_only: bool?,
499
- source_volume: ::String?
500
- },
501
- ]?,
502
- readonly_root_filesystem: bool?,
503
- privileged: bool?,
504
- ulimits: Array[
505
- {
506
- hard_limit: ::Integer,
507
- name: ::String,
508
- soft_limit: ::Integer
509
- },
510
- ]?,
511
- user: ::String?,
512
- instance_type: ::String?,
513
- resource_requirements: Array[
514
- {
515
- value: ::String,
516
- type: ("GPU" | "VCPU" | "MEMORY")
517
- },
518
- ]?,
519
- linux_parameters: {
520
- devices: Array[
521
- {
522
- host_path: ::String,
523
- container_path: ::String?,
524
- permissions: Array[("READ" | "WRITE" | "MKNOD")]?
525
- },
526
- ]?,
527
- init_process_enabled: bool?,
528
- shared_memory_size: ::Integer?,
529
- tmpfs: Array[
530
- {
531
- container_path: ::String,
532
- size: ::Integer,
533
- mount_options: Array[::String]?
534
- },
535
- ]?,
536
- max_swap: ::Integer?,
537
- swappiness: ::Integer?
538
- }?,
539
- log_configuration: {
540
- log_driver: ("json-file" | "syslog" | "journald" | "gelf" | "fluentd" | "awslogs" | "splunk"),
541
- options: Hash[::String, ::String]?,
542
- secret_options: Array[
543
- {
544
- name: ::String,
545
- value_from: ::String
546
- },
547
- ]?
548
- }?,
549
- secrets: Array[
550
- {
551
- name: ::String,
552
- value_from: ::String
553
- },
554
- ]?,
555
- network_configuration: {
556
- assign_public_ip: ("ENABLED" | "DISABLED")?
557
- }?,
558
- fargate_platform_configuration: {
559
- platform_version: ::String?
560
- }?,
561
- ephemeral_storage: {
562
- size_in_gi_b: ::Integer
563
- }?,
564
- runtime_platform: {
565
- operating_system_family: ::String?,
566
- cpu_architecture: ::String?
567
- }?,
568
- repository_credentials: {
569
- credentials_parameter: ::String
570
- }?
571
- }?,
604
+ container: Params::container_properties?,
572
605
  instance_types: Array[::String]?,
573
- ecs_properties: {
574
- task_properties: Array[
606
+ ecs_properties: Params::ecs_properties?,
607
+ eks_properties: Params::eks_properties?,
608
+ consumable_resource_properties: {
609
+ consumable_resource_list: Array[
575
610
  {
576
- containers: Array[
577
- {
578
- command: Array[::String]?,
579
- depends_on: Array[
580
- {
581
- container_name: ::String?,
582
- condition: ::String?
583
- },
584
- ]?,
585
- environment: Array[
586
- {
587
- name: ::String?,
588
- value: ::String?
589
- },
590
- ]?,
591
- essential: bool?,
592
- image: ::String,
593
- linux_parameters: {
594
- devices: Array[
595
- {
596
- host_path: ::String,
597
- container_path: ::String?,
598
- permissions: Array[("READ" | "WRITE" | "MKNOD")]?
599
- },
600
- ]?,
601
- init_process_enabled: bool?,
602
- shared_memory_size: ::Integer?,
603
- tmpfs: Array[
604
- {
605
- container_path: ::String,
606
- size: ::Integer,
607
- mount_options: Array[::String]?
608
- },
609
- ]?,
610
- max_swap: ::Integer?,
611
- swappiness: ::Integer?
612
- }?,
613
- log_configuration: {
614
- log_driver: ("json-file" | "syslog" | "journald" | "gelf" | "fluentd" | "awslogs" | "splunk"),
615
- options: Hash[::String, ::String]?,
616
- secret_options: Array[
617
- {
618
- name: ::String,
619
- value_from: ::String
620
- },
621
- ]?
622
- }?,
623
- mount_points: Array[
624
- {
625
- container_path: ::String?,
626
- read_only: bool?,
627
- source_volume: ::String?
628
- },
629
- ]?,
630
- name: ::String?,
631
- privileged: bool?,
632
- readonly_root_filesystem: bool?,
633
- repository_credentials: {
634
- credentials_parameter: ::String
635
- }?,
636
- resource_requirements: Array[
637
- {
638
- value: ::String,
639
- type: ("GPU" | "VCPU" | "MEMORY")
640
- },
641
- ]?,
642
- secrets: Array[
643
- {
644
- name: ::String,
645
- value_from: ::String
646
- },
647
- ]?,
648
- ulimits: Array[
649
- {
650
- hard_limit: ::Integer,
651
- name: ::String,
652
- soft_limit: ::Integer
653
- },
654
- ]?,
655
- user: ::String?
656
- },
657
- ],
658
- ephemeral_storage: {
659
- size_in_gi_b: ::Integer
660
- }?,
661
- execution_role_arn: ::String?,
662
- platform_version: ::String?,
663
- ipc_mode: ::String?,
664
- task_role_arn: ::String?,
665
- pid_mode: ::String?,
666
- network_configuration: {
667
- assign_public_ip: ("ENABLED" | "DISABLED")?
668
- }?,
669
- runtime_platform: {
670
- operating_system_family: ::String?,
671
- cpu_architecture: ::String?
672
- }?,
673
- volumes: Array[
674
- {
675
- host: {
676
- source_path: ::String?
677
- }?,
678
- name: ::String?,
679
- efs_volume_configuration: {
680
- file_system_id: ::String,
681
- root_directory: ::String?,
682
- transit_encryption: ("ENABLED" | "DISABLED")?,
683
- transit_encryption_port: ::Integer?,
684
- authorization_config: {
685
- access_point_id: ::String?,
686
- iam: ("ENABLED" | "DISABLED")?
687
- }?
688
- }?
689
- },
690
- ]?
691
- },
692
- ]
693
- }?,
694
- eks_properties: {
695
- pod_properties: {
696
- service_account_name: ::String?,
697
- host_network: bool?,
698
- dns_policy: ::String?,
699
- image_pull_secrets: Array[
700
- {
701
- name: ::String
702
- },
703
- ]?,
704
- containers: Array[
705
- {
706
- name: ::String?,
707
- image: ::String,
708
- image_pull_policy: ::String?,
709
- command: Array[::String]?,
710
- args: Array[::String]?,
711
- env: Array[
712
- {
713
- name: ::String,
714
- value: ::String?
715
- },
716
- ]?,
717
- resources: {
718
- limits: Hash[::String, ::String]?,
719
- requests: Hash[::String, ::String]?
720
- }?,
721
- volume_mounts: Array[
722
- {
723
- name: ::String?,
724
- mount_path: ::String?,
725
- read_only: bool?
726
- },
727
- ]?,
728
- security_context: {
729
- run_as_user: ::Integer?,
730
- run_as_group: ::Integer?,
731
- privileged: bool?,
732
- allow_privilege_escalation: bool?,
733
- read_only_root_filesystem: bool?,
734
- run_as_non_root: bool?
735
- }?
736
- },
737
- ]?,
738
- init_containers: Array[
739
- {
740
- name: ::String?,
741
- image: ::String,
742
- image_pull_policy: ::String?,
743
- command: Array[::String]?,
744
- args: Array[::String]?,
745
- env: Array[
746
- {
747
- name: ::String,
748
- value: ::String?
749
- },
750
- ]?,
751
- resources: {
752
- limits: Hash[::String, ::String]?,
753
- requests: Hash[::String, ::String]?
754
- }?,
755
- volume_mounts: Array[
756
- {
757
- name: ::String?,
758
- mount_path: ::String?,
759
- read_only: bool?
760
- },
761
- ]?,
762
- security_context: {
763
- run_as_user: ::Integer?,
764
- run_as_group: ::Integer?,
765
- privileged: bool?,
766
- allow_privilege_escalation: bool?,
767
- read_only_root_filesystem: bool?,
768
- run_as_non_root: bool?
769
- }?
770
- },
771
- ]?,
772
- volumes: Array[
773
- {
774
- name: ::String,
775
- host_path: {
776
- path: ::String?
777
- }?,
778
- empty_dir: {
779
- medium: ::String?,
780
- size_limit: ::String?
781
- }?,
782
- secret: {
783
- secret_name: ::String,
784
- optional: bool?
785
- }?
786
- },
787
- ]?,
788
- metadata: {
789
- labels: Hash[::String, ::String]?
790
- }?,
791
- share_process_namespace: bool?
792
- }?
611
+ consumable_resource: ::String?,
612
+ quantity: ::Integer?
613
+ }
614
+ ]?
793
615
  }?
794
- },
616
+ }
795
617
  ]
796
618
  },
797
- ?retry_strategy: {
798
- attempts: ::Integer?,
799
- evaluate_on_exit: Array[
800
- {
801
- on_status_reason: ::String?,
802
- on_reason: ::String?,
803
- on_exit_code: ::String?,
804
- action: ("RETRY" | "EXIT")
805
- },
806
- ]?
807
- },
619
+ ?retry_strategy: Params::retry_strategy,
808
620
  ?propagate_tags: bool,
809
621
  ?timeout: {
810
622
  attempt_duration_seconds: ::Integer?
811
623
  },
812
624
  ?tags: Hash[::String, ::String],
813
625
  ?platform_capabilities: Array[("EC2" | "FARGATE")],
814
- ?eks_properties: {
815
- pod_properties: {
816
- service_account_name: ::String?,
817
- host_network: bool?,
818
- dns_policy: ::String?,
819
- image_pull_secrets: Array[
820
- {
821
- name: ::String
822
- },
823
- ]?,
824
- containers: Array[
825
- {
826
- name: ::String?,
827
- image: ::String,
828
- image_pull_policy: ::String?,
829
- command: Array[::String]?,
830
- args: Array[::String]?,
831
- env: Array[
832
- {
833
- name: ::String,
834
- value: ::String?
835
- },
836
- ]?,
837
- resources: {
838
- limits: Hash[::String, ::String]?,
839
- requests: Hash[::String, ::String]?
840
- }?,
841
- volume_mounts: Array[
842
- {
843
- name: ::String?,
844
- mount_path: ::String?,
845
- read_only: bool?
846
- },
847
- ]?,
848
- security_context: {
849
- run_as_user: ::Integer?,
850
- run_as_group: ::Integer?,
851
- privileged: bool?,
852
- allow_privilege_escalation: bool?,
853
- read_only_root_filesystem: bool?,
854
- run_as_non_root: bool?
855
- }?
856
- },
857
- ]?,
858
- init_containers: Array[
859
- {
860
- name: ::String?,
861
- image: ::String,
862
- image_pull_policy: ::String?,
863
- command: Array[::String]?,
864
- args: Array[::String]?,
865
- env: Array[
866
- {
867
- name: ::String,
868
- value: ::String?
869
- },
870
- ]?,
871
- resources: {
872
- limits: Hash[::String, ::String]?,
873
- requests: Hash[::String, ::String]?
874
- }?,
875
- volume_mounts: Array[
876
- {
877
- name: ::String?,
878
- mount_path: ::String?,
879
- read_only: bool?
880
- },
881
- ]?,
882
- security_context: {
883
- run_as_user: ::Integer?,
884
- run_as_group: ::Integer?,
885
- privileged: bool?,
886
- allow_privilege_escalation: bool?,
887
- read_only_root_filesystem: bool?,
888
- run_as_non_root: bool?
889
- }?
890
- },
891
- ]?,
892
- volumes: Array[
893
- {
894
- name: ::String,
895
- host_path: {
896
- path: ::String?
897
- }?,
898
- empty_dir: {
899
- medium: ::String?,
900
- size_limit: ::String?
901
- }?,
902
- secret: {
903
- secret_name: ::String,
904
- optional: bool?
905
- }?
906
- },
907
- ]?,
908
- metadata: {
909
- labels: Hash[::String, ::String]?
910
- }?,
911
- share_process_namespace: bool?
912
- }?
913
- },
914
- ?ecs_properties: {
915
- task_properties: Array[
626
+ ?eks_properties: Params::eks_properties,
627
+ ?ecs_properties: Params::ecs_properties,
628
+ ?consumable_resource_properties: {
629
+ consumable_resource_list: Array[
916
630
  {
917
- containers: Array[
918
- {
919
- command: Array[::String]?,
920
- depends_on: Array[
921
- {
922
- container_name: ::String?,
923
- condition: ::String?
924
- },
925
- ]?,
926
- environment: Array[
927
- {
928
- name: ::String?,
929
- value: ::String?
930
- },
931
- ]?,
932
- essential: bool?,
933
- image: ::String,
934
- linux_parameters: {
935
- devices: Array[
936
- {
937
- host_path: ::String,
938
- container_path: ::String?,
939
- permissions: Array[("READ" | "WRITE" | "MKNOD")]?
940
- },
941
- ]?,
942
- init_process_enabled: bool?,
943
- shared_memory_size: ::Integer?,
944
- tmpfs: Array[
945
- {
946
- container_path: ::String,
947
- size: ::Integer,
948
- mount_options: Array[::String]?
949
- },
950
- ]?,
951
- max_swap: ::Integer?,
952
- swappiness: ::Integer?
953
- }?,
954
- log_configuration: {
955
- log_driver: ("json-file" | "syslog" | "journald" | "gelf" | "fluentd" | "awslogs" | "splunk"),
956
- options: Hash[::String, ::String]?,
957
- secret_options: Array[
958
- {
959
- name: ::String,
960
- value_from: ::String
961
- },
962
- ]?
963
- }?,
964
- mount_points: Array[
965
- {
966
- container_path: ::String?,
967
- read_only: bool?,
968
- source_volume: ::String?
969
- },
970
- ]?,
971
- name: ::String?,
972
- privileged: bool?,
973
- readonly_root_filesystem: bool?,
974
- repository_credentials: {
975
- credentials_parameter: ::String
976
- }?,
977
- resource_requirements: Array[
978
- {
979
- value: ::String,
980
- type: ("GPU" | "VCPU" | "MEMORY")
981
- },
982
- ]?,
983
- secrets: Array[
984
- {
985
- name: ::String,
986
- value_from: ::String
987
- },
988
- ]?,
989
- ulimits: Array[
990
- {
991
- hard_limit: ::Integer,
992
- name: ::String,
993
- soft_limit: ::Integer
994
- },
995
- ]?,
996
- user: ::String?
997
- },
998
- ],
999
- ephemeral_storage: {
1000
- size_in_gi_b: ::Integer
1001
- }?,
1002
- execution_role_arn: ::String?,
1003
- platform_version: ::String?,
1004
- ipc_mode: ::String?,
1005
- task_role_arn: ::String?,
1006
- pid_mode: ::String?,
1007
- network_configuration: {
1008
- assign_public_ip: ("ENABLED" | "DISABLED")?
1009
- }?,
1010
- runtime_platform: {
1011
- operating_system_family: ::String?,
1012
- cpu_architecture: ::String?
1013
- }?,
1014
- volumes: Array[
1015
- {
1016
- host: {
1017
- source_path: ::String?
1018
- }?,
1019
- name: ::String?,
1020
- efs_volume_configuration: {
1021
- file_system_id: ::String,
1022
- root_directory: ::String?,
1023
- transit_encryption: ("ENABLED" | "DISABLED")?,
1024
- transit_encryption_port: ::Integer?,
1025
- authorization_config: {
1026
- access_point_id: ::String?,
1027
- iam: ("ENABLED" | "DISABLED")?
1028
- }?
1029
- }?
1030
- },
1031
- ]?
1032
- },
1033
- ]
631
+ consumable_resource: ::String?,
632
+ quantity: ::Integer?
633
+ }
634
+ ]?
1034
635
  }
1035
636
  ) -> _RegisterJobDefinitionResponseSuccess
1036
637
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RegisterJobDefinitionResponseSuccess
@@ -1054,208 +655,85 @@ module Aws
1054
655
  {
1055
656
  job_id: ::String?,
1056
657
  type: ("N_TO_N" | "SEQUENTIAL")?
1057
- },
658
+ }
1058
659
  ],
1059
660
  job_definition: ::String,
1060
661
  ?parameters: Hash[::String, ::String],
1061
- ?container_overrides: {
1062
- vcpus: ::Integer?,
1063
- memory: ::Integer?,
1064
- command: Array[::String]?,
1065
- instance_type: ::String?,
1066
- environment: Array[
1067
- {
1068
- name: ::String?,
1069
- value: ::String?
1070
- },
1071
- ]?,
1072
- resource_requirements: Array[
1073
- {
1074
- value: ::String,
1075
- type: ("GPU" | "VCPU" | "MEMORY")
1076
- },
1077
- ]?
1078
- },
662
+ ?container_overrides: Params::container_overrides,
1079
663
  ?node_overrides: {
1080
664
  num_nodes: ::Integer?,
1081
665
  node_property_overrides: Array[
1082
666
  {
1083
667
  target_nodes: ::String,
1084
- container_overrides: {
1085
- vcpus: ::Integer?,
1086
- memory: ::Integer?,
1087
- command: Array[::String]?,
1088
- instance_type: ::String?,
1089
- environment: Array[
1090
- {
1091
- name: ::String?,
1092
- value: ::String?
1093
- },
1094
- ]?,
1095
- resource_requirements: Array[
668
+ container_overrides: Params::container_overrides?,
669
+ ecs_properties_override: Params::ecs_properties_override?,
670
+ instance_types: Array[::String]?,
671
+ eks_properties_override: Params::eks_properties_override?,
672
+ consumable_resource_properties_override: {
673
+ consumable_resource_list: Array[
1096
674
  {
1097
- value: ::String,
1098
- type: ("GPU" | "VCPU" | "MEMORY")
1099
- },
675
+ consumable_resource: ::String?,
676
+ quantity: ::Integer?
677
+ }
1100
678
  ]?
1101
- }?,
1102
- ecs_properties_override: {
1103
- task_properties: Array[
1104
- {
1105
- containers: Array[
1106
- {
1107
- command: Array[::String]?,
1108
- environment: Array[
1109
- {
1110
- name: ::String?,
1111
- value: ::String?
1112
- },
1113
- ]?,
1114
- name: ::String?,
1115
- resource_requirements: Array[
1116
- {
1117
- value: ::String,
1118
- type: ("GPU" | "VCPU" | "MEMORY")
1119
- },
1120
- ]?
1121
- },
1122
- ]?
1123
- },
1124
- ]?
1125
- }?,
1126
- instance_types: Array[::String]?,
1127
- eks_properties_override: {
1128
- pod_properties: {
1129
- containers: Array[
1130
- {
1131
- name: ::String?,
1132
- image: ::String?,
1133
- command: Array[::String]?,
1134
- args: Array[::String]?,
1135
- env: Array[
1136
- {
1137
- name: ::String,
1138
- value: ::String?
1139
- },
1140
- ]?,
1141
- resources: {
1142
- limits: Hash[::String, ::String]?,
1143
- requests: Hash[::String, ::String]?
1144
- }?
1145
- },
1146
- ]?,
1147
- init_containers: Array[
1148
- {
1149
- name: ::String?,
1150
- image: ::String?,
1151
- command: Array[::String]?,
1152
- args: Array[::String]?,
1153
- env: Array[
1154
- {
1155
- name: ::String,
1156
- value: ::String?
1157
- },
1158
- ]?,
1159
- resources: {
1160
- limits: Hash[::String, ::String]?,
1161
- requests: Hash[::String, ::String]?
1162
- }?
1163
- },
1164
- ]?,
1165
- metadata: {
1166
- labels: Hash[::String, ::String]?
1167
- }?
1168
- }?
1169
679
  }?
1170
- },
1171
- ]?
1172
- },
1173
- ?retry_strategy: {
1174
- attempts: ::Integer?,
1175
- evaluate_on_exit: Array[
1176
- {
1177
- on_status_reason: ::String?,
1178
- on_reason: ::String?,
1179
- on_exit_code: ::String?,
1180
- action: ("RETRY" | "EXIT")
1181
- },
680
+ }
1182
681
  ]?
1183
682
  },
683
+ ?retry_strategy: Params::retry_strategy,
1184
684
  ?propagate_tags: bool,
1185
685
  ?timeout: {
1186
686
  attempt_duration_seconds: ::Integer?
1187
687
  },
1188
688
  ?tags: Hash[::String, ::String],
1189
- ?eks_properties_override: {
1190
- pod_properties: {
1191
- containers: Array[
1192
- {
1193
- name: ::String?,
1194
- image: ::String?,
1195
- command: Array[::String]?,
1196
- args: Array[::String]?,
1197
- env: Array[
1198
- {
1199
- name: ::String,
1200
- value: ::String?
1201
- },
1202
- ]?,
1203
- resources: {
1204
- limits: Hash[::String, ::String]?,
1205
- requests: Hash[::String, ::String]?
1206
- }?
1207
- },
1208
- ]?,
1209
- init_containers: Array[
1210
- {
1211
- name: ::String?,
1212
- image: ::String?,
1213
- command: Array[::String]?,
1214
- args: Array[::String]?,
1215
- env: Array[
1216
- {
1217
- name: ::String,
1218
- value: ::String?
1219
- },
1220
- ]?,
1221
- resources: {
1222
- limits: Hash[::String, ::String]?,
1223
- requests: Hash[::String, ::String]?
1224
- }?
1225
- },
1226
- ]?,
1227
- metadata: {
1228
- labels: Hash[::String, ::String]?
1229
- }?
1230
- }?
1231
- },
1232
- ?ecs_properties_override: {
1233
- task_properties: Array[
689
+ ?eks_properties_override: Params::eks_properties_override,
690
+ ?ecs_properties_override: Params::ecs_properties_override,
691
+ ?consumable_resource_properties_override: {
692
+ consumable_resource_list: Array[
1234
693
  {
1235
- containers: Array[
1236
- {
1237
- command: Array[::String]?,
1238
- environment: Array[
1239
- {
1240
- name: ::String?,
1241
- value: ::String?
1242
- },
1243
- ]?,
1244
- name: ::String?,
1245
- resource_requirements: Array[
1246
- {
1247
- value: ::String,
1248
- type: ("GPU" | "VCPU" | "MEMORY")
1249
- },
1250
- ]?
1251
- },
1252
- ]?
1253
- },
694
+ consumable_resource: ::String?,
695
+ quantity: ::Integer?
696
+ }
1254
697
  ]?
1255
698
  }
1256
699
  ) -> _SubmitJobResponseSuccess
1257
700
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SubmitJobResponseSuccess
1258
701
 
702
+ interface _SubmitServiceJobResponseSuccess
703
+ include ::Seahorse::Client::_ResponseSuccess[Types::SubmitServiceJobResponse]
704
+ def job_arn: () -> ::String
705
+ def job_name: () -> ::String
706
+ def job_id: () -> ::String
707
+ end
708
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#submit_service_job-instance_method
709
+ def submit_service_job: (
710
+ job_name: ::String,
711
+ job_queue: ::String,
712
+ ?retry_strategy: {
713
+ attempts: ::Integer,
714
+ evaluate_on_exit: Array[
715
+ {
716
+ action: ("RETRY" | "EXIT")?,
717
+ on_status_reason: ::String?
718
+ }
719
+ ]?
720
+ },
721
+ ?scheduling_priority: ::Integer,
722
+ service_request_payload: ::String,
723
+ service_job_type: ("SAGEMAKER_TRAINING"),
724
+ ?share_identifier: ::String,
725
+ ?quota_share_name: ::String,
726
+ ?preemption_configuration: {
727
+ preemption_retries_before_termination: ::Integer?
728
+ },
729
+ ?timeout_config: {
730
+ attempt_duration_seconds: ::Integer?
731
+ },
732
+ ?tags: Hash[::String, ::String],
733
+ ?client_token: ::String
734
+ ) -> _SubmitServiceJobResponseSuccess
735
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SubmitServiceJobResponseSuccess
736
+
1259
737
  interface _TagResourceResponseSuccess
1260
738
  include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse]
1261
739
  end
@@ -1276,6 +754,16 @@ module Aws
1276
754
  ) -> _TerminateJobResponseSuccess
1277
755
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TerminateJobResponseSuccess
1278
756
 
757
+ interface _TerminateServiceJobResponseSuccess
758
+ include ::Seahorse::Client::_ResponseSuccess[Types::TerminateServiceJobResponse]
759
+ end
760
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#terminate_service_job-instance_method
761
+ def terminate_service_job: (
762
+ job_id: ::String,
763
+ reason: ::String
764
+ ) -> _TerminateServiceJobResponseSuccess
765
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TerminateServiceJobResponseSuccess
766
+
1279
767
  interface _UntagResourceResponseSuccess
1280
768
  include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceResponse]
1281
769
  end
@@ -1302,28 +790,28 @@ module Aws
1302
790
  desiredv_cpus: ::Integer?,
1303
791
  subnets: Array[::String]?,
1304
792
  security_group_ids: Array[::String]?,
1305
- allocation_strategy: ("BEST_FIT_PROGRESSIVE" | "SPOT_CAPACITY_OPTIMIZED" | "SPOT_PRICE_CAPACITY_OPTIMIZED")?,
793
+ allocation_strategy: ("BEST_FIT_PROGRESSIVE" | "BEST_FIT_PROGRESSIVE_ORDERED" | "SPOT_CAPACITY_OPTIMIZED" | "SPOT_PRICE_CAPACITY_OPTIMIZED" | "SPOT_CAPACITY_OPTIMIZED_PRIORITIZED")?,
1306
794
  instance_types: Array[::String]?,
1307
795
  ec2_key_pair: ::String?,
1308
796
  instance_role: ::String?,
1309
797
  tags: Hash[::String, ::String]?,
1310
798
  placement_group: ::String?,
1311
799
  bid_percentage: ::Integer?,
1312
- launch_template: {
1313
- launch_template_id: ::String?,
1314
- launch_template_name: ::String?,
1315
- version: ::String?
1316
- }?,
800
+ launch_template: Params::launch_template_specification?,
1317
801
  ec2_configuration: Array[
1318
802
  {
1319
803
  image_type: ::String,
1320
804
  image_id_override: ::String?,
805
+ batch_image_status: ::String?,
1321
806
  image_kubernetes_version: ::String?
1322
- },
807
+ }
1323
808
  ]?,
1324
809
  update_to_latest_image_version: bool?,
1325
810
  type: ("EC2" | "SPOT" | "FARGATE" | "FARGATE_SPOT")?,
1326
- image_id: ::String?
811
+ image_id: ::String?,
812
+ scaling_policy: {
813
+ min_scale_down_delay_minutes: ::Integer?
814
+ }?
1327
815
  },
1328
816
  ?service_role: ::String,
1329
817
  ?update_policy: {
@@ -1334,6 +822,21 @@ module Aws
1334
822
  ) -> _UpdateComputeEnvironmentResponseSuccess
1335
823
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateComputeEnvironmentResponseSuccess
1336
824
 
825
+ interface _UpdateConsumableResourceResponseSuccess
826
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateConsumableResourceResponse]
827
+ def consumable_resource_name: () -> ::String
828
+ def consumable_resource_arn: () -> ::String
829
+ def total_quantity: () -> ::Integer
830
+ end
831
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#update_consumable_resource-instance_method
832
+ def update_consumable_resource: (
833
+ consumable_resource: ::String,
834
+ ?operation: ::String,
835
+ ?quantity: ::Integer,
836
+ ?client_token: ::String
837
+ ) -> _UpdateConsumableResourceResponseSuccess
838
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateConsumableResourceResponseSuccess
839
+
1337
840
  interface _UpdateJobQueueResponseSuccess
1338
841
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdateJobQueueResponse]
1339
842
  def job_queue_name: () -> ::String
@@ -1349,37 +852,93 @@ module Aws
1349
852
  {
1350
853
  order: ::Integer,
1351
854
  compute_environment: ::String
1352
- },
855
+ }
856
+ ],
857
+ ?service_environment_order: Array[
858
+ {
859
+ order: ::Integer,
860
+ service_environment: ::String
861
+ }
1353
862
  ],
1354
863
  ?job_state_time_limit_actions: Array[
1355
864
  {
1356
865
  reason: ::String,
1357
866
  state: ("RUNNABLE"),
1358
867
  max_time_seconds: ::Integer,
1359
- action: ("CANCEL")
1360
- },
868
+ action: ("CANCEL" | "TERMINATE")
869
+ }
1361
870
  ]
1362
871
  ) -> _UpdateJobQueueResponseSuccess
1363
872
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateJobQueueResponseSuccess
1364
873
 
874
+ interface _UpdateQuotaShareResponseSuccess
875
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateQuotaShareResponse]
876
+ def quota_share_name: () -> ::String
877
+ def quota_share_arn: () -> ::String
878
+ end
879
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#update_quota_share-instance_method
880
+ def update_quota_share: (
881
+ quota_share_arn: ::String,
882
+ ?capacity_limits: Array[
883
+ {
884
+ max_capacity: ::Integer,
885
+ capacity_unit: ::String
886
+ }
887
+ ],
888
+ ?resource_sharing_configuration: {
889
+ strategy: ("RESERVE" | "LEND" | "LEND_AND_BORROW"),
890
+ borrow_limit: ::Integer?
891
+ },
892
+ ?preemption_configuration: {
893
+ in_share_preemption: ("ENABLED" | "DISABLED")
894
+ },
895
+ ?state: ("ENABLED" | "DISABLED")
896
+ ) -> _UpdateQuotaShareResponseSuccess
897
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateQuotaShareResponseSuccess
898
+
1365
899
  interface _UpdateSchedulingPolicyResponseSuccess
1366
900
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdateSchedulingPolicyResponse]
1367
901
  end
1368
902
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#update_scheduling_policy-instance_method
1369
903
  def update_scheduling_policy: (
1370
904
  arn: ::String,
1371
- ?fairshare_policy: {
1372
- share_decay_seconds: ::Integer?,
1373
- compute_reservation: ::Integer?,
1374
- share_distribution: Array[
1375
- {
1376
- share_identifier: ::String,
1377
- weight_factor: ::Float?
1378
- },
1379
- ]?
1380
- }
905
+ ?quota_share_policy: {
906
+ idle_resource_assignment_strategy: ("FIFO")
907
+ },
908
+ ?fairshare_policy: Params::fairshare_policy
1381
909
  ) -> _UpdateSchedulingPolicyResponseSuccess
1382
910
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateSchedulingPolicyResponseSuccess
911
+
912
+ interface _UpdateServiceEnvironmentResponseSuccess
913
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateServiceEnvironmentResponse]
914
+ def service_environment_name: () -> ::String
915
+ def service_environment_arn: () -> ::String
916
+ end
917
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#update_service_environment-instance_method
918
+ def update_service_environment: (
919
+ service_environment: ::String,
920
+ ?state: ("ENABLED" | "DISABLED"),
921
+ ?capacity_limits: Array[
922
+ {
923
+ max_capacity: ::Integer?,
924
+ capacity_unit: ::String?
925
+ }
926
+ ]
927
+ ) -> _UpdateServiceEnvironmentResponseSuccess
928
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateServiceEnvironmentResponseSuccess
929
+
930
+ interface _UpdateServiceJobResponseSuccess
931
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateServiceJobResponse]
932
+ def job_arn: () -> ::String
933
+ def job_name: () -> ::String
934
+ def job_id: () -> ::String
935
+ end
936
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#update_service_job-instance_method
937
+ def update_service_job: (
938
+ job_id: ::String,
939
+ scheduling_priority: ::Integer
940
+ ) -> _UpdateServiceJobResponseSuccess
941
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateServiceJobResponseSuccess
1383
942
  end
1384
943
  end
1385
944
  end