blib/lib/Paws/MediaPackage/CreateOriginEndpoint.pm untested

filter: Statementstmt 0.0% 0 / 38 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 40 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::MediaPackage::CreateOriginEndpoint;
3 use Moose;
4 has Authorization => (is => 'ro', isa => 'Paws::MediaPackage::Authorization', traits => ['NameInRequest'], request_name => 'authorization');
5 has ChannelId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'channelId', required => 1);
6 has CmafPackage => (is => 'ro', isa => 'Paws::MediaPackage::CmafPackageCreateOrUpdateParameters', traits => ['NameInRequest'], request_name => 'cmafPackage');
7 has DashPackage => (is => 'ro', isa => 'Paws::MediaPackage::DashPackage', traits => ['NameInRequest'], request_name => 'dashPackage');
8 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description');
9 has HlsPackage => (is => 'ro', isa => 'Paws::MediaPackage::HlsPackage', traits => ['NameInRequest'], request_name => 'hlsPackage');
10 has Id => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'id', required => 1);
11 has ManifestName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'manifestName');
12 has MssPackage => (is => 'ro', isa => 'Paws::MediaPackage::MssPackage', traits => ['NameInRequest'], request_name => 'mssPackage');
13 has Origination => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'origination');
14 has StartoverWindowSeconds => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'startoverWindowSeconds');
15 has Tags => (is => 'ro', isa => 'Paws::MediaPackage::Tags', traits => ['NameInRequest'], request_name => 'tags');
16 has TimeDelaySeconds => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'timeDelaySeconds');
17 has Whitelist => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'whitelist');
18  
19 use MooseX::ClassAttribute;
20  
21 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateOriginEndpoint');
22 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/origin_endpoints');
23 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
24 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::MediaPackage::CreateOriginEndpointResponse');
25 1;
26  
27 ### main pod documentation begin ###
28  
29 =head1 NAME
30  
31 Paws::MediaPackage::CreateOriginEndpoint - Arguments for method CreateOriginEndpoint on L<Paws::MediaPackage>
32  
33 =head1 DESCRIPTION
34  
35 This class represents the parameters used for calling the method CreateOriginEndpoint on the
36 L<AWS Elemental MediaPackage|Paws::MediaPackage> service. Use the attributes of this class
37 as arguments to method CreateOriginEndpoint.
38  
39 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateOriginEndpoint.
40  
41 =head1 SYNOPSIS
42  
43 my $mediapackage = Paws->service('MediaPackage');
44 my $CreateOriginEndpointResponse = $mediapackage->CreateOriginEndpoint(
45 ChannelId => 'My__string',
46 Id => 'My__string',
47 Authorization => {
48 CdnIdentifierSecret => 'My__string',
49 SecretsRoleArn => 'My__string',
50  
51 }, # OPTIONAL
52 CmafPackage => {
53 Encryption => {
54 SpekeKeyProvider => {
55 ResourceId => 'My__string',
56 RoleArn => 'My__string',
57 SystemIds => [ 'My__string', ... ],
58 Url => 'My__string',
59 CertificateArn => 'My__string',
60 EncryptionContractConfiguration => {
61 PresetSpeke20Audio => 'PRESET-AUDIO-1', # values: PRESET-AUDIO-1
62 PresetSpeke20Video => 'PRESET-VIDEO-1', # values: PRESET-VIDEO-1
63  
64 }, # OPTIONAL
65 },
66 ConstantInitializationVector => 'My__string',
67 KeyRotationIntervalSeconds => 1, # OPTIONAL
68 }, # OPTIONAL
69 HlsManifests => [
70 {
71 Id => 'My__string',
72 AdMarkers => 'NONE'
73 , # values: NONE, SCTE35_ENHANCED, PASSTHROUGH, DATERANGE; OPTIONAL
74 AdTriggers => [
75 'SPLICE_INSERT',
76 ... # values: SPLICE_INSERT, BREAK, PROVIDER_ADVERTISEMENT, DISTRIBUTOR_ADVERTISEMENT, PROVIDER_PLACEMENT_OPPORTUNITY, DISTRIBUTOR_PLACEMENT_OPPORTUNITY, PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY, DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY
77 ], # OPTIONAL
78 AdsOnDeliveryRestrictions =>
79 'NONE', # values: NONE, RESTRICTED, UNRESTRICTED, BOTH; OPTIONAL
80 IncludeIframeOnlyStream => 1, # OPTIONAL
81 ManifestName => 'My__string',
82 PlaylistType => 'NONE', # values: NONE, EVENT, VOD; OPTIONAL
83 PlaylistWindowSeconds => 1, # OPTIONAL
84 ProgramDateTimeIntervalSeconds => 1, # OPTIONAL
85 },
86 ...
87 ], # OPTIONAL
88 SegmentDurationSeconds => 1, # OPTIONAL
89 SegmentPrefix => 'My__string',
90 StreamSelection => {
91 MaxVideoBitsPerSecond => 1, # OPTIONAL
92 MinVideoBitsPerSecond => 1, # OPTIONAL
93 StreamOrder => 'ORIGINAL'
94 , # values: ORIGINAL, VIDEO_BITRATE_ASCENDING, VIDEO_BITRATE_DESCENDING; OPTIONAL
95 }, # OPTIONAL
96 }, # OPTIONAL
97 DashPackage => {
98 AdTriggers => [
99 'SPLICE_INSERT',
100 ... # values: SPLICE_INSERT, BREAK, PROVIDER_ADVERTISEMENT, DISTRIBUTOR_ADVERTISEMENT, PROVIDER_PLACEMENT_OPPORTUNITY, DISTRIBUTOR_PLACEMENT_OPPORTUNITY, PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY, DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY
101 ], # OPTIONAL
102 AdsOnDeliveryRestrictions =>
103 'NONE', # values: NONE, RESTRICTED, UNRESTRICTED, BOTH; OPTIONAL
104 Encryption => {
105 SpekeKeyProvider => {
106 ResourceId => 'My__string',
107 RoleArn => 'My__string',
108 SystemIds => [ 'My__string', ... ],
109 Url => 'My__string',
110 CertificateArn => 'My__string',
111 EncryptionContractConfiguration => {
112 PresetSpeke20Audio => 'PRESET-AUDIO-1', # values: PRESET-AUDIO-1
113 PresetSpeke20Video => 'PRESET-VIDEO-1', # values: PRESET-VIDEO-1
114  
115 }, # OPTIONAL
116 },
117 KeyRotationIntervalSeconds => 1, # OPTIONAL
118 }, # OPTIONAL
119 ManifestLayout => 'FULL', # values: FULL, COMPACT; OPTIONAL
120 ManifestWindowSeconds => 1, # OPTIONAL
121 MinBufferTimeSeconds => 1, # OPTIONAL
122 MinUpdatePeriodSeconds => 1, # OPTIONAL
123 PeriodTriggers => [
124 'ADS', ... # values: ADS
125 ], # OPTIONAL
126 Profile => 'NONE', # values: NONE, HBBTV_1_5; OPTIONAL
127 SegmentDurationSeconds => 1, # OPTIONAL
128 SegmentTemplateFormat => 'NUMBER_WITH_TIMELINE'
129 , # values: NUMBER_WITH_TIMELINE, TIME_WITH_TIMELINE, NUMBER_WITH_DURATION; OPTIONAL
130 StreamSelection => {
131 MaxVideoBitsPerSecond => 1, # OPTIONAL
132 MinVideoBitsPerSecond => 1, # OPTIONAL
133 StreamOrder => 'ORIGINAL'
134 , # values: ORIGINAL, VIDEO_BITRATE_ASCENDING, VIDEO_BITRATE_DESCENDING; OPTIONAL
135 }, # OPTIONAL
136 SuggestedPresentationDelaySeconds => 1, # OPTIONAL
137 UtcTiming => 'NONE', # values: NONE, HTTP-HEAD, HTTP-ISO; OPTIONAL
138 UtcTimingUri => 'My__string',
139 }, # OPTIONAL
140 Description => 'My__string', # OPTIONAL
141 HlsPackage => {
142 AdMarkers => 'NONE'
143 , # values: NONE, SCTE35_ENHANCED, PASSTHROUGH, DATERANGE; OPTIONAL
144 AdTriggers => [
145 'SPLICE_INSERT',
146 ... # values: SPLICE_INSERT, BREAK, PROVIDER_ADVERTISEMENT, DISTRIBUTOR_ADVERTISEMENT, PROVIDER_PLACEMENT_OPPORTUNITY, DISTRIBUTOR_PLACEMENT_OPPORTUNITY, PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY, DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY
147 ], # OPTIONAL
148 AdsOnDeliveryRestrictions =>
149 'NONE', # values: NONE, RESTRICTED, UNRESTRICTED, BOTH; OPTIONAL
150 Encryption => {
151 SpekeKeyProvider => {
152 ResourceId => 'My__string',
153 RoleArn => 'My__string',
154 SystemIds => [ 'My__string', ... ],
155 Url => 'My__string',
156 CertificateArn => 'My__string',
157 EncryptionContractConfiguration => {
158 PresetSpeke20Audio => 'PRESET-AUDIO-1', # values: PRESET-AUDIO-1
159 PresetSpeke20Video => 'PRESET-VIDEO-1', # values: PRESET-VIDEO-1
160  
161 }, # OPTIONAL
162 },
163 ConstantInitializationVector => 'My__string',
164 EncryptionMethod => 'AES_128', # values: AES_128, SAMPLE_AES; OPTIONAL
165 KeyRotationIntervalSeconds => 1, # OPTIONAL
166 RepeatExtXKey => 1, # OPTIONAL
167 }, # OPTIONAL
168 IncludeIframeOnlyStream => 1, # OPTIONAL
169 PlaylistType => 'NONE', # values: NONE, EVENT, VOD; OPTIONAL
170 PlaylistWindowSeconds => 1, # OPTIONAL
171 ProgramDateTimeIntervalSeconds => 1, # OPTIONAL
172 SegmentDurationSeconds => 1, # OPTIONAL
173 StreamSelection => {
174 MaxVideoBitsPerSecond => 1, # OPTIONAL
175 MinVideoBitsPerSecond => 1, # OPTIONAL
176 StreamOrder => 'ORIGINAL'
177 , # values: ORIGINAL, VIDEO_BITRATE_ASCENDING, VIDEO_BITRATE_DESCENDING; OPTIONAL
178 }, # OPTIONAL
179 UseAudioRenditionGroup => 1, # OPTIONAL
180 }, # OPTIONAL
181 ManifestName => 'My__string', # OPTIONAL
182 MssPackage => {
183 Encryption => {
184 SpekeKeyProvider => {
185 ResourceId => 'My__string',
186 RoleArn => 'My__string',
187 SystemIds => [ 'My__string', ... ],
188 Url => 'My__string',
189 CertificateArn => 'My__string',
190 EncryptionContractConfiguration => {
191 PresetSpeke20Audio => 'PRESET-AUDIO-1', # values: PRESET-AUDIO-1
192 PresetSpeke20Video => 'PRESET-VIDEO-1', # values: PRESET-VIDEO-1
193  
194 }, # OPTIONAL
195 },
196  
197 }, # OPTIONAL
198 ManifestWindowSeconds => 1, # OPTIONAL
199 SegmentDurationSeconds => 1, # OPTIONAL
200 StreamSelection => {
201 MaxVideoBitsPerSecond => 1, # OPTIONAL
202 MinVideoBitsPerSecond => 1, # OPTIONAL
203 StreamOrder => 'ORIGINAL'
204 , # values: ORIGINAL, VIDEO_BITRATE_ASCENDING, VIDEO_BITRATE_DESCENDING; OPTIONAL
205 }, # OPTIONAL
206 }, # OPTIONAL
207 Origination => 'ALLOW', # OPTIONAL
208 StartoverWindowSeconds => 1, # OPTIONAL
209 Tags => { 'My__string' => 'My__string', }, # OPTIONAL
210 TimeDelaySeconds => 1, # OPTIONAL
211 Whitelist => [ 'My__string', ... ], # OPTIONAL
212 );
213  
214 # Results:
215 my $Arn = $CreateOriginEndpointResponse->Arn;
216 my $Authorization = $CreateOriginEndpointResponse->Authorization;
217 my $ChannelId = $CreateOriginEndpointResponse->ChannelId;
218 my $CmafPackage = $CreateOriginEndpointResponse->CmafPackage;
219 my $DashPackage = $CreateOriginEndpointResponse->DashPackage;
220 my $Description = $CreateOriginEndpointResponse->Description;
221 my $HlsPackage = $CreateOriginEndpointResponse->HlsPackage;
222 my $Id = $CreateOriginEndpointResponse->Id;
223 my $ManifestName = $CreateOriginEndpointResponse->ManifestName;
224 my $MssPackage = $CreateOriginEndpointResponse->MssPackage;
225 my $Origination = $CreateOriginEndpointResponse->Origination;
226 my $StartoverWindowSeconds =
227 $CreateOriginEndpointResponse->StartoverWindowSeconds;
228 my $Tags = $CreateOriginEndpointResponse->Tags;
229 my $TimeDelaySeconds = $CreateOriginEndpointResponse->TimeDelaySeconds;
230 my $Url = $CreateOriginEndpointResponse->Url;
231 my $Whitelist = $CreateOriginEndpointResponse->Whitelist;
232  
233 # Returns a L<Paws::MediaPackage::CreateOriginEndpointResponse> object.
234  
235 Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
236 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/mediapackage/CreateOriginEndpoint>
237  
238 =head1 ATTRIBUTES
239  
240  
241 =head2 Authorization => L<Paws::MediaPackage::Authorization>
242  
243  
244  
245  
246  
247 =head2 B<REQUIRED> ChannelId => Str
248  
249 The ID of the Channel that the OriginEndpoint will be associated with.
250 This cannot be changed after the OriginEndpoint is created.
251  
252  
253  
254 =head2 CmafPackage => L<Paws::MediaPackage::CmafPackageCreateOrUpdateParameters>
255  
256  
257  
258  
259  
260 =head2 DashPackage => L<Paws::MediaPackage::DashPackage>
261  
262  
263  
264  
265  
266 =head2 Description => Str
267  
268 A short text description of the OriginEndpoint.
269  
270  
271  
272 =head2 HlsPackage => L<Paws::MediaPackage::HlsPackage>
273  
274  
275  
276  
277  
278 =head2 B<REQUIRED> Id => Str
279  
280 The ID of the OriginEndpoint. The ID must be unique within the region
281 and it cannot be changed after the OriginEndpoint is created.
282  
283  
284  
285 =head2 ManifestName => Str
286  
287 A short string that will be used as the filename of the OriginEndpoint
288 URL (defaults to "index").
289  
290  
291  
292 =head2 MssPackage => L<Paws::MediaPackage::MssPackage>
293  
294  
295  
296  
297  
298 =head2 Origination => Str
299  
300 Control whether origination of video is allowed for this
301 OriginEndpoint. If set to ALLOW, the OriginEndpoint may by requested,
302 pursuant to any other form of access control. If set to DENY, the
303 OriginEndpoint may not be requested. This can be helpful for Live to
304 VOD harvesting, or for temporarily disabling origination
305  
306 Valid values are: C<"ALLOW">, C<"DENY">
307  
308 =head2 StartoverWindowSeconds => Int
309  
310 Maximum duration (seconds) of content to retain for startover playback.
311 If not specified, startover playback will be disabled for the
312 OriginEndpoint.
313  
314  
315  
316 =head2 Tags => L<Paws::MediaPackage::Tags>
317  
318  
319  
320  
321  
322 =head2 TimeDelaySeconds => Int
323  
324 Amount of delay (seconds) to enforce on the playback of live content.
325 If not specified, there will be no time delay in effect for the
326 OriginEndpoint.
327  
328  
329  
330 =head2 Whitelist => ArrayRef[Str|Undef]
331  
332 A list of source IP CIDR blocks that will be allowed to access the
333 OriginEndpoint.
334  
335  
336  
337  
338 =head1 SEE ALSO
339  
340 This class forms part of L<Paws>, documenting arguments for method CreateOriginEndpoint in L<Paws::MediaPackage>
341  
342 =head1 BUGS and CONTRIBUTIONS
343  
344 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
345  
346 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
347  
348 =cut
349