File Coverage

blib/lib/Cfn/Resource/AWS/ECS/TaskSet.pm
Criterion Covered Total %
statement 44 44 100.0
branch n/a
condition n/a
subroutine 16 16 100.0
pod 0 2 0.0
total 60 62 96.7


line stmt bran cond sub pod time code
1             # AWS::ECS::TaskSet generated from spec 9.1.0
2 1     1   711 use Moose::Util::TypeConstraints;
  1         54  
  1         16  
3              
4             coerce 'Cfn::Resource::Properties::AWS::ECS::TaskSet',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::ECS::TaskSet->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::ECS::TaskSet {
9 1     1   2525 use Moose;
  1         3  
  1         8  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskSet', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 5 [ 'Id' ]
15             }
16             sub supported_regions {
17 1     1 0 1117 [ 'ap-northeast-1','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-1','eu-west-1','eu-west-2','eu-west-3','sa-east-1','us-east-1','us-east-2','us-west-1','us-west-2' ]
18             }
19             }
20              
21              
22              
23             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::AWS::ECS::TaskSet::AwsVpcConfigurationValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::ECS::TaskSet::AwsVpcConfigurationValue {
37 1     1   7216 use Moose;
  1         3  
  1         5  
38 1     1   6667 use MooseX::StrictConstructor;
  1         4  
  1         10  
39             extends 'Cfn::Value::TypedValue';
40            
41             has AssignPublicIp => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
42             has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
43             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             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
48             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
49              
50             coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskSet::ServiceRegistry',
51             from 'HashRef',
52             via {
53             if (my $f = Cfn::TypeLibrary::try_function($_)) {
54             return $f
55             } else {
56             die 'Only accepts functions';
57             }
58             },
59             from 'ArrayRef',
60             via {
61             Cfn::Value::Array->new(Value => [
62             map {
63             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskSet::ServiceRegistry')->coerce($_)
64             } @$_
65             ]);
66             };
67              
68             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
75             return $f
76             } else {
77             return Cfn::Resource::Properties::AWS::ECS::TaskSet::ServiceRegistryValue->new( %$_ );
78             }
79             };
80              
81             package Cfn::Resource::Properties::AWS::ECS::TaskSet::ServiceRegistryValue {
82 1     1   3693 use Moose;
  1         3  
  1         5  
83 1     1   6443 use MooseX::StrictConstructor;
  1         4  
  1         5  
84             extends 'Cfn::Value::TypedValue';
85            
86             has ContainerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
87             has ContainerPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
88             has Port => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
89             has RegistryArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
90             }
91              
92             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
99             return $f
100             } else {
101             return Cfn::Resource::Properties::AWS::ECS::TaskSet::ScaleValue->new( %$_ );
102             }
103             };
104              
105             package Cfn::Resource::Properties::AWS::ECS::TaskSet::ScaleValue {
106 1     1   3384 use Moose;
  1         3  
  1         5  
107 1     1   6530 use MooseX::StrictConstructor;
  1         3  
  1         6  
108             extends 'Cfn::Value::TypedValue';
109            
110             has Unit => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111             has Value => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
112             }
113              
114             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
121             return $f
122             } else {
123             return Cfn::Resource::Properties::AWS::ECS::TaskSet::NetworkConfigurationValue->new( %$_ );
124             }
125             };
126              
127             package Cfn::Resource::Properties::AWS::ECS::TaskSet::NetworkConfigurationValue {
128 1     1   3304 use Moose;
  1         3  
  1         5  
129 1     1   6611 use MooseX::StrictConstructor;
  1         2  
  1         6  
130             extends 'Cfn::Value::TypedValue';
131            
132             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             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
137             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
138              
139             coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskSet::LoadBalancer',
140             from 'HashRef',
141             via {
142             if (my $f = Cfn::TypeLibrary::try_function($_)) {
143             return $f
144             } else {
145             die 'Only accepts functions';
146             }
147             },
148             from 'ArrayRef',
149             via {
150             Cfn::Value::Array->new(Value => [
151             map {
152             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskSet::LoadBalancer')->coerce($_)
153             } @$_
154             ]);
155             };
156              
157             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
164             return $f
165             } else {
166             return Cfn::Resource::Properties::AWS::ECS::TaskSet::LoadBalancerValue->new( %$_ );
167             }
168             };
169              
170             package Cfn::Resource::Properties::AWS::ECS::TaskSet::LoadBalancerValue {
171 1     1   3543 use Moose;
  1         3  
  1         7  
172 1     1   6492 use MooseX::StrictConstructor;
  1         3  
  1         6  
173             extends 'Cfn::Value::TypedValue';
174            
175             has ContainerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
176             has ContainerPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
177             has LoadBalancerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
178             has TargetGroupArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
179             }
180              
181             package Cfn::Resource::Properties::AWS::ECS::TaskSet {
182 1     1   3279 use Moose;
  1         4  
  1         5  
183 1     1   6546 use MooseX::StrictConstructor;
  1         3  
  1         4  
184             extends 'Cfn::Resource::Properties';
185            
186             has Cluster => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
187             has ExternalId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
188             has LaunchType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
189             has LoadBalancers => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskSet::LoadBalancer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
190             has NetworkConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskSet::NetworkConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
191             has PlatformVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
192             has Scale => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskSet::Scale', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
193             has Service => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
194             has ServiceRegistries => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskSet::ServiceRegistry', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
195             has TaskDefinition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
196             }
197              
198             1;