/
medialive.jl
2175 lines (1953 loc) · 60.9 KB
/
medialive.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: medialive
using AWS.Compat
using AWS.UUIDs
"""
accept_input_device_transfer(input_device_id)
accept_input_device_transfer(input_device_id, params::Dict{String,<:Any})
Accept an incoming input device transfer. The ownership of the device will transfer to your
AWS account.
# Arguments
- `input_device_id`: The unique ID of the input device to accept. For example,
hd-123456789abcdef.
"""
function accept_input_device_transfer(
inputDeviceId; aws_config::AbstractAWSConfig=global_aws_config()
)
return medialive(
"POST",
"/prod/inputDevices/$(inputDeviceId)/accept";
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function accept_input_device_transfer(
inputDeviceId,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return medialive(
"POST",
"/prod/inputDevices/$(inputDeviceId)/accept",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
batch_delete()
batch_delete(params::Dict{String,<:Any})
Starts delete of resources.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"channelIds"`: List of channel IDs
- `"inputIds"`: List of input IDs
- `"inputSecurityGroupIds"`: List of input security group IDs
- `"multiplexIds"`: List of multiplex IDs
"""
function batch_delete(; aws_config::AbstractAWSConfig=global_aws_config())
return medialive(
"POST", "/prod/batch/delete"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET
)
end
function batch_delete(
params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return medialive(
"POST",
"/prod/batch/delete",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
batch_start()
batch_start(params::Dict{String,<:Any})
Starts existing resources
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"channelIds"`: List of channel IDs
- `"multiplexIds"`: List of multiplex IDs
"""
function batch_start(; aws_config::AbstractAWSConfig=global_aws_config())
return medialive(
"POST", "/prod/batch/start"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET
)
end
function batch_start(
params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return medialive(
"POST",
"/prod/batch/start",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
batch_stop()
batch_stop(params::Dict{String,<:Any})
Stops running resources
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"channelIds"`: List of channel IDs
- `"multiplexIds"`: List of multiplex IDs
"""
function batch_stop(; aws_config::AbstractAWSConfig=global_aws_config())
return medialive(
"POST", "/prod/batch/stop"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET
)
end
function batch_stop(
params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return medialive(
"POST",
"/prod/batch/stop",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
batch_update_schedule(channel_id)
batch_update_schedule(channel_id, params::Dict{String,<:Any})
Update a channel schedule
# Arguments
- `channel_id`: Id of the channel whose schedule is being updated.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"creates"`: Schedule actions to create in the schedule.
- `"deletes"`: Schedule actions to delete from the schedule.
"""
function batch_update_schedule(channelId; aws_config::AbstractAWSConfig=global_aws_config())
return medialive(
"PUT",
"/prod/channels/$(channelId)/schedule";
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function batch_update_schedule(
channelId,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return medialive(
"PUT",
"/prod/channels/$(channelId)/schedule",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
cancel_input_device_transfer(input_device_id)
cancel_input_device_transfer(input_device_id, params::Dict{String,<:Any})
Cancel an input device transfer that you have requested.
# Arguments
- `input_device_id`: The unique ID of the input device to cancel. For example,
hd-123456789abcdef.
"""
function cancel_input_device_transfer(
inputDeviceId; aws_config::AbstractAWSConfig=global_aws_config()
)
return medialive(
"POST",
"/prod/inputDevices/$(inputDeviceId)/cancel";
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function cancel_input_device_transfer(
inputDeviceId,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return medialive(
"POST",
"/prod/inputDevices/$(inputDeviceId)/cancel",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
claim_device()
claim_device(params::Dict{String,<:Any})
Send a request to claim an AWS Elemental device that you have purchased from a third-party
vendor. After the request succeeds, you will own the device.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"id"`: The id of the device you want to claim.
"""
function claim_device(; aws_config::AbstractAWSConfig=global_aws_config())
return medialive(
"POST", "/prod/claimDevice"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET
)
end
function claim_device(
params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return medialive(
"POST",
"/prod/claimDevice",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
create_channel()
create_channel(params::Dict{String,<:Any})
Creates a new channel
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"cdiInputSpecification"`: Specification of CDI inputs for this channel
- `"channelClass"`: The class for this channel. STANDARD for a channel with two pipelines
or SINGLE_PIPELINE for a channel with one pipeline.
- `"destinations"`:
- `"encoderSettings"`:
- `"inputAttachments"`: List of input attachments for channel.
- `"inputSpecification"`: Specification of network and file inputs for this channel
- `"logLevel"`: The log level to write to CloudWatch Logs.
- `"maintenance"`: Maintenance settings for this channel.
- `"name"`: Name of channel.
- `"requestId"`: Unique request ID to be specified. This is needed to prevent retries
from
creating multiple resources.
- `"reserved"`: Deprecated field that's only usable by whitelisted customers.
- `"roleArn"`: An optional Amazon Resource Name (ARN) of the role to assume when running
the Channel.
- `"tags"`: A collection of key-value pairs.
- `"vpc"`: Settings for the VPC outputs
"""
function create_channel(; aws_config::AbstractAWSConfig=global_aws_config())
return medialive(
"POST",
"/prod/channels",
Dict{String,Any}("requestId" => string(uuid4()));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_channel(
params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return medialive(
"POST",
"/prod/channels",
Dict{String,Any}(
mergewith(_merge, Dict{String,Any}("requestId" => string(uuid4())), params)
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
create_input()
create_input(params::Dict{String,<:Any})
Create an input
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"destinations"`: Destination settings for PUSH type inputs.
- `"inputDevices"`: Settings for the devices.
- `"inputSecurityGroups"`: A list of security groups referenced by IDs to attach to the
input.
- `"mediaConnectFlows"`: A list of the MediaConnect Flows that you want to use in this
input. You can specify as few as one
Flow and presently, as many as two. The only
requirement is when you have more than one is that each Flow is in a
separate Availability
Zone as this ensures your EML input is redundant to AZ issues.
- `"name"`: Name of the input.
- `"requestId"`: Unique identifier of the request to ensure the request is handled
exactly
once in case of retries.
- `"roleArn"`: The Amazon Resource Name (ARN) of the role this input assumes during and
after creation.
- `"sources"`: The source URLs for a PULL-type input. Every PULL type input needs
exactly
two source URLs for redundancy.
Only specify sources for PULL type Inputs. Leave
Destinations empty.
- `"tags"`: A collection of key-value pairs.
- `"type"`:
- `"vpc"`:
"""
function create_input(; aws_config::AbstractAWSConfig=global_aws_config())
return medialive(
"POST",
"/prod/inputs",
Dict{String,Any}("requestId" => string(uuid4()));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_input(
params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return medialive(
"POST",
"/prod/inputs",
Dict{String,Any}(
mergewith(_merge, Dict{String,Any}("requestId" => string(uuid4())), params)
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
create_input_security_group()
create_input_security_group(params::Dict{String,<:Any})
Creates a Input Security Group
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"tags"`: A collection of key-value pairs.
- `"whitelistRules"`: List of IPv4 CIDR addresses to whitelist
"""
function create_input_security_group(; aws_config::AbstractAWSConfig=global_aws_config())
return medialive(
"POST",
"/prod/inputSecurityGroups";
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_input_security_group(
params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return medialive(
"POST",
"/prod/inputSecurityGroups",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
create_multiplex(availability_zones, multiplex_settings, name, request_id)
create_multiplex(availability_zones, multiplex_settings, name, request_id, params::Dict{String,<:Any})
Create a new multiplex.
# Arguments
- `availability_zones`: A list of availability zones for the multiplex. You must specify
exactly two.
- `multiplex_settings`: Configuration for a multiplex event.
- `name`: Name of multiplex.
- `request_id`: Unique request ID. This prevents retries from creating multiple
resources.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"tags"`: A collection of key-value pairs.
"""
function create_multiplex(
availabilityZones,
multiplexSettings,
name,
requestId;
aws_config::AbstractAWSConfig=global_aws_config(),
)
return medialive(
"POST",
"/prod/multiplexes",
Dict{String,Any}(
"availabilityZones" => availabilityZones,
"multiplexSettings" => multiplexSettings,
"name" => name,
"requestId" => requestId,
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_multiplex(
availabilityZones,
multiplexSettings,
name,
requestId,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return medialive(
"POST",
"/prod/multiplexes",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}(
"availabilityZones" => availabilityZones,
"multiplexSettings" => multiplexSettings,
"name" => name,
"requestId" => requestId,
),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
create_multiplex_program(multiplex_id, multiplex_program_settings, program_name, request_id)
create_multiplex_program(multiplex_id, multiplex_program_settings, program_name, request_id, params::Dict{String,<:Any})
Create a new program in the multiplex.
# Arguments
- `multiplex_id`: ID of the multiplex where the program is to be created.
- `multiplex_program_settings`: The settings for this multiplex program.
- `program_name`: Name of multiplex program.
- `request_id`: Unique request ID. This prevents retries from creating multiple
resources.
"""
function create_multiplex_program(
multiplexId,
multiplexProgramSettings,
programName,
requestId;
aws_config::AbstractAWSConfig=global_aws_config(),
)
return medialive(
"POST",
"/prod/multiplexes/$(multiplexId)/programs",
Dict{String,Any}(
"multiplexProgramSettings" => multiplexProgramSettings,
"programName" => programName,
"requestId" => requestId,
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_multiplex_program(
multiplexId,
multiplexProgramSettings,
programName,
requestId,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return medialive(
"POST",
"/prod/multiplexes/$(multiplexId)/programs",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}(
"multiplexProgramSettings" => multiplexProgramSettings,
"programName" => programName,
"requestId" => requestId,
),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
create_partner_input(input_id)
create_partner_input(input_id, params::Dict{String,<:Any})
Create a partner input
# Arguments
- `input_id`: Unique ID of the input.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"requestId"`: Unique identifier of the request to ensure the request is handled
exactly
once in case of retries.
- `"tags"`: A collection of key-value pairs.
"""
function create_partner_input(inputId; aws_config::AbstractAWSConfig=global_aws_config())
return medialive(
"POST",
"/prod/inputs/$(inputId)/partners",
Dict{String,Any}("requestId" => string(uuid4()));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_partner_input(
inputId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return medialive(
"POST",
"/prod/inputs/$(inputId)/partners",
Dict{String,Any}(
mergewith(_merge, Dict{String,Any}("requestId" => string(uuid4())), params)
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
create_tags(resource-arn)
create_tags(resource-arn, params::Dict{String,<:Any})
Create tags for a resource
# Arguments
- `resource-arn`:
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"tags"`:
"""
function create_tags(resource_arn; aws_config::AbstractAWSConfig=global_aws_config())
return medialive(
"POST",
"/prod/tags/$(resource-arn)";
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function create_tags(
resource_arn,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return medialive(
"POST",
"/prod/tags/$(resource-arn)",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_channel(channel_id)
delete_channel(channel_id, params::Dict{String,<:Any})
Starts deletion of channel. The associated outputs are also deleted.
# Arguments
- `channel_id`: Unique ID of the channel.
"""
function delete_channel(channelId; aws_config::AbstractAWSConfig=global_aws_config())
return medialive(
"DELETE",
"/prod/channels/$(channelId)";
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_channel(
channelId,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return medialive(
"DELETE",
"/prod/channels/$(channelId)",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_input(input_id)
delete_input(input_id, params::Dict{String,<:Any})
Deletes the input end point
# Arguments
- `input_id`: Unique ID of the input
"""
function delete_input(inputId; aws_config::AbstractAWSConfig=global_aws_config())
return medialive(
"DELETE",
"/prod/inputs/$(inputId)";
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_input(
inputId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return medialive(
"DELETE",
"/prod/inputs/$(inputId)",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_input_security_group(input_security_group_id)
delete_input_security_group(input_security_group_id, params::Dict{String,<:Any})
Deletes an Input Security Group
# Arguments
- `input_security_group_id`: The Input Security Group to delete
"""
function delete_input_security_group(
inputSecurityGroupId; aws_config::AbstractAWSConfig=global_aws_config()
)
return medialive(
"DELETE",
"/prod/inputSecurityGroups/$(inputSecurityGroupId)";
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_input_security_group(
inputSecurityGroupId,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return medialive(
"DELETE",
"/prod/inputSecurityGroups/$(inputSecurityGroupId)",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_multiplex(multiplex_id)
delete_multiplex(multiplex_id, params::Dict{String,<:Any})
Delete a multiplex. The multiplex must be idle.
# Arguments
- `multiplex_id`: The ID of the multiplex.
"""
function delete_multiplex(multiplexId; aws_config::AbstractAWSConfig=global_aws_config())
return medialive(
"DELETE",
"/prod/multiplexes/$(multiplexId)";
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_multiplex(
multiplexId,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return medialive(
"DELETE",
"/prod/multiplexes/$(multiplexId)",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_multiplex_program(multiplex_id, program_name)
delete_multiplex_program(multiplex_id, program_name, params::Dict{String,<:Any})
Delete a program from a multiplex.
# Arguments
- `multiplex_id`: The ID of the multiplex that the program belongs to.
- `program_name`: The multiplex program name.
"""
function delete_multiplex_program(
multiplexId, programName; aws_config::AbstractAWSConfig=global_aws_config()
)
return medialive(
"DELETE",
"/prod/multiplexes/$(multiplexId)/programs/$(programName)";
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_multiplex_program(
multiplexId,
programName,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return medialive(
"DELETE",
"/prod/multiplexes/$(multiplexId)/programs/$(programName)",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_reservation(reservation_id)
delete_reservation(reservation_id, params::Dict{String,<:Any})
Delete an expired reservation.
# Arguments
- `reservation_id`: Unique reservation ID, e.g. '1234567'
"""
function delete_reservation(
reservationId; aws_config::AbstractAWSConfig=global_aws_config()
)
return medialive(
"DELETE",
"/prod/reservations/$(reservationId)";
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_reservation(
reservationId,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return medialive(
"DELETE",
"/prod/reservations/$(reservationId)",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_schedule(channel_id)
delete_schedule(channel_id, params::Dict{String,<:Any})
Delete all schedule actions on a channel.
# Arguments
- `channel_id`: Id of the channel whose schedule is being deleted.
"""
function delete_schedule(channelId; aws_config::AbstractAWSConfig=global_aws_config())
return medialive(
"DELETE",
"/prod/channels/$(channelId)/schedule";
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_schedule(
channelId,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return medialive(
"DELETE",
"/prod/channels/$(channelId)/schedule",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
delete_tags(resource-arn, tag_keys)
delete_tags(resource-arn, tag_keys, params::Dict{String,<:Any})
Removes tags for a resource
# Arguments
- `resource-arn`:
- `tag_keys`: An array of tag keys to delete
"""
function delete_tags(
resource_arn, tagKeys; aws_config::AbstractAWSConfig=global_aws_config()
)
return medialive(
"DELETE",
"/prod/tags/$(resource-arn)",
Dict{String,Any}("tagKeys" => tagKeys);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function delete_tags(
resource_arn,
tagKeys,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return medialive(
"DELETE",
"/prod/tags/$(resource-arn)",
Dict{String,Any}(mergewith(_merge, Dict{String,Any}("tagKeys" => tagKeys), params));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
describe_channel(channel_id)
describe_channel(channel_id, params::Dict{String,<:Any})
Gets details about a channel
# Arguments
- `channel_id`: channel ID
"""
function describe_channel(channelId; aws_config::AbstractAWSConfig=global_aws_config())
return medialive(
"GET",
"/prod/channels/$(channelId)";
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function describe_channel(
channelId,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return medialive(
"GET",
"/prod/channels/$(channelId)",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
describe_input(input_id)
describe_input(input_id, params::Dict{String,<:Any})
Produces details about an input
# Arguments
- `input_id`: Unique ID of the input
"""
function describe_input(inputId; aws_config::AbstractAWSConfig=global_aws_config())
return medialive(
"GET",
"/prod/inputs/$(inputId)";
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function describe_input(
inputId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return medialive(
"GET",
"/prod/inputs/$(inputId)",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
describe_input_device(input_device_id)
describe_input_device(input_device_id, params::Dict{String,<:Any})
Gets the details for the input device
# Arguments
- `input_device_id`: The unique ID of this input device. For example, hd-123456789abcdef.
"""
function describe_input_device(
inputDeviceId; aws_config::AbstractAWSConfig=global_aws_config()
)
return medialive(
"GET",
"/prod/inputDevices/$(inputDeviceId)";
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function describe_input_device(
inputDeviceId,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return medialive(
"GET",
"/prod/inputDevices/$(inputDeviceId)",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
describe_input_device_thumbnail(accept, input_device_id)
describe_input_device_thumbnail(accept, input_device_id, params::Dict{String,<:Any})
Get the latest thumbnail data for the input device.
# Arguments
- `accept`: The HTTP Accept header. Indicates the requested type for the thumbnail.
- `input_device_id`: The unique ID of this input device. For example, hd-123456789abcdef.
"""
function describe_input_device_thumbnail(
accept, inputDeviceId; aws_config::AbstractAWSConfig=global_aws_config()
)
return medialive(
"GET",
"/prod/inputDevices/$(inputDeviceId)/thumbnailData",
Dict{String,Any}("headers" => Dict{String,Any}("accept" => accept));
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function describe_input_device_thumbnail(
accept,
inputDeviceId,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return medialive(
"GET",
"/prod/inputDevices/$(inputDeviceId)/thumbnailData",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}("headers" => Dict{String,Any}("accept" => accept)),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
describe_input_security_group(input_security_group_id)
describe_input_security_group(input_security_group_id, params::Dict{String,<:Any})
Produces a summary of an Input Security Group
# Arguments
- `input_security_group_id`: The id of the Input Security Group to describe
"""
function describe_input_security_group(
inputSecurityGroupId; aws_config::AbstractAWSConfig=global_aws_config()
)
return medialive(
"GET",
"/prod/inputSecurityGroups/$(inputSecurityGroupId)";
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function describe_input_security_group(
inputSecurityGroupId,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return medialive(
"GET",
"/prod/inputSecurityGroups/$(inputSecurityGroupId)",
params;
aws_config=aws_config,