/
streamingLocator.go
484 lines (426 loc) · 25.7 KB
/
streamingLocator.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
// 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 media
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages a Media Streaming Locator.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/media"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
// Name: pulumi.String("media-resources"),
// Location: pulumi.String("West Europe"),
// })
// if err != nil {
// return err
// }
// exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
// Name: pulumi.String("examplestoracc"),
// ResourceGroupName: example.Name,
// Location: example.Location,
// AccountTier: pulumi.String("Standard"),
// AccountReplicationType: pulumi.String("GRS"),
// })
// if err != nil {
// return err
// }
// exampleServiceAccount, err := media.NewServiceAccount(ctx, "example", &media.ServiceAccountArgs{
// Name: pulumi.String("examplemediaacc"),
// Location: example.Location,
// ResourceGroupName: example.Name,
// StorageAccounts: media.ServiceAccountStorageAccountArray{
// &media.ServiceAccountStorageAccountArgs{
// Id: exampleAccount.ID(),
// IsPrimary: pulumi.Bool(true),
// },
// },
// })
// if err != nil {
// return err
// }
// exampleAccountFilter, err := media.NewAccountFilter(ctx, "example", &media.AccountFilterArgs{
// Name: pulumi.String("Filter1"),
// ResourceGroupName: example.Name,
// MediaServicesAccountName: exampleServiceAccount.Name,
// })
// if err != nil {
// return err
// }
// exampleAsset, err := media.NewAsset(ctx, "example", &media.AssetArgs{
// Name: pulumi.String("Asset1"),
// ResourceGroupName: example.Name,
// MediaServicesAccountName: exampleServiceAccount.Name,
// Description: pulumi.String("Asset description"),
// })
// if err != nil {
// return err
// }
// _, err = media.NewStreamingLocator(ctx, "example", &media.StreamingLocatorArgs{
// Name: pulumi.String("example"),
// ResourceGroupName: example.Name,
// MediaServicesAccountName: exampleServiceAccount.Name,
// AssetName: exampleAsset.Name,
// StreamingPolicyName: pulumi.String("Predefined_ClearStreamingOnly"),
// FilterNames: pulumi.StringArray{
// exampleAccountFilter.Name,
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Streaming Locators can be imported using the `resource id`, e.g.
//
// ```sh
// $ pulumi import azure:media/streamingLocator:StreamingLocator example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Media/mediaServices/account1/streamingLocators/locator1
// ```
type StreamingLocator struct {
pulumi.CustomResourceState
// Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
AlternativeMediaId pulumi.StringPtrOutput `pulumi:"alternativeMediaId"`
// Asset Name. Changing this forces a new Streaming Locator to be created.
AssetName pulumi.StringOutput `pulumi:"assetName"`
// One or more `contentKey` blocks as defined below. Changing this forces a new Streaming Locator to be created.
ContentKeys StreamingLocatorContentKeyArrayOutput `pulumi:"contentKeys"`
// Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
DefaultContentKeyPolicyName pulumi.StringPtrOutput `pulumi:"defaultContentKeyPolicyName"`
// The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
EndTime pulumi.StringOutput `pulumi:"endTime"`
// A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
FilterNames pulumi.StringArrayOutput `pulumi:"filterNames"`
// The Media Services account name. Changing this forces a new Streaming Locator to be created.
MediaServicesAccountName pulumi.StringOutput `pulumi:"mediaServicesAccountName"`
// The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
Name pulumi.StringOutput `pulumi:"name"`
// The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
// The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
StartTime pulumi.StringPtrOutput `pulumi:"startTime"`
// The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
StreamingLocatorId pulumi.StringOutput `pulumi:"streamingLocatorId"`
// Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: `Predefined_DownloadOnly`, `Predefined_ClearStreamingOnly`, `Predefined_DownloadAndClearStreaming`, `Predefined_ClearKey`, `Predefined_MultiDrmCencStreaming` and `Predefined_MultiDrmStreaming`. Changing this forces a new Streaming Locator to be created.
StreamingPolicyName pulumi.StringOutput `pulumi:"streamingPolicyName"`
}
// NewStreamingLocator registers a new resource with the given unique name, arguments, and options.
func NewStreamingLocator(ctx *pulumi.Context,
name string, args *StreamingLocatorArgs, opts ...pulumi.ResourceOption) (*StreamingLocator, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.AssetName == nil {
return nil, errors.New("invalid value for required argument 'AssetName'")
}
if args.MediaServicesAccountName == nil {
return nil, errors.New("invalid value for required argument 'MediaServicesAccountName'")
}
if args.ResourceGroupName == nil {
return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
}
if args.StreamingPolicyName == nil {
return nil, errors.New("invalid value for required argument 'StreamingPolicyName'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource StreamingLocator
err := ctx.RegisterResource("azure:media/streamingLocator:StreamingLocator", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetStreamingLocator gets an existing StreamingLocator resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetStreamingLocator(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *StreamingLocatorState, opts ...pulumi.ResourceOption) (*StreamingLocator, error) {
var resource StreamingLocator
err := ctx.ReadResource("azure:media/streamingLocator:StreamingLocator", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering StreamingLocator resources.
type streamingLocatorState struct {
// Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
AlternativeMediaId *string `pulumi:"alternativeMediaId"`
// Asset Name. Changing this forces a new Streaming Locator to be created.
AssetName *string `pulumi:"assetName"`
// One or more `contentKey` blocks as defined below. Changing this forces a new Streaming Locator to be created.
ContentKeys []StreamingLocatorContentKey `pulumi:"contentKeys"`
// Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
DefaultContentKeyPolicyName *string `pulumi:"defaultContentKeyPolicyName"`
// The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
EndTime *string `pulumi:"endTime"`
// A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
FilterNames []string `pulumi:"filterNames"`
// The Media Services account name. Changing this forces a new Streaming Locator to be created.
MediaServicesAccountName *string `pulumi:"mediaServicesAccountName"`
// The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
Name *string `pulumi:"name"`
// The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
ResourceGroupName *string `pulumi:"resourceGroupName"`
// The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
StartTime *string `pulumi:"startTime"`
// The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
StreamingLocatorId *string `pulumi:"streamingLocatorId"`
// Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: `Predefined_DownloadOnly`, `Predefined_ClearStreamingOnly`, `Predefined_DownloadAndClearStreaming`, `Predefined_ClearKey`, `Predefined_MultiDrmCencStreaming` and `Predefined_MultiDrmStreaming`. Changing this forces a new Streaming Locator to be created.
StreamingPolicyName *string `pulumi:"streamingPolicyName"`
}
type StreamingLocatorState struct {
// Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
AlternativeMediaId pulumi.StringPtrInput
// Asset Name. Changing this forces a new Streaming Locator to be created.
AssetName pulumi.StringPtrInput
// One or more `contentKey` blocks as defined below. Changing this forces a new Streaming Locator to be created.
ContentKeys StreamingLocatorContentKeyArrayInput
// Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
DefaultContentKeyPolicyName pulumi.StringPtrInput
// The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
EndTime pulumi.StringPtrInput
// A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
FilterNames pulumi.StringArrayInput
// The Media Services account name. Changing this forces a new Streaming Locator to be created.
MediaServicesAccountName pulumi.StringPtrInput
// The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
Name pulumi.StringPtrInput
// The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
ResourceGroupName pulumi.StringPtrInput
// The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
StartTime pulumi.StringPtrInput
// The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
StreamingLocatorId pulumi.StringPtrInput
// Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: `Predefined_DownloadOnly`, `Predefined_ClearStreamingOnly`, `Predefined_DownloadAndClearStreaming`, `Predefined_ClearKey`, `Predefined_MultiDrmCencStreaming` and `Predefined_MultiDrmStreaming`. Changing this forces a new Streaming Locator to be created.
StreamingPolicyName pulumi.StringPtrInput
}
func (StreamingLocatorState) ElementType() reflect.Type {
return reflect.TypeOf((*streamingLocatorState)(nil)).Elem()
}
type streamingLocatorArgs struct {
// Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
AlternativeMediaId *string `pulumi:"alternativeMediaId"`
// Asset Name. Changing this forces a new Streaming Locator to be created.
AssetName string `pulumi:"assetName"`
// One or more `contentKey` blocks as defined below. Changing this forces a new Streaming Locator to be created.
ContentKeys []StreamingLocatorContentKey `pulumi:"contentKeys"`
// Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
DefaultContentKeyPolicyName *string `pulumi:"defaultContentKeyPolicyName"`
// The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
EndTime *string `pulumi:"endTime"`
// A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
FilterNames []string `pulumi:"filterNames"`
// The Media Services account name. Changing this forces a new Streaming Locator to be created.
MediaServicesAccountName string `pulumi:"mediaServicesAccountName"`
// The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
Name *string `pulumi:"name"`
// The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
StartTime *string `pulumi:"startTime"`
// The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
StreamingLocatorId *string `pulumi:"streamingLocatorId"`
// Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: `Predefined_DownloadOnly`, `Predefined_ClearStreamingOnly`, `Predefined_DownloadAndClearStreaming`, `Predefined_ClearKey`, `Predefined_MultiDrmCencStreaming` and `Predefined_MultiDrmStreaming`. Changing this forces a new Streaming Locator to be created.
StreamingPolicyName string `pulumi:"streamingPolicyName"`
}
// The set of arguments for constructing a StreamingLocator resource.
type StreamingLocatorArgs struct {
// Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
AlternativeMediaId pulumi.StringPtrInput
// Asset Name. Changing this forces a new Streaming Locator to be created.
AssetName pulumi.StringInput
// One or more `contentKey` blocks as defined below. Changing this forces a new Streaming Locator to be created.
ContentKeys StreamingLocatorContentKeyArrayInput
// Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
DefaultContentKeyPolicyName pulumi.StringPtrInput
// The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
EndTime pulumi.StringPtrInput
// A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
FilterNames pulumi.StringArrayInput
// The Media Services account name. Changing this forces a new Streaming Locator to be created.
MediaServicesAccountName pulumi.StringInput
// The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
Name pulumi.StringPtrInput
// The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
ResourceGroupName pulumi.StringInput
// The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
StartTime pulumi.StringPtrInput
// The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
StreamingLocatorId pulumi.StringPtrInput
// Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: `Predefined_DownloadOnly`, `Predefined_ClearStreamingOnly`, `Predefined_DownloadAndClearStreaming`, `Predefined_ClearKey`, `Predefined_MultiDrmCencStreaming` and `Predefined_MultiDrmStreaming`. Changing this forces a new Streaming Locator to be created.
StreamingPolicyName pulumi.StringInput
}
func (StreamingLocatorArgs) ElementType() reflect.Type {
return reflect.TypeOf((*streamingLocatorArgs)(nil)).Elem()
}
type StreamingLocatorInput interface {
pulumi.Input
ToStreamingLocatorOutput() StreamingLocatorOutput
ToStreamingLocatorOutputWithContext(ctx context.Context) StreamingLocatorOutput
}
func (*StreamingLocator) ElementType() reflect.Type {
return reflect.TypeOf((**StreamingLocator)(nil)).Elem()
}
func (i *StreamingLocator) ToStreamingLocatorOutput() StreamingLocatorOutput {
return i.ToStreamingLocatorOutputWithContext(context.Background())
}
func (i *StreamingLocator) ToStreamingLocatorOutputWithContext(ctx context.Context) StreamingLocatorOutput {
return pulumi.ToOutputWithContext(ctx, i).(StreamingLocatorOutput)
}
// StreamingLocatorArrayInput is an input type that accepts StreamingLocatorArray and StreamingLocatorArrayOutput values.
// You can construct a concrete instance of `StreamingLocatorArrayInput` via:
//
// StreamingLocatorArray{ StreamingLocatorArgs{...} }
type StreamingLocatorArrayInput interface {
pulumi.Input
ToStreamingLocatorArrayOutput() StreamingLocatorArrayOutput
ToStreamingLocatorArrayOutputWithContext(context.Context) StreamingLocatorArrayOutput
}
type StreamingLocatorArray []StreamingLocatorInput
func (StreamingLocatorArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*StreamingLocator)(nil)).Elem()
}
func (i StreamingLocatorArray) ToStreamingLocatorArrayOutput() StreamingLocatorArrayOutput {
return i.ToStreamingLocatorArrayOutputWithContext(context.Background())
}
func (i StreamingLocatorArray) ToStreamingLocatorArrayOutputWithContext(ctx context.Context) StreamingLocatorArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(StreamingLocatorArrayOutput)
}
// StreamingLocatorMapInput is an input type that accepts StreamingLocatorMap and StreamingLocatorMapOutput values.
// You can construct a concrete instance of `StreamingLocatorMapInput` via:
//
// StreamingLocatorMap{ "key": StreamingLocatorArgs{...} }
type StreamingLocatorMapInput interface {
pulumi.Input
ToStreamingLocatorMapOutput() StreamingLocatorMapOutput
ToStreamingLocatorMapOutputWithContext(context.Context) StreamingLocatorMapOutput
}
type StreamingLocatorMap map[string]StreamingLocatorInput
func (StreamingLocatorMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*StreamingLocator)(nil)).Elem()
}
func (i StreamingLocatorMap) ToStreamingLocatorMapOutput() StreamingLocatorMapOutput {
return i.ToStreamingLocatorMapOutputWithContext(context.Background())
}
func (i StreamingLocatorMap) ToStreamingLocatorMapOutputWithContext(ctx context.Context) StreamingLocatorMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(StreamingLocatorMapOutput)
}
type StreamingLocatorOutput struct{ *pulumi.OutputState }
func (StreamingLocatorOutput) ElementType() reflect.Type {
return reflect.TypeOf((**StreamingLocator)(nil)).Elem()
}
func (o StreamingLocatorOutput) ToStreamingLocatorOutput() StreamingLocatorOutput {
return o
}
func (o StreamingLocatorOutput) ToStreamingLocatorOutputWithContext(ctx context.Context) StreamingLocatorOutput {
return o
}
// Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
func (o StreamingLocatorOutput) AlternativeMediaId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *StreamingLocator) pulumi.StringPtrOutput { return v.AlternativeMediaId }).(pulumi.StringPtrOutput)
}
// Asset Name. Changing this forces a new Streaming Locator to be created.
func (o StreamingLocatorOutput) AssetName() pulumi.StringOutput {
return o.ApplyT(func(v *StreamingLocator) pulumi.StringOutput { return v.AssetName }).(pulumi.StringOutput)
}
// One or more `contentKey` blocks as defined below. Changing this forces a new Streaming Locator to be created.
func (o StreamingLocatorOutput) ContentKeys() StreamingLocatorContentKeyArrayOutput {
return o.ApplyT(func(v *StreamingLocator) StreamingLocatorContentKeyArrayOutput { return v.ContentKeys }).(StreamingLocatorContentKeyArrayOutput)
}
// Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
func (o StreamingLocatorOutput) DefaultContentKeyPolicyName() pulumi.StringPtrOutput {
return o.ApplyT(func(v *StreamingLocator) pulumi.StringPtrOutput { return v.DefaultContentKeyPolicyName }).(pulumi.StringPtrOutput)
}
// The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
func (o StreamingLocatorOutput) EndTime() pulumi.StringOutput {
return o.ApplyT(func(v *StreamingLocator) pulumi.StringOutput { return v.EndTime }).(pulumi.StringOutput)
}
// A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
func (o StreamingLocatorOutput) FilterNames() pulumi.StringArrayOutput {
return o.ApplyT(func(v *StreamingLocator) pulumi.StringArrayOutput { return v.FilterNames }).(pulumi.StringArrayOutput)
}
// The Media Services account name. Changing this forces a new Streaming Locator to be created.
func (o StreamingLocatorOutput) MediaServicesAccountName() pulumi.StringOutput {
return o.ApplyT(func(v *StreamingLocator) pulumi.StringOutput { return v.MediaServicesAccountName }).(pulumi.StringOutput)
}
// The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
func (o StreamingLocatorOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *StreamingLocator) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
func (o StreamingLocatorOutput) ResourceGroupName() pulumi.StringOutput {
return o.ApplyT(func(v *StreamingLocator) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput)
}
// The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
func (o StreamingLocatorOutput) StartTime() pulumi.StringPtrOutput {
return o.ApplyT(func(v *StreamingLocator) pulumi.StringPtrOutput { return v.StartTime }).(pulumi.StringPtrOutput)
}
// The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
func (o StreamingLocatorOutput) StreamingLocatorId() pulumi.StringOutput {
return o.ApplyT(func(v *StreamingLocator) pulumi.StringOutput { return v.StreamingLocatorId }).(pulumi.StringOutput)
}
// Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: `Predefined_DownloadOnly`, `Predefined_ClearStreamingOnly`, `Predefined_DownloadAndClearStreaming`, `Predefined_ClearKey`, `Predefined_MultiDrmCencStreaming` and `Predefined_MultiDrmStreaming`. Changing this forces a new Streaming Locator to be created.
func (o StreamingLocatorOutput) StreamingPolicyName() pulumi.StringOutput {
return o.ApplyT(func(v *StreamingLocator) pulumi.StringOutput { return v.StreamingPolicyName }).(pulumi.StringOutput)
}
type StreamingLocatorArrayOutput struct{ *pulumi.OutputState }
func (StreamingLocatorArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*StreamingLocator)(nil)).Elem()
}
func (o StreamingLocatorArrayOutput) ToStreamingLocatorArrayOutput() StreamingLocatorArrayOutput {
return o
}
func (o StreamingLocatorArrayOutput) ToStreamingLocatorArrayOutputWithContext(ctx context.Context) StreamingLocatorArrayOutput {
return o
}
func (o StreamingLocatorArrayOutput) Index(i pulumi.IntInput) StreamingLocatorOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *StreamingLocator {
return vs[0].([]*StreamingLocator)[vs[1].(int)]
}).(StreamingLocatorOutput)
}
type StreamingLocatorMapOutput struct{ *pulumi.OutputState }
func (StreamingLocatorMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*StreamingLocator)(nil)).Elem()
}
func (o StreamingLocatorMapOutput) ToStreamingLocatorMapOutput() StreamingLocatorMapOutput {
return o
}
func (o StreamingLocatorMapOutput) ToStreamingLocatorMapOutputWithContext(ctx context.Context) StreamingLocatorMapOutput {
return o
}
func (o StreamingLocatorMapOutput) MapIndex(k pulumi.StringInput) StreamingLocatorOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *StreamingLocator {
return vs[0].(map[string]*StreamingLocator)[vs[1].(string)]
}).(StreamingLocatorOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*StreamingLocatorInput)(nil)).Elem(), &StreamingLocator{})
pulumi.RegisterInputType(reflect.TypeOf((*StreamingLocatorArrayInput)(nil)).Elem(), StreamingLocatorArray{})
pulumi.RegisterInputType(reflect.TypeOf((*StreamingLocatorMapInput)(nil)).Elem(), StreamingLocatorMap{})
pulumi.RegisterOutputType(StreamingLocatorOutput{})
pulumi.RegisterOutputType(StreamingLocatorArrayOutput{})
pulumi.RegisterOutputType(StreamingLocatorMapOutput{})
}