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

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