blib/lib/Paws/ElasticTranscoder/HlsContentProtection.pm untested

filter: Statementstmt 0.0% 0 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 10 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::ElasticTranscoder::HlsContentProtection;
3 use Moose;
4 has InitializationVector => (is => 'ro', isa => 'Str');
5 has Key => (is => 'ro', isa => 'Str');
6 has KeyMd5 => (is => 'ro', isa => 'Str');
7 has KeyStoragePolicy => (is => 'ro', isa => 'Str');
8 has LicenseAcquisitionUrl => (is => 'ro', isa => 'Str');
9 has Method => (is => 'ro', isa => 'Str');
10  
11 1;
12  
13 ### main pod documentation begin ###
14  
15 =head1 NAME
16  
17 Paws::ElasticTranscoder::HlsContentProtection
18  
19 =head1 USAGE
20  
21 This class represents one of two things:
22  
23 =head3 Arguments in a call to a service
24  
25 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
26 Each attribute should be used as a named argument in the calls that expect this type of object.
27  
28 As an example, if Att1 is expected to be a Paws::ElasticTranscoder::HlsContentProtection object:
29  
30 $service_obj->Method(Att1 => { InitializationVector => $value, ..., Method => $value });
31  
32 =head3 Results returned from an API call
33  
34 Use accessors for each attribute. If Att1 is expected to be an Paws::ElasticTranscoder::HlsContentProtection object:
35  
36 $result = $service_obj->Method(...);
37 $result->Att1->InitializationVector
38  
39 =head1 DESCRIPTION
40  
41 The HLS content protection settings, if any, that you want Elastic
42 Transcoder to apply to your output files.
43  
44 =head1 ATTRIBUTES
45  
46  
47 =head2 InitializationVector => Str
48  
49 If Elastic Transcoder is generating your key for you, you must leave
50 this field blank.
51  
52 The series of random bits created by a random bit generator, unique for
53 every encryption operation, that you want Elastic Transcoder to use to
54 encrypt your output files. The initialization vector must be
55 base64-encoded, and it must be exactly 16 bytes before being
56 base64-encoded.
57  
58  
59 =head2 Key => Str
60  
61 If you want Elastic Transcoder to generate a key for you, leave this
62 field blank.
63  
64 If you choose to supply your own key, you must encrypt the key by using
65 AWS KMS. The key must be base64-encoded, and it must be one of the
66 following bit lengths before being base64-encoded:
67  
68 C<128>, C<192>, or C<256>.
69  
70  
71 =head2 KeyMd5 => Str
72  
73 If Elastic Transcoder is generating your key for you, you must leave
74 this field blank.
75  
76 The MD5 digest of the key that you want Elastic Transcoder to use to
77 encrypt your output file, and that you want Elastic Transcoder to use
78 as a checksum to make sure your key was not corrupted in transit. The
79 key MD5 must be base64-encoded, and it must be exactly 16 bytes before
80 being base64- encoded.
81  
82  
83 =head2 KeyStoragePolicy => Str
84  
85 Specify whether you want Elastic Transcoder to write your HLS license
86 key to an Amazon S3 bucket. If you choose C<WithVariantPlaylists>,
87 C<LicenseAcquisitionUrl> must be left blank and Elastic Transcoder
88 writes your data key into the same bucket as the associated playlist.
89  
90  
91 =head2 LicenseAcquisitionUrl => Str
92  
93 The location of the license key required to decrypt your HLS playlist.
94 The URL must be an absolute path, and is referenced in the URI
95 attribute of the EXT-X-KEY metadata tag in the playlist file.
96  
97  
98 =head2 Method => Str
99  
100 The content protection method for your output. The only valid value is:
101 C<aes-128>.
102  
103 This value is written into the method attribute of the C<EXT-X-KEY>
104 metadata tag in the output playlist.
105  
106  
107  
108 =head1 SEE ALSO
109  
110 This class forms part of L<Paws>, describing an object used in L<Paws::ElasticTranscoder>
111  
112 =head1 BUGS and CONTRIBUTIONS
113  
114 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
115  
116 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
117  
118 =cut
119