aws-sdk-batch 1.0.0.rc5 → 1.0.0.rc6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-batch.rb +1 -1
- data/lib/aws-sdk-batch/client.rb +484 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ad7a5f00bc7479b38b89503028cffff3b0ff7aa
|
4
|
+
data.tar.gz: aa19dded0ad398fdcc348ce2a400ebfb7b8220a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e8081c901e77e3dc9f83e101f7198df4e6d4eee8d4584b085f2eb439895977f34ab58a0ddc8b46e2757807b8dd18c08239cb82c458e544c06f9f1ffdda68219
|
7
|
+
data.tar.gz: ce8f2d25ac5fa04b5a7a6f1b5158d912c64a150a7121e299805b1d3cc55f5f8aa7a75889da47fe1b411e78b643f57df1b48643e004bf1052b30faaa8fc6363f2
|
data/lib/aws-sdk-batch.rb
CHANGED
data/lib/aws-sdk-batch/client.rb
CHANGED
@@ -161,6 +161,20 @@ module Aws::Batch
|
|
161
161
|
#
|
162
162
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
163
163
|
#
|
164
|
+
#
|
165
|
+
# @example Example: To cancel a job
|
166
|
+
#
|
167
|
+
# # This example cancels a job with the specified job ID.
|
168
|
+
#
|
169
|
+
# resp = client.cancel_job({
|
170
|
+
# job_id: "1d828f65-7a4d-42e8-996d-3b900ed59dc4",
|
171
|
+
# reason: "Cancelling job.",
|
172
|
+
# })
|
173
|
+
#
|
174
|
+
# resp.to_h outputs the following:
|
175
|
+
# {
|
176
|
+
# }
|
177
|
+
#
|
164
178
|
# @example Request syntax with placeholder values
|
165
179
|
#
|
166
180
|
# resp = client.cancel_job({
|
@@ -231,6 +245,91 @@ module Aws::Batch
|
|
231
245
|
# * {Types::CreateComputeEnvironmentResponse#compute_environment_name #compute_environment_name} => String
|
232
246
|
# * {Types::CreateComputeEnvironmentResponse#compute_environment_arn #compute_environment_arn} => String
|
233
247
|
#
|
248
|
+
#
|
249
|
+
# @example Example: To create a managed EC2 compute environment
|
250
|
+
#
|
251
|
+
# # This example creates a managed compute environment with specific C4 instance types that are launched on demand. The compute environment is called C4OnDemand.
|
252
|
+
#
|
253
|
+
# resp = client.create_compute_environment({
|
254
|
+
# type: "MANAGED",
|
255
|
+
# compute_environment_name: "C4OnDemand",
|
256
|
+
# compute_resources: {
|
257
|
+
# type: "EC2",
|
258
|
+
# desiredv_cpus: 48,
|
259
|
+
# ec2_key_pair: "id_rsa",
|
260
|
+
# instance_role: "ecsInstanceRole",
|
261
|
+
# instance_types: [
|
262
|
+
# "c4.large",
|
263
|
+
# "c4.xlarge",
|
264
|
+
# "c4.2xlarge",
|
265
|
+
# "c4.4xlarge",
|
266
|
+
# "c4.8xlarge",
|
267
|
+
# ],
|
268
|
+
# maxv_cpus: 128,
|
269
|
+
# minv_cpus: 0,
|
270
|
+
# security_group_ids: [
|
271
|
+
# "sg-cf5093b2",
|
272
|
+
# ],
|
273
|
+
# subnets: [
|
274
|
+
# "subnet-220c0e0a",
|
275
|
+
# "subnet-1a95556d",
|
276
|
+
# "subnet-978f6dce",
|
277
|
+
# ],
|
278
|
+
# tags: {
|
279
|
+
# "Name" => "Batch Instance - C4OnDemand",
|
280
|
+
# },
|
281
|
+
# },
|
282
|
+
# service_role: "arn:aws:iam::012345678910:role/AWSBatchServiceRole",
|
283
|
+
# state: "ENABLED",
|
284
|
+
# })
|
285
|
+
#
|
286
|
+
# resp.to_h outputs the following:
|
287
|
+
# {
|
288
|
+
# compute_environment_arn: "arn:aws:batch:us-east-1:012345678910:compute-environment/C4OnDemand",
|
289
|
+
# compute_environment_name: "C4OnDemand",
|
290
|
+
# }
|
291
|
+
#
|
292
|
+
# @example Example: To create a managed EC2 Spot compute environment
|
293
|
+
#
|
294
|
+
# # This example creates a managed compute environment with the M4 instance type that is launched when the Spot bid price is at or below 20% of the On-Demand price for the instance type. The compute environment is called M4Spot.
|
295
|
+
#
|
296
|
+
# resp = client.create_compute_environment({
|
297
|
+
# type: "MANAGED",
|
298
|
+
# compute_environment_name: "M4Spot",
|
299
|
+
# compute_resources: {
|
300
|
+
# type: "SPOT",
|
301
|
+
# bid_percentage: 20,
|
302
|
+
# desiredv_cpus: 4,
|
303
|
+
# ec2_key_pair: "id_rsa",
|
304
|
+
# instance_role: "ecsInstanceRole",
|
305
|
+
# instance_types: [
|
306
|
+
# "m4",
|
307
|
+
# ],
|
308
|
+
# maxv_cpus: 128,
|
309
|
+
# minv_cpus: 0,
|
310
|
+
# security_group_ids: [
|
311
|
+
# "sg-cf5093b2",
|
312
|
+
# ],
|
313
|
+
# spot_iam_fleet_role: "arn:aws:iam::012345678910:role/aws-ec2-spot-fleet-role",
|
314
|
+
# subnets: [
|
315
|
+
# "subnet-220c0e0a",
|
316
|
+
# "subnet-1a95556d",
|
317
|
+
# "subnet-978f6dce",
|
318
|
+
# ],
|
319
|
+
# tags: {
|
320
|
+
# "Name" => "Batch Instance - M4Spot",
|
321
|
+
# },
|
322
|
+
# },
|
323
|
+
# service_role: "arn:aws:iam::012345678910:role/AWSBatchServiceRole",
|
324
|
+
# state: "ENABLED",
|
325
|
+
# })
|
326
|
+
#
|
327
|
+
# resp.to_h outputs the following:
|
328
|
+
# {
|
329
|
+
# compute_environment_arn: "arn:aws:batch:us-east-1:012345678910:compute-environment/M4Spot",
|
330
|
+
# compute_environment_name: "M4Spot",
|
331
|
+
# }
|
332
|
+
#
|
234
333
|
# @example Request syntax with placeholder values
|
235
334
|
#
|
236
335
|
# resp = client.create_compute_environment({
|
@@ -309,6 +408,55 @@ module Aws::Batch
|
|
309
408
|
# * {Types::CreateJobQueueResponse#job_queue_name #job_queue_name} => String
|
310
409
|
# * {Types::CreateJobQueueResponse#job_queue_arn #job_queue_arn} => String
|
311
410
|
#
|
411
|
+
#
|
412
|
+
# @example Example: To create a job queue with a single compute environment
|
413
|
+
#
|
414
|
+
# # This example creates a job queue called LowPriority that uses the M4Spot compute environment.
|
415
|
+
#
|
416
|
+
# resp = client.create_job_queue({
|
417
|
+
# compute_environment_order: [
|
418
|
+
# {
|
419
|
+
# compute_environment: "M4Spot",
|
420
|
+
# order: 1,
|
421
|
+
# },
|
422
|
+
# ],
|
423
|
+
# job_queue_name: "LowPriority",
|
424
|
+
# priority: 10,
|
425
|
+
# state: "ENABLED",
|
426
|
+
# })
|
427
|
+
#
|
428
|
+
# resp.to_h outputs the following:
|
429
|
+
# {
|
430
|
+
# job_queue_arn: "arn:aws:batch:us-east-1:012345678910:job-queue/LowPriority",
|
431
|
+
# job_queue_name: "LowPriority",
|
432
|
+
# }
|
433
|
+
#
|
434
|
+
# @example Example: To create a job queue with multiple compute environments
|
435
|
+
#
|
436
|
+
# # This example creates a job queue called HighPriority that uses the C4OnDemand compute environment with an order of 1 and the M4Spot compute environment with an order of 2.
|
437
|
+
#
|
438
|
+
# resp = client.create_job_queue({
|
439
|
+
# compute_environment_order: [
|
440
|
+
# {
|
441
|
+
# compute_environment: "C4OnDemand",
|
442
|
+
# order: 1,
|
443
|
+
# },
|
444
|
+
# {
|
445
|
+
# compute_environment: "M4Spot",
|
446
|
+
# order: 2,
|
447
|
+
# },
|
448
|
+
# ],
|
449
|
+
# job_queue_name: "HighPriority",
|
450
|
+
# priority: 1,
|
451
|
+
# state: "ENABLED",
|
452
|
+
# })
|
453
|
+
#
|
454
|
+
# resp.to_h outputs the following:
|
455
|
+
# {
|
456
|
+
# job_queue_arn: "arn:aws:batch:us-east-1:012345678910:job-queue/HighPriority",
|
457
|
+
# job_queue_name: "HighPriority",
|
458
|
+
# }
|
459
|
+
#
|
312
460
|
# @example Request syntax with placeholder values
|
313
461
|
#
|
314
462
|
# resp = client.create_job_queue({
|
@@ -350,6 +498,19 @@ module Aws::Batch
|
|
350
498
|
#
|
351
499
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
352
500
|
#
|
501
|
+
#
|
502
|
+
# @example Example: To delete a compute environment
|
503
|
+
#
|
504
|
+
# # This example deletes the P2OnDemand compute environment.
|
505
|
+
#
|
506
|
+
# resp = client.delete_compute_environment({
|
507
|
+
# compute_environment: "P2OnDemand",
|
508
|
+
# })
|
509
|
+
#
|
510
|
+
# resp.to_h outputs the following:
|
511
|
+
# {
|
512
|
+
# }
|
513
|
+
#
|
353
514
|
# @example Request syntax with placeholder values
|
354
515
|
#
|
355
516
|
# resp = client.delete_compute_environment({
|
@@ -378,6 +539,19 @@ module Aws::Batch
|
|
378
539
|
#
|
379
540
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
380
541
|
#
|
542
|
+
#
|
543
|
+
# @example Example: To delete a job queue
|
544
|
+
#
|
545
|
+
# # This example deletes the GPGPU job queue.
|
546
|
+
#
|
547
|
+
# resp = client.delete_job_queue({
|
548
|
+
# job_queue: "GPGPU",
|
549
|
+
# })
|
550
|
+
#
|
551
|
+
# resp.to_h outputs the following:
|
552
|
+
# {
|
553
|
+
# }
|
554
|
+
#
|
381
555
|
# @example Request syntax with placeholder values
|
382
556
|
#
|
383
557
|
# resp = client.delete_job_queue({
|
@@ -401,6 +575,19 @@ module Aws::Batch
|
|
401
575
|
#
|
402
576
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
403
577
|
#
|
578
|
+
#
|
579
|
+
# @example Example: To deregister a job definition
|
580
|
+
#
|
581
|
+
# # This example deregisters a job definition called sleep10.
|
582
|
+
#
|
583
|
+
# resp = client.deregister_job_definition({
|
584
|
+
# job_definition: "sleep10",
|
585
|
+
# })
|
586
|
+
#
|
587
|
+
# resp.to_h outputs the following:
|
588
|
+
# {
|
589
|
+
# }
|
590
|
+
#
|
404
591
|
# @example Request syntax with placeholder values
|
405
592
|
#
|
406
593
|
# resp = client.deregister_job_definition({
|
@@ -456,6 +643,55 @@ module Aws::Batch
|
|
456
643
|
# * {Types::DescribeComputeEnvironmentsResponse#compute_environments #compute_environments} => Array<Types::ComputeEnvironmentDetail>
|
457
644
|
# * {Types::DescribeComputeEnvironmentsResponse#next_token #next_token} => String
|
458
645
|
#
|
646
|
+
#
|
647
|
+
# @example Example: To describe a compute environment
|
648
|
+
#
|
649
|
+
# # This example describes the P2OnDemand compute environment.
|
650
|
+
#
|
651
|
+
# resp = client.describe_compute_environments({
|
652
|
+
# compute_environments: [
|
653
|
+
# "P2OnDemand",
|
654
|
+
# ],
|
655
|
+
# })
|
656
|
+
#
|
657
|
+
# resp.to_h outputs the following:
|
658
|
+
# {
|
659
|
+
# compute_environments: [
|
660
|
+
# {
|
661
|
+
# type: "MANAGED",
|
662
|
+
# compute_environment_arn: "arn:aws:batch:us-east-1:012345678910:compute-environment/P2OnDemand",
|
663
|
+
# compute_environment_name: "P2OnDemand",
|
664
|
+
# compute_resources: {
|
665
|
+
# type: "EC2",
|
666
|
+
# desiredv_cpus: 48,
|
667
|
+
# ec2_key_pair: "id_rsa",
|
668
|
+
# instance_role: "ecsInstanceRole",
|
669
|
+
# instance_types: [
|
670
|
+
# "p2",
|
671
|
+
# ],
|
672
|
+
# maxv_cpus: 128,
|
673
|
+
# minv_cpus: 0,
|
674
|
+
# security_group_ids: [
|
675
|
+
# "sg-cf5093b2",
|
676
|
+
# ],
|
677
|
+
# subnets: [
|
678
|
+
# "subnet-220c0e0a",
|
679
|
+
# "subnet-1a95556d",
|
680
|
+
# "subnet-978f6dce",
|
681
|
+
# ],
|
682
|
+
# tags: {
|
683
|
+
# "Name" => "Batch Instance - P2OnDemand",
|
684
|
+
# },
|
685
|
+
# },
|
686
|
+
# ecs_cluster_arn: "arn:aws:ecs:us-east-1:012345678910:cluster/P2OnDemand_Batch_2c06f29d-d1fe-3a49-879d-42394c86effc",
|
687
|
+
# service_role: "arn:aws:iam::012345678910:role/AWSBatchServiceRole",
|
688
|
+
# state: "ENABLED",
|
689
|
+
# status: "VALID",
|
690
|
+
# status_reason: "ComputeEnvironment Healthy",
|
691
|
+
# },
|
692
|
+
# ],
|
693
|
+
# }
|
694
|
+
#
|
459
695
|
# @example Request syntax with placeholder values
|
460
696
|
#
|
461
697
|
# resp = client.describe_compute_environments({
|
@@ -545,6 +781,45 @@ module Aws::Batch
|
|
545
781
|
# * {Types::DescribeJobDefinitionsResponse#job_definitions #job_definitions} => Array<Types::JobDefinition>
|
546
782
|
# * {Types::DescribeJobDefinitionsResponse#next_token #next_token} => String
|
547
783
|
#
|
784
|
+
#
|
785
|
+
# @example Example: To describe active job definitions
|
786
|
+
#
|
787
|
+
# # This example describes all of your active job definitions.
|
788
|
+
#
|
789
|
+
# resp = client.describe_job_definitions({
|
790
|
+
# status: "ACTIVE",
|
791
|
+
# })
|
792
|
+
#
|
793
|
+
# resp.to_h outputs the following:
|
794
|
+
# {
|
795
|
+
# job_definitions: [
|
796
|
+
# {
|
797
|
+
# type: "container",
|
798
|
+
# container_properties: {
|
799
|
+
# command: [
|
800
|
+
# "sleep",
|
801
|
+
# "60",
|
802
|
+
# ],
|
803
|
+
# environment: [
|
804
|
+
# ],
|
805
|
+
# image: "busybox",
|
806
|
+
# memory: 128,
|
807
|
+
# mount_points: [
|
808
|
+
# ],
|
809
|
+
# ulimits: [
|
810
|
+
# ],
|
811
|
+
# vcpus: 1,
|
812
|
+
# volumes: [
|
813
|
+
# ],
|
814
|
+
# },
|
815
|
+
# job_definition_arn: "arn:aws:batch:us-east-1:012345678910:job-definition/sleep60:1",
|
816
|
+
# job_definition_name: "sleep60",
|
817
|
+
# revision: 1,
|
818
|
+
# status: "ACTIVE",
|
819
|
+
# },
|
820
|
+
# ],
|
821
|
+
# }
|
822
|
+
#
|
548
823
|
# @example Request syntax with placeholder values
|
549
824
|
#
|
550
825
|
# resp = client.describe_job_definitions({
|
@@ -634,6 +909,37 @@ module Aws::Batch
|
|
634
909
|
# * {Types::DescribeJobQueuesResponse#job_queues #job_queues} => Array<Types::JobQueueDetail>
|
635
910
|
# * {Types::DescribeJobQueuesResponse#next_token #next_token} => String
|
636
911
|
#
|
912
|
+
#
|
913
|
+
# @example Example: To describe a job queue
|
914
|
+
#
|
915
|
+
# # This example describes the HighPriority job queue.
|
916
|
+
#
|
917
|
+
# resp = client.describe_job_queues({
|
918
|
+
# job_queues: [
|
919
|
+
# "HighPriority",
|
920
|
+
# ],
|
921
|
+
# })
|
922
|
+
#
|
923
|
+
# resp.to_h outputs the following:
|
924
|
+
# {
|
925
|
+
# job_queues: [
|
926
|
+
# {
|
927
|
+
# compute_environment_order: [
|
928
|
+
# {
|
929
|
+
# compute_environment: "arn:aws:batch:us-east-1:012345678910:compute-environment/C4OnDemand",
|
930
|
+
# order: 1,
|
931
|
+
# },
|
932
|
+
# ],
|
933
|
+
# job_queue_arn: "arn:aws:batch:us-east-1:012345678910:job-queue/HighPriority",
|
934
|
+
# job_queue_name: "HighPriority",
|
935
|
+
# priority: 1,
|
936
|
+
# state: "ENABLED",
|
937
|
+
# status: "VALID",
|
938
|
+
# status_reason: "JobQueue Healthy",
|
939
|
+
# },
|
940
|
+
# ],
|
941
|
+
# }
|
942
|
+
#
|
637
943
|
# @example Request syntax with placeholder values
|
638
944
|
#
|
639
945
|
# resp = client.describe_job_queues({
|
@@ -674,6 +980,56 @@ module Aws::Batch
|
|
674
980
|
#
|
675
981
|
# * {Types::DescribeJobsResponse#jobs #jobs} => Array<Types::JobDetail>
|
676
982
|
#
|
983
|
+
#
|
984
|
+
# @example Example: To describe a specific job
|
985
|
+
#
|
986
|
+
# # This example describes a job with the specified job ID.
|
987
|
+
#
|
988
|
+
# resp = client.describe_jobs({
|
989
|
+
# jobs: [
|
990
|
+
# "24fa2d7a-64c4-49d2-8b47-f8da4fbde8e9",
|
991
|
+
# ],
|
992
|
+
# })
|
993
|
+
#
|
994
|
+
# resp.to_h outputs the following:
|
995
|
+
# {
|
996
|
+
# jobs: [
|
997
|
+
# {
|
998
|
+
# container: {
|
999
|
+
# command: [
|
1000
|
+
# "sleep",
|
1001
|
+
# "60",
|
1002
|
+
# ],
|
1003
|
+
# container_instance_arn: "arn:aws:ecs:us-east-1:012345678910:container-instance/5406d7cd-58bd-4b8f-9936-48d7c6b1526c",
|
1004
|
+
# environment: [
|
1005
|
+
# ],
|
1006
|
+
# exit_code: 0,
|
1007
|
+
# image: "busybox",
|
1008
|
+
# memory: 128,
|
1009
|
+
# mount_points: [
|
1010
|
+
# ],
|
1011
|
+
# ulimits: [
|
1012
|
+
# ],
|
1013
|
+
# vcpus: 1,
|
1014
|
+
# volumes: [
|
1015
|
+
# ],
|
1016
|
+
# },
|
1017
|
+
# created_at: 1480460782010,
|
1018
|
+
# depends_on: [
|
1019
|
+
# ],
|
1020
|
+
# job_definition: "sleep60",
|
1021
|
+
# job_id: "24fa2d7a-64c4-49d2-8b47-f8da4fbde8e9",
|
1022
|
+
# job_name: "example",
|
1023
|
+
# job_queue: "arn:aws:batch:us-east-1:012345678910:job-queue/HighPriority",
|
1024
|
+
# parameters: {
|
1025
|
+
# },
|
1026
|
+
# started_at: 1480460816500,
|
1027
|
+
# status: "SUCCEEDED",
|
1028
|
+
# stopped_at: 1480460880699,
|
1029
|
+
# },
|
1030
|
+
# ],
|
1031
|
+
# }
|
1032
|
+
#
|
677
1033
|
# @example Request syntax with placeholder values
|
678
1034
|
#
|
679
1035
|
# resp = client.describe_jobs({
|
@@ -780,6 +1136,44 @@ module Aws::Batch
|
|
780
1136
|
# * {Types::ListJobsResponse#job_summary_list #job_summary_list} => Array<Types::JobSummary>
|
781
1137
|
# * {Types::ListJobsResponse#next_token #next_token} => String
|
782
1138
|
#
|
1139
|
+
#
|
1140
|
+
# @example Example: To list running jobs
|
1141
|
+
#
|
1142
|
+
# # This example lists the running jobs in the HighPriority job queue.
|
1143
|
+
#
|
1144
|
+
# resp = client.list_jobs({
|
1145
|
+
# job_queue: "HighPriority",
|
1146
|
+
# })
|
1147
|
+
#
|
1148
|
+
# resp.to_h outputs the following:
|
1149
|
+
# {
|
1150
|
+
# job_summary_list: [
|
1151
|
+
# {
|
1152
|
+
# job_id: "e66ff5fd-a1ff-4640-b1a2-0b0a142f49bb",
|
1153
|
+
# job_name: "example",
|
1154
|
+
# },
|
1155
|
+
# ],
|
1156
|
+
# }
|
1157
|
+
#
|
1158
|
+
# @example Example: To list submitted jobs
|
1159
|
+
#
|
1160
|
+
# # This example lists jobs in the HighPriority job queue that are in the SUBMITTED job status.
|
1161
|
+
#
|
1162
|
+
# resp = client.list_jobs({
|
1163
|
+
# job_queue: "HighPriority",
|
1164
|
+
# job_status: "SUBMITTED",
|
1165
|
+
# })
|
1166
|
+
#
|
1167
|
+
# resp.to_h outputs the following:
|
1168
|
+
# {
|
1169
|
+
# job_summary_list: [
|
1170
|
+
# {
|
1171
|
+
# job_id: "68f0c163-fbd4-44e6-9fd1-25b14a434786",
|
1172
|
+
# job_name: "example",
|
1173
|
+
# },
|
1174
|
+
# ],
|
1175
|
+
# }
|
1176
|
+
#
|
783
1177
|
# @example Request syntax with placeholder values
|
784
1178
|
#
|
785
1179
|
# resp = client.list_jobs({
|
@@ -834,6 +1228,32 @@ module Aws::Batch
|
|
834
1228
|
# * {Types::RegisterJobDefinitionResponse#job_definition_arn #job_definition_arn} => String
|
835
1229
|
# * {Types::RegisterJobDefinitionResponse#revision #revision} => Integer
|
836
1230
|
#
|
1231
|
+
#
|
1232
|
+
# @example Example: To register a job definition
|
1233
|
+
#
|
1234
|
+
# # This example registers a job definition for a simple container job.
|
1235
|
+
#
|
1236
|
+
# resp = client.register_job_definition({
|
1237
|
+
# type: "container",
|
1238
|
+
# container_properties: {
|
1239
|
+
# command: [
|
1240
|
+
# "sleep",
|
1241
|
+
# "10",
|
1242
|
+
# ],
|
1243
|
+
# image: "busybox",
|
1244
|
+
# memory: 128,
|
1245
|
+
# vcpus: 1,
|
1246
|
+
# },
|
1247
|
+
# job_definition_name: "sleep10",
|
1248
|
+
# })
|
1249
|
+
#
|
1250
|
+
# resp.to_h outputs the following:
|
1251
|
+
# {
|
1252
|
+
# job_definition_arn: "arn:aws:batch:us-east-1:012345678910:job-definition/sleep10:1",
|
1253
|
+
# job_definition_name: "sleep10",
|
1254
|
+
# revision: 1,
|
1255
|
+
# }
|
1256
|
+
#
|
837
1257
|
# @example Request syntax with placeholder values
|
838
1258
|
#
|
839
1259
|
# resp = client.register_job_definition({
|
@@ -948,6 +1368,23 @@ module Aws::Batch
|
|
948
1368
|
# * {Types::SubmitJobResponse#job_name #job_name} => String
|
949
1369
|
# * {Types::SubmitJobResponse#job_id #job_id} => String
|
950
1370
|
#
|
1371
|
+
#
|
1372
|
+
# @example Example: To submit a job to a queue
|
1373
|
+
#
|
1374
|
+
# # This example submits a simple container job called example to the HighPriority job queue.
|
1375
|
+
#
|
1376
|
+
# resp = client.submit_job({
|
1377
|
+
# job_definition: "sleep60",
|
1378
|
+
# job_name: "example",
|
1379
|
+
# job_queue: "HighPriority",
|
1380
|
+
# })
|
1381
|
+
#
|
1382
|
+
# resp.to_h outputs the following:
|
1383
|
+
# {
|
1384
|
+
# job_id: "876da822-4198-45f2-a252-6cea32512ea8",
|
1385
|
+
# job_name: "example",
|
1386
|
+
# }
|
1387
|
+
#
|
951
1388
|
# @example Request syntax with placeholder values
|
952
1389
|
#
|
953
1390
|
# resp = client.submit_job({
|
@@ -1007,6 +1444,20 @@ module Aws::Batch
|
|
1007
1444
|
#
|
1008
1445
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1009
1446
|
#
|
1447
|
+
#
|
1448
|
+
# @example Example: To terminate a job
|
1449
|
+
#
|
1450
|
+
# # This example terminates a job with the specified job ID.
|
1451
|
+
#
|
1452
|
+
# resp = client.terminate_job({
|
1453
|
+
# job_id: "61e743ed-35e4-48da-b2de-5c8333821c84",
|
1454
|
+
# reason: "Terminating job.",
|
1455
|
+
# })
|
1456
|
+
#
|
1457
|
+
# resp.to_h outputs the following:
|
1458
|
+
# {
|
1459
|
+
# }
|
1460
|
+
#
|
1010
1461
|
# @example Request syntax with placeholder values
|
1011
1462
|
#
|
1012
1463
|
# resp = client.terminate_job({
|
@@ -1048,6 +1499,22 @@ module Aws::Batch
|
|
1048
1499
|
# * {Types::UpdateComputeEnvironmentResponse#compute_environment_name #compute_environment_name} => String
|
1049
1500
|
# * {Types::UpdateComputeEnvironmentResponse#compute_environment_arn #compute_environment_arn} => String
|
1050
1501
|
#
|
1502
|
+
#
|
1503
|
+
# @example Example: To update a compute environment
|
1504
|
+
#
|
1505
|
+
# # This example disables the P2OnDemand compute environment so it can be deleted.
|
1506
|
+
#
|
1507
|
+
# resp = client.update_compute_environment({
|
1508
|
+
# compute_environment: "P2OnDemand",
|
1509
|
+
# state: "DISABLED",
|
1510
|
+
# })
|
1511
|
+
#
|
1512
|
+
# resp.to_h outputs the following:
|
1513
|
+
# {
|
1514
|
+
# compute_environment_arn: "arn:aws:batch:us-east-1:012345678910:compute-environment/P2OnDemand",
|
1515
|
+
# compute_environment_name: "P2OnDemand",
|
1516
|
+
# }
|
1517
|
+
#
|
1051
1518
|
# @example Request syntax with placeholder values
|
1052
1519
|
#
|
1053
1520
|
# resp = client.update_compute_environment({
|
@@ -1102,6 +1569,22 @@ module Aws::Batch
|
|
1102
1569
|
# * {Types::UpdateJobQueueResponse#job_queue_name #job_queue_name} => String
|
1103
1570
|
# * {Types::UpdateJobQueueResponse#job_queue_arn #job_queue_arn} => String
|
1104
1571
|
#
|
1572
|
+
#
|
1573
|
+
# @example Example: To update a job queue
|
1574
|
+
#
|
1575
|
+
# # This example disables a job queue so that it can be deleted.
|
1576
|
+
#
|
1577
|
+
# resp = client.update_job_queue({
|
1578
|
+
# job_queue: "GPGPU",
|
1579
|
+
# state: "DISABLED",
|
1580
|
+
# })
|
1581
|
+
#
|
1582
|
+
# resp.to_h outputs the following:
|
1583
|
+
# {
|
1584
|
+
# job_queue_arn: "arn:aws:batch:us-east-1:012345678910:job-queue/GPGPU",
|
1585
|
+
# job_queue_name: "GPGPU",
|
1586
|
+
# }
|
1587
|
+
#
|
1105
1588
|
# @example Request syntax with placeholder values
|
1106
1589
|
#
|
1107
1590
|
# resp = client.update_job_queue({
|
@@ -1143,7 +1626,7 @@ module Aws::Batch
|
|
1143
1626
|
params: params,
|
1144
1627
|
config: config)
|
1145
1628
|
context[:gem_name] = 'aws-sdk-batch'
|
1146
|
-
context[:gem_version] = '1.0.0.
|
1629
|
+
context[:gem_version] = '1.0.0.rc6'
|
1147
1630
|
Seahorse::Client::Request.new(handlers, context)
|
1148
1631
|
end
|
1149
1632
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-batch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0.0.
|
19
|
+
version: 3.0.0.rc14
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.0.0.
|
26
|
+
version: 3.0.0.rc14
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: aws-sigv4
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|