aws-sdk-batch 1.78.0 → 1.80.0

Sign up to get free protection for your applications and to get access to all the features.
data/sig/client.rbs ADDED
@@ -0,0 +1,856 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module Batch
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?ignore_configured_endpoint_urls: bool,
36
+ ?log_formatter: untyped,
37
+ ?log_level: Symbol,
38
+ ?logger: untyped,
39
+ ?max_attempts: Integer,
40
+ ?profile: String,
41
+ ?request_min_compression_size_bytes: Integer,
42
+ ?retry_backoff: Proc,
43
+ ?retry_base_delay: Float,
44
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
45
+ ?retry_limit: Integer,
46
+ ?retry_max_delay: Integer,
47
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
48
+ ?sdk_ua_app_id: String,
49
+ ?secret_access_key: String,
50
+ ?session_token: String,
51
+ ?stub_responses: untyped,
52
+ ?token_provider: untyped,
53
+ ?use_dualstack_endpoint: bool,
54
+ ?use_fips_endpoint: bool,
55
+ ?validate_params: bool,
56
+ ?endpoint_provider: untyped,
57
+ ?http_proxy: String,
58
+ ?http_open_timeout: (Float | Integer),
59
+ ?http_read_timeout: (Float | Integer),
60
+ ?http_idle_timeout: (Float | Integer),
61
+ ?http_continue_timeout: (Float | Integer),
62
+ ?ssl_timeout: (Float | Integer | nil),
63
+ ?http_wire_trace: bool,
64
+ ?ssl_verify_peer: bool,
65
+ ?ssl_ca_bundle: String,
66
+ ?ssl_ca_directory: String,
67
+ ?ssl_ca_store: String,
68
+ ?on_chunk_received: Proc,
69
+ ?on_chunk_sent: Proc,
70
+ ?raise_response_errors: bool
71
+ ) -> instance
72
+ | (?Hash[Symbol, untyped]) -> instance
73
+
74
+
75
+ interface _CancelJobResponseSuccess
76
+ include ::Seahorse::Client::_ResponseSuccess[Types::CancelJobResponse]
77
+ end
78
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#cancel_job-instance_method
79
+ def cancel_job: (
80
+ job_id: ::String,
81
+ reason: ::String
82
+ ) -> _CancelJobResponseSuccess
83
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CancelJobResponseSuccess
84
+
85
+ interface _CreateComputeEnvironmentResponseSuccess
86
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateComputeEnvironmentResponse]
87
+ def compute_environment_name: () -> ::String
88
+ def compute_environment_arn: () -> ::String
89
+ end
90
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#create_compute_environment-instance_method
91
+ def create_compute_environment: (
92
+ compute_environment_name: ::String,
93
+ type: ("MANAGED" | "UNMANAGED"),
94
+ ?state: ("ENABLED" | "DISABLED"),
95
+ ?unmanagedv_cpus: ::Integer,
96
+ ?compute_resources: {
97
+ type: ("EC2" | "SPOT" | "FARGATE" | "FARGATE_SPOT"),
98
+ allocation_strategy: ("BEST_FIT" | "BEST_FIT_PROGRESSIVE" | "SPOT_CAPACITY_OPTIMIZED" | "SPOT_PRICE_CAPACITY_OPTIMIZED")?,
99
+ minv_cpus: ::Integer?,
100
+ maxv_cpus: ::Integer,
101
+ desiredv_cpus: ::Integer?,
102
+ instance_types: Array[::String]?,
103
+ image_id: ::String?,
104
+ subnets: Array[::String],
105
+ security_group_ids: Array[::String]?,
106
+ ec2_key_pair: ::String?,
107
+ instance_role: ::String?,
108
+ tags: Hash[::String, ::String]?,
109
+ placement_group: ::String?,
110
+ bid_percentage: ::Integer?,
111
+ spot_iam_fleet_role: ::String?,
112
+ launch_template: {
113
+ launch_template_id: ::String?,
114
+ launch_template_name: ::String?,
115
+ version: ::String?
116
+ }?,
117
+ ec2_configuration: Array[
118
+ {
119
+ image_type: ::String,
120
+ image_id_override: ::String?,
121
+ image_kubernetes_version: ::String?
122
+ },
123
+ ]?
124
+ },
125
+ ?service_role: ::String,
126
+ ?tags: Hash[::String, ::String],
127
+ ?eks_configuration: {
128
+ eks_cluster_arn: ::String,
129
+ kubernetes_namespace: ::String
130
+ }
131
+ ) -> _CreateComputeEnvironmentResponseSuccess
132
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateComputeEnvironmentResponseSuccess
133
+
134
+ interface _CreateJobQueueResponseSuccess
135
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateJobQueueResponse]
136
+ def job_queue_name: () -> ::String
137
+ def job_queue_arn: () -> ::String
138
+ end
139
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#create_job_queue-instance_method
140
+ def create_job_queue: (
141
+ job_queue_name: ::String,
142
+ ?state: ("ENABLED" | "DISABLED"),
143
+ ?scheduling_policy_arn: ::String,
144
+ priority: ::Integer,
145
+ compute_environment_order: Array[
146
+ {
147
+ order: ::Integer,
148
+ compute_environment: ::String
149
+ },
150
+ ],
151
+ ?tags: Hash[::String, ::String]
152
+ ) -> _CreateJobQueueResponseSuccess
153
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateJobQueueResponseSuccess
154
+
155
+ interface _CreateSchedulingPolicyResponseSuccess
156
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateSchedulingPolicyResponse]
157
+ def name: () -> ::String
158
+ def arn: () -> ::String
159
+ end
160
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#create_scheduling_policy-instance_method
161
+ def create_scheduling_policy: (
162
+ name: ::String,
163
+ ?fairshare_policy: {
164
+ share_decay_seconds: ::Integer?,
165
+ compute_reservation: ::Integer?,
166
+ share_distribution: Array[
167
+ {
168
+ share_identifier: ::String,
169
+ weight_factor: ::Float?
170
+ },
171
+ ]?
172
+ },
173
+ ?tags: Hash[::String, ::String]
174
+ ) -> _CreateSchedulingPolicyResponseSuccess
175
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateSchedulingPolicyResponseSuccess
176
+
177
+ interface _DeleteComputeEnvironmentResponseSuccess
178
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteComputeEnvironmentResponse]
179
+ end
180
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#delete_compute_environment-instance_method
181
+ def delete_compute_environment: (
182
+ compute_environment: ::String
183
+ ) -> _DeleteComputeEnvironmentResponseSuccess
184
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteComputeEnvironmentResponseSuccess
185
+
186
+ interface _DeleteJobQueueResponseSuccess
187
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteJobQueueResponse]
188
+ end
189
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#delete_job_queue-instance_method
190
+ def delete_job_queue: (
191
+ job_queue: ::String
192
+ ) -> _DeleteJobQueueResponseSuccess
193
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteJobQueueResponseSuccess
194
+
195
+ interface _DeleteSchedulingPolicyResponseSuccess
196
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteSchedulingPolicyResponse]
197
+ end
198
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#delete_scheduling_policy-instance_method
199
+ def delete_scheduling_policy: (
200
+ arn: ::String
201
+ ) -> _DeleteSchedulingPolicyResponseSuccess
202
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteSchedulingPolicyResponseSuccess
203
+
204
+ interface _DeregisterJobDefinitionResponseSuccess
205
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeregisterJobDefinitionResponse]
206
+ end
207
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#deregister_job_definition-instance_method
208
+ def deregister_job_definition: (
209
+ job_definition: ::String
210
+ ) -> _DeregisterJobDefinitionResponseSuccess
211
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeregisterJobDefinitionResponseSuccess
212
+
213
+ interface _DescribeComputeEnvironmentsResponseSuccess
214
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeComputeEnvironmentsResponse]
215
+ def compute_environments: () -> ::Array[Types::ComputeEnvironmentDetail]
216
+ def next_token: () -> ::String
217
+ end
218
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#describe_compute_environments-instance_method
219
+ def describe_compute_environments: (
220
+ ?compute_environments: Array[::String],
221
+ ?max_results: ::Integer,
222
+ ?next_token: ::String
223
+ ) -> _DescribeComputeEnvironmentsResponseSuccess
224
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeComputeEnvironmentsResponseSuccess
225
+
226
+ interface _DescribeJobDefinitionsResponseSuccess
227
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeJobDefinitionsResponse]
228
+ def job_definitions: () -> ::Array[Types::JobDefinition]
229
+ def next_token: () -> ::String
230
+ end
231
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#describe_job_definitions-instance_method
232
+ def describe_job_definitions: (
233
+ ?job_definitions: Array[::String],
234
+ ?max_results: ::Integer,
235
+ ?job_definition_name: ::String,
236
+ ?status: ::String,
237
+ ?next_token: ::String
238
+ ) -> _DescribeJobDefinitionsResponseSuccess
239
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeJobDefinitionsResponseSuccess
240
+
241
+ interface _DescribeJobQueuesResponseSuccess
242
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeJobQueuesResponse]
243
+ def job_queues: () -> ::Array[Types::JobQueueDetail]
244
+ def next_token: () -> ::String
245
+ end
246
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#describe_job_queues-instance_method
247
+ def describe_job_queues: (
248
+ ?job_queues: Array[::String],
249
+ ?max_results: ::Integer,
250
+ ?next_token: ::String
251
+ ) -> _DescribeJobQueuesResponseSuccess
252
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeJobQueuesResponseSuccess
253
+
254
+ interface _DescribeJobsResponseSuccess
255
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeJobsResponse]
256
+ def jobs: () -> ::Array[Types::JobDetail]
257
+ end
258
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#describe_jobs-instance_method
259
+ def describe_jobs: (
260
+ jobs: Array[::String]
261
+ ) -> _DescribeJobsResponseSuccess
262
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeJobsResponseSuccess
263
+
264
+ interface _DescribeSchedulingPoliciesResponseSuccess
265
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeSchedulingPoliciesResponse]
266
+ def scheduling_policies: () -> ::Array[Types::SchedulingPolicyDetail]
267
+ end
268
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#describe_scheduling_policies-instance_method
269
+ def describe_scheduling_policies: (
270
+ arns: Array[::String]
271
+ ) -> _DescribeSchedulingPoliciesResponseSuccess
272
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeSchedulingPoliciesResponseSuccess
273
+
274
+ interface _ListJobsResponseSuccess
275
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListJobsResponse]
276
+ def job_summary_list: () -> ::Array[Types::JobSummary]
277
+ def next_token: () -> ::String
278
+ end
279
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#list_jobs-instance_method
280
+ def list_jobs: (
281
+ ?job_queue: ::String,
282
+ ?array_job_id: ::String,
283
+ ?multi_node_job_id: ::String,
284
+ ?job_status: ("SUBMITTED" | "PENDING" | "RUNNABLE" | "STARTING" | "RUNNING" | "SUCCEEDED" | "FAILED"),
285
+ ?max_results: ::Integer,
286
+ ?next_token: ::String,
287
+ ?filters: Array[
288
+ {
289
+ name: ::String?,
290
+ values: Array[::String]?
291
+ },
292
+ ]
293
+ ) -> _ListJobsResponseSuccess
294
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListJobsResponseSuccess
295
+
296
+ interface _ListSchedulingPoliciesResponseSuccess
297
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListSchedulingPoliciesResponse]
298
+ def scheduling_policies: () -> ::Array[Types::SchedulingPolicyListingDetail]
299
+ def next_token: () -> ::String
300
+ end
301
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#list_scheduling_policies-instance_method
302
+ def list_scheduling_policies: (
303
+ ?max_results: ::Integer,
304
+ ?next_token: ::String
305
+ ) -> _ListSchedulingPoliciesResponseSuccess
306
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListSchedulingPoliciesResponseSuccess
307
+
308
+ interface _ListTagsForResourceResponseSuccess
309
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
310
+ def tags: () -> ::Hash[::String, ::String]
311
+ end
312
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#list_tags_for_resource-instance_method
313
+ def list_tags_for_resource: (
314
+ resource_arn: ::String
315
+ ) -> _ListTagsForResourceResponseSuccess
316
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
317
+
318
+ interface _RegisterJobDefinitionResponseSuccess
319
+ include ::Seahorse::Client::_ResponseSuccess[Types::RegisterJobDefinitionResponse]
320
+ def job_definition_name: () -> ::String
321
+ def job_definition_arn: () -> ::String
322
+ def revision: () -> ::Integer
323
+ end
324
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#register_job_definition-instance_method
325
+ def register_job_definition: (
326
+ job_definition_name: ::String,
327
+ type: ("container" | "multinode"),
328
+ ?parameters: Hash[::String, ::String],
329
+ ?scheduling_priority: ::Integer,
330
+ ?container_properties: {
331
+ image: ::String?,
332
+ vcpus: ::Integer?,
333
+ memory: ::Integer?,
334
+ command: Array[::String]?,
335
+ job_role_arn: ::String?,
336
+ execution_role_arn: ::String?,
337
+ volumes: Array[
338
+ {
339
+ host: {
340
+ source_path: ::String?
341
+ }?,
342
+ name: ::String?,
343
+ efs_volume_configuration: {
344
+ file_system_id: ::String,
345
+ root_directory: ::String?,
346
+ transit_encryption: ("ENABLED" | "DISABLED")?,
347
+ transit_encryption_port: ::Integer?,
348
+ authorization_config: {
349
+ access_point_id: ::String?,
350
+ iam: ("ENABLED" | "DISABLED")?
351
+ }?
352
+ }?
353
+ },
354
+ ]?,
355
+ environment: Array[
356
+ {
357
+ name: ::String?,
358
+ value: ::String?
359
+ },
360
+ ]?,
361
+ mount_points: Array[
362
+ {
363
+ container_path: ::String?,
364
+ read_only: bool?,
365
+ source_volume: ::String?
366
+ },
367
+ ]?,
368
+ readonly_root_filesystem: bool?,
369
+ privileged: bool?,
370
+ ulimits: Array[
371
+ {
372
+ hard_limit: ::Integer,
373
+ name: ::String,
374
+ soft_limit: ::Integer
375
+ },
376
+ ]?,
377
+ user: ::String?,
378
+ instance_type: ::String?,
379
+ resource_requirements: Array[
380
+ {
381
+ value: ::String,
382
+ type: ("GPU" | "VCPU" | "MEMORY")
383
+ },
384
+ ]?,
385
+ linux_parameters: {
386
+ devices: Array[
387
+ {
388
+ host_path: ::String,
389
+ container_path: ::String?,
390
+ permissions: Array[("READ" | "WRITE" | "MKNOD")]?
391
+ },
392
+ ]?,
393
+ init_process_enabled: bool?,
394
+ shared_memory_size: ::Integer?,
395
+ tmpfs: Array[
396
+ {
397
+ container_path: ::String,
398
+ size: ::Integer,
399
+ mount_options: Array[::String]?
400
+ },
401
+ ]?,
402
+ max_swap: ::Integer?,
403
+ swappiness: ::Integer?
404
+ }?,
405
+ log_configuration: {
406
+ log_driver: ("json-file" | "syslog" | "journald" | "gelf" | "fluentd" | "awslogs" | "splunk"),
407
+ options: Hash[::String, ::String]?,
408
+ secret_options: Array[
409
+ {
410
+ name: ::String,
411
+ value_from: ::String
412
+ },
413
+ ]?
414
+ }?,
415
+ secrets: Array[
416
+ {
417
+ name: ::String,
418
+ value_from: ::String
419
+ },
420
+ ]?,
421
+ network_configuration: {
422
+ assign_public_ip: ("ENABLED" | "DISABLED")?
423
+ }?,
424
+ fargate_platform_configuration: {
425
+ platform_version: ::String?
426
+ }?,
427
+ ephemeral_storage: {
428
+ size_in_gi_b: ::Integer
429
+ }?,
430
+ runtime_platform: {
431
+ operating_system_family: ::String?,
432
+ cpu_architecture: ::String?
433
+ }?
434
+ },
435
+ ?node_properties: {
436
+ num_nodes: ::Integer,
437
+ main_node: ::Integer,
438
+ node_range_properties: Array[
439
+ {
440
+ target_nodes: ::String,
441
+ container: {
442
+ image: ::String?,
443
+ vcpus: ::Integer?,
444
+ memory: ::Integer?,
445
+ command: Array[::String]?,
446
+ job_role_arn: ::String?,
447
+ execution_role_arn: ::String?,
448
+ volumes: Array[
449
+ {
450
+ host: {
451
+ source_path: ::String?
452
+ }?,
453
+ name: ::String?,
454
+ efs_volume_configuration: {
455
+ file_system_id: ::String,
456
+ root_directory: ::String?,
457
+ transit_encryption: ("ENABLED" | "DISABLED")?,
458
+ transit_encryption_port: ::Integer?,
459
+ authorization_config: {
460
+ access_point_id: ::String?,
461
+ iam: ("ENABLED" | "DISABLED")?
462
+ }?
463
+ }?
464
+ },
465
+ ]?,
466
+ environment: Array[
467
+ {
468
+ name: ::String?,
469
+ value: ::String?
470
+ },
471
+ ]?,
472
+ mount_points: Array[
473
+ {
474
+ container_path: ::String?,
475
+ read_only: bool?,
476
+ source_volume: ::String?
477
+ },
478
+ ]?,
479
+ readonly_root_filesystem: bool?,
480
+ privileged: bool?,
481
+ ulimits: Array[
482
+ {
483
+ hard_limit: ::Integer,
484
+ name: ::String,
485
+ soft_limit: ::Integer
486
+ },
487
+ ]?,
488
+ user: ::String?,
489
+ instance_type: ::String?,
490
+ resource_requirements: Array[
491
+ {
492
+ value: ::String,
493
+ type: ("GPU" | "VCPU" | "MEMORY")
494
+ },
495
+ ]?,
496
+ linux_parameters: {
497
+ devices: Array[
498
+ {
499
+ host_path: ::String,
500
+ container_path: ::String?,
501
+ permissions: Array[("READ" | "WRITE" | "MKNOD")]?
502
+ },
503
+ ]?,
504
+ init_process_enabled: bool?,
505
+ shared_memory_size: ::Integer?,
506
+ tmpfs: Array[
507
+ {
508
+ container_path: ::String,
509
+ size: ::Integer,
510
+ mount_options: Array[::String]?
511
+ },
512
+ ]?,
513
+ max_swap: ::Integer?,
514
+ swappiness: ::Integer?
515
+ }?,
516
+ log_configuration: {
517
+ log_driver: ("json-file" | "syslog" | "journald" | "gelf" | "fluentd" | "awslogs" | "splunk"),
518
+ options: Hash[::String, ::String]?,
519
+ secret_options: Array[
520
+ {
521
+ name: ::String,
522
+ value_from: ::String
523
+ },
524
+ ]?
525
+ }?,
526
+ secrets: Array[
527
+ {
528
+ name: ::String,
529
+ value_from: ::String
530
+ },
531
+ ]?,
532
+ network_configuration: {
533
+ assign_public_ip: ("ENABLED" | "DISABLED")?
534
+ }?,
535
+ fargate_platform_configuration: {
536
+ platform_version: ::String?
537
+ }?,
538
+ ephemeral_storage: {
539
+ size_in_gi_b: ::Integer
540
+ }?,
541
+ runtime_platform: {
542
+ operating_system_family: ::String?,
543
+ cpu_architecture: ::String?
544
+ }?
545
+ }?
546
+ },
547
+ ]
548
+ },
549
+ ?retry_strategy: {
550
+ attempts: ::Integer?,
551
+ evaluate_on_exit: Array[
552
+ {
553
+ on_status_reason: ::String?,
554
+ on_reason: ::String?,
555
+ on_exit_code: ::String?,
556
+ action: ("RETRY" | "EXIT")
557
+ },
558
+ ]?
559
+ },
560
+ ?propagate_tags: bool,
561
+ ?timeout: {
562
+ attempt_duration_seconds: ::Integer?
563
+ },
564
+ ?tags: Hash[::String, ::String],
565
+ ?platform_capabilities: Array[("EC2" | "FARGATE")],
566
+ ?eks_properties: {
567
+ pod_properties: {
568
+ service_account_name: ::String?,
569
+ host_network: bool?,
570
+ dns_policy: ::String?,
571
+ containers: Array[
572
+ {
573
+ name: ::String?,
574
+ image: ::String,
575
+ image_pull_policy: ::String?,
576
+ command: Array[::String]?,
577
+ args: Array[::String]?,
578
+ env: Array[
579
+ {
580
+ name: ::String,
581
+ value: ::String?
582
+ },
583
+ ]?,
584
+ resources: {
585
+ limits: Hash[::String, ::String]?,
586
+ requests: Hash[::String, ::String]?
587
+ }?,
588
+ volume_mounts: Array[
589
+ {
590
+ name: ::String?,
591
+ mount_path: ::String?,
592
+ read_only: bool?
593
+ },
594
+ ]?,
595
+ security_context: {
596
+ run_as_user: ::Integer?,
597
+ run_as_group: ::Integer?,
598
+ privileged: bool?,
599
+ read_only_root_filesystem: bool?,
600
+ run_as_non_root: bool?
601
+ }?
602
+ },
603
+ ]?,
604
+ volumes: Array[
605
+ {
606
+ name: ::String,
607
+ host_path: {
608
+ path: ::String?
609
+ }?,
610
+ empty_dir: {
611
+ medium: ::String?,
612
+ size_limit: ::String?
613
+ }?,
614
+ secret: {
615
+ secret_name: ::String,
616
+ optional: bool?
617
+ }?
618
+ },
619
+ ]?,
620
+ metadata: {
621
+ labels: Hash[::String, ::String]?
622
+ }?
623
+ }?
624
+ }
625
+ ) -> _RegisterJobDefinitionResponseSuccess
626
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RegisterJobDefinitionResponseSuccess
627
+
628
+ interface _SubmitJobResponseSuccess
629
+ include ::Seahorse::Client::_ResponseSuccess[Types::SubmitJobResponse]
630
+ def job_arn: () -> ::String
631
+ def job_name: () -> ::String
632
+ def job_id: () -> ::String
633
+ end
634
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#submit_job-instance_method
635
+ def submit_job: (
636
+ job_name: ::String,
637
+ job_queue: ::String,
638
+ ?share_identifier: ::String,
639
+ ?scheduling_priority_override: ::Integer,
640
+ ?array_properties: {
641
+ size: ::Integer?
642
+ },
643
+ ?depends_on: Array[
644
+ {
645
+ job_id: ::String?,
646
+ type: ("N_TO_N" | "SEQUENTIAL")?
647
+ },
648
+ ],
649
+ job_definition: ::String,
650
+ ?parameters: Hash[::String, ::String],
651
+ ?container_overrides: {
652
+ vcpus: ::Integer?,
653
+ memory: ::Integer?,
654
+ command: Array[::String]?,
655
+ instance_type: ::String?,
656
+ environment: Array[
657
+ {
658
+ name: ::String?,
659
+ value: ::String?
660
+ },
661
+ ]?,
662
+ resource_requirements: Array[
663
+ {
664
+ value: ::String,
665
+ type: ("GPU" | "VCPU" | "MEMORY")
666
+ },
667
+ ]?
668
+ },
669
+ ?node_overrides: {
670
+ num_nodes: ::Integer?,
671
+ node_property_overrides: Array[
672
+ {
673
+ target_nodes: ::String,
674
+ container_overrides: {
675
+ vcpus: ::Integer?,
676
+ memory: ::Integer?,
677
+ command: Array[::String]?,
678
+ instance_type: ::String?,
679
+ environment: Array[
680
+ {
681
+ name: ::String?,
682
+ value: ::String?
683
+ },
684
+ ]?,
685
+ resource_requirements: Array[
686
+ {
687
+ value: ::String,
688
+ type: ("GPU" | "VCPU" | "MEMORY")
689
+ },
690
+ ]?
691
+ }?
692
+ },
693
+ ]?
694
+ },
695
+ ?retry_strategy: {
696
+ attempts: ::Integer?,
697
+ evaluate_on_exit: Array[
698
+ {
699
+ on_status_reason: ::String?,
700
+ on_reason: ::String?,
701
+ on_exit_code: ::String?,
702
+ action: ("RETRY" | "EXIT")
703
+ },
704
+ ]?
705
+ },
706
+ ?propagate_tags: bool,
707
+ ?timeout: {
708
+ attempt_duration_seconds: ::Integer?
709
+ },
710
+ ?tags: Hash[::String, ::String],
711
+ ?eks_properties_override: {
712
+ pod_properties: {
713
+ containers: Array[
714
+ {
715
+ image: ::String?,
716
+ command: Array[::String]?,
717
+ args: Array[::String]?,
718
+ env: Array[
719
+ {
720
+ name: ::String,
721
+ value: ::String?
722
+ },
723
+ ]?,
724
+ resources: {
725
+ limits: Hash[::String, ::String]?,
726
+ requests: Hash[::String, ::String]?
727
+ }?
728
+ },
729
+ ]?,
730
+ metadata: {
731
+ labels: Hash[::String, ::String]?
732
+ }?
733
+ }?
734
+ }
735
+ ) -> _SubmitJobResponseSuccess
736
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SubmitJobResponseSuccess
737
+
738
+ interface _TagResourceResponseSuccess
739
+ include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse]
740
+ end
741
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#tag_resource-instance_method
742
+ def tag_resource: (
743
+ resource_arn: ::String,
744
+ tags: Hash[::String, ::String]
745
+ ) -> _TagResourceResponseSuccess
746
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess
747
+
748
+ interface _TerminateJobResponseSuccess
749
+ include ::Seahorse::Client::_ResponseSuccess[Types::TerminateJobResponse]
750
+ end
751
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#terminate_job-instance_method
752
+ def terminate_job: (
753
+ job_id: ::String,
754
+ reason: ::String
755
+ ) -> _TerminateJobResponseSuccess
756
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TerminateJobResponseSuccess
757
+
758
+ interface _UntagResourceResponseSuccess
759
+ include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceResponse]
760
+ end
761
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#untag_resource-instance_method
762
+ def untag_resource: (
763
+ resource_arn: ::String,
764
+ tag_keys: Array[::String]
765
+ ) -> _UntagResourceResponseSuccess
766
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
767
+
768
+ interface _UpdateComputeEnvironmentResponseSuccess
769
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateComputeEnvironmentResponse]
770
+ def compute_environment_name: () -> ::String
771
+ def compute_environment_arn: () -> ::String
772
+ end
773
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#update_compute_environment-instance_method
774
+ def update_compute_environment: (
775
+ compute_environment: ::String,
776
+ ?state: ("ENABLED" | "DISABLED"),
777
+ ?unmanagedv_cpus: ::Integer,
778
+ ?compute_resources: {
779
+ minv_cpus: ::Integer?,
780
+ maxv_cpus: ::Integer?,
781
+ desiredv_cpus: ::Integer?,
782
+ subnets: Array[::String]?,
783
+ security_group_ids: Array[::String]?,
784
+ allocation_strategy: ("BEST_FIT_PROGRESSIVE" | "SPOT_CAPACITY_OPTIMIZED" | "SPOT_PRICE_CAPACITY_OPTIMIZED")?,
785
+ instance_types: Array[::String]?,
786
+ ec2_key_pair: ::String?,
787
+ instance_role: ::String?,
788
+ tags: Hash[::String, ::String]?,
789
+ placement_group: ::String?,
790
+ bid_percentage: ::Integer?,
791
+ launch_template: {
792
+ launch_template_id: ::String?,
793
+ launch_template_name: ::String?,
794
+ version: ::String?
795
+ }?,
796
+ ec2_configuration: Array[
797
+ {
798
+ image_type: ::String,
799
+ image_id_override: ::String?,
800
+ image_kubernetes_version: ::String?
801
+ },
802
+ ]?,
803
+ update_to_latest_image_version: bool?,
804
+ type: ("EC2" | "SPOT" | "FARGATE" | "FARGATE_SPOT")?,
805
+ image_id: ::String?
806
+ },
807
+ ?service_role: ::String,
808
+ ?update_policy: {
809
+ terminate_jobs_on_update: bool?,
810
+ job_execution_timeout_minutes: ::Integer?
811
+ }
812
+ ) -> _UpdateComputeEnvironmentResponseSuccess
813
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateComputeEnvironmentResponseSuccess
814
+
815
+ interface _UpdateJobQueueResponseSuccess
816
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateJobQueueResponse]
817
+ def job_queue_name: () -> ::String
818
+ def job_queue_arn: () -> ::String
819
+ end
820
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#update_job_queue-instance_method
821
+ def update_job_queue: (
822
+ job_queue: ::String,
823
+ ?state: ("ENABLED" | "DISABLED"),
824
+ ?scheduling_policy_arn: ::String,
825
+ ?priority: ::Integer,
826
+ ?compute_environment_order: Array[
827
+ {
828
+ order: ::Integer,
829
+ compute_environment: ::String
830
+ },
831
+ ]
832
+ ) -> _UpdateJobQueueResponseSuccess
833
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateJobQueueResponseSuccess
834
+
835
+ interface _UpdateSchedulingPolicyResponseSuccess
836
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateSchedulingPolicyResponse]
837
+ end
838
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#update_scheduling_policy-instance_method
839
+ def update_scheduling_policy: (
840
+ arn: ::String,
841
+ ?fairshare_policy: {
842
+ share_decay_seconds: ::Integer?,
843
+ compute_reservation: ::Integer?,
844
+ share_distribution: Array[
845
+ {
846
+ share_identifier: ::String,
847
+ weight_factor: ::Float?
848
+ },
849
+ ]?
850
+ }
851
+ ) -> _UpdateSchedulingPolicyResponseSuccess
852
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateSchedulingPolicyResponseSuccess
853
+ end
854
+ end
855
+ end
856
+