blib/lib/Paws/MediaPackageVod/CreatePackagingConfiguration.pm untested

filter: Statementstmt 0.0% 0 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::MediaPackageVod::CreatePackagingConfiguration;
3 use Moose;
4 has CmafPackage => (is => 'ro', isa => 'Paws::MediaPackageVod::CmafPackage', traits => ['NameInRequest'], request_name => 'cmafPackage');
5 has DashPackage => (is => 'ro', isa => 'Paws::MediaPackageVod::DashPackage', traits => ['NameInRequest'], request_name => 'dashPackage');
6 has HlsPackage => (is => 'ro', isa => 'Paws::MediaPackageVod::HlsPackage', traits => ['NameInRequest'], request_name => 'hlsPackage');
7 has Id => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'id', required => 1);
8 has MssPackage => (is => 'ro', isa => 'Paws::MediaPackageVod::MssPackage', traits => ['NameInRequest'], request_name => 'mssPackage');
9 has PackagingGroupId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'packagingGroupId', required => 1);
10 has Tags => (is => 'ro', isa => 'Paws::MediaPackageVod::Tags', traits => ['NameInRequest'], request_name => 'tags');
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreatePackagingConfiguration');
15 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/packaging_configurations');
16 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::MediaPackageVod::CreatePackagingConfigurationResponse');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::MediaPackageVod::CreatePackagingConfiguration - Arguments for method CreatePackagingConfiguration on L<Paws::MediaPackageVod>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method CreatePackagingConfiguration on the
29 L<AWS Elemental MediaPackage VOD|Paws::MediaPackageVod> service. Use the attributes of this class
30 as arguments to method CreatePackagingConfiguration.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreatePackagingConfiguration.
33  
34 =head1 SYNOPSIS
35  
36 my $mediapackage-vod = Paws->service('MediaPackageVod');
37 my $CreatePackagingConfigurationResponse =
38 $mediapackage -vod->CreatePackagingConfiguration(
39 Id => 'My__string',
40 PackagingGroupId => 'My__string',
41 CmafPackage => {
42 HlsManifests => [
43 {
44 AdMarkers =>
45 'NONE', # values: NONE, SCTE35_ENHANCED, PASSTHROUGH; OPTIONAL
46 IncludeIframeOnlyStream => 1, # OPTIONAL
47 ManifestName => 'My__string',
48 ProgramDateTimeIntervalSeconds => 1, # OPTIONAL
49 RepeatExtXKey => 1, # OPTIONAL
50 StreamSelection => {
51 MaxVideoBitsPerSecond => 1, # OPTIONAL
52 MinVideoBitsPerSecond => 1, # OPTIONAL
53 StreamOrder => 'ORIGINAL'
54 , # values: ORIGINAL, VIDEO_BITRATE_ASCENDING, VIDEO_BITRATE_DESCENDING; OPTIONAL
55 }, # OPTIONAL
56 },
57 ...
58 ],
59 Encryption => {
60 SpekeKeyProvider => {
61 RoleArn => 'My__string',
62 SystemIds => [ 'My__string', ... ],
63 Url => 'My__string',
64  
65 },
66 ConstantInitializationVector => 'My__string',
67 }, # OPTIONAL
68 IncludeEncoderConfigurationInSegments => 1, # OPTIONAL
69 SegmentDurationSeconds => 1, # OPTIONAL
70 }, # OPTIONAL
71 DashPackage => {
72 DashManifests => [
73 {
74 ManifestLayout => 'FULL', # values: FULL, COMPACT; OPTIONAL
75 ManifestName => 'My__string',
76 MinBufferTimeSeconds => 1, # OPTIONAL
77 Profile => 'NONE', # values: NONE, HBBTV_1_5; OPTIONAL
78 StreamSelection => {
79 MaxVideoBitsPerSecond => 1, # OPTIONAL
80 MinVideoBitsPerSecond => 1, # OPTIONAL
81 StreamOrder => 'ORIGINAL'
82 , # values: ORIGINAL, VIDEO_BITRATE_ASCENDING, VIDEO_BITRATE_DESCENDING; OPTIONAL
83 }, # OPTIONAL
84 },
85 ...
86 ],
87 Encryption => {
88 SpekeKeyProvider => {
89 RoleArn => 'My__string',
90 SystemIds => [ 'My__string', ... ],
91 Url => 'My__string',
92  
93 },
94  
95 }, # OPTIONAL
96 IncludeEncoderConfigurationInSegments => 1, # OPTIONAL
97 PeriodTriggers => [
98 'ADS', ... # values: ADS
99 ], # OPTIONAL
100 SegmentDurationSeconds => 1, # OPTIONAL
101 SegmentTemplateFormat => 'NUMBER_WITH_TIMELINE'
102 , # values: NUMBER_WITH_TIMELINE, TIME_WITH_TIMELINE, NUMBER_WITH_DURATION; OPTIONAL
103 }, # OPTIONAL
104 HlsPackage => {
105 HlsManifests => [
106 {
107 AdMarkers =>
108 'NONE', # values: NONE, SCTE35_ENHANCED, PASSTHROUGH; OPTIONAL
109 IncludeIframeOnlyStream => 1, # OPTIONAL
110 ManifestName => 'My__string',
111 ProgramDateTimeIntervalSeconds => 1, # OPTIONAL
112 RepeatExtXKey => 1, # OPTIONAL
113 StreamSelection => {
114 MaxVideoBitsPerSecond => 1, # OPTIONAL
115 MinVideoBitsPerSecond => 1, # OPTIONAL
116 StreamOrder => 'ORIGINAL'
117 , # values: ORIGINAL, VIDEO_BITRATE_ASCENDING, VIDEO_BITRATE_DESCENDING; OPTIONAL
118 }, # OPTIONAL
119 },
120 ...
121 ],
122 Encryption => {
123 SpekeKeyProvider => {
124 RoleArn => 'My__string',
125 SystemIds => [ 'My__string', ... ],
126 Url => 'My__string',
127  
128 },
129 ConstantInitializationVector => 'My__string',
130 EncryptionMethod => 'AES_128', # values: AES_128, SAMPLE_AES; OPTIONAL
131 }, # OPTIONAL
132 SegmentDurationSeconds => 1, # OPTIONAL
133 UseAudioRenditionGroup => 1, # OPTIONAL
134 }, # OPTIONAL
135 MssPackage => {
136 MssManifests => [
137 {
138 ManifestName => 'My__string',
139 StreamSelection => {
140 MaxVideoBitsPerSecond => 1, # OPTIONAL
141 MinVideoBitsPerSecond => 1, # OPTIONAL
142 StreamOrder => 'ORIGINAL'
143 , # values: ORIGINAL, VIDEO_BITRATE_ASCENDING, VIDEO_BITRATE_DESCENDING; OPTIONAL
144 }, # OPTIONAL
145 },
146 ...
147 ],
148 Encryption => {
149 SpekeKeyProvider => {
150 RoleArn => 'My__string',
151 SystemIds => [ 'My__string', ... ],
152 Url => 'My__string',
153  
154 },
155  
156 }, # OPTIONAL
157 SegmentDurationSeconds => 1, # OPTIONAL
158 }, # OPTIONAL
159 Tags => { 'My__string' => 'My__string', }, # OPTIONAL
160 );
161  
162 # Results:
163 my $Arn = $CreatePackagingConfigurationResponse->Arn;
164 my $CmafPackage = $CreatePackagingConfigurationResponse->CmafPackage;
165 my $DashPackage = $CreatePackagingConfigurationResponse->DashPackage;
166 my $HlsPackage = $CreatePackagingConfigurationResponse->HlsPackage;
167 my $Id = $CreatePackagingConfigurationResponse->Id;
168 my $MssPackage = $CreatePackagingConfigurationResponse->MssPackage;
169 my $PackagingGroupId =
170 $CreatePackagingConfigurationResponse->PackagingGroupId;
171 my $Tags = $CreatePackagingConfigurationResponse->Tags;
172  
173 # Returns a L<Paws::MediaPackageVod::CreatePackagingConfigurationResponse> object.
174  
175 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.
176 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod/CreatePackagingConfiguration>
177  
178 =head1 ATTRIBUTES
179  
180  
181 =head2 CmafPackage => L<Paws::MediaPackageVod::CmafPackage>
182  
183  
184  
185  
186  
187 =head2 DashPackage => L<Paws::MediaPackageVod::DashPackage>
188  
189  
190  
191  
192  
193 =head2 HlsPackage => L<Paws::MediaPackageVod::HlsPackage>
194  
195  
196  
197  
198  
199 =head2 B<REQUIRED> Id => Str
200  
201 The ID of the PackagingConfiguration.
202  
203  
204  
205 =head2 MssPackage => L<Paws::MediaPackageVod::MssPackage>
206  
207  
208  
209  
210  
211 =head2 B<REQUIRED> PackagingGroupId => Str
212  
213 The ID of a PackagingGroup.
214  
215  
216  
217 =head2 Tags => L<Paws::MediaPackageVod::Tags>
218  
219  
220  
221  
222  
223  
224 =head1 SEE ALSO
225  
226 This class forms part of L<Paws>, documenting arguments for method CreatePackagingConfiguration in L<Paws::MediaPackageVod>
227  
228 =head1 BUGS and CONTRIBUTIONS
229  
230 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
231  
232 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
233  
234 =cut
235