/
device_farm.jl
2820 lines (2524 loc) · 94.6 KB
/
device_farm.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# This file is auto-generated by AWSMetadata.jl
using AWS
using AWS.AWSServices: device_farm
using AWS.Compat
using AWS.UUIDs
"""
create_device_pool(name, project_arn, rules)
create_device_pool(name, project_arn, rules, params::Dict{String,<:Any})
Creates a device pool.
# Arguments
- `name`: The device pool's name.
- `project_arn`: The ARN of the project for the device pool.
- `rules`: The device pool's rules.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"description"`: The device pool's description.
- `"maxDevices"`: The number of devices that Device Farm can add to your device pool.
Device Farm adds devices that are available and meet the criteria that you assign for the
rules parameter. Depending on how many devices meet these constraints, your device pool
might contain fewer devices than the value for this parameter. By specifying the maximum
number of devices, you can control the costs that you incur by running tests.
"""
function create_device_pool(
name, projectArn, rules; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"CreateDevicePool",
Dict{String,Any}("name" => name, "projectArn" => projectArn, "rules" => rules);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_device_pool(
name,
projectArn,
rules,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return device_farm(
"CreateDevicePool",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}(
"name" => name, "projectArn" => projectArn, "rules" => rules
),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
create_instance_profile(name)
create_instance_profile(name, params::Dict{String,<:Any})
Creates a profile that can be applied to one or more private fleet device instances.
# Arguments
- `name`: The name of your instance profile.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"description"`: The description of your instance profile.
- `"excludeAppPackagesFromCleanup"`: An array of strings that specifies the list of app
packages that should not be cleaned up from the device after a test run. The list of
packages is considered only if you set packageCleanup to true.
- `"packageCleanup"`: When set to true, Device Farm removes app packages after a test run.
The default value is false for private devices.
- `"rebootAfterUse"`: When set to true, Device Farm reboots the instance after a test run.
The default value is true.
"""
function create_instance_profile(name; aws_config::AbstractAWSConfig=global_aws_config())
return device_farm(
"CreateInstanceProfile",
Dict{String,Any}("name" => name);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_instance_profile(
name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"CreateInstanceProfile",
Dict{String,Any}(mergewith(_merge, Dict{String,Any}("name" => name), params));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
create_network_profile(name, project_arn)
create_network_profile(name, project_arn, params::Dict{String,<:Any})
Creates a network profile.
# Arguments
- `name`: The name for the new network profile.
- `project_arn`: The Amazon Resource Name (ARN) of the project for which you want to create
a network profile.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"description"`: The description of the network profile.
- `"downlinkBandwidthBits"`: The data throughput rate in bits per second, as an integer
from 0 to 104857600.
- `"downlinkDelayMs"`: Delay time for all packets to destination in milliseconds as an
integer from 0 to 2000.
- `"downlinkJitterMs"`: Time variation in the delay of received packets in milliseconds as
an integer from 0 to 2000.
- `"downlinkLossPercent"`: Proportion of received packets that fail to arrive from 0 to 100
percent.
- `"type"`: The type of network profile to create. Valid values are listed here.
- `"uplinkBandwidthBits"`: The data throughput rate in bits per second, as an integer from
0 to 104857600.
- `"uplinkDelayMs"`: Delay time for all packets to destination in milliseconds as an
integer from 0 to 2000.
- `"uplinkJitterMs"`: Time variation in the delay of received packets in milliseconds as an
integer from 0 to 2000.
- `"uplinkLossPercent"`: Proportion of transmitted packets that fail to arrive from 0 to
100 percent.
"""
function create_network_profile(
name, projectArn; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"CreateNetworkProfile",
Dict{String,Any}("name" => name, "projectArn" => projectArn);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_network_profile(
name,
projectArn,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return device_farm(
"CreateNetworkProfile",
Dict{String,Any}(
mergewith(
_merge, Dict{String,Any}("name" => name, "projectArn" => projectArn), params
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
create_project(name)
create_project(name, params::Dict{String,<:Any})
Creates a project.
# Arguments
- `name`: The project's name.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"defaultJobTimeoutMinutes"`: Sets the execution timeout value (in minutes) for a
project. All test runs in this project use the specified execution timeout value unless
overridden when scheduling a run.
- `"vpcConfig"`: The VPC security groups and subnets that are attached to a project.
"""
function create_project(name; aws_config::AbstractAWSConfig=global_aws_config())
return device_farm(
"CreateProject",
Dict{String,Any}("name" => name);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_project(
name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"CreateProject",
Dict{String,Any}(mergewith(_merge, Dict{String,Any}("name" => name), params));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
create_remote_access_session(device_arn, project_arn)
create_remote_access_session(device_arn, project_arn, params::Dict{String,<:Any})
Specifies and starts a remote access session.
# Arguments
- `device_arn`: The ARN of the device for which you want to create a remote access session.
- `project_arn`: The Amazon Resource Name (ARN) of the project for which you want to create
a remote access session.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"clientId"`: Unique identifier for the client. If you want access to multiple devices on
the same client, you should pass the same clientId value in each call to
CreateRemoteAccessSession. This identifier is required only if remoteDebugEnabled is set to
true. Remote debugging is no longer supported.
- `"configuration"`: The configuration information for the remote access session request.
- `"instanceArn"`: The Amazon Resource Name (ARN) of the device instance for which you want
to create a remote access session.
- `"interactionMode"`: The interaction mode of the remote access session. Valid values are:
INTERACTIVE: You can interact with the iOS device by viewing, touching, and rotating the
screen. You cannot run XCUITest framework-based tests in this mode. NO_VIDEO: You are
connected to the device, but cannot interact with it or view the screen. This mode has the
fastest test execution speed. You can run XCUITest framework-based tests in this mode.
VIDEO_ONLY: You can view the screen, but cannot touch or rotate it. You can run XCUITest
framework-based tests and watch the screen in this mode.
- `"name"`: The name of the remote access session to create.
- `"remoteDebugEnabled"`: Set to true if you want to access devices remotely for debugging
in your remote access session. Remote debugging is no longer supported.
- `"remoteRecordAppArn"`: The Amazon Resource Name (ARN) for the app to be recorded in the
remote access session.
- `"remoteRecordEnabled"`: Set to true to enable remote recording for the remote access
session.
- `"skipAppResign"`: When set to true, for private devices, Device Farm does not sign your
app again. For public devices, Device Farm always signs your apps again. For more
information on how Device Farm modifies your uploads during tests, see Do you modify my
app?
- `"sshPublicKey"`: Ignored. The public key of the ssh key pair you want to use for
connecting to remote devices in your remote debugging session. This key is required only if
remoteDebugEnabled is set to true. Remote debugging is no longer supported.
"""
function create_remote_access_session(
deviceArn, projectArn; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"CreateRemoteAccessSession",
Dict{String,Any}("deviceArn" => deviceArn, "projectArn" => projectArn);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_remote_access_session(
deviceArn,
projectArn,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return device_farm(
"CreateRemoteAccessSession",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}("deviceArn" => deviceArn, "projectArn" => projectArn),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
create_test_grid_project(name)
create_test_grid_project(name, params::Dict{String,<:Any})
Creates a Selenium testing project. Projects are used to track TestGridSession instances.
# Arguments
- `name`: Human-readable name of the Selenium testing project.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"description"`: Human-readable description of the project.
- `"vpcConfig"`: The VPC security groups and subnets that are attached to a project.
"""
function create_test_grid_project(name; aws_config::AbstractAWSConfig=global_aws_config())
return device_farm(
"CreateTestGridProject",
Dict{String,Any}("name" => name);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_test_grid_project(
name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"CreateTestGridProject",
Dict{String,Any}(mergewith(_merge, Dict{String,Any}("name" => name), params));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
create_test_grid_url(expires_in_seconds, project_arn)
create_test_grid_url(expires_in_seconds, project_arn, params::Dict{String,<:Any})
Creates a signed, short-term URL that can be passed to a Selenium RemoteWebDriver
constructor.
# Arguments
- `expires_in_seconds`: Lifetime, in seconds, of the URL.
- `project_arn`: ARN (from CreateTestGridProject or ListTestGridProjects) to associate with
the short-term URL.
"""
function create_test_grid_url(
expiresInSeconds, projectArn; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"CreateTestGridUrl",
Dict{String,Any}(
"expiresInSeconds" => expiresInSeconds, "projectArn" => projectArn
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_test_grid_url(
expiresInSeconds,
projectArn,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return device_farm(
"CreateTestGridUrl",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}(
"expiresInSeconds" => expiresInSeconds, "projectArn" => projectArn
),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
create_upload(name, project_arn, type)
create_upload(name, project_arn, type, params::Dict{String,<:Any})
Uploads an app or test scripts.
# Arguments
- `name`: The upload's file name. The name should not contain any forward slashes (/). If
you are uploading an iOS app, the file name must end with the .ipa extension. If you are
uploading an Android app, the file name must end with the .apk extension. For all others,
the file name must end with the .zip file extension.
- `project_arn`: The ARN of the project for the upload.
- `type`: The upload's upload type. Must be one of the following values: ANDROID_APP
IOS_APP WEB_APP EXTERNAL_DATA APPIUM_JAVA_JUNIT_TEST_PACKAGE
APPIUM_JAVA_TESTNG_TEST_PACKAGE APPIUM_PYTHON_TEST_PACKAGE APPIUM_NODE_TEST_PACKAGE
APPIUM_RUBY_TEST_PACKAGE APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE
APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE APPIUM_WEB_PYTHON_TEST_PACKAGE
APPIUM_WEB_NODE_TEST_PACKAGE APPIUM_WEB_RUBY_TEST_PACKAGE CALABASH_TEST_PACKAGE
INSTRUMENTATION_TEST_PACKAGE UIAUTOMATION_TEST_PACKAGE UIAUTOMATOR_TEST_PACKAGE
XCTEST_TEST_PACKAGE XCTEST_UI_TEST_PACKAGE APPIUM_JAVA_JUNIT_TEST_SPEC
APPIUM_JAVA_TESTNG_TEST_SPEC APPIUM_PYTHON_TEST_SPEC APPIUM_NODE_TEST_SPEC
APPIUM_RUBY_TEST_SPEC APPIUM_WEB_JAVA_JUNIT_TEST_SPEC APPIUM_WEB_JAVA_TESTNG_TEST_SPEC
APPIUM_WEB_PYTHON_TEST_SPEC APPIUM_WEB_NODE_TEST_SPEC APPIUM_WEB_RUBY_TEST_SPEC
INSTRUMENTATION_TEST_SPEC XCTEST_UI_TEST_SPEC If you call CreateUpload with WEB_APP
specified, AWS Device Farm throws an ArgumentException error.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"contentType"`: The upload's content type (for example, application/octet-stream).
"""
function create_upload(
name, projectArn, type; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"CreateUpload",
Dict{String,Any}("name" => name, "projectArn" => projectArn, "type" => type);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_upload(
name,
projectArn,
type,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return device_farm(
"CreateUpload",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}(
"name" => name, "projectArn" => projectArn, "type" => type
),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
create_vpceconfiguration(service_dns_name, vpce_configuration_name, vpce_service_name)
create_vpceconfiguration(service_dns_name, vpce_configuration_name, vpce_service_name, params::Dict{String,<:Any})
Creates a configuration record in Device Farm for your Amazon Virtual Private Cloud (VPC)
endpoint.
# Arguments
- `service_dns_name`: The DNS name of the service running in your VPC that you want Device
Farm to test.
- `vpce_configuration_name`: The friendly name you give to your VPC endpoint configuration,
to manage your configurations more easily.
- `vpce_service_name`: The name of the VPC endpoint service running in your AWS account
that you want Device Farm to test.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"vpceConfigurationDescription"`: An optional description that provides details about
your VPC endpoint configuration.
"""
function create_vpceconfiguration(
serviceDnsName,
vpceConfigurationName,
vpceServiceName;
aws_config::AbstractAWSConfig=global_aws_config(),
)
return device_farm(
"CreateVPCEConfiguration",
Dict{String,Any}(
"serviceDnsName" => serviceDnsName,
"vpceConfigurationName" => vpceConfigurationName,
"vpceServiceName" => vpceServiceName,
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_vpceconfiguration(
serviceDnsName,
vpceConfigurationName,
vpceServiceName,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return device_farm(
"CreateVPCEConfiguration",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}(
"serviceDnsName" => serviceDnsName,
"vpceConfigurationName" => vpceConfigurationName,
"vpceServiceName" => vpceServiceName,
),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_device_pool(arn)
delete_device_pool(arn, params::Dict{String,<:Any})
Deletes a device pool given the pool ARN. Does not allow deletion of curated pools owned by
the system.
# Arguments
- `arn`: Represents the Amazon Resource Name (ARN) of the Device Farm device pool to delete.
"""
function delete_device_pool(arn; aws_config::AbstractAWSConfig=global_aws_config())
return device_farm(
"DeleteDevicePool",
Dict{String,Any}("arn" => arn);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_device_pool(
arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"DeleteDevicePool",
Dict{String,Any}(mergewith(_merge, Dict{String,Any}("arn" => arn), params));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_instance_profile(arn)
delete_instance_profile(arn, params::Dict{String,<:Any})
Deletes a profile that can be applied to one or more private device instances.
# Arguments
- `arn`: The Amazon Resource Name (ARN) of the instance profile you are requesting to
delete.
"""
function delete_instance_profile(arn; aws_config::AbstractAWSConfig=global_aws_config())
return device_farm(
"DeleteInstanceProfile",
Dict{String,Any}("arn" => arn);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_instance_profile(
arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"DeleteInstanceProfile",
Dict{String,Any}(mergewith(_merge, Dict{String,Any}("arn" => arn), params));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_network_profile(arn)
delete_network_profile(arn, params::Dict{String,<:Any})
Deletes a network profile.
# Arguments
- `arn`: The ARN of the network profile to delete.
"""
function delete_network_profile(arn; aws_config::AbstractAWSConfig=global_aws_config())
return device_farm(
"DeleteNetworkProfile",
Dict{String,Any}("arn" => arn);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_network_profile(
arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"DeleteNetworkProfile",
Dict{String,Any}(mergewith(_merge, Dict{String,Any}("arn" => arn), params));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_project(arn)
delete_project(arn, params::Dict{String,<:Any})
Deletes an AWS Device Farm project, given the project ARN. Deleting this resource does not
stop an in-progress run.
# Arguments
- `arn`: Represents the Amazon Resource Name (ARN) of the Device Farm project to delete.
"""
function delete_project(arn; aws_config::AbstractAWSConfig=global_aws_config())
return device_farm(
"DeleteProject",
Dict{String,Any}("arn" => arn);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_project(
arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"DeleteProject",
Dict{String,Any}(mergewith(_merge, Dict{String,Any}("arn" => arn), params));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_remote_access_session(arn)
delete_remote_access_session(arn, params::Dict{String,<:Any})
Deletes a completed remote access session and its results.
# Arguments
- `arn`: The Amazon Resource Name (ARN) of the session for which you want to delete remote
access.
"""
function delete_remote_access_session(
arn; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"DeleteRemoteAccessSession",
Dict{String,Any}("arn" => arn);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_remote_access_session(
arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"DeleteRemoteAccessSession",
Dict{String,Any}(mergewith(_merge, Dict{String,Any}("arn" => arn), params));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_run(arn)
delete_run(arn, params::Dict{String,<:Any})
Deletes the run, given the run ARN. Deleting this resource does not stop an in-progress
run.
# Arguments
- `arn`: The Amazon Resource Name (ARN) for the run to delete.
"""
function delete_run(arn; aws_config::AbstractAWSConfig=global_aws_config())
return device_farm(
"DeleteRun",
Dict{String,Any}("arn" => arn);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_run(
arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"DeleteRun",
Dict{String,Any}(mergewith(_merge, Dict{String,Any}("arn" => arn), params));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_test_grid_project(project_arn)
delete_test_grid_project(project_arn, params::Dict{String,<:Any})
Deletes a Selenium testing project and all content generated under it. You cannot undo
this operation. You cannot delete a project if it has active sessions.
# Arguments
- `project_arn`: The ARN of the project to delete, from CreateTestGridProject or
ListTestGridProjects.
"""
function delete_test_grid_project(
projectArn; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"DeleteTestGridProject",
Dict{String,Any}("projectArn" => projectArn);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_test_grid_project(
projectArn,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return device_farm(
"DeleteTestGridProject",
Dict{String,Any}(
mergewith(_merge, Dict{String,Any}("projectArn" => projectArn), params)
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_upload(arn)
delete_upload(arn, params::Dict{String,<:Any})
Deletes an upload given the upload ARN.
# Arguments
- `arn`: Represents the Amazon Resource Name (ARN) of the Device Farm upload to delete.
"""
function delete_upload(arn; aws_config::AbstractAWSConfig=global_aws_config())
return device_farm(
"DeleteUpload",
Dict{String,Any}("arn" => arn);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_upload(
arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"DeleteUpload",
Dict{String,Any}(mergewith(_merge, Dict{String,Any}("arn" => arn), params));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_vpceconfiguration(arn)
delete_vpceconfiguration(arn, params::Dict{String,<:Any})
Deletes a configuration for your Amazon Virtual Private Cloud (VPC) endpoint.
# Arguments
- `arn`: The Amazon Resource Name (ARN) of the VPC endpoint configuration you want to
delete.
"""
function delete_vpceconfiguration(arn; aws_config::AbstractAWSConfig=global_aws_config())
return device_farm(
"DeleteVPCEConfiguration",
Dict{String,Any}("arn" => arn);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_vpceconfiguration(
arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"DeleteVPCEConfiguration",
Dict{String,Any}(mergewith(_merge, Dict{String,Any}("arn" => arn), params));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
get_account_settings()
get_account_settings(params::Dict{String,<:Any})
Returns the number of unmetered iOS or unmetered Android devices that have been purchased
by the account.
"""
function get_account_settings(; aws_config::AbstractAWSConfig=global_aws_config())
return device_farm(
"GetAccountSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET
)
end
function get_account_settings(
params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"GetAccountSettings", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET
)
end
"""
get_device(arn)
get_device(arn, params::Dict{String,<:Any})
Gets information about a unique device type.
# Arguments
- `arn`: The device type's ARN.
"""
function get_device(arn; aws_config::AbstractAWSConfig=global_aws_config())
return device_farm(
"GetDevice",
Dict{String,Any}("arn" => arn);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function get_device(
arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"GetDevice",
Dict{String,Any}(mergewith(_merge, Dict{String,Any}("arn" => arn), params));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
get_device_instance(arn)
get_device_instance(arn, params::Dict{String,<:Any})
Returns information about a device instance that belongs to a private device fleet.
# Arguments
- `arn`: The Amazon Resource Name (ARN) of the instance you're requesting information about.
"""
function get_device_instance(arn; aws_config::AbstractAWSConfig=global_aws_config())
return device_farm(
"GetDeviceInstance",
Dict{String,Any}("arn" => arn);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function get_device_instance(
arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"GetDeviceInstance",
Dict{String,Any}(mergewith(_merge, Dict{String,Any}("arn" => arn), params));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
get_device_pool(arn)
get_device_pool(arn, params::Dict{String,<:Any})
Gets information about a device pool.
# Arguments
- `arn`: The device pool's ARN.
"""
function get_device_pool(arn; aws_config::AbstractAWSConfig=global_aws_config())
return device_farm(
"GetDevicePool",
Dict{String,Any}("arn" => arn);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function get_device_pool(
arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"GetDevicePool",
Dict{String,Any}(mergewith(_merge, Dict{String,Any}("arn" => arn), params));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
get_device_pool_compatibility(device_pool_arn)
get_device_pool_compatibility(device_pool_arn, params::Dict{String,<:Any})
Gets information about compatibility with a device pool.
# Arguments
- `device_pool_arn`: The device pool's ARN.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"appArn"`: The ARN of the app that is associated with the specified device pool.
- `"configuration"`: An object that contains information about the settings for a run.
- `"test"`: Information about the uploaded test to be run against the device pool.
- `"testType"`: The test type for the specified device pool. Allowed values include the
following: BUILTIN_FUZZ. BUILTIN_EXPLORER. For Android, an app explorer that traverses
an Android app, interacting with it and capturing screenshots at the same time.
APPIUM_JAVA_JUNIT. APPIUM_JAVA_TESTNG. APPIUM_PYTHON. APPIUM_NODE. APPIUM_RUBY.
APPIUM_WEB_JAVA_JUNIT. APPIUM_WEB_JAVA_TESTNG. APPIUM_WEB_PYTHON. APPIUM_WEB_NODE.
APPIUM_WEB_RUBY. CALABASH. INSTRUMENTATION. UIAUTOMATION. UIAUTOMATOR. XCTEST.
XCTEST_UI.
"""
function get_device_pool_compatibility(
devicePoolArn; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"GetDevicePoolCompatibility",
Dict{String,Any}("devicePoolArn" => devicePoolArn);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function get_device_pool_compatibility(
devicePoolArn,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return device_farm(
"GetDevicePoolCompatibility",
Dict{String,Any}(
mergewith(_merge, Dict{String,Any}("devicePoolArn" => devicePoolArn), params)
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
get_instance_profile(arn)
get_instance_profile(arn, params::Dict{String,<:Any})
Returns information about the specified instance profile.
# Arguments
- `arn`: The Amazon Resource Name (ARN) of an instance profile.
"""
function get_instance_profile(arn; aws_config::AbstractAWSConfig=global_aws_config())
return device_farm(
"GetInstanceProfile",
Dict{String,Any}("arn" => arn);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function get_instance_profile(
arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"GetInstanceProfile",
Dict{String,Any}(mergewith(_merge, Dict{String,Any}("arn" => arn), params));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
get_job(arn)
get_job(arn, params::Dict{String,<:Any})
Gets information about a job.
# Arguments
- `arn`: The job's ARN.
"""
function get_job(arn; aws_config::AbstractAWSConfig=global_aws_config())
return device_farm(
"GetJob",
Dict{String,Any}("arn" => arn);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function get_job(
arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"GetJob",
Dict{String,Any}(mergewith(_merge, Dict{String,Any}("arn" => arn), params));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
get_network_profile(arn)
get_network_profile(arn, params::Dict{String,<:Any})
Returns information about a network profile.
# Arguments
- `arn`: The ARN of the network profile to return information about.
"""
function get_network_profile(arn; aws_config::AbstractAWSConfig=global_aws_config())
return device_farm(
"GetNetworkProfile",
Dict{String,Any}("arn" => arn);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function get_network_profile(
arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return device_farm(
"GetNetworkProfile",
Dict{String,Any}(mergewith(_merge, Dict{String,Any}("arn" => arn), params));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
get_offering_status()
get_offering_status(params::Dict{String,<:Any})
Gets the current status and future status of all offerings purchased by an AWS account. The
response indicates how many offerings are currently available and the offerings that will
be available in the next period. The API returns a NotEligible error if the user is not
permitted to invoke the operation. If you must be able to invoke this operation, contact
aws-devicefarm-support@amazon.com.
# Optional Parameters