Cfn/Resource/AWS/MediaLive/Input.pm

filter: Statementstmt 69.6% 108 / 155 Branchbran 0.0% 0 / 28 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 43.9% 18 / 41 Podpod 0.0% 0 / 2 totaltotal 55.7% 126 / 226 CC 15 SCAR 12.9
CC
15
Cov
59%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.6
« Cfn/Resource/AWS/ECS/Service.pm ↑ Summary Cfn/Resource/AWS/Glue/Crawler.pm »
1 # AWS::MediaLive::Input generated from spec 18.4.0
2 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::MediaLive::Input',
5 from 'HashRef',
6 0 ▶ via { Cfn::Resource::Properties::AWS::MediaLive::Input->new( %$_ ) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
7  
8 1 package Cfn::Resource::AWS::MediaLive::Input {
9 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 extends 'Cfn::Resource';
11 1 has Properties => (isa => 'Cfn::Resource::Properties::AWS::MediaLive::Input', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ 'Arn','Destinations','Sources' ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 1 ▶ [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','eu-central-1','eu-west-1','sa-east-1','us-east-1','us-west-2' ]
Subroutine supported_regions: called CC=1 SCAR=0.0
Pod undocumented
18 }
19 }
20  
21  
22 subtype 'ArrayOfCfn::Resource::Properties::AWS::MediaLive::Input::MediaConnectFlowRequest',
23 as 'Cfn::Value',
24 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
25 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
26  
27 coerce 'ArrayOfCfn::Resource::Properties::AWS::MediaLive::Input::MediaConnectFlowRequest',
28 from 'HashRef',
29 via {
30 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
31 0 return $f
32 } else {
33 0 die 'Only accepts functions';
34 }
35 },
36 from 'ArrayRef',
37 via {
38 Cfn::Value::Array->new(Value => [
39 map {
40 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::MediaLive::Input::MediaConnectFlowRequest')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
41 } @$_
42 ]);
43 1 };
44  
45 1 subtype 'Cfn::Resource::Properties::AWS::MediaLive::Input::MediaConnectFlowRequest',
46 as 'Cfn::Value';
47  
48 coerce 'Cfn::Resource::Properties::AWS::MediaLive::Input::MediaConnectFlowRequest',
49 from 'HashRef',
50 via {
51 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
52 0 return $f
53 } else {
54 0 return Cfn::Resource::Properties::Object::AWS::MediaLive::Input::MediaConnectFlowRequest->new( %$_ );
55 }
56 1 };
57  
58 1 package Cfn::Resource::Properties::Object::AWS::MediaLive::Input::MediaConnectFlowRequest {
59 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
60 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 1 extends 'Cfn::Value::TypedValue';
62
63 1 has FlowArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64 }
65  
66 1 subtype 'Cfn::Resource::Properties::AWS::MediaLive::Input::InputVpcRequest',
67 as 'Cfn::Value';
68  
69 coerce 'Cfn::Resource::Properties::AWS::MediaLive::Input::InputVpcRequest',
70 from 'HashRef',
71 via {
72 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
73 0 return $f
74 } else {
75 0 return Cfn::Resource::Properties::Object::AWS::MediaLive::Input::InputVpcRequest->new( %$_ );
76 }
77 1 };
78  
79 1 package Cfn::Resource::Properties::Object::AWS::MediaLive::Input::InputVpcRequest {
80 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
81 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
82 1 extends 'Cfn::Value::TypedValue';
83
84 1 has SecurityGroupIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85 1 has SubnetIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86 }
87 subtype 'ArrayOfCfn::Resource::Properties::AWS::MediaLive::Input::InputSourceRequest',
88 as 'Cfn::Value',
89 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
90 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
91  
92 coerce 'ArrayOfCfn::Resource::Properties::AWS::MediaLive::Input::InputSourceRequest',
93 from 'HashRef',
94 via {
95 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
96 0 return $f
97 } else {
98 0 die 'Only accepts functions';
99 }
100 },
101 from 'ArrayRef',
102 via {
103 Cfn::Value::Array->new(Value => [
104 map {
105 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::MediaLive::Input::InputSourceRequest')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
106 } @$_
107 ]);
108 1 };
109  
110 1 subtype 'Cfn::Resource::Properties::AWS::MediaLive::Input::InputSourceRequest',
111 as 'Cfn::Value';
112  
113 coerce 'Cfn::Resource::Properties::AWS::MediaLive::Input::InputSourceRequest',
114 from 'HashRef',
115 via {
116 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
117 0 return $f
118 } else {
119 0 return Cfn::Resource::Properties::Object::AWS::MediaLive::Input::InputSourceRequest->new( %$_ );
120 }
121 1 };
122  
123 1 package Cfn::Resource::Properties::Object::AWS::MediaLive::Input::InputSourceRequest {
124 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
125 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
126 1 extends 'Cfn::Value::TypedValue';
127
128 1 has PasswordParam => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
129 1 has Url => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
130 1 has Username => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
131 }
132 subtype 'ArrayOfCfn::Resource::Properties::AWS::MediaLive::Input::InputDeviceSettings',
133 as 'Cfn::Value',
134 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
135 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
136  
137 coerce 'ArrayOfCfn::Resource::Properties::AWS::MediaLive::Input::InputDeviceSettings',
138 from 'HashRef',
139 via {
140 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
141 0 return $f
142 } else {
143 0 die 'Only accepts functions';
144 }
145 },
146 from 'ArrayRef',
147 via {
148 Cfn::Value::Array->new(Value => [
149 map {
150 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::MediaLive::Input::InputDeviceSettings')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
151 } @$_
152 ]);
153 1 };
154  
155 1 subtype 'Cfn::Resource::Properties::AWS::MediaLive::Input::InputDeviceSettings',
156 as 'Cfn::Value';
157  
158 coerce 'Cfn::Resource::Properties::AWS::MediaLive::Input::InputDeviceSettings',
159 from 'HashRef',
160 via {
161 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
162 0 return $f
163 } else {
164 0 return Cfn::Resource::Properties::Object::AWS::MediaLive::Input::InputDeviceSettings->new( %$_ );
165 }
166 1 };
167  
168 1 package Cfn::Resource::Properties::Object::AWS::MediaLive::Input::InputDeviceSettings {
169 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
170 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
171 1 extends 'Cfn::Value::TypedValue';
172
173 1 has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
174 }
175  
176 1 subtype 'Cfn::Resource::Properties::AWS::MediaLive::Input::InputDeviceRequest',
177 as 'Cfn::Value';
178  
179 coerce 'Cfn::Resource::Properties::AWS::MediaLive::Input::InputDeviceRequest',
180 from 'HashRef',
181 via {
182 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
183 0 return $f
184 } else {
185 0 return Cfn::Resource::Properties::Object::AWS::MediaLive::Input::InputDeviceRequest->new( %$_ );
186 }
187 1 };
188  
189 1 package Cfn::Resource::Properties::Object::AWS::MediaLive::Input::InputDeviceRequest {
190 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
191 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
192 1 extends 'Cfn::Value::TypedValue';
193
194 1 has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
195 }
196 subtype 'ArrayOfCfn::Resource::Properties::AWS::MediaLive::Input::InputDestinationRequest',
197 as 'Cfn::Value',
198 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
199 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
200  
201 coerce 'ArrayOfCfn::Resource::Properties::AWS::MediaLive::Input::InputDestinationRequest',
202 from 'HashRef',
203 via {
204 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
205 0 return $f
206 } else {
207 0 die 'Only accepts functions';
208 }
209 },
210 from 'ArrayRef',
211 via {
212 Cfn::Value::Array->new(Value => [
213 map {
214 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::MediaLive::Input::InputDestinationRequest')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
215 } @$_
216 ]);
217 1 };
218  
219 1 subtype 'Cfn::Resource::Properties::AWS::MediaLive::Input::InputDestinationRequest',
220 as 'Cfn::Value';
221  
222 coerce 'Cfn::Resource::Properties::AWS::MediaLive::Input::InputDestinationRequest',
223 from 'HashRef',
224 via {
225 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
226 0 return $f
227 } else {
228 0 return Cfn::Resource::Properties::Object::AWS::MediaLive::Input::InputDestinationRequest->new( %$_ );
229 }
230 1 };
231  
232 1 package Cfn::Resource::Properties::Object::AWS::MediaLive::Input::InputDestinationRequest {
233 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
234 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
235 1 extends 'Cfn::Value::TypedValue';
236
237 1 has StreamName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
238 }
239  
240 1 package Cfn::Resource::Properties::AWS::MediaLive::Input {
241 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
242 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
243 1 extends 'Cfn::Resource::Properties';
244
245 1 has Destinations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::MediaLive::Input::InputDestinationRequest', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
246 1 has InputDevices => (isa => 'ArrayOfCfn::Resource::Properties::AWS::MediaLive::Input::InputDeviceSettings', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
247 1 has InputSecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
248 1 has MediaConnectFlows => (isa => 'ArrayOfCfn::Resource::Properties::AWS::MediaLive::Input::MediaConnectFlowRequest', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
249 1 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
250 1 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
251 1 has Sources => (isa => 'ArrayOfCfn::Resource::Properties::AWS::MediaLive::Input::InputSourceRequest', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
252 1 has Tags => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
253 1 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
254 1 has Vpc => (isa => 'Cfn::Resource::Properties::AWS::MediaLive::Input::InputVpcRequest', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
255 }
256  
257 1 1;
258 ### main pod documentation begin ###
259  
260 =encoding UTF-8
261  
262 =head1 NAME
263  
264 Cfn::Resource::AWS::MediaLive::Input - Cfn resource for AWS::MediaLive::Input
265  
266 =head1 DESCRIPTION
267  
268 This module implements a Perl module that represents the CloudFormation object AWS::MediaLive::Input.
269  
270 See L<Cfn> for more information on how to use it.
271  
272 =head1 AUTHOR
273  
274 Jose Luis Martinez
275 CAPSiDE
276 jlmartinez@capside.com
277  
278 =head1 COPYRIGHT and LICENSE
279  
280 Copyright (c) 2013 by CAPSiDE
281 This code is distributed under the Apache 2 License. The full text of the
282 license can be found in the LICENSE file included with this module.
283  
284 =cut
« Cfn/Resource/AWS/ECS/Service.pm ↑ Summary Cfn/Resource/AWS/Glue/Crawler.pm »