/
pulumiTypes.go
2053 lines (1701 loc) · 100 KB
/
pulumiTypes.go
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
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package elastictranscoder
import (
"context"
"reflect"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = internal.GetEnvOrDefault
type PipelineContentConfig struct {
// The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.
Bucket *string `pulumi:"bucket"`
// The Amazon S3 storage class, `Standard` or `ReducedRedundancy`, that you want Elastic Transcoder to assign to the files and playlists that it stores in your Amazon S3 bucket.
StorageClass *string `pulumi:"storageClass"`
}
// PipelineContentConfigInput is an input type that accepts PipelineContentConfigArgs and PipelineContentConfigOutput values.
// You can construct a concrete instance of `PipelineContentConfigInput` via:
//
// PipelineContentConfigArgs{...}
type PipelineContentConfigInput interface {
pulumi.Input
ToPipelineContentConfigOutput() PipelineContentConfigOutput
ToPipelineContentConfigOutputWithContext(context.Context) PipelineContentConfigOutput
}
type PipelineContentConfigArgs struct {
// The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.
Bucket pulumi.StringPtrInput `pulumi:"bucket"`
// The Amazon S3 storage class, `Standard` or `ReducedRedundancy`, that you want Elastic Transcoder to assign to the files and playlists that it stores in your Amazon S3 bucket.
StorageClass pulumi.StringPtrInput `pulumi:"storageClass"`
}
func (PipelineContentConfigArgs) ElementType() reflect.Type {
return reflect.TypeOf((*PipelineContentConfig)(nil)).Elem()
}
func (i PipelineContentConfigArgs) ToPipelineContentConfigOutput() PipelineContentConfigOutput {
return i.ToPipelineContentConfigOutputWithContext(context.Background())
}
func (i PipelineContentConfigArgs) ToPipelineContentConfigOutputWithContext(ctx context.Context) PipelineContentConfigOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineContentConfigOutput)
}
func (i PipelineContentConfigArgs) ToPipelineContentConfigPtrOutput() PipelineContentConfigPtrOutput {
return i.ToPipelineContentConfigPtrOutputWithContext(context.Background())
}
func (i PipelineContentConfigArgs) ToPipelineContentConfigPtrOutputWithContext(ctx context.Context) PipelineContentConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineContentConfigOutput).ToPipelineContentConfigPtrOutputWithContext(ctx)
}
// PipelineContentConfigPtrInput is an input type that accepts PipelineContentConfigArgs, PipelineContentConfigPtr and PipelineContentConfigPtrOutput values.
// You can construct a concrete instance of `PipelineContentConfigPtrInput` via:
//
// PipelineContentConfigArgs{...}
//
// or:
//
// nil
type PipelineContentConfigPtrInput interface {
pulumi.Input
ToPipelineContentConfigPtrOutput() PipelineContentConfigPtrOutput
ToPipelineContentConfigPtrOutputWithContext(context.Context) PipelineContentConfigPtrOutput
}
type pipelineContentConfigPtrType PipelineContentConfigArgs
func PipelineContentConfigPtr(v *PipelineContentConfigArgs) PipelineContentConfigPtrInput {
return (*pipelineContentConfigPtrType)(v)
}
func (*pipelineContentConfigPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**PipelineContentConfig)(nil)).Elem()
}
func (i *pipelineContentConfigPtrType) ToPipelineContentConfigPtrOutput() PipelineContentConfigPtrOutput {
return i.ToPipelineContentConfigPtrOutputWithContext(context.Background())
}
func (i *pipelineContentConfigPtrType) ToPipelineContentConfigPtrOutputWithContext(ctx context.Context) PipelineContentConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineContentConfigPtrOutput)
}
type PipelineContentConfigOutput struct{ *pulumi.OutputState }
func (PipelineContentConfigOutput) ElementType() reflect.Type {
return reflect.TypeOf((*PipelineContentConfig)(nil)).Elem()
}
func (o PipelineContentConfigOutput) ToPipelineContentConfigOutput() PipelineContentConfigOutput {
return o
}
func (o PipelineContentConfigOutput) ToPipelineContentConfigOutputWithContext(ctx context.Context) PipelineContentConfigOutput {
return o
}
func (o PipelineContentConfigOutput) ToPipelineContentConfigPtrOutput() PipelineContentConfigPtrOutput {
return o.ToPipelineContentConfigPtrOutputWithContext(context.Background())
}
func (o PipelineContentConfigOutput) ToPipelineContentConfigPtrOutputWithContext(ctx context.Context) PipelineContentConfigPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v PipelineContentConfig) *PipelineContentConfig {
return &v
}).(PipelineContentConfigPtrOutput)
}
// The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.
func (o PipelineContentConfigOutput) Bucket() pulumi.StringPtrOutput {
return o.ApplyT(func(v PipelineContentConfig) *string { return v.Bucket }).(pulumi.StringPtrOutput)
}
// The Amazon S3 storage class, `Standard` or `ReducedRedundancy`, that you want Elastic Transcoder to assign to the files and playlists that it stores in your Amazon S3 bucket.
func (o PipelineContentConfigOutput) StorageClass() pulumi.StringPtrOutput {
return o.ApplyT(func(v PipelineContentConfig) *string { return v.StorageClass }).(pulumi.StringPtrOutput)
}
type PipelineContentConfigPtrOutput struct{ *pulumi.OutputState }
func (PipelineContentConfigPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**PipelineContentConfig)(nil)).Elem()
}
func (o PipelineContentConfigPtrOutput) ToPipelineContentConfigPtrOutput() PipelineContentConfigPtrOutput {
return o
}
func (o PipelineContentConfigPtrOutput) ToPipelineContentConfigPtrOutputWithContext(ctx context.Context) PipelineContentConfigPtrOutput {
return o
}
func (o PipelineContentConfigPtrOutput) Elem() PipelineContentConfigOutput {
return o.ApplyT(func(v *PipelineContentConfig) PipelineContentConfig {
if v != nil {
return *v
}
var ret PipelineContentConfig
return ret
}).(PipelineContentConfigOutput)
}
// The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.
func (o PipelineContentConfigPtrOutput) Bucket() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PipelineContentConfig) *string {
if v == nil {
return nil
}
return v.Bucket
}).(pulumi.StringPtrOutput)
}
// The Amazon S3 storage class, `Standard` or `ReducedRedundancy`, that you want Elastic Transcoder to assign to the files and playlists that it stores in your Amazon S3 bucket.
func (o PipelineContentConfigPtrOutput) StorageClass() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PipelineContentConfig) *string {
if v == nil {
return nil
}
return v.StorageClass
}).(pulumi.StringPtrOutput)
}
type PipelineContentConfigPermission struct {
// The permission that you want to give to the AWS user that you specified in `content_config_permissions.grantee`. Valid values are `Read`, `ReadAcp`, `WriteAcp` or `FullControl`.
Accesses []string `pulumi:"accesses"`
// The AWS user or group that you want to have access to transcoded files and playlists.
Grantee *string `pulumi:"grantee"`
// Specify the type of value that appears in the `content_config_permissions.grantee` object. Valid values are `Canonical`, `Email` or `Group`.
GranteeType *string `pulumi:"granteeType"`
}
// PipelineContentConfigPermissionInput is an input type that accepts PipelineContentConfigPermissionArgs and PipelineContentConfigPermissionOutput values.
// You can construct a concrete instance of `PipelineContentConfigPermissionInput` via:
//
// PipelineContentConfigPermissionArgs{...}
type PipelineContentConfigPermissionInput interface {
pulumi.Input
ToPipelineContentConfigPermissionOutput() PipelineContentConfigPermissionOutput
ToPipelineContentConfigPermissionOutputWithContext(context.Context) PipelineContentConfigPermissionOutput
}
type PipelineContentConfigPermissionArgs struct {
// The permission that you want to give to the AWS user that you specified in `content_config_permissions.grantee`. Valid values are `Read`, `ReadAcp`, `WriteAcp` or `FullControl`.
Accesses pulumi.StringArrayInput `pulumi:"accesses"`
// The AWS user or group that you want to have access to transcoded files and playlists.
Grantee pulumi.StringPtrInput `pulumi:"grantee"`
// Specify the type of value that appears in the `content_config_permissions.grantee` object. Valid values are `Canonical`, `Email` or `Group`.
GranteeType pulumi.StringPtrInput `pulumi:"granteeType"`
}
func (PipelineContentConfigPermissionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*PipelineContentConfigPermission)(nil)).Elem()
}
func (i PipelineContentConfigPermissionArgs) ToPipelineContentConfigPermissionOutput() PipelineContentConfigPermissionOutput {
return i.ToPipelineContentConfigPermissionOutputWithContext(context.Background())
}
func (i PipelineContentConfigPermissionArgs) ToPipelineContentConfigPermissionOutputWithContext(ctx context.Context) PipelineContentConfigPermissionOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineContentConfigPermissionOutput)
}
// PipelineContentConfigPermissionArrayInput is an input type that accepts PipelineContentConfigPermissionArray and PipelineContentConfigPermissionArrayOutput values.
// You can construct a concrete instance of `PipelineContentConfigPermissionArrayInput` via:
//
// PipelineContentConfigPermissionArray{ PipelineContentConfigPermissionArgs{...} }
type PipelineContentConfigPermissionArrayInput interface {
pulumi.Input
ToPipelineContentConfigPermissionArrayOutput() PipelineContentConfigPermissionArrayOutput
ToPipelineContentConfigPermissionArrayOutputWithContext(context.Context) PipelineContentConfigPermissionArrayOutput
}
type PipelineContentConfigPermissionArray []PipelineContentConfigPermissionInput
func (PipelineContentConfigPermissionArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]PipelineContentConfigPermission)(nil)).Elem()
}
func (i PipelineContentConfigPermissionArray) ToPipelineContentConfigPermissionArrayOutput() PipelineContentConfigPermissionArrayOutput {
return i.ToPipelineContentConfigPermissionArrayOutputWithContext(context.Background())
}
func (i PipelineContentConfigPermissionArray) ToPipelineContentConfigPermissionArrayOutputWithContext(ctx context.Context) PipelineContentConfigPermissionArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineContentConfigPermissionArrayOutput)
}
type PipelineContentConfigPermissionOutput struct{ *pulumi.OutputState }
func (PipelineContentConfigPermissionOutput) ElementType() reflect.Type {
return reflect.TypeOf((*PipelineContentConfigPermission)(nil)).Elem()
}
func (o PipelineContentConfigPermissionOutput) ToPipelineContentConfigPermissionOutput() PipelineContentConfigPermissionOutput {
return o
}
func (o PipelineContentConfigPermissionOutput) ToPipelineContentConfigPermissionOutputWithContext(ctx context.Context) PipelineContentConfigPermissionOutput {
return o
}
// The permission that you want to give to the AWS user that you specified in `content_config_permissions.grantee`. Valid values are `Read`, `ReadAcp`, `WriteAcp` or `FullControl`.
func (o PipelineContentConfigPermissionOutput) Accesses() pulumi.StringArrayOutput {
return o.ApplyT(func(v PipelineContentConfigPermission) []string { return v.Accesses }).(pulumi.StringArrayOutput)
}
// The AWS user or group that you want to have access to transcoded files and playlists.
func (o PipelineContentConfigPermissionOutput) Grantee() pulumi.StringPtrOutput {
return o.ApplyT(func(v PipelineContentConfigPermission) *string { return v.Grantee }).(pulumi.StringPtrOutput)
}
// Specify the type of value that appears in the `content_config_permissions.grantee` object. Valid values are `Canonical`, `Email` or `Group`.
func (o PipelineContentConfigPermissionOutput) GranteeType() pulumi.StringPtrOutput {
return o.ApplyT(func(v PipelineContentConfigPermission) *string { return v.GranteeType }).(pulumi.StringPtrOutput)
}
type PipelineContentConfigPermissionArrayOutput struct{ *pulumi.OutputState }
func (PipelineContentConfigPermissionArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]PipelineContentConfigPermission)(nil)).Elem()
}
func (o PipelineContentConfigPermissionArrayOutput) ToPipelineContentConfigPermissionArrayOutput() PipelineContentConfigPermissionArrayOutput {
return o
}
func (o PipelineContentConfigPermissionArrayOutput) ToPipelineContentConfigPermissionArrayOutputWithContext(ctx context.Context) PipelineContentConfigPermissionArrayOutput {
return o
}
func (o PipelineContentConfigPermissionArrayOutput) Index(i pulumi.IntInput) PipelineContentConfigPermissionOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) PipelineContentConfigPermission {
return vs[0].([]PipelineContentConfigPermission)[vs[1].(int)]
}).(PipelineContentConfigPermissionOutput)
}
type PipelineNotifications struct {
// The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline.
Completed *string `pulumi:"completed"`
// The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline.
Error *string `pulumi:"error"`
// The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline.
Progressing *string `pulumi:"progressing"`
// The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline.
//
// The `thumbnailConfig` object specifies information about the Amazon S3 bucket in
// which you want Elastic Transcoder to save thumbnail files: which bucket to use,
// which users you want to have access to the files, the type of access you want
// users to have, and the storage class that you want to assign to the files. If
// you specify values for `contentConfig`, you must also specify values for
// `thumbnailConfig` even if you don't want to create thumbnails. (You control
// whether to create thumbnails when you create a job. For more information, see
// ThumbnailPattern in the topic Create Job.) If you specify values for
// `contentConfig` and `thumbnailConfig`, omit the OutputBucket object.
Warning *string `pulumi:"warning"`
}
// PipelineNotificationsInput is an input type that accepts PipelineNotificationsArgs and PipelineNotificationsOutput values.
// You can construct a concrete instance of `PipelineNotificationsInput` via:
//
// PipelineNotificationsArgs{...}
type PipelineNotificationsInput interface {
pulumi.Input
ToPipelineNotificationsOutput() PipelineNotificationsOutput
ToPipelineNotificationsOutputWithContext(context.Context) PipelineNotificationsOutput
}
type PipelineNotificationsArgs struct {
// The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline.
Completed pulumi.StringPtrInput `pulumi:"completed"`
// The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline.
Error pulumi.StringPtrInput `pulumi:"error"`
// The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline.
Progressing pulumi.StringPtrInput `pulumi:"progressing"`
// The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline.
//
// The `thumbnailConfig` object specifies information about the Amazon S3 bucket in
// which you want Elastic Transcoder to save thumbnail files: which bucket to use,
// which users you want to have access to the files, the type of access you want
// users to have, and the storage class that you want to assign to the files. If
// you specify values for `contentConfig`, you must also specify values for
// `thumbnailConfig` even if you don't want to create thumbnails. (You control
// whether to create thumbnails when you create a job. For more information, see
// ThumbnailPattern in the topic Create Job.) If you specify values for
// `contentConfig` and `thumbnailConfig`, omit the OutputBucket object.
Warning pulumi.StringPtrInput `pulumi:"warning"`
}
func (PipelineNotificationsArgs) ElementType() reflect.Type {
return reflect.TypeOf((*PipelineNotifications)(nil)).Elem()
}
func (i PipelineNotificationsArgs) ToPipelineNotificationsOutput() PipelineNotificationsOutput {
return i.ToPipelineNotificationsOutputWithContext(context.Background())
}
func (i PipelineNotificationsArgs) ToPipelineNotificationsOutputWithContext(ctx context.Context) PipelineNotificationsOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineNotificationsOutput)
}
func (i PipelineNotificationsArgs) ToPipelineNotificationsPtrOutput() PipelineNotificationsPtrOutput {
return i.ToPipelineNotificationsPtrOutputWithContext(context.Background())
}
func (i PipelineNotificationsArgs) ToPipelineNotificationsPtrOutputWithContext(ctx context.Context) PipelineNotificationsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineNotificationsOutput).ToPipelineNotificationsPtrOutputWithContext(ctx)
}
// PipelineNotificationsPtrInput is an input type that accepts PipelineNotificationsArgs, PipelineNotificationsPtr and PipelineNotificationsPtrOutput values.
// You can construct a concrete instance of `PipelineNotificationsPtrInput` via:
//
// PipelineNotificationsArgs{...}
//
// or:
//
// nil
type PipelineNotificationsPtrInput interface {
pulumi.Input
ToPipelineNotificationsPtrOutput() PipelineNotificationsPtrOutput
ToPipelineNotificationsPtrOutputWithContext(context.Context) PipelineNotificationsPtrOutput
}
type pipelineNotificationsPtrType PipelineNotificationsArgs
func PipelineNotificationsPtr(v *PipelineNotificationsArgs) PipelineNotificationsPtrInput {
return (*pipelineNotificationsPtrType)(v)
}
func (*pipelineNotificationsPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**PipelineNotifications)(nil)).Elem()
}
func (i *pipelineNotificationsPtrType) ToPipelineNotificationsPtrOutput() PipelineNotificationsPtrOutput {
return i.ToPipelineNotificationsPtrOutputWithContext(context.Background())
}
func (i *pipelineNotificationsPtrType) ToPipelineNotificationsPtrOutputWithContext(ctx context.Context) PipelineNotificationsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineNotificationsPtrOutput)
}
type PipelineNotificationsOutput struct{ *pulumi.OutputState }
func (PipelineNotificationsOutput) ElementType() reflect.Type {
return reflect.TypeOf((*PipelineNotifications)(nil)).Elem()
}
func (o PipelineNotificationsOutput) ToPipelineNotificationsOutput() PipelineNotificationsOutput {
return o
}
func (o PipelineNotificationsOutput) ToPipelineNotificationsOutputWithContext(ctx context.Context) PipelineNotificationsOutput {
return o
}
func (o PipelineNotificationsOutput) ToPipelineNotificationsPtrOutput() PipelineNotificationsPtrOutput {
return o.ToPipelineNotificationsPtrOutputWithContext(context.Background())
}
func (o PipelineNotificationsOutput) ToPipelineNotificationsPtrOutputWithContext(ctx context.Context) PipelineNotificationsPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v PipelineNotifications) *PipelineNotifications {
return &v
}).(PipelineNotificationsPtrOutput)
}
// The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline.
func (o PipelineNotificationsOutput) Completed() pulumi.StringPtrOutput {
return o.ApplyT(func(v PipelineNotifications) *string { return v.Completed }).(pulumi.StringPtrOutput)
}
// The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline.
func (o PipelineNotificationsOutput) Error() pulumi.StringPtrOutput {
return o.ApplyT(func(v PipelineNotifications) *string { return v.Error }).(pulumi.StringPtrOutput)
}
// The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline.
func (o PipelineNotificationsOutput) Progressing() pulumi.StringPtrOutput {
return o.ApplyT(func(v PipelineNotifications) *string { return v.Progressing }).(pulumi.StringPtrOutput)
}
// The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline.
//
// The `thumbnailConfig` object specifies information about the Amazon S3 bucket in
// which you want Elastic Transcoder to save thumbnail files: which bucket to use,
// which users you want to have access to the files, the type of access you want
// users to have, and the storage class that you want to assign to the files. If
// you specify values for `contentConfig`, you must also specify values for
// `thumbnailConfig` even if you don't want to create thumbnails. (You control
// whether to create thumbnails when you create a job. For more information, see
// ThumbnailPattern in the topic Create Job.) If you specify values for
// `contentConfig` and `thumbnailConfig`, omit the OutputBucket object.
func (o PipelineNotificationsOutput) Warning() pulumi.StringPtrOutput {
return o.ApplyT(func(v PipelineNotifications) *string { return v.Warning }).(pulumi.StringPtrOutput)
}
type PipelineNotificationsPtrOutput struct{ *pulumi.OutputState }
func (PipelineNotificationsPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**PipelineNotifications)(nil)).Elem()
}
func (o PipelineNotificationsPtrOutput) ToPipelineNotificationsPtrOutput() PipelineNotificationsPtrOutput {
return o
}
func (o PipelineNotificationsPtrOutput) ToPipelineNotificationsPtrOutputWithContext(ctx context.Context) PipelineNotificationsPtrOutput {
return o
}
func (o PipelineNotificationsPtrOutput) Elem() PipelineNotificationsOutput {
return o.ApplyT(func(v *PipelineNotifications) PipelineNotifications {
if v != nil {
return *v
}
var ret PipelineNotifications
return ret
}).(PipelineNotificationsOutput)
}
// The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline.
func (o PipelineNotificationsPtrOutput) Completed() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PipelineNotifications) *string {
if v == nil {
return nil
}
return v.Completed
}).(pulumi.StringPtrOutput)
}
// The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline.
func (o PipelineNotificationsPtrOutput) Error() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PipelineNotifications) *string {
if v == nil {
return nil
}
return v.Error
}).(pulumi.StringPtrOutput)
}
// The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline.
func (o PipelineNotificationsPtrOutput) Progressing() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PipelineNotifications) *string {
if v == nil {
return nil
}
return v.Progressing
}).(pulumi.StringPtrOutput)
}
// The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline.
//
// The `thumbnailConfig` object specifies information about the Amazon S3 bucket in
// which you want Elastic Transcoder to save thumbnail files: which bucket to use,
// which users you want to have access to the files, the type of access you want
// users to have, and the storage class that you want to assign to the files. If
// you specify values for `contentConfig`, you must also specify values for
// `thumbnailConfig` even if you don't want to create thumbnails. (You control
// whether to create thumbnails when you create a job. For more information, see
// ThumbnailPattern in the topic Create Job.) If you specify values for
// `contentConfig` and `thumbnailConfig`, omit the OutputBucket object.
func (o PipelineNotificationsPtrOutput) Warning() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PipelineNotifications) *string {
if v == nil {
return nil
}
return v.Warning
}).(pulumi.StringPtrOutput)
}
type PipelineThumbnailConfig struct {
// The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.
Bucket *string `pulumi:"bucket"`
// The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket.
StorageClass *string `pulumi:"storageClass"`
}
// PipelineThumbnailConfigInput is an input type that accepts PipelineThumbnailConfigArgs and PipelineThumbnailConfigOutput values.
// You can construct a concrete instance of `PipelineThumbnailConfigInput` via:
//
// PipelineThumbnailConfigArgs{...}
type PipelineThumbnailConfigInput interface {
pulumi.Input
ToPipelineThumbnailConfigOutput() PipelineThumbnailConfigOutput
ToPipelineThumbnailConfigOutputWithContext(context.Context) PipelineThumbnailConfigOutput
}
type PipelineThumbnailConfigArgs struct {
// The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.
Bucket pulumi.StringPtrInput `pulumi:"bucket"`
// The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket.
StorageClass pulumi.StringPtrInput `pulumi:"storageClass"`
}
func (PipelineThumbnailConfigArgs) ElementType() reflect.Type {
return reflect.TypeOf((*PipelineThumbnailConfig)(nil)).Elem()
}
func (i PipelineThumbnailConfigArgs) ToPipelineThumbnailConfigOutput() PipelineThumbnailConfigOutput {
return i.ToPipelineThumbnailConfigOutputWithContext(context.Background())
}
func (i PipelineThumbnailConfigArgs) ToPipelineThumbnailConfigOutputWithContext(ctx context.Context) PipelineThumbnailConfigOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineThumbnailConfigOutput)
}
func (i PipelineThumbnailConfigArgs) ToPipelineThumbnailConfigPtrOutput() PipelineThumbnailConfigPtrOutput {
return i.ToPipelineThumbnailConfigPtrOutputWithContext(context.Background())
}
func (i PipelineThumbnailConfigArgs) ToPipelineThumbnailConfigPtrOutputWithContext(ctx context.Context) PipelineThumbnailConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineThumbnailConfigOutput).ToPipelineThumbnailConfigPtrOutputWithContext(ctx)
}
// PipelineThumbnailConfigPtrInput is an input type that accepts PipelineThumbnailConfigArgs, PipelineThumbnailConfigPtr and PipelineThumbnailConfigPtrOutput values.
// You can construct a concrete instance of `PipelineThumbnailConfigPtrInput` via:
//
// PipelineThumbnailConfigArgs{...}
//
// or:
//
// nil
type PipelineThumbnailConfigPtrInput interface {
pulumi.Input
ToPipelineThumbnailConfigPtrOutput() PipelineThumbnailConfigPtrOutput
ToPipelineThumbnailConfigPtrOutputWithContext(context.Context) PipelineThumbnailConfigPtrOutput
}
type pipelineThumbnailConfigPtrType PipelineThumbnailConfigArgs
func PipelineThumbnailConfigPtr(v *PipelineThumbnailConfigArgs) PipelineThumbnailConfigPtrInput {
return (*pipelineThumbnailConfigPtrType)(v)
}
func (*pipelineThumbnailConfigPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**PipelineThumbnailConfig)(nil)).Elem()
}
func (i *pipelineThumbnailConfigPtrType) ToPipelineThumbnailConfigPtrOutput() PipelineThumbnailConfigPtrOutput {
return i.ToPipelineThumbnailConfigPtrOutputWithContext(context.Background())
}
func (i *pipelineThumbnailConfigPtrType) ToPipelineThumbnailConfigPtrOutputWithContext(ctx context.Context) PipelineThumbnailConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineThumbnailConfigPtrOutput)
}
type PipelineThumbnailConfigOutput struct{ *pulumi.OutputState }
func (PipelineThumbnailConfigOutput) ElementType() reflect.Type {
return reflect.TypeOf((*PipelineThumbnailConfig)(nil)).Elem()
}
func (o PipelineThumbnailConfigOutput) ToPipelineThumbnailConfigOutput() PipelineThumbnailConfigOutput {
return o
}
func (o PipelineThumbnailConfigOutput) ToPipelineThumbnailConfigOutputWithContext(ctx context.Context) PipelineThumbnailConfigOutput {
return o
}
func (o PipelineThumbnailConfigOutput) ToPipelineThumbnailConfigPtrOutput() PipelineThumbnailConfigPtrOutput {
return o.ToPipelineThumbnailConfigPtrOutputWithContext(context.Background())
}
func (o PipelineThumbnailConfigOutput) ToPipelineThumbnailConfigPtrOutputWithContext(ctx context.Context) PipelineThumbnailConfigPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v PipelineThumbnailConfig) *PipelineThumbnailConfig {
return &v
}).(PipelineThumbnailConfigPtrOutput)
}
// The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.
func (o PipelineThumbnailConfigOutput) Bucket() pulumi.StringPtrOutput {
return o.ApplyT(func(v PipelineThumbnailConfig) *string { return v.Bucket }).(pulumi.StringPtrOutput)
}
// The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket.
func (o PipelineThumbnailConfigOutput) StorageClass() pulumi.StringPtrOutput {
return o.ApplyT(func(v PipelineThumbnailConfig) *string { return v.StorageClass }).(pulumi.StringPtrOutput)
}
type PipelineThumbnailConfigPtrOutput struct{ *pulumi.OutputState }
func (PipelineThumbnailConfigPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**PipelineThumbnailConfig)(nil)).Elem()
}
func (o PipelineThumbnailConfigPtrOutput) ToPipelineThumbnailConfigPtrOutput() PipelineThumbnailConfigPtrOutput {
return o
}
func (o PipelineThumbnailConfigPtrOutput) ToPipelineThumbnailConfigPtrOutputWithContext(ctx context.Context) PipelineThumbnailConfigPtrOutput {
return o
}
func (o PipelineThumbnailConfigPtrOutput) Elem() PipelineThumbnailConfigOutput {
return o.ApplyT(func(v *PipelineThumbnailConfig) PipelineThumbnailConfig {
if v != nil {
return *v
}
var ret PipelineThumbnailConfig
return ret
}).(PipelineThumbnailConfigOutput)
}
// The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.
func (o PipelineThumbnailConfigPtrOutput) Bucket() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PipelineThumbnailConfig) *string {
if v == nil {
return nil
}
return v.Bucket
}).(pulumi.StringPtrOutput)
}
// The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket.
func (o PipelineThumbnailConfigPtrOutput) StorageClass() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PipelineThumbnailConfig) *string {
if v == nil {
return nil
}
return v.StorageClass
}).(pulumi.StringPtrOutput)
}
type PipelineThumbnailConfigPermission struct {
// The permission that you want to give to the AWS user that you specified in `thumbnail_config_permissions.grantee`. Valid values are `Read`, `ReadAcp`, `WriteAcp` or `FullControl`.
Accesses []string `pulumi:"accesses"`
// The AWS user or group that you want to have access to thumbnail files.
Grantee *string `pulumi:"grantee"`
// Specify the type of value that appears in the `thumbnail_config_permissions.grantee` object. Valid values are `Canonical`, `Email` or `Group`.
GranteeType *string `pulumi:"granteeType"`
}
// PipelineThumbnailConfigPermissionInput is an input type that accepts PipelineThumbnailConfigPermissionArgs and PipelineThumbnailConfigPermissionOutput values.
// You can construct a concrete instance of `PipelineThumbnailConfigPermissionInput` via:
//
// PipelineThumbnailConfigPermissionArgs{...}
type PipelineThumbnailConfigPermissionInput interface {
pulumi.Input
ToPipelineThumbnailConfigPermissionOutput() PipelineThumbnailConfigPermissionOutput
ToPipelineThumbnailConfigPermissionOutputWithContext(context.Context) PipelineThumbnailConfigPermissionOutput
}
type PipelineThumbnailConfigPermissionArgs struct {
// The permission that you want to give to the AWS user that you specified in `thumbnail_config_permissions.grantee`. Valid values are `Read`, `ReadAcp`, `WriteAcp` or `FullControl`.
Accesses pulumi.StringArrayInput `pulumi:"accesses"`
// The AWS user or group that you want to have access to thumbnail files.
Grantee pulumi.StringPtrInput `pulumi:"grantee"`
// Specify the type of value that appears in the `thumbnail_config_permissions.grantee` object. Valid values are `Canonical`, `Email` or `Group`.
GranteeType pulumi.StringPtrInput `pulumi:"granteeType"`
}
func (PipelineThumbnailConfigPermissionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*PipelineThumbnailConfigPermission)(nil)).Elem()
}
func (i PipelineThumbnailConfigPermissionArgs) ToPipelineThumbnailConfigPermissionOutput() PipelineThumbnailConfigPermissionOutput {
return i.ToPipelineThumbnailConfigPermissionOutputWithContext(context.Background())
}
func (i PipelineThumbnailConfigPermissionArgs) ToPipelineThumbnailConfigPermissionOutputWithContext(ctx context.Context) PipelineThumbnailConfigPermissionOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineThumbnailConfigPermissionOutput)
}
// PipelineThumbnailConfigPermissionArrayInput is an input type that accepts PipelineThumbnailConfigPermissionArray and PipelineThumbnailConfigPermissionArrayOutput values.
// You can construct a concrete instance of `PipelineThumbnailConfigPermissionArrayInput` via:
//
// PipelineThumbnailConfigPermissionArray{ PipelineThumbnailConfigPermissionArgs{...} }
type PipelineThumbnailConfigPermissionArrayInput interface {
pulumi.Input
ToPipelineThumbnailConfigPermissionArrayOutput() PipelineThumbnailConfigPermissionArrayOutput
ToPipelineThumbnailConfigPermissionArrayOutputWithContext(context.Context) PipelineThumbnailConfigPermissionArrayOutput
}
type PipelineThumbnailConfigPermissionArray []PipelineThumbnailConfigPermissionInput
func (PipelineThumbnailConfigPermissionArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]PipelineThumbnailConfigPermission)(nil)).Elem()
}
func (i PipelineThumbnailConfigPermissionArray) ToPipelineThumbnailConfigPermissionArrayOutput() PipelineThumbnailConfigPermissionArrayOutput {
return i.ToPipelineThumbnailConfigPermissionArrayOutputWithContext(context.Background())
}
func (i PipelineThumbnailConfigPermissionArray) ToPipelineThumbnailConfigPermissionArrayOutputWithContext(ctx context.Context) PipelineThumbnailConfigPermissionArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineThumbnailConfigPermissionArrayOutput)
}
type PipelineThumbnailConfigPermissionOutput struct{ *pulumi.OutputState }
func (PipelineThumbnailConfigPermissionOutput) ElementType() reflect.Type {
return reflect.TypeOf((*PipelineThumbnailConfigPermission)(nil)).Elem()
}
func (o PipelineThumbnailConfigPermissionOutput) ToPipelineThumbnailConfigPermissionOutput() PipelineThumbnailConfigPermissionOutput {
return o
}
func (o PipelineThumbnailConfigPermissionOutput) ToPipelineThumbnailConfigPermissionOutputWithContext(ctx context.Context) PipelineThumbnailConfigPermissionOutput {
return o
}
// The permission that you want to give to the AWS user that you specified in `thumbnail_config_permissions.grantee`. Valid values are `Read`, `ReadAcp`, `WriteAcp` or `FullControl`.
func (o PipelineThumbnailConfigPermissionOutput) Accesses() pulumi.StringArrayOutput {
return o.ApplyT(func(v PipelineThumbnailConfigPermission) []string { return v.Accesses }).(pulumi.StringArrayOutput)
}
// The AWS user or group that you want to have access to thumbnail files.
func (o PipelineThumbnailConfigPermissionOutput) Grantee() pulumi.StringPtrOutput {
return o.ApplyT(func(v PipelineThumbnailConfigPermission) *string { return v.Grantee }).(pulumi.StringPtrOutput)
}
// Specify the type of value that appears in the `thumbnail_config_permissions.grantee` object. Valid values are `Canonical`, `Email` or `Group`.
func (o PipelineThumbnailConfigPermissionOutput) GranteeType() pulumi.StringPtrOutput {
return o.ApplyT(func(v PipelineThumbnailConfigPermission) *string { return v.GranteeType }).(pulumi.StringPtrOutput)
}
type PipelineThumbnailConfigPermissionArrayOutput struct{ *pulumi.OutputState }
func (PipelineThumbnailConfigPermissionArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]PipelineThumbnailConfigPermission)(nil)).Elem()
}
func (o PipelineThumbnailConfigPermissionArrayOutput) ToPipelineThumbnailConfigPermissionArrayOutput() PipelineThumbnailConfigPermissionArrayOutput {
return o
}
func (o PipelineThumbnailConfigPermissionArrayOutput) ToPipelineThumbnailConfigPermissionArrayOutputWithContext(ctx context.Context) PipelineThumbnailConfigPermissionArrayOutput {
return o
}
func (o PipelineThumbnailConfigPermissionArrayOutput) Index(i pulumi.IntInput) PipelineThumbnailConfigPermissionOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) PipelineThumbnailConfigPermission {
return vs[0].([]PipelineThumbnailConfigPermission)[vs[1].(int)]
}).(PipelineThumbnailConfigPermissionOutput)
}
type PresetAudio struct {
// The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack.
AudioPackingMode *string `pulumi:"audioPackingMode"`
// The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.
BitRate *string `pulumi:"bitRate"`
// The number of audio channels in the output file
Channels *string `pulumi:"channels"`
// The audio codec for the output file. Valid values are `AAC`, `flac`, `mp2`, `mp3`, `pcm`, and `vorbis`.
Codec *string `pulumi:"codec"`
// The sample rate of the audio stream in the output file, in hertz. Valid values are: `auto`, `22050`, `32000`, `44100`, `48000`, `96000`
SampleRate *string `pulumi:"sampleRate"`
}
// PresetAudioInput is an input type that accepts PresetAudioArgs and PresetAudioOutput values.
// You can construct a concrete instance of `PresetAudioInput` via:
//
// PresetAudioArgs{...}
type PresetAudioInput interface {
pulumi.Input
ToPresetAudioOutput() PresetAudioOutput
ToPresetAudioOutputWithContext(context.Context) PresetAudioOutput
}
type PresetAudioArgs struct {
// The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack.
AudioPackingMode pulumi.StringPtrInput `pulumi:"audioPackingMode"`
// The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.
BitRate pulumi.StringPtrInput `pulumi:"bitRate"`
// The number of audio channels in the output file
Channels pulumi.StringPtrInput `pulumi:"channels"`
// The audio codec for the output file. Valid values are `AAC`, `flac`, `mp2`, `mp3`, `pcm`, and `vorbis`.
Codec pulumi.StringPtrInput `pulumi:"codec"`
// The sample rate of the audio stream in the output file, in hertz. Valid values are: `auto`, `22050`, `32000`, `44100`, `48000`, `96000`
SampleRate pulumi.StringPtrInput `pulumi:"sampleRate"`
}
func (PresetAudioArgs) ElementType() reflect.Type {
return reflect.TypeOf((*PresetAudio)(nil)).Elem()
}
func (i PresetAudioArgs) ToPresetAudioOutput() PresetAudioOutput {
return i.ToPresetAudioOutputWithContext(context.Background())
}
func (i PresetAudioArgs) ToPresetAudioOutputWithContext(ctx context.Context) PresetAudioOutput {
return pulumi.ToOutputWithContext(ctx, i).(PresetAudioOutput)
}
func (i PresetAudioArgs) ToPresetAudioPtrOutput() PresetAudioPtrOutput {
return i.ToPresetAudioPtrOutputWithContext(context.Background())
}
func (i PresetAudioArgs) ToPresetAudioPtrOutputWithContext(ctx context.Context) PresetAudioPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(PresetAudioOutput).ToPresetAudioPtrOutputWithContext(ctx)
}
// PresetAudioPtrInput is an input type that accepts PresetAudioArgs, PresetAudioPtr and PresetAudioPtrOutput values.
// You can construct a concrete instance of `PresetAudioPtrInput` via:
//
// PresetAudioArgs{...}
//
// or:
//
// nil
type PresetAudioPtrInput interface {
pulumi.Input
ToPresetAudioPtrOutput() PresetAudioPtrOutput
ToPresetAudioPtrOutputWithContext(context.Context) PresetAudioPtrOutput
}
type presetAudioPtrType PresetAudioArgs
func PresetAudioPtr(v *PresetAudioArgs) PresetAudioPtrInput {
return (*presetAudioPtrType)(v)
}
func (*presetAudioPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**PresetAudio)(nil)).Elem()
}
func (i *presetAudioPtrType) ToPresetAudioPtrOutput() PresetAudioPtrOutput {
return i.ToPresetAudioPtrOutputWithContext(context.Background())
}
func (i *presetAudioPtrType) ToPresetAudioPtrOutputWithContext(ctx context.Context) PresetAudioPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(PresetAudioPtrOutput)
}
type PresetAudioOutput struct{ *pulumi.OutputState }
func (PresetAudioOutput) ElementType() reflect.Type {
return reflect.TypeOf((*PresetAudio)(nil)).Elem()
}
func (o PresetAudioOutput) ToPresetAudioOutput() PresetAudioOutput {
return o
}
func (o PresetAudioOutput) ToPresetAudioOutputWithContext(ctx context.Context) PresetAudioOutput {
return o
}
func (o PresetAudioOutput) ToPresetAudioPtrOutput() PresetAudioPtrOutput {
return o.ToPresetAudioPtrOutputWithContext(context.Background())
}
func (o PresetAudioOutput) ToPresetAudioPtrOutputWithContext(ctx context.Context) PresetAudioPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v PresetAudio) *PresetAudio {
return &v
}).(PresetAudioPtrOutput)
}
// The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack.
func (o PresetAudioOutput) AudioPackingMode() pulumi.StringPtrOutput {
return o.ApplyT(func(v PresetAudio) *string { return v.AudioPackingMode }).(pulumi.StringPtrOutput)
}
// The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.
func (o PresetAudioOutput) BitRate() pulumi.StringPtrOutput {
return o.ApplyT(func(v PresetAudio) *string { return v.BitRate }).(pulumi.StringPtrOutput)
}
// The number of audio channels in the output file
func (o PresetAudioOutput) Channels() pulumi.StringPtrOutput {
return o.ApplyT(func(v PresetAudio) *string { return v.Channels }).(pulumi.StringPtrOutput)
}
// The audio codec for the output file. Valid values are `AAC`, `flac`, `mp2`, `mp3`, `pcm`, and `vorbis`.
func (o PresetAudioOutput) Codec() pulumi.StringPtrOutput {
return o.ApplyT(func(v PresetAudio) *string { return v.Codec }).(pulumi.StringPtrOutput)
}
// The sample rate of the audio stream in the output file, in hertz. Valid values are: `auto`, `22050`, `32000`, `44100`, `48000`, `96000`
func (o PresetAudioOutput) SampleRate() pulumi.StringPtrOutput {
return o.ApplyT(func(v PresetAudio) *string { return v.SampleRate }).(pulumi.StringPtrOutput)
}
type PresetAudioPtrOutput struct{ *pulumi.OutputState }
func (PresetAudioPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**PresetAudio)(nil)).Elem()
}
func (o PresetAudioPtrOutput) ToPresetAudioPtrOutput() PresetAudioPtrOutput {
return o
}
func (o PresetAudioPtrOutput) ToPresetAudioPtrOutputWithContext(ctx context.Context) PresetAudioPtrOutput {
return o
}
func (o PresetAudioPtrOutput) Elem() PresetAudioOutput {
return o.ApplyT(func(v *PresetAudio) PresetAudio {
if v != nil {
return *v
}
var ret PresetAudio
return ret
}).(PresetAudioOutput)
}
// The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack.
func (o PresetAudioPtrOutput) AudioPackingMode() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PresetAudio) *string {
if v == nil {
return nil
}
return v.AudioPackingMode
}).(pulumi.StringPtrOutput)
}
// The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.
func (o PresetAudioPtrOutput) BitRate() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PresetAudio) *string {
if v == nil {
return nil
}
return v.BitRate
}).(pulumi.StringPtrOutput)
}
// The number of audio channels in the output file
func (o PresetAudioPtrOutput) Channels() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PresetAudio) *string {
if v == nil {
return nil
}
return v.Channels
}).(pulumi.StringPtrOutput)
}
// The audio codec for the output file. Valid values are `AAC`, `flac`, `mp2`, `mp3`, `pcm`, and `vorbis`.
func (o PresetAudioPtrOutput) Codec() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PresetAudio) *string {
if v == nil {
return nil
}
return v.Codec
}).(pulumi.StringPtrOutput)
}
// The sample rate of the audio stream in the output file, in hertz. Valid values are: `auto`, `22050`, `32000`, `44100`, `48000`, `96000`
func (o PresetAudioPtrOutput) SampleRate() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PresetAudio) *string {
if v == nil {
return nil
}