aws-sdk-batch 1.63.0 → 1.95.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 ADDED
@@ -0,0 +1,1386 @@
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
+ ?sigv4a_signing_region_set: Array[String],
52
+ ?stub_responses: untyped,
53
+ ?token_provider: untyped,
54
+ ?use_dualstack_endpoint: bool,
55
+ ?use_fips_endpoint: bool,
56
+ ?validate_params: bool,
57
+ ?endpoint_provider: untyped,
58
+ ?http_proxy: String,
59
+ ?http_open_timeout: (Float | Integer),
60
+ ?http_read_timeout: (Float | Integer),
61
+ ?http_idle_timeout: (Float | Integer),
62
+ ?http_continue_timeout: (Float | Integer),
63
+ ?ssl_timeout: (Float | Integer | nil),
64
+ ?http_wire_trace: bool,
65
+ ?ssl_verify_peer: bool,
66
+ ?ssl_ca_bundle: String,
67
+ ?ssl_ca_directory: String,
68
+ ?ssl_ca_store: String,
69
+ ?on_chunk_received: Proc,
70
+ ?on_chunk_sent: Proc,
71
+ ?raise_response_errors: bool
72
+ ) -> instance
73
+ | (?Hash[Symbol, untyped]) -> instance
74
+
75
+
76
+ interface _CancelJobResponseSuccess
77
+ include ::Seahorse::Client::_ResponseSuccess[Types::CancelJobResponse]
78
+ end
79
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#cancel_job-instance_method
80
+ def cancel_job: (
81
+ job_id: ::String,
82
+ reason: ::String
83
+ ) -> _CancelJobResponseSuccess
84
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CancelJobResponseSuccess
85
+
86
+ interface _CreateComputeEnvironmentResponseSuccess
87
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateComputeEnvironmentResponse]
88
+ def compute_environment_name: () -> ::String
89
+ def compute_environment_arn: () -> ::String
90
+ end
91
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#create_compute_environment-instance_method
92
+ def create_compute_environment: (
93
+ compute_environment_name: ::String,
94
+ type: ("MANAGED" | "UNMANAGED"),
95
+ ?state: ("ENABLED" | "DISABLED"),
96
+ ?unmanagedv_cpus: ::Integer,
97
+ ?compute_resources: {
98
+ type: ("EC2" | "SPOT" | "FARGATE" | "FARGATE_SPOT"),
99
+ allocation_strategy: ("BEST_FIT" | "BEST_FIT_PROGRESSIVE" | "SPOT_CAPACITY_OPTIMIZED" | "SPOT_PRICE_CAPACITY_OPTIMIZED")?,
100
+ minv_cpus: ::Integer?,
101
+ maxv_cpus: ::Integer,
102
+ desiredv_cpus: ::Integer?,
103
+ instance_types: Array[::String]?,
104
+ image_id: ::String?,
105
+ subnets: Array[::String],
106
+ security_group_ids: Array[::String]?,
107
+ ec2_key_pair: ::String?,
108
+ instance_role: ::String?,
109
+ tags: Hash[::String, ::String]?,
110
+ placement_group: ::String?,
111
+ bid_percentage: ::Integer?,
112
+ spot_iam_fleet_role: ::String?,
113
+ launch_template: {
114
+ launch_template_id: ::String?,
115
+ launch_template_name: ::String?,
116
+ version: ::String?
117
+ }?,
118
+ ec2_configuration: Array[
119
+ {
120
+ image_type: ::String,
121
+ image_id_override: ::String?,
122
+ image_kubernetes_version: ::String?
123
+ },
124
+ ]?
125
+ },
126
+ ?service_role: ::String,
127
+ ?tags: Hash[::String, ::String],
128
+ ?eks_configuration: {
129
+ eks_cluster_arn: ::String,
130
+ kubernetes_namespace: ::String
131
+ },
132
+ ?context: ::String
133
+ ) -> _CreateComputeEnvironmentResponseSuccess
134
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateComputeEnvironmentResponseSuccess
135
+
136
+ interface _CreateJobQueueResponseSuccess
137
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateJobQueueResponse]
138
+ def job_queue_name: () -> ::String
139
+ def job_queue_arn: () -> ::String
140
+ end
141
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#create_job_queue-instance_method
142
+ def create_job_queue: (
143
+ job_queue_name: ::String,
144
+ ?state: ("ENABLED" | "DISABLED"),
145
+ ?scheduling_policy_arn: ::String,
146
+ priority: ::Integer,
147
+ compute_environment_order: Array[
148
+ {
149
+ order: ::Integer,
150
+ compute_environment: ::String
151
+ },
152
+ ],
153
+ ?tags: Hash[::String, ::String],
154
+ ?job_state_time_limit_actions: Array[
155
+ {
156
+ reason: ::String,
157
+ state: ("RUNNABLE"),
158
+ max_time_seconds: ::Integer,
159
+ action: ("CANCEL")
160
+ },
161
+ ]
162
+ ) -> _CreateJobQueueResponseSuccess
163
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateJobQueueResponseSuccess
164
+
165
+ interface _CreateSchedulingPolicyResponseSuccess
166
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateSchedulingPolicyResponse]
167
+ def name: () -> ::String
168
+ def arn: () -> ::String
169
+ end
170
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#create_scheduling_policy-instance_method
171
+ def create_scheduling_policy: (
172
+ 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
+ ]?
182
+ },
183
+ ?tags: Hash[::String, ::String]
184
+ ) -> _CreateSchedulingPolicyResponseSuccess
185
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateSchedulingPolicyResponseSuccess
186
+
187
+ interface _DeleteComputeEnvironmentResponseSuccess
188
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteComputeEnvironmentResponse]
189
+ end
190
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#delete_compute_environment-instance_method
191
+ def delete_compute_environment: (
192
+ compute_environment: ::String
193
+ ) -> _DeleteComputeEnvironmentResponseSuccess
194
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteComputeEnvironmentResponseSuccess
195
+
196
+ interface _DeleteJobQueueResponseSuccess
197
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteJobQueueResponse]
198
+ end
199
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#delete_job_queue-instance_method
200
+ def delete_job_queue: (
201
+ job_queue: ::String
202
+ ) -> _DeleteJobQueueResponseSuccess
203
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteJobQueueResponseSuccess
204
+
205
+ interface _DeleteSchedulingPolicyResponseSuccess
206
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteSchedulingPolicyResponse]
207
+ end
208
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#delete_scheduling_policy-instance_method
209
+ def delete_scheduling_policy: (
210
+ arn: ::String
211
+ ) -> _DeleteSchedulingPolicyResponseSuccess
212
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteSchedulingPolicyResponseSuccess
213
+
214
+ interface _DeregisterJobDefinitionResponseSuccess
215
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeregisterJobDefinitionResponse]
216
+ end
217
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#deregister_job_definition-instance_method
218
+ def deregister_job_definition: (
219
+ job_definition: ::String
220
+ ) -> _DeregisterJobDefinitionResponseSuccess
221
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeregisterJobDefinitionResponseSuccess
222
+
223
+ interface _DescribeComputeEnvironmentsResponseSuccess
224
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeComputeEnvironmentsResponse]
225
+ def compute_environments: () -> ::Array[Types::ComputeEnvironmentDetail]
226
+ def next_token: () -> ::String
227
+ end
228
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#describe_compute_environments-instance_method
229
+ def describe_compute_environments: (
230
+ ?compute_environments: Array[::String],
231
+ ?max_results: ::Integer,
232
+ ?next_token: ::String
233
+ ) -> _DescribeComputeEnvironmentsResponseSuccess
234
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeComputeEnvironmentsResponseSuccess
235
+
236
+ interface _DescribeJobDefinitionsResponseSuccess
237
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeJobDefinitionsResponse]
238
+ def job_definitions: () -> ::Array[Types::JobDefinition]
239
+ def next_token: () -> ::String
240
+ end
241
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#describe_job_definitions-instance_method
242
+ def describe_job_definitions: (
243
+ ?job_definitions: Array[::String],
244
+ ?max_results: ::Integer,
245
+ ?job_definition_name: ::String,
246
+ ?status: ::String,
247
+ ?next_token: ::String
248
+ ) -> _DescribeJobDefinitionsResponseSuccess
249
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeJobDefinitionsResponseSuccess
250
+
251
+ interface _DescribeJobQueuesResponseSuccess
252
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeJobQueuesResponse]
253
+ def job_queues: () -> ::Array[Types::JobQueueDetail]
254
+ def next_token: () -> ::String
255
+ end
256
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#describe_job_queues-instance_method
257
+ def describe_job_queues: (
258
+ ?job_queues: Array[::String],
259
+ ?max_results: ::Integer,
260
+ ?next_token: ::String
261
+ ) -> _DescribeJobQueuesResponseSuccess
262
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeJobQueuesResponseSuccess
263
+
264
+ interface _DescribeJobsResponseSuccess
265
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeJobsResponse]
266
+ def jobs: () -> ::Array[Types::JobDetail]
267
+ end
268
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#describe_jobs-instance_method
269
+ def describe_jobs: (
270
+ jobs: Array[::String]
271
+ ) -> _DescribeJobsResponseSuccess
272
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeJobsResponseSuccess
273
+
274
+ interface _DescribeSchedulingPoliciesResponseSuccess
275
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeSchedulingPoliciesResponse]
276
+ def scheduling_policies: () -> ::Array[Types::SchedulingPolicyDetail]
277
+ end
278
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#describe_scheduling_policies-instance_method
279
+ def describe_scheduling_policies: (
280
+ arns: Array[::String]
281
+ ) -> _DescribeSchedulingPoliciesResponseSuccess
282
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeSchedulingPoliciesResponseSuccess
283
+
284
+ interface _GetJobQueueSnapshotResponseSuccess
285
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetJobQueueSnapshotResponse]
286
+ def front_of_queue: () -> Types::FrontOfQueueDetail
287
+ end
288
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#get_job_queue_snapshot-instance_method
289
+ def get_job_queue_snapshot: (
290
+ job_queue: ::String
291
+ ) -> _GetJobQueueSnapshotResponseSuccess
292
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetJobQueueSnapshotResponseSuccess
293
+
294
+ interface _ListJobsResponseSuccess
295
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListJobsResponse]
296
+ def job_summary_list: () -> ::Array[Types::JobSummary]
297
+ def next_token: () -> ::String
298
+ end
299
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#list_jobs-instance_method
300
+ def list_jobs: (
301
+ ?job_queue: ::String,
302
+ ?array_job_id: ::String,
303
+ ?multi_node_job_id: ::String,
304
+ ?job_status: ("SUBMITTED" | "PENDING" | "RUNNABLE" | "STARTING" | "RUNNING" | "SUCCEEDED" | "FAILED"),
305
+ ?max_results: ::Integer,
306
+ ?next_token: ::String,
307
+ ?filters: Array[
308
+ {
309
+ name: ::String?,
310
+ values: Array[::String]?
311
+ },
312
+ ]
313
+ ) -> _ListJobsResponseSuccess
314
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListJobsResponseSuccess
315
+
316
+ interface _ListSchedulingPoliciesResponseSuccess
317
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListSchedulingPoliciesResponse]
318
+ def scheduling_policies: () -> ::Array[Types::SchedulingPolicyListingDetail]
319
+ def next_token: () -> ::String
320
+ end
321
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#list_scheduling_policies-instance_method
322
+ def list_scheduling_policies: (
323
+ ?max_results: ::Integer,
324
+ ?next_token: ::String
325
+ ) -> _ListSchedulingPoliciesResponseSuccess
326
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListSchedulingPoliciesResponseSuccess
327
+
328
+ interface _ListTagsForResourceResponseSuccess
329
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
330
+ def tags: () -> ::Hash[::String, ::String]
331
+ end
332
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#list_tags_for_resource-instance_method
333
+ def list_tags_for_resource: (
334
+ resource_arn: ::String
335
+ ) -> _ListTagsForResourceResponseSuccess
336
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
337
+
338
+ interface _RegisterJobDefinitionResponseSuccess
339
+ include ::Seahorse::Client::_ResponseSuccess[Types::RegisterJobDefinitionResponse]
340
+ def job_definition_name: () -> ::String
341
+ def job_definition_arn: () -> ::String
342
+ def revision: () -> ::Integer
343
+ end
344
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#register_job_definition-instance_method
345
+ def register_job_definition: (
346
+ job_definition_name: ::String,
347
+ type: ("container" | "multinode"),
348
+ ?parameters: Hash[::String, ::String],
349
+ ?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
+ },
458
+ ?node_properties: {
459
+ num_nodes: ::Integer,
460
+ main_node: ::Integer,
461
+ node_range_properties: Array[
462
+ {
463
+ 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
+ }?,
572
+ instance_types: Array[::String]?,
573
+ ecs_properties: {
574
+ task_properties: Array[
575
+ {
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
+ }?
793
+ }?
794
+ },
795
+ ]
796
+ },
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
+ },
808
+ ?propagate_tags: bool,
809
+ ?timeout: {
810
+ attempt_duration_seconds: ::Integer?
811
+ },
812
+ ?tags: Hash[::String, ::String],
813
+ ?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[
916
+ {
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
+ ]
1034
+ }
1035
+ ) -> _RegisterJobDefinitionResponseSuccess
1036
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RegisterJobDefinitionResponseSuccess
1037
+
1038
+ interface _SubmitJobResponseSuccess
1039
+ include ::Seahorse::Client::_ResponseSuccess[Types::SubmitJobResponse]
1040
+ def job_arn: () -> ::String
1041
+ def job_name: () -> ::String
1042
+ def job_id: () -> ::String
1043
+ end
1044
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#submit_job-instance_method
1045
+ def submit_job: (
1046
+ job_name: ::String,
1047
+ job_queue: ::String,
1048
+ ?share_identifier: ::String,
1049
+ ?scheduling_priority_override: ::Integer,
1050
+ ?array_properties: {
1051
+ size: ::Integer?
1052
+ },
1053
+ ?depends_on: Array[
1054
+ {
1055
+ job_id: ::String?,
1056
+ type: ("N_TO_N" | "SEQUENTIAL")?
1057
+ },
1058
+ ],
1059
+ job_definition: ::String,
1060
+ ?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
+ },
1079
+ ?node_overrides: {
1080
+ num_nodes: ::Integer?,
1081
+ node_property_overrides: Array[
1082
+ {
1083
+ 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[
1096
+ {
1097
+ value: ::String,
1098
+ type: ("GPU" | "VCPU" | "MEMORY")
1099
+ },
1100
+ ]?
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
+ }?
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
+ },
1182
+ ]?
1183
+ },
1184
+ ?propagate_tags: bool,
1185
+ ?timeout: {
1186
+ attempt_duration_seconds: ::Integer?
1187
+ },
1188
+ ?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[
1234
+ {
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
+ },
1254
+ ]?
1255
+ }
1256
+ ) -> _SubmitJobResponseSuccess
1257
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SubmitJobResponseSuccess
1258
+
1259
+ interface _TagResourceResponseSuccess
1260
+ include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse]
1261
+ end
1262
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#tag_resource-instance_method
1263
+ def tag_resource: (
1264
+ resource_arn: ::String,
1265
+ tags: Hash[::String, ::String]
1266
+ ) -> _TagResourceResponseSuccess
1267
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess
1268
+
1269
+ interface _TerminateJobResponseSuccess
1270
+ include ::Seahorse::Client::_ResponseSuccess[Types::TerminateJobResponse]
1271
+ end
1272
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#terminate_job-instance_method
1273
+ def terminate_job: (
1274
+ job_id: ::String,
1275
+ reason: ::String
1276
+ ) -> _TerminateJobResponseSuccess
1277
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TerminateJobResponseSuccess
1278
+
1279
+ interface _UntagResourceResponseSuccess
1280
+ include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceResponse]
1281
+ end
1282
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#untag_resource-instance_method
1283
+ def untag_resource: (
1284
+ resource_arn: ::String,
1285
+ tag_keys: Array[::String]
1286
+ ) -> _UntagResourceResponseSuccess
1287
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
1288
+
1289
+ interface _UpdateComputeEnvironmentResponseSuccess
1290
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateComputeEnvironmentResponse]
1291
+ def compute_environment_name: () -> ::String
1292
+ def compute_environment_arn: () -> ::String
1293
+ end
1294
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#update_compute_environment-instance_method
1295
+ def update_compute_environment: (
1296
+ compute_environment: ::String,
1297
+ ?state: ("ENABLED" | "DISABLED"),
1298
+ ?unmanagedv_cpus: ::Integer,
1299
+ ?compute_resources: {
1300
+ minv_cpus: ::Integer?,
1301
+ maxv_cpus: ::Integer?,
1302
+ desiredv_cpus: ::Integer?,
1303
+ subnets: Array[::String]?,
1304
+ security_group_ids: Array[::String]?,
1305
+ allocation_strategy: ("BEST_FIT_PROGRESSIVE" | "SPOT_CAPACITY_OPTIMIZED" | "SPOT_PRICE_CAPACITY_OPTIMIZED")?,
1306
+ instance_types: Array[::String]?,
1307
+ ec2_key_pair: ::String?,
1308
+ instance_role: ::String?,
1309
+ tags: Hash[::String, ::String]?,
1310
+ placement_group: ::String?,
1311
+ bid_percentage: ::Integer?,
1312
+ launch_template: {
1313
+ launch_template_id: ::String?,
1314
+ launch_template_name: ::String?,
1315
+ version: ::String?
1316
+ }?,
1317
+ ec2_configuration: Array[
1318
+ {
1319
+ image_type: ::String,
1320
+ image_id_override: ::String?,
1321
+ image_kubernetes_version: ::String?
1322
+ },
1323
+ ]?,
1324
+ update_to_latest_image_version: bool?,
1325
+ type: ("EC2" | "SPOT" | "FARGATE" | "FARGATE_SPOT")?,
1326
+ image_id: ::String?
1327
+ },
1328
+ ?service_role: ::String,
1329
+ ?update_policy: {
1330
+ terminate_jobs_on_update: bool?,
1331
+ job_execution_timeout_minutes: ::Integer?
1332
+ },
1333
+ ?context: ::String
1334
+ ) -> _UpdateComputeEnvironmentResponseSuccess
1335
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateComputeEnvironmentResponseSuccess
1336
+
1337
+ interface _UpdateJobQueueResponseSuccess
1338
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateJobQueueResponse]
1339
+ def job_queue_name: () -> ::String
1340
+ def job_queue_arn: () -> ::String
1341
+ end
1342
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#update_job_queue-instance_method
1343
+ def update_job_queue: (
1344
+ job_queue: ::String,
1345
+ ?state: ("ENABLED" | "DISABLED"),
1346
+ ?scheduling_policy_arn: ::String,
1347
+ ?priority: ::Integer,
1348
+ ?compute_environment_order: Array[
1349
+ {
1350
+ order: ::Integer,
1351
+ compute_environment: ::String
1352
+ },
1353
+ ],
1354
+ ?job_state_time_limit_actions: Array[
1355
+ {
1356
+ reason: ::String,
1357
+ state: ("RUNNABLE"),
1358
+ max_time_seconds: ::Integer,
1359
+ action: ("CANCEL")
1360
+ },
1361
+ ]
1362
+ ) -> _UpdateJobQueueResponseSuccess
1363
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateJobQueueResponseSuccess
1364
+
1365
+ interface _UpdateSchedulingPolicyResponseSuccess
1366
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateSchedulingPolicyResponse]
1367
+ end
1368
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#update_scheduling_policy-instance_method
1369
+ def update_scheduling_policy: (
1370
+ 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
+ }
1381
+ ) -> _UpdateSchedulingPolicyResponseSuccess
1382
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateSchedulingPolicyResponseSuccess
1383
+ end
1384
+ end
1385
+ end
1386
+