| 1 | # AWS::Amplify::App generated from spec 21.0.0 | ||||||||||
| 2 | 1 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::Amplify::App', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 0 | ▶ | via { Cfn::Resource::Properties::AWS::Amplify::App->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | package Cfn::Resource::AWS::Amplify::App { | |||||||||
| 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::Amplify::App', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | sub AttributeList { | ||||||||||
| 14 | 1 | ▶ | [ 'AppId','AppName','Arn','DefaultDomain' ] | ||||||||
|
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','eu-west-2','us-east-1','us-east-2','us-west-2' ] | ||||||||
|
Subroutine
supported_regions: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Amplify::App::EnvironmentVariable', | ||||||||||
| 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
| |||||||||||
| 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::Amplify::App::EnvironmentVariable', | ||||||||||
| 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
| |||||||||||
| 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::Amplify::App::EnvironmentVariable')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 41 | } @$_ | ||||||||||
| 42 | ]); | ||||||||||
| 43 | 1 | }; | |||||||||
| 44 | |||||||||||
| 45 | 1 | 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 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 52 | 0 | return $f | |||||||||
| 53 | } else { | ||||||||||
| 54 | 0 | return Cfn::Resource::Properties::Object::AWS::Amplify::App::EnvironmentVariable->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 1 | }; | |||||||||
| 57 | |||||||||||
| 58 | 1 | package Cfn::Resource::Properties::Object::AWS::Amplify::App::EnvironmentVariable { | |||||||||
| 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 Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 64 | 1 | has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 65 | } | ||||||||||
| 66 | |||||||||||
| 67 | 1 | 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 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 74 | 0 | return $f | |||||||||
| 75 | } else { | ||||||||||
| 76 | 0 | return Cfn::Resource::Properties::Object::AWS::Amplify::App::BasicAuthConfig->new( %$_ ); | |||||||||
| 77 | } | ||||||||||
| 78 | 1 | }; | |||||||||
| 79 | |||||||||||
| 80 | 1 | package Cfn::Resource::Properties::Object::AWS::Amplify::App::BasicAuthConfig { | |||||||||
| 81 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 82 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 83 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 84 | |||||||||||
| 85 | 1 | has EnableBasicAuth => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 86 | 1 | has Password => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 87 | 1 | 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 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 92 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 93 | |||||||||||
| 94 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Amplify::App::CustomRule', | ||||||||||
| 95 | from 'HashRef', | ||||||||||
| 96 | via { | ||||||||||
| 97 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 98 | 0 | return $f | |||||||||
| 99 | } else { | ||||||||||
| 100 | 0 | die 'Only accepts functions'; | |||||||||
| 101 | } | ||||||||||
| 102 | }, | ||||||||||
| 103 | from 'ArrayRef', | ||||||||||
| 104 | via { | ||||||||||
| 105 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 106 | map { | ||||||||||
| 107 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Amplify::App::CustomRule')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 108 | } @$_ | ||||||||||
| 109 | ]); | ||||||||||
| 110 | 1 | }; | |||||||||
| 111 | |||||||||||
| 112 | 1 | 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 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 119 | 0 | return $f | |||||||||
| 120 | } else { | ||||||||||
| 121 | 0 | return Cfn::Resource::Properties::Object::AWS::Amplify::App::CustomRule->new( %$_ ); | |||||||||
| 122 | } | ||||||||||
| 123 | 1 | }; | |||||||||
| 124 | |||||||||||
| 125 | 1 | package Cfn::Resource::Properties::Object::AWS::Amplify::App::CustomRule { | |||||||||
| 126 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 127 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 128 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 129 | |||||||||||
| 130 | 1 | has Condition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 131 | 1 | has Source => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 132 | 1 | has Status => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 133 | 1 | has Target => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 134 | } | ||||||||||
| 135 | |||||||||||
| 136 | 1 | 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 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 143 | 0 | return $f | |||||||||
| 144 | } else { | ||||||||||
| 145 | 0 | return Cfn::Resource::Properties::Object::AWS::Amplify::App::AutoBranchCreationConfig->new( %$_ ); | |||||||||
| 146 | } | ||||||||||
| 147 | 1 | }; | |||||||||
| 148 | |||||||||||
| 149 | 1 | package Cfn::Resource::Properties::Object::AWS::Amplify::App::AutoBranchCreationConfig { | |||||||||
| 150 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 151 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 152 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 153 | |||||||||||
| 154 | 1 | has AutoBranchCreationPatterns => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 155 | 1 | has BasicAuthConfig => (isa => 'Cfn::Resource::Properties::AWS::Amplify::App::BasicAuthConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 156 | 1 | has BuildSpec => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 157 | 1 | has EnableAutoBranchCreation => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 158 | 1 | has EnableAutoBuild => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 159 | 1 | has EnablePerformanceMode => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 160 | 1 | has EnablePullRequestPreview => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 161 | 1 | has EnvironmentVariables => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Amplify::App::EnvironmentVariable', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 162 | 1 | has PullRequestEnvironmentName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 163 | 1 | has Stage => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 164 | } | ||||||||||
| 165 | |||||||||||
| 166 | 1 | package Cfn::Resource::Properties::AWS::Amplify::App { | |||||||||
| 167 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 168 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 169 | 1 | extends 'Cfn::Resource::Properties'; | |||||||||
| 170 | |||||||||||
| 171 | 1 | has AccessToken => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 172 | 1 | has AutoBranchCreationConfig => (isa => 'Cfn::Resource::Properties::AWS::Amplify::App::AutoBranchCreationConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 173 | 1 | has BasicAuthConfig => (isa => 'Cfn::Resource::Properties::AWS::Amplify::App::BasicAuthConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 174 | 1 | has BuildSpec => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 175 | 1 | has CustomHeaders => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 176 | 1 | has CustomRules => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Amplify::App::CustomRule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 177 | 1 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 178 | 1 | has EnableBranchAutoDeletion => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 179 | 1 | has EnvironmentVariables => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Amplify::App::EnvironmentVariable', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 180 | 1 | has IAMServiceRole => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 181 | 1 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 182 | 1 | has OauthToken => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 183 | 1 | has Repository => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 184 | 1 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 185 | } | ||||||||||
| 186 | |||||||||||
| 187 | 1 | 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 | ||||||||||