Cfn/Resource/AWS/ECS/TaskSet.pm

filter: Statementstmt 76.7% 99 / 129 Branchbran 0.0% 0 / 18 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 53.3% 16 / 30 Podpod 0.0% 0 / 2 totaltotal 64.2% 115 / 179 CC 10 SCAR 12.1
CC
10
Cov
67%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.4
« Cfn/Resource/AWS/Glue/Trigger.pm ↑ Summary Cfn/Resource/AWS/CloudFormation/StackSet.pm »
1 # AWS::ECS::TaskSet 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::ECS::TaskSet',
5 from 'HashRef',
6 0 ▶ via { Cfn::Resource::Properties::AWS::ECS::TaskSet->new( %$_ ) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
7  
8 1 package Cfn::Resource::AWS::ECS::TaskSet {
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::ECS::TaskSet', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ 'Id' ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 1 ▶ [ 'ap-east-1','ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-north-1','cn-northwest-1','eu-central-1','eu-north-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-1','us-east-1','us-east-2','us-gov-east-1','us-gov-west-1','us-west-1','us-west-2' ]
Subroutine supported_regions: called CC=1 SCAR=0.0
Pod undocumented
18 }
19 }
20  
21  
22  
23 1 subtype 'Cfn::Resource::Properties::AWS::ECS::TaskSet::AwsVpcConfiguration',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::ECS::TaskSet::AwsVpcConfiguration',
27 from 'HashRef',
28 via {
29 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
30 0 return $f
31 } else {
32 0 return Cfn::Resource::Properties::Object::AWS::ECS::TaskSet::AwsVpcConfiguration->new( %$_ );
33 }
34 1 };
35  
36 1 package Cfn::Resource::Properties::Object::AWS::ECS::TaskSet::AwsVpcConfiguration {
37 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 1 extends 'Cfn::Value::TypedValue';
40
41 1 has AssignPublicIp => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
42 1 has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
43 1 has Subnets => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
44 }
45 subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskSet::ServiceRegistry',
46 as 'Cfn::Value',
47 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
48 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
49  
50 coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskSet::ServiceRegistry',
51 from 'HashRef',
52 via {
53 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
54 0 return $f
55 } else {
56 0 die 'Only accepts functions';
57 }
58 },
59 from 'ArrayRef',
60 via {
61 Cfn::Value::Array->new(Value => [
62 map {
63 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskSet::ServiceRegistry')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
64 } @$_
65 ]);
66 1 };
67  
68 1 subtype 'Cfn::Resource::Properties::AWS::ECS::TaskSet::ServiceRegistry',
69 as 'Cfn::Value';
70  
71 coerce 'Cfn::Resource::Properties::AWS::ECS::TaskSet::ServiceRegistry',
72 from 'HashRef',
73 via {
74 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
75 0 return $f
76 } else {
77 0 return Cfn::Resource::Properties::Object::AWS::ECS::TaskSet::ServiceRegistry->new( %$_ );
78 }
79 1 };
80  
81 1 package Cfn::Resource::Properties::Object::AWS::ECS::TaskSet::ServiceRegistry {
82 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
83 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
84 1 extends 'Cfn::Value::TypedValue';
85
86 1 has ContainerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
87 1 has ContainerPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
88 1 has Port => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
89 1 has RegistryArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
90 }
91  
92 1 subtype 'Cfn::Resource::Properties::AWS::ECS::TaskSet::Scale',
93 as 'Cfn::Value';
94  
95 coerce 'Cfn::Resource::Properties::AWS::ECS::TaskSet::Scale',
96 from 'HashRef',
97 via {
98 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
99 0 return $f
100 } else {
101 0 return Cfn::Resource::Properties::Object::AWS::ECS::TaskSet::Scale->new( %$_ );
102 }
103 1 };
104  
105 1 package Cfn::Resource::Properties::Object::AWS::ECS::TaskSet::Scale {
106 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
107 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
108 1 extends 'Cfn::Value::TypedValue';
109
110 1 has Unit => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111 1 has Value => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
112 }
113  
114 1 subtype 'Cfn::Resource::Properties::AWS::ECS::TaskSet::NetworkConfiguration',
115 as 'Cfn::Value';
116  
117 coerce 'Cfn::Resource::Properties::AWS::ECS::TaskSet::NetworkConfiguration',
118 from 'HashRef',
119 via {
120 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
121 0 return $f
122 } else {
123 0 return Cfn::Resource::Properties::Object::AWS::ECS::TaskSet::NetworkConfiguration->new( %$_ );
124 }
125 1 };
126  
127 1 package Cfn::Resource::Properties::Object::AWS::ECS::TaskSet::NetworkConfiguration {
128 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
129 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
130 1 extends 'Cfn::Value::TypedValue';
131
132 1 has AwsVpcConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskSet::AwsVpcConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
133 }
134 subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskSet::LoadBalancer',
135 as 'Cfn::Value',
136 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
137 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
138  
139 coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskSet::LoadBalancer',
140 from 'HashRef',
141 via {
142 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
143 0 return $f
144 } else {
145 0 die 'Only accepts functions';
146 }
147 },
148 from 'ArrayRef',
149 via {
150 Cfn::Value::Array->new(Value => [
151 map {
152 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskSet::LoadBalancer')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
153 } @$_
154 ]);
155 1 };
156  
157 1 subtype 'Cfn::Resource::Properties::AWS::ECS::TaskSet::LoadBalancer',
158 as 'Cfn::Value';
159  
160 coerce 'Cfn::Resource::Properties::AWS::ECS::TaskSet::LoadBalancer',
161 from 'HashRef',
162 via {
163 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
164 0 return $f
165 } else {
166 0 return Cfn::Resource::Properties::Object::AWS::ECS::TaskSet::LoadBalancer->new( %$_ );
167 }
168 1 };
169  
170 1 package Cfn::Resource::Properties::Object::AWS::ECS::TaskSet::LoadBalancer {
171 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
172 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
173 1 extends 'Cfn::Value::TypedValue';
174
175 1 has ContainerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
176 1 has ContainerPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
177 1 has LoadBalancerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
178 1 has TargetGroupArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
179 }
180  
181 1 package Cfn::Resource::Properties::AWS::ECS::TaskSet {
182 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
183 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
184 1 extends 'Cfn::Resource::Properties';
185
186 1 has Cluster => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
187 1 has ExternalId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
188 1 has LaunchType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
189 1 has LoadBalancers => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskSet::LoadBalancer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
190 1 has NetworkConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskSet::NetworkConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
191 1 has PlatformVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
192 1 has Scale => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskSet::Scale', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
193 1 has Service => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
194 1 has ServiceRegistries => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskSet::ServiceRegistry', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
195 1 has TaskDefinition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
196 }
197  
198 1 1;
199 ### main pod documentation begin ###
200  
201 =encoding UTF-8
202  
203 =head1 NAME
204  
205 Cfn::Resource::AWS::ECS::TaskSet - Cfn resource for AWS::ECS::TaskSet
206  
207 =head1 DESCRIPTION
208  
209 This module implements a Perl module that represents the CloudFormation object AWS::ECS::TaskSet.
210  
211 See L<Cfn> for more information on how to use it.
212  
213 =head1 AUTHOR
214  
215 Jose Luis Martinez
216 CAPSiDE
217 jlmartinez@capside.com
218  
219 =head1 COPYRIGHT and LICENSE
220  
221 Copyright (c) 2013 by CAPSiDE
222 This code is distributed under the Apache 2 License. The full text of the
223 license can be found in the LICENSE file included with this module.
224  
225 =cut
« Cfn/Resource/AWS/Glue/Trigger.pm ↑ Summary Cfn/Resource/AWS/CloudFormation/StackSet.pm »