File Coverage

blib/lib/Cfn/Resource/AWS/Amplify/App.pm
Criterion Covered Total %
statement 38 38 100.0
branch n/a
condition n/a
subroutine 14 14 100.0
pod 0 2 0.0
total 52 54 96.3


line stmt bran cond sub pod time code
1             # AWS::Amplify::App generated from spec 7.4.0
2 1     1   709 use Moose::Util::TypeConstraints;
  1         3  
  1         11  
3              
4             coerce 'Cfn::Resource::Properties::AWS::Amplify::App',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::Amplify::App->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::Amplify::App {
9 1     1   2194 use Moose;
  1         3  
  1         8  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::Amplify::App', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ 'AppId','AppName','Arn','DefaultDomain' ]
15             }
16             sub supported_regions {
17 1     1 0 1074 [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','eu-central-1','eu-west-1','eu-west-2','us-east-1','us-east-2','us-west-2' ]
18             }
19             }
20              
21              
22             subtype 'ArrayOfCfn::Resource::Properties::AWS::Amplify::App::EnvironmentVariable',
23             as 'Cfn::Value',
24             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
25             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
26              
27             coerce 'ArrayOfCfn::Resource::Properties::AWS::Amplify::App::EnvironmentVariable',
28             from 'HashRef',
29             via {
30             if (my $f = Cfn::TypeLibrary::try_function($_)) {
31             return $f
32             } else {
33             die 'Only accepts functions';
34             }
35             },
36             from 'ArrayRef',
37             via {
38             Cfn::Value::Array->new(Value => [
39             map {
40             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Amplify::App::EnvironmentVariable')->coerce($_)
41             } @$_
42             ]);
43             };
44              
45             subtype 'Cfn::Resource::Properties::AWS::Amplify::App::EnvironmentVariable',
46             as 'Cfn::Value';
47              
48             coerce 'Cfn::Resource::Properties::AWS::Amplify::App::EnvironmentVariable',
49             from 'HashRef',
50             via {
51             if (my $f = Cfn::TypeLibrary::try_function($_)) {
52             return $f
53             } else {
54             return Cfn::Resource::Properties::AWS::Amplify::App::EnvironmentVariableValue->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::AWS::Amplify::App::EnvironmentVariableValue {
59 1     1   7390 use Moose;
  1         4  
  1         6  
60 1     1   6520 use MooseX::StrictConstructor;
  1         2  
  1         10  
61             extends 'Cfn::Value::TypedValue';
62            
63             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65             }
66              
67             subtype 'Cfn::Resource::Properties::AWS::Amplify::App::BasicAuthConfig',
68             as 'Cfn::Value';
69              
70             coerce 'Cfn::Resource::Properties::AWS::Amplify::App::BasicAuthConfig',
71             from 'HashRef',
72             via {
73             if (my $f = Cfn::TypeLibrary::try_function($_)) {
74             return $f
75             } else {
76             return Cfn::Resource::Properties::AWS::Amplify::App::BasicAuthConfigValue->new( %$_ );
77             }
78             };
79              
80             package Cfn::Resource::Properties::AWS::Amplify::App::BasicAuthConfigValue {
81 1     1   3622 use Moose;
  1         3  
  1         6  
82 1     1   6543 use MooseX::StrictConstructor;
  1         3  
  1         6  
83             extends 'Cfn::Value::TypedValue';
84            
85             has EnableBasicAuth => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86             has Password => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87             has Username => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88             }
89             subtype 'ArrayOfCfn::Resource::Properties::AWS::Amplify::App::CustomRule',
90             as 'Cfn::Value',
91             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
92             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
93              
94             coerce 'ArrayOfCfn::Resource::Properties::AWS::Amplify::App::CustomRule',
95             from 'HashRef',
96             via {
97             if (my $f = Cfn::TypeLibrary::try_function($_)) {
98             return $f
99             } else {
100             die 'Only accepts functions';
101             }
102             },
103             from 'ArrayRef',
104             via {
105             Cfn::Value::Array->new(Value => [
106             map {
107             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Amplify::App::CustomRule')->coerce($_)
108             } @$_
109             ]);
110             };
111              
112             subtype 'Cfn::Resource::Properties::AWS::Amplify::App::CustomRule',
113             as 'Cfn::Value';
114              
115             coerce 'Cfn::Resource::Properties::AWS::Amplify::App::CustomRule',
116             from 'HashRef',
117             via {
118             if (my $f = Cfn::TypeLibrary::try_function($_)) {
119             return $f
120             } else {
121             return Cfn::Resource::Properties::AWS::Amplify::App::CustomRuleValue->new( %$_ );
122             }
123             };
124              
125             package Cfn::Resource::Properties::AWS::Amplify::App::CustomRuleValue {
126 1     1   3558 use Moose;
  1         4  
  1         6  
127 1     1   6453 use MooseX::StrictConstructor;
  1         3  
  1         4  
128             extends 'Cfn::Value::TypedValue';
129            
130             has Condition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
131             has Source => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
132             has Status => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
133             has Target => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
134             }
135              
136             subtype 'Cfn::Resource::Properties::AWS::Amplify::App::AutoBranchCreationConfig',
137             as 'Cfn::Value';
138              
139             coerce 'Cfn::Resource::Properties::AWS::Amplify::App::AutoBranchCreationConfig',
140             from 'HashRef',
141             via {
142             if (my $f = Cfn::TypeLibrary::try_function($_)) {
143             return $f
144             } else {
145             return Cfn::Resource::Properties::AWS::Amplify::App::AutoBranchCreationConfigValue->new( %$_ );
146             }
147             };
148              
149             package Cfn::Resource::Properties::AWS::Amplify::App::AutoBranchCreationConfigValue {
150 1     1   3404 use Moose;
  1         2  
  1         5  
151 1     1   6517 use MooseX::StrictConstructor;
  1         3  
  1         5  
152             extends 'Cfn::Value::TypedValue';
153            
154             has AutoBranchCreationPatterns => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
155             has BasicAuthConfig => (isa => 'Cfn::Resource::Properties::AWS::Amplify::App::BasicAuthConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
156             has BuildSpec => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
157             has EnableAutoBranchCreation => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
158             has EnableAutoBuild => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
159             has EnablePullRequestPreview => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
160             has EnvironmentVariables => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Amplify::App::EnvironmentVariable', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
161             has PullRequestEnvironmentName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
162             has Stage => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
163             }
164              
165             package Cfn::Resource::Properties::AWS::Amplify::App {
166 1     1   3334 use Moose;
  1         3  
  1         6  
167 1     1   6490 use MooseX::StrictConstructor;
  1         6  
  1         6  
168             extends 'Cfn::Resource::Properties';
169            
170             has AccessToken => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
171             has AutoBranchCreationConfig => (isa => 'Cfn::Resource::Properties::AWS::Amplify::App::AutoBranchCreationConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
172             has BasicAuthConfig => (isa => 'Cfn::Resource::Properties::AWS::Amplify::App::BasicAuthConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
173             has BuildSpec => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
174             has CustomRules => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Amplify::App::CustomRule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
175             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
176             has EnvironmentVariables => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Amplify::App::EnvironmentVariable', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
177             has IAMServiceRole => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
178             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
179             has OauthToken => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
180             has Repository => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
181             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
182             }
183              
184             1;