forked from pulumi/pulumi-azure-native-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
getLiveOutput.go
191 lines (162 loc) · 9.21 KB
/
getLiveOutput.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
// Code generated by the Pulumi SDK Generator DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package media
import (
"context"
"reflect"
"github.com/pulumi/pulumi-azure-native-sdk/v2/utilities"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Gets a live output.
// Azure REST API version: 2022-11-01.
func LookupLiveOutput(ctx *pulumi.Context, args *LookupLiveOutputArgs, opts ...pulumi.InvokeOption) (*LookupLiveOutputResult, error) {
opts = utilities.PkgInvokeDefaultOpts(opts)
var rv LookupLiveOutputResult
err := ctx.Invoke("azure-native:media:getLiveOutput", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupLiveOutputArgs struct {
// The Media Services account name.
AccountName string `pulumi:"accountName"`
// The name of the live event, maximum length is 32.
LiveEventName string `pulumi:"liveEventName"`
// The name of the live output.
LiveOutputName string `pulumi:"liveOutputName"`
// The name of the resource group within the Azure subscription.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// The Live Output.
type LookupLiveOutputResult struct {
// ISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be archived in the asset for this live output. This also sets the maximum content length for the rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window.
ArchiveWindowLength string `pulumi:"archiveWindowLength"`
// The asset that the live output will write to.
AssetName string `pulumi:"assetName"`
// The creation time the live output.
Created string `pulumi:"created"`
// The description of the live output.
Description *string `pulumi:"description"`
// HTTP Live Streaming (HLS) packing setting for the live output.
Hls *HlsResponse `pulumi:"hls"`
// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Id string `pulumi:"id"`
// The time the live output was last modified.
LastModified string `pulumi:"lastModified"`
// The manifest file name. If not provided, the service will generate one automatically.
ManifestName *string `pulumi:"manifestName"`
// The name of the resource
Name string `pulumi:"name"`
// The initial timestamp that the live output will start at, any content before this value will not be archived.
OutputSnapTime *float64 `pulumi:"outputSnapTime"`
// The provisioning state of the live output.
ProvisioningState string `pulumi:"provisioningState"`
// The resource state of the live output.
ResourceState string `pulumi:"resourceState"`
// ISO 8601 time between 1 minute to the duration of archiveWindowLength to control seek-able window length during Live. The service won't use this property once LiveOutput stops. The archived VOD will have full content with original ArchiveWindowLength. For example, use PT1H30M to indicate 1 hour and 30 minutes of rewind window length. Service will use implicit default value 30m only if Live Event enables LL.
RewindWindowLength *string `pulumi:"rewindWindowLength"`
// The system metadata relating to this resource.
SystemData SystemDataResponse `pulumi:"systemData"`
// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type string `pulumi:"type"`
}
func LookupLiveOutputOutput(ctx *pulumi.Context, args LookupLiveOutputOutputArgs, opts ...pulumi.InvokeOption) LookupLiveOutputResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupLiveOutputResult, error) {
args := v.(LookupLiveOutputArgs)
r, err := LookupLiveOutput(ctx, &args, opts...)
var s LookupLiveOutputResult
if r != nil {
s = *r
}
return s, err
}).(LookupLiveOutputResultOutput)
}
type LookupLiveOutputOutputArgs struct {
// The Media Services account name.
AccountName pulumi.StringInput `pulumi:"accountName"`
// The name of the live event, maximum length is 32.
LiveEventName pulumi.StringInput `pulumi:"liveEventName"`
// The name of the live output.
LiveOutputName pulumi.StringInput `pulumi:"liveOutputName"`
// The name of the resource group within the Azure subscription.
ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
}
func (LookupLiveOutputOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupLiveOutputArgs)(nil)).Elem()
}
// The Live Output.
type LookupLiveOutputResultOutput struct{ *pulumi.OutputState }
func (LookupLiveOutputResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupLiveOutputResult)(nil)).Elem()
}
func (o LookupLiveOutputResultOutput) ToLookupLiveOutputResultOutput() LookupLiveOutputResultOutput {
return o
}
func (o LookupLiveOutputResultOutput) ToLookupLiveOutputResultOutputWithContext(ctx context.Context) LookupLiveOutputResultOutput {
return o
}
// ISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be archived in the asset for this live output. This also sets the maximum content length for the rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window.
func (o LookupLiveOutputResultOutput) ArchiveWindowLength() pulumi.StringOutput {
return o.ApplyT(func(v LookupLiveOutputResult) string { return v.ArchiveWindowLength }).(pulumi.StringOutput)
}
// The asset that the live output will write to.
func (o LookupLiveOutputResultOutput) AssetName() pulumi.StringOutput {
return o.ApplyT(func(v LookupLiveOutputResult) string { return v.AssetName }).(pulumi.StringOutput)
}
// The creation time the live output.
func (o LookupLiveOutputResultOutput) Created() pulumi.StringOutput {
return o.ApplyT(func(v LookupLiveOutputResult) string { return v.Created }).(pulumi.StringOutput)
}
// The description of the live output.
func (o LookupLiveOutputResultOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupLiveOutputResult) *string { return v.Description }).(pulumi.StringPtrOutput)
}
// HTTP Live Streaming (HLS) packing setting for the live output.
func (o LookupLiveOutputResultOutput) Hls() HlsResponsePtrOutput {
return o.ApplyT(func(v LookupLiveOutputResult) *HlsResponse { return v.Hls }).(HlsResponsePtrOutput)
}
// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
func (o LookupLiveOutputResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupLiveOutputResult) string { return v.Id }).(pulumi.StringOutput)
}
// The time the live output was last modified.
func (o LookupLiveOutputResultOutput) LastModified() pulumi.StringOutput {
return o.ApplyT(func(v LookupLiveOutputResult) string { return v.LastModified }).(pulumi.StringOutput)
}
// The manifest file name. If not provided, the service will generate one automatically.
func (o LookupLiveOutputResultOutput) ManifestName() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupLiveOutputResult) *string { return v.ManifestName }).(pulumi.StringPtrOutput)
}
// The name of the resource
func (o LookupLiveOutputResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupLiveOutputResult) string { return v.Name }).(pulumi.StringOutput)
}
// The initial timestamp that the live output will start at, any content before this value will not be archived.
func (o LookupLiveOutputResultOutput) OutputSnapTime() pulumi.Float64PtrOutput {
return o.ApplyT(func(v LookupLiveOutputResult) *float64 { return v.OutputSnapTime }).(pulumi.Float64PtrOutput)
}
// The provisioning state of the live output.
func (o LookupLiveOutputResultOutput) ProvisioningState() pulumi.StringOutput {
return o.ApplyT(func(v LookupLiveOutputResult) string { return v.ProvisioningState }).(pulumi.StringOutput)
}
// The resource state of the live output.
func (o LookupLiveOutputResultOutput) ResourceState() pulumi.StringOutput {
return o.ApplyT(func(v LookupLiveOutputResult) string { return v.ResourceState }).(pulumi.StringOutput)
}
// ISO 8601 time between 1 minute to the duration of archiveWindowLength to control seek-able window length during Live. The service won't use this property once LiveOutput stops. The archived VOD will have full content with original ArchiveWindowLength. For example, use PT1H30M to indicate 1 hour and 30 minutes of rewind window length. Service will use implicit default value 30m only if Live Event enables LL.
func (o LookupLiveOutputResultOutput) RewindWindowLength() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupLiveOutputResult) *string { return v.RewindWindowLength }).(pulumi.StringPtrOutput)
}
// The system metadata relating to this resource.
func (o LookupLiveOutputResultOutput) SystemData() SystemDataResponseOutput {
return o.ApplyT(func(v LookupLiveOutputResult) SystemDataResponse { return v.SystemData }).(SystemDataResponseOutput)
}
// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
func (o LookupLiveOutputResultOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v LookupLiveOutputResult) string { return v.Type }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupLiveOutputResultOutput{})
}