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 21.0.0
2 1     1   783 use Moose::Util::TypeConstraints;
  1         3  
  1         12  
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   2223 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 5 [ 'AppId','AppName','Arn','DefaultDomain' ]
15             }
16             sub supported_regions {
17 1     1 0 1182 [ '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::Object::AWS::Amplify::App::EnvironmentVariable->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::Object::AWS::Amplify::App::EnvironmentVariable {
59 1     1   7650 use Moose;
  1         3  
  1         5  
60 1     1   6656 use MooseX::StrictConstructor;
  1         3  
  1         14  
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::Object::AWS::Amplify::App::BasicAuthConfig->new( %$_ );
77             }
78             };
79              
80             package Cfn::Resource::Properties::Object::AWS::Amplify::App::BasicAuthConfig {
81 1     1   3735 use Moose;
  1         5  
  1         5  
82 1     1   6652 use MooseX::StrictConstructor;
  1         2  
  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::Object::AWS::Amplify::App::CustomRule->new( %$_ );
122             }
123             };
124              
125             package Cfn::Resource::Properties::Object::AWS::Amplify::App::CustomRule {
126 1     1   3456 use Moose;
  1         3  
  1         6  
127 1     1   6639 use MooseX::StrictConstructor;
  1         3  
  1         5  
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::Object::AWS::Amplify::App::AutoBranchCreationConfig->new( %$_ );
146             }
147             };
148              
149             package Cfn::Resource::Properties::Object::AWS::Amplify::App::AutoBranchCreationConfig {
150 1     1   3738 use Moose;
  1         3  
  1         15  
151 1     1   6662 use MooseX::StrictConstructor;
  1         2  
  1         6  
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 EnablePerformanceMode => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
160             has EnablePullRequestPreview => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
161             has EnvironmentVariables => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Amplify::App::EnvironmentVariable', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
162             has PullRequestEnvironmentName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
163             has Stage => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
164             }
165              
166             package Cfn::Resource::Properties::AWS::Amplify::App {
167 1     1   3479 use Moose;
  1         5  
  1         6  
168 1     1   6673 use MooseX::StrictConstructor;
  1         4  
  1         5  
169             extends 'Cfn::Resource::Properties';
170            
171             has AccessToken => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
172             has AutoBranchCreationConfig => (isa => 'Cfn::Resource::Properties::AWS::Amplify::App::AutoBranchCreationConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
173             has BasicAuthConfig => (isa => 'Cfn::Resource::Properties::AWS::Amplify::App::BasicAuthConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
174             has BuildSpec => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
175             has CustomHeaders => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
176             has CustomRules => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Amplify::App::CustomRule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
177             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
178             has EnableBranchAutoDeletion => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
179             has EnvironmentVariables => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Amplify::App::EnvironmentVariable', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
180             has IAMServiceRole => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
181             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
182             has OauthToken => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
183             has Repository => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
184             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
185             }
186              
187             1;
188             ### main pod documentation begin ###
189              
190             =encoding UTF-8
191              
192             =head1 NAME
193              
194             Cfn::Resource::AWS::Amplify::App - Cfn resource for AWS::Amplify::App
195              
196             =head1 DESCRIPTION
197              
198             This module implements a Perl module that represents the CloudFormation object AWS::Amplify::App.
199              
200             See L<Cfn> for more information on how to use it.
201              
202             =head1 AUTHOR
203              
204             Jose Luis Martinez
205             CAPSiDE
206             jlmartinez@capside.com
207              
208             =head1 COPYRIGHT and LICENSE
209              
210             Copyright (c) 2013 by CAPSiDE
211             This code is distributed under the Apache 2 License. The full text of the
212             license can be found in the LICENSE file included with this module.
213              
214             =cut