/
getOriginEndpoint.go
167 lines (138 loc) · 8.2 KB
/
getOriginEndpoint.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
// Code generated by pulumi-language-go DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package mediapackage
import (
"context"
"reflect"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Resource schema for AWS::MediaPackage::OriginEndpoint
func LookupOriginEndpoint(ctx *pulumi.Context, args *LookupOriginEndpointArgs, opts ...pulumi.InvokeOption) (*LookupOriginEndpointResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupOriginEndpointResult
err := ctx.Invoke("aws-native:mediapackage:getOriginEndpoint", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupOriginEndpointArgs struct {
// The ID of the OriginEndpoint.
Id string `pulumi:"id"`
}
type LookupOriginEndpointResult struct {
// The Amazon Resource Name (ARN) assigned to the OriginEndpoint.
Arn *string `pulumi:"arn"`
Authorization *OriginEndpointAuthorization `pulumi:"authorization"`
// The ID of the Channel the OriginEndpoint is associated with.
ChannelId *string `pulumi:"channelId"`
CmafPackage *OriginEndpointCmafPackage `pulumi:"cmafPackage"`
DashPackage *OriginEndpointDashPackage `pulumi:"dashPackage"`
// A short text description of the OriginEndpoint.
Description *string `pulumi:"description"`
HlsPackage *OriginEndpointHlsPackage `pulumi:"hlsPackage"`
// A short string appended to the end of the OriginEndpoint URL.
ManifestName *string `pulumi:"manifestName"`
MssPackage *OriginEndpointMssPackage `pulumi:"mssPackage"`
// Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination
Origination *OriginEndpointOrigination `pulumi:"origination"`
// Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.
StartoverWindowSeconds *int `pulumi:"startoverWindowSeconds"`
// A collection of tags associated with a resource
Tags []aws.Tag `pulumi:"tags"`
// Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.
TimeDelaySeconds *int `pulumi:"timeDelaySeconds"`
// The URL of the packaged OriginEndpoint for consumption.
Url *string `pulumi:"url"`
// A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.
Whitelist []string `pulumi:"whitelist"`
}
func LookupOriginEndpointOutput(ctx *pulumi.Context, args LookupOriginEndpointOutputArgs, opts ...pulumi.InvokeOption) LookupOriginEndpointResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupOriginEndpointResult, error) {
args := v.(LookupOriginEndpointArgs)
r, err := LookupOriginEndpoint(ctx, &args, opts...)
var s LookupOriginEndpointResult
if r != nil {
s = *r
}
return s, err
}).(LookupOriginEndpointResultOutput)
}
type LookupOriginEndpointOutputArgs struct {
// The ID of the OriginEndpoint.
Id pulumi.StringInput `pulumi:"id"`
}
func (LookupOriginEndpointOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupOriginEndpointArgs)(nil)).Elem()
}
type LookupOriginEndpointResultOutput struct{ *pulumi.OutputState }
func (LookupOriginEndpointResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupOriginEndpointResult)(nil)).Elem()
}
func (o LookupOriginEndpointResultOutput) ToLookupOriginEndpointResultOutput() LookupOriginEndpointResultOutput {
return o
}
func (o LookupOriginEndpointResultOutput) ToLookupOriginEndpointResultOutputWithContext(ctx context.Context) LookupOriginEndpointResultOutput {
return o
}
// The Amazon Resource Name (ARN) assigned to the OriginEndpoint.
func (o LookupOriginEndpointResultOutput) Arn() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupOriginEndpointResult) *string { return v.Arn }).(pulumi.StringPtrOutput)
}
func (o LookupOriginEndpointResultOutput) Authorization() OriginEndpointAuthorizationPtrOutput {
return o.ApplyT(func(v LookupOriginEndpointResult) *OriginEndpointAuthorization { return v.Authorization }).(OriginEndpointAuthorizationPtrOutput)
}
// The ID of the Channel the OriginEndpoint is associated with.
func (o LookupOriginEndpointResultOutput) ChannelId() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupOriginEndpointResult) *string { return v.ChannelId }).(pulumi.StringPtrOutput)
}
func (o LookupOriginEndpointResultOutput) CmafPackage() OriginEndpointCmafPackagePtrOutput {
return o.ApplyT(func(v LookupOriginEndpointResult) *OriginEndpointCmafPackage { return v.CmafPackage }).(OriginEndpointCmafPackagePtrOutput)
}
func (o LookupOriginEndpointResultOutput) DashPackage() OriginEndpointDashPackagePtrOutput {
return o.ApplyT(func(v LookupOriginEndpointResult) *OriginEndpointDashPackage { return v.DashPackage }).(OriginEndpointDashPackagePtrOutput)
}
// A short text description of the OriginEndpoint.
func (o LookupOriginEndpointResultOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupOriginEndpointResult) *string { return v.Description }).(pulumi.StringPtrOutput)
}
func (o LookupOriginEndpointResultOutput) HlsPackage() OriginEndpointHlsPackagePtrOutput {
return o.ApplyT(func(v LookupOriginEndpointResult) *OriginEndpointHlsPackage { return v.HlsPackage }).(OriginEndpointHlsPackagePtrOutput)
}
// A short string appended to the end of the OriginEndpoint URL.
func (o LookupOriginEndpointResultOutput) ManifestName() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupOriginEndpointResult) *string { return v.ManifestName }).(pulumi.StringPtrOutput)
}
func (o LookupOriginEndpointResultOutput) MssPackage() OriginEndpointMssPackagePtrOutput {
return o.ApplyT(func(v LookupOriginEndpointResult) *OriginEndpointMssPackage { return v.MssPackage }).(OriginEndpointMssPackagePtrOutput)
}
// Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination
func (o LookupOriginEndpointResultOutput) Origination() OriginEndpointOriginationPtrOutput {
return o.ApplyT(func(v LookupOriginEndpointResult) *OriginEndpointOrigination { return v.Origination }).(OriginEndpointOriginationPtrOutput)
}
// Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.
func (o LookupOriginEndpointResultOutput) StartoverWindowSeconds() pulumi.IntPtrOutput {
return o.ApplyT(func(v LookupOriginEndpointResult) *int { return v.StartoverWindowSeconds }).(pulumi.IntPtrOutput)
}
// A collection of tags associated with a resource
func (o LookupOriginEndpointResultOutput) Tags() aws.TagArrayOutput {
return o.ApplyT(func(v LookupOriginEndpointResult) []aws.Tag { return v.Tags }).(aws.TagArrayOutput)
}
// Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.
func (o LookupOriginEndpointResultOutput) TimeDelaySeconds() pulumi.IntPtrOutput {
return o.ApplyT(func(v LookupOriginEndpointResult) *int { return v.TimeDelaySeconds }).(pulumi.IntPtrOutput)
}
// The URL of the packaged OriginEndpoint for consumption.
func (o LookupOriginEndpointResultOutput) Url() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupOriginEndpointResult) *string { return v.Url }).(pulumi.StringPtrOutput)
}
// A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.
func (o LookupOriginEndpointResultOutput) Whitelist() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupOriginEndpointResult) []string { return v.Whitelist }).(pulumi.StringArrayOutput)
}
func init() {
pulumi.RegisterOutputType(LookupOriginEndpointResultOutput{})
}