| 1 | # AWS::CodeBuild::Project generated from spec 20.1.0 | ||||||||||
| 2 | 2 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 2 | ▶ | via { Cfn::Resource::Properties::AWS::CodeBuild::Project->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 2 | package Cfn::Resource::AWS::CodeBuild::Project { | |||||||||
| 9 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 2 | extends 'Cfn::Resource'; | |||||||||
| 11 | 2 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | sub AttributeList { | ||||||||||
| 14 | 1 | ▶ | [ 'Arn' ] | ||||||||
|
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 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::SourceAuth', | |||||||||
| 24 | as 'Cfn::Value'; | ||||||||||
| 25 | |||||||||||
| 26 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::SourceAuth', | ||||||||||
| 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
| |||||||||||
| 30 | 0 | return $f | |||||||||
| 31 | } else { | ||||||||||
| 32 | 0 | return Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::SourceAuth->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 2 | }; | |||||||||
| 35 | |||||||||||
| 36 | 2 | package Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::SourceAuth { | |||||||||
| 37 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 38 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 39 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 40 | |||||||||||
| 41 | 2 | has Resource => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 42 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 43 | } | ||||||||||
| 44 | |||||||||||
| 45 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::S3LogsConfig', | |||||||||
| 46 | as 'Cfn::Value'; | ||||||||||
| 47 | |||||||||||
| 48 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::S3LogsConfig', | ||||||||||
| 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::CodeBuild::Project::S3LogsConfig->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 2 | }; | |||||||||
| 57 | |||||||||||
| 58 | 2 | package Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::S3LogsConfig { | |||||||||
| 59 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 60 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 61 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 62 | |||||||||||
| 63 | 2 | has EncryptionDisabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 64 | 2 | has Location => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 65 | 2 | has Status => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 66 | } | ||||||||||
| 67 | |||||||||||
| 68 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::RegistryCredential', | |||||||||
| 69 | as 'Cfn::Value'; | ||||||||||
| 70 | |||||||||||
| 71 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::RegistryCredential', | ||||||||||
| 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
| |||||||||||
| 75 | 0 | return $f | |||||||||
| 76 | } else { | ||||||||||
| 77 | 0 | return Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::RegistryCredential->new( %$_ ); | |||||||||
| 78 | } | ||||||||||
| 79 | 2 | }; | |||||||||
| 80 | |||||||||||
| 81 | 2 | package Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::RegistryCredential { | |||||||||
| 82 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 83 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 84 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 85 | |||||||||||
| 86 | 2 | has Credential => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 87 | 2 | has CredentialProvider => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 88 | } | ||||||||||
| 89 | |||||||||||
| 90 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::GitSubmodulesConfig', | |||||||||
| 91 | as 'Cfn::Value'; | ||||||||||
| 92 | |||||||||||
| 93 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::GitSubmodulesConfig', | ||||||||||
| 94 | from 'HashRef', | ||||||||||
| 95 | via { | ||||||||||
| 96 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 97 | 0 | return $f | |||||||||
| 98 | } else { | ||||||||||
| 99 | 0 | return Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::GitSubmodulesConfig->new( %$_ ); | |||||||||
| 100 | } | ||||||||||
| 101 | 2 | }; | |||||||||
| 102 | |||||||||||
| 103 | 2 | package Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::GitSubmodulesConfig { | |||||||||
| 104 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 105 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 106 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 107 | |||||||||||
| 108 | 2 | has FetchSubmodules => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 109 | } | ||||||||||
| 110 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::FilterGroup', | ||||||||||
| 111 | as 'Cfn::Value', | ||||||||||
| 112 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 113 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 114 | |||||||||||
| 115 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::FilterGroup', | ||||||||||
| 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 | die 'Only accepts functions'; | |||||||||
| 122 | } | ||||||||||
| 123 | }, | ||||||||||
| 124 | from 'ArrayRef', | ||||||||||
| 125 | via { | ||||||||||
| 126 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 127 | map { | ||||||||||
| 128 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CodeBuild::Project::FilterGroup')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 129 | } @$_ | ||||||||||
| 130 | ]); | ||||||||||
| 131 | 2 | }; | |||||||||
| 132 | |||||||||||
| 133 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::FilterGroup', | |||||||||
| 134 | as 'Cfn::Value'; | ||||||||||
| 135 | |||||||||||
| 136 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::FilterGroup', | ||||||||||
| 137 | from 'HashRef', | ||||||||||
| 138 | via { | ||||||||||
| 139 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 140 | 0 | return $f | |||||||||
| 141 | } else { | ||||||||||
| 142 | 0 | return Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::FilterGroup->new( %$_ ); | |||||||||
| 143 | } | ||||||||||
| 144 | 2 | }; | |||||||||
| 145 | |||||||||||
| 146 | 2 | package Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::FilterGroup { | |||||||||
| 147 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 148 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 149 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 150 | |||||||||||
| 151 | } | ||||||||||
| 152 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::EnvironmentVariable', | ||||||||||
| 153 | as 'Cfn::Value', | ||||||||||
| 154 | 2 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 155 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 156 | |||||||||||
| 157 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::EnvironmentVariable', | ||||||||||
| 158 | from 'HashRef', | ||||||||||
| 159 | via { | ||||||||||
| 160 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 161 | 0 | return $f | |||||||||
| 162 | } else { | ||||||||||
| 163 | 0 | die 'Only accepts functions'; | |||||||||
| 164 | } | ||||||||||
| 165 | }, | ||||||||||
| 166 | from 'ArrayRef', | ||||||||||
| 167 | via { | ||||||||||
| 168 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 169 | map { | ||||||||||
| 170 | 2 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CodeBuild::Project::EnvironmentVariable')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 171 | } @$_ | ||||||||||
| 172 | ]); | ||||||||||
| 173 | 2 | }; | |||||||||
| 174 | |||||||||||
| 175 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::EnvironmentVariable', | |||||||||
| 176 | as 'Cfn::Value'; | ||||||||||
| 177 | |||||||||||
| 178 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::EnvironmentVariable', | ||||||||||
| 179 | from 'HashRef', | ||||||||||
| 180 | via { | ||||||||||
| 181 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 182 | 0 | return $f | |||||||||
| 183 | } else { | ||||||||||
| 184 | 2 | return Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::EnvironmentVariable->new( %$_ ); | |||||||||
| 185 | } | ||||||||||
| 186 | 2 | }; | |||||||||
| 187 | |||||||||||
| 188 | 2 | package Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::EnvironmentVariable { | |||||||||
| 189 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 190 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 191 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 192 | |||||||||||
| 193 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 194 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 195 | 2 | has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 196 | } | ||||||||||
| 197 | |||||||||||
| 198 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::CloudWatchLogsConfig', | |||||||||
| 199 | as 'Cfn::Value'; | ||||||||||
| 200 | |||||||||||
| 201 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::CloudWatchLogsConfig', | ||||||||||
| 202 | from 'HashRef', | ||||||||||
| 203 | via { | ||||||||||
| 204 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 205 | 0 | return $f | |||||||||
| 206 | } else { | ||||||||||
| 207 | 0 | return Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::CloudWatchLogsConfig->new( %$_ ); | |||||||||
| 208 | } | ||||||||||
| 209 | 2 | }; | |||||||||
| 210 | |||||||||||
| 211 | 2 | package Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::CloudWatchLogsConfig { | |||||||||
| 212 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 213 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 214 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 215 | |||||||||||
| 216 | 2 | has GroupName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 217 | 2 | has Status => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 218 | 2 | has StreamName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 219 | } | ||||||||||
| 220 | |||||||||||
| 221 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::BuildStatusConfig', | |||||||||
| 222 | as 'Cfn::Value'; | ||||||||||
| 223 | |||||||||||
| 224 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::BuildStatusConfig', | ||||||||||
| 225 | from 'HashRef', | ||||||||||
| 226 | via { | ||||||||||
| 227 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 228 | 0 | return $f | |||||||||
| 229 | } else { | ||||||||||
| 230 | 0 | return Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::BuildStatusConfig->new( %$_ ); | |||||||||
| 231 | } | ||||||||||
| 232 | 2 | }; | |||||||||
| 233 | |||||||||||
| 234 | 2 | package Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::BuildStatusConfig { | |||||||||
| 235 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 236 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 237 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 238 | |||||||||||
| 239 | 2 | has Context => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 240 | 2 | has TargetUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 241 | } | ||||||||||
| 242 | |||||||||||
| 243 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::BatchRestrictions', | |||||||||
| 244 | as 'Cfn::Value'; | ||||||||||
| 245 | |||||||||||
| 246 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::BatchRestrictions', | ||||||||||
| 247 | from 'HashRef', | ||||||||||
| 248 | via { | ||||||||||
| 249 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 250 | 0 | return $f | |||||||||
| 251 | } else { | ||||||||||
| 252 | 0 | return Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::BatchRestrictions->new( %$_ ); | |||||||||
| 253 | } | ||||||||||
| 254 | 2 | }; | |||||||||
| 255 | |||||||||||
| 256 | 2 | package Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::BatchRestrictions { | |||||||||
| 257 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 258 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 259 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 260 | |||||||||||
| 261 | 2 | has ComputeTypesAllowed => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 262 | 2 | has MaximumBuildsAllowed => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 263 | } | ||||||||||
| 264 | |||||||||||
| 265 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::WebhookFilter', | |||||||||
| 266 | as 'Cfn::Value'; | ||||||||||
| 267 | |||||||||||
| 268 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::WebhookFilter', | ||||||||||
| 269 | from 'HashRef', | ||||||||||
| 270 | via { | ||||||||||
| 271 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 272 | 0 | return $f | |||||||||
| 273 | } else { | ||||||||||
| 274 | 0 | return Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::WebhookFilter->new( %$_ ); | |||||||||
| 275 | } | ||||||||||
| 276 | 2 | }; | |||||||||
| 277 | |||||||||||
| 278 | 2 | package Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::WebhookFilter { | |||||||||
| 279 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 280 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 281 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 282 | |||||||||||
| 283 | 2 | has ExcludeMatchedPattern => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 284 | 2 | has Pattern => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 285 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 286 | } | ||||||||||
| 287 | |||||||||||
| 288 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::VpcConfig', | |||||||||
| 289 | as 'Cfn::Value'; | ||||||||||
| 290 | |||||||||||
| 291 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::VpcConfig', | ||||||||||
| 292 | from 'HashRef', | ||||||||||
| 293 | via { | ||||||||||
| 294 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 295 | 0 | return $f | |||||||||
| 296 | } else { | ||||||||||
| 297 | 0 | return Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::VpcConfig->new( %$_ ); | |||||||||
| 298 | } | ||||||||||
| 299 | 2 | }; | |||||||||
| 300 | |||||||||||
| 301 | 2 | package Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::VpcConfig { | |||||||||
| 302 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 303 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 304 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 305 | |||||||||||
| 306 | 2 | has SecurityGroupIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 307 | 2 | has Subnets => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 308 | 2 | has VpcId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 309 | } | ||||||||||
| 310 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::Source', | ||||||||||
| 311 | as 'Cfn::Value', | ||||||||||
| 312 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 313 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 314 | |||||||||||
| 315 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::Source', | ||||||||||
| 316 | from 'HashRef', | ||||||||||
| 317 | via { | ||||||||||
| 318 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 319 | 0 | return $f | |||||||||
| 320 | } else { | ||||||||||
| 321 | 0 | die 'Only accepts functions'; | |||||||||
| 322 | } | ||||||||||
| 323 | }, | ||||||||||
| 324 | from 'ArrayRef', | ||||||||||
| 325 | via { | ||||||||||
| 326 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 327 | map { | ||||||||||
| 328 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CodeBuild::Project::Source')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 329 | } @$_ | ||||||||||
| 330 | ]); | ||||||||||
| 331 | 2 | }; | |||||||||
| 332 | |||||||||||
| 333 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::Source', | |||||||||
| 334 | as 'Cfn::Value'; | ||||||||||
| 335 | |||||||||||
| 336 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::Source', | ||||||||||
| 337 | from 'HashRef', | ||||||||||
| 338 | via { | ||||||||||
| 339 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 340 | 0 | return $f | |||||||||
| 341 | } else { | ||||||||||
| 342 | 2 | return Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::Source->new( %$_ ); | |||||||||
| 343 | } | ||||||||||
| 344 | 2 | }; | |||||||||
| 345 | |||||||||||
| 346 | 2 | package Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::Source { | |||||||||
| 347 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 348 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 349 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 350 | |||||||||||
| 351 | 2 | has Auth => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::SourceAuth', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 352 | 2 | has BuildSpec => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 353 | 2 | has BuildStatusConfig => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::BuildStatusConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 354 | 2 | has GitCloneDepth => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 355 | 2 | has GitSubmodulesConfig => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::GitSubmodulesConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 356 | 2 | has InsecureSsl => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 357 | 2 | has Location => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 358 | 2 | has ReportBuildStatus => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 359 | 2 | has SourceIdentifier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 360 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 361 | } | ||||||||||
| 362 | |||||||||||
| 363 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectTriggers', | |||||||||
| 364 | as 'Cfn::Value'; | ||||||||||
| 365 | |||||||||||
| 366 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectTriggers', | ||||||||||
| 367 | from 'HashRef', | ||||||||||
| 368 | via { | ||||||||||
| 369 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 370 | 0 | return $f | |||||||||
| 371 | } else { | ||||||||||
| 372 | 0 | return Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::ProjectTriggers->new( %$_ ); | |||||||||
| 373 | } | ||||||||||
| 374 | 2 | }; | |||||||||
| 375 | |||||||||||
| 376 | 2 | package Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::ProjectTriggers { | |||||||||
| 377 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 378 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 379 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 380 | |||||||||||
| 381 | 2 | has BuildType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 382 | 2 | has FilterGroups => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::FilterGroup', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 383 | 2 | has Webhook => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 384 | } | ||||||||||
| 385 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::ProjectSourceVersion', | ||||||||||
| 386 | as 'Cfn::Value', | ||||||||||
| 387 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 388 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 389 | |||||||||||
| 390 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::ProjectSourceVersion', | ||||||||||
| 391 | from 'HashRef', | ||||||||||
| 392 | via { | ||||||||||
| 393 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 394 | 0 | return $f | |||||||||
| 395 | } else { | ||||||||||
| 396 | 0 | die 'Only accepts functions'; | |||||||||
| 397 | } | ||||||||||
| 398 | }, | ||||||||||
| 399 | from 'ArrayRef', | ||||||||||
| 400 | via { | ||||||||||
| 401 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 402 | map { | ||||||||||
| 403 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectSourceVersion')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 404 | } @$_ | ||||||||||
| 405 | ]); | ||||||||||
| 406 | 2 | }; | |||||||||
| 407 | |||||||||||
| 408 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectSourceVersion', | |||||||||
| 409 | as 'Cfn::Value'; | ||||||||||
| 410 | |||||||||||
| 411 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectSourceVersion', | ||||||||||
| 412 | from 'HashRef', | ||||||||||
| 413 | via { | ||||||||||
| 414 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 415 | 0 | return $f | |||||||||
| 416 | } else { | ||||||||||
| 417 | 0 | return Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::ProjectSourceVersion->new( %$_ ); | |||||||||
| 418 | } | ||||||||||
| 419 | 2 | }; | |||||||||
| 420 | |||||||||||
| 421 | 2 | package Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::ProjectSourceVersion { | |||||||||
| 422 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 423 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 424 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 425 | |||||||||||
| 426 | 2 | has SourceIdentifier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 427 | 2 | has SourceVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 428 | } | ||||||||||
| 429 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::ProjectFileSystemLocation', | ||||||||||
| 430 | as 'Cfn::Value', | ||||||||||
| 431 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 432 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 433 | |||||||||||
| 434 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::ProjectFileSystemLocation', | ||||||||||
| 435 | from 'HashRef', | ||||||||||
| 436 | via { | ||||||||||
| 437 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 438 | 0 | return $f | |||||||||
| 439 | } else { | ||||||||||
| 440 | 0 | die 'Only accepts functions'; | |||||||||
| 441 | } | ||||||||||
| 442 | }, | ||||||||||
| 443 | from 'ArrayRef', | ||||||||||
| 444 | via { | ||||||||||
| 445 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 446 | map { | ||||||||||
| 447 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectFileSystemLocation')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 448 | } @$_ | ||||||||||
| 449 | ]); | ||||||||||
| 450 | 2 | }; | |||||||||
| 451 | |||||||||||
| 452 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectFileSystemLocation', | |||||||||
| 453 | as 'Cfn::Value'; | ||||||||||
| 454 | |||||||||||
| 455 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectFileSystemLocation', | ||||||||||
| 456 | from 'HashRef', | ||||||||||
| 457 | via { | ||||||||||
| 458 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 459 | 0 | return $f | |||||||||
| 460 | } else { | ||||||||||
| 461 | 0 | return Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::ProjectFileSystemLocation->new( %$_ ); | |||||||||
| 462 | } | ||||||||||
| 463 | 2 | }; | |||||||||
| 464 | |||||||||||
| 465 | 2 | package Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::ProjectFileSystemLocation { | |||||||||
| 466 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 467 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 468 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 469 | |||||||||||
| 470 | 2 | has Identifier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 471 | 2 | has Location => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 472 | 2 | has MountOptions => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 473 | 2 | has MountPoint => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 474 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 475 | } | ||||||||||
| 476 | |||||||||||
| 477 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectCache', | |||||||||
| 478 | as 'Cfn::Value'; | ||||||||||
| 479 | |||||||||||
| 480 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectCache', | ||||||||||
| 481 | from 'HashRef', | ||||||||||
| 482 | via { | ||||||||||
| 483 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 484 | 0 | return $f | |||||||||
| 485 | } else { | ||||||||||
| 486 | 0 | return Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::ProjectCache->new( %$_ ); | |||||||||
| 487 | } | ||||||||||
| 488 | 2 | }; | |||||||||
| 489 | |||||||||||
| 490 | 2 | package Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::ProjectCache { | |||||||||
| 491 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 492 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 493 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 494 | |||||||||||
| 495 | 2 | has Location => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 496 | 2 | has Modes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 497 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 498 | } | ||||||||||
| 499 | |||||||||||
| 500 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectBuildBatchConfig', | |||||||||
| 501 | as 'Cfn::Value'; | ||||||||||
| 502 | |||||||||||
| 503 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectBuildBatchConfig', | ||||||||||
| 504 | from 'HashRef', | ||||||||||
| 505 | via { | ||||||||||
| 506 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 507 | 0 | return $f | |||||||||
| 508 | } else { | ||||||||||
| 509 | 0 | return Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::ProjectBuildBatchConfig->new( %$_ ); | |||||||||
| 510 | } | ||||||||||
| 511 | 2 | }; | |||||||||
| 512 | |||||||||||
| 513 | 2 | package Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::ProjectBuildBatchConfig { | |||||||||
| 514 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 515 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 516 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 517 | |||||||||||
| 518 | 2 | has CombineArtifacts => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 519 | 2 | has Restrictions => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::BatchRestrictions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 520 | 2 | has ServiceRole => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 521 | 2 | has TimeoutInMins => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 522 | } | ||||||||||
| 523 | |||||||||||
| 524 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::LogsConfig', | |||||||||
| 525 | as 'Cfn::Value'; | ||||||||||
| 526 | |||||||||||
| 527 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::LogsConfig', | ||||||||||
| 528 | from 'HashRef', | ||||||||||
| 529 | via { | ||||||||||
| 530 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 531 | 0 | return $f | |||||||||
| 532 | } else { | ||||||||||
| 533 | 0 | return Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::LogsConfig->new( %$_ ); | |||||||||
| 534 | } | ||||||||||
| 535 | 2 | }; | |||||||||
| 536 | |||||||||||
| 537 | 2 | package Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::LogsConfig { | |||||||||
| 538 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 539 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 540 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 541 | |||||||||||
| 542 | 2 | has CloudWatchLogs => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::CloudWatchLogsConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 543 | 2 | has S3Logs => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::S3LogsConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 544 | } | ||||||||||
| 545 | |||||||||||
| 546 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::Environment', | |||||||||
| 547 | as 'Cfn::Value'; | ||||||||||
| 548 | |||||||||||
| 549 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::Environment', | ||||||||||
| 550 | from 'HashRef', | ||||||||||
| 551 | via { | ||||||||||
| 552 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 553 | 0 | return $f | |||||||||
| 554 | } else { | ||||||||||
| 555 | 2 | return Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::Environment->new( %$_ ); | |||||||||
| 556 | } | ||||||||||
| 557 | 2 | }; | |||||||||
| 558 | |||||||||||
| 559 | 2 | package Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::Environment { | |||||||||
| 560 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 561 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 562 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 563 | |||||||||||
| 564 | 2 | has Certificate => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 565 | 2 | has ComputeType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 566 | 2 | has EnvironmentVariables => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::EnvironmentVariable', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 567 | 2 | has Image => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 568 | 2 | has ImagePullCredentialsType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 569 | 2 | has PrivilegedMode => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 570 | 2 | has RegistryCredential => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::RegistryCredential', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 571 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 572 | } | ||||||||||
| 573 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::Artifacts', | ||||||||||
| 574 | as 'Cfn::Value', | ||||||||||
| 575 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 576 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 577 | |||||||||||
| 578 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::Artifacts', | ||||||||||
| 579 | from 'HashRef', | ||||||||||
| 580 | via { | ||||||||||
| 581 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 582 | 0 | return $f | |||||||||
| 583 | } else { | ||||||||||
| 584 | 0 | die 'Only accepts functions'; | |||||||||
| 585 | } | ||||||||||
| 586 | }, | ||||||||||
| 587 | from 'ArrayRef', | ||||||||||
| 588 | via { | ||||||||||
| 589 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 590 | map { | ||||||||||
| 591 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CodeBuild::Project::Artifacts')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 592 | } @$_ | ||||||||||
| 593 | ]); | ||||||||||
| 594 | 2 | }; | |||||||||
| 595 | |||||||||||
| 596 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::Artifacts', | |||||||||
| 597 | as 'Cfn::Value'; | ||||||||||
| 598 | |||||||||||
| 599 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::Artifacts', | ||||||||||
| 600 | from 'HashRef', | ||||||||||
| 601 | via { | ||||||||||
| 602 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 603 | 0 | return $f | |||||||||
| 604 | } else { | ||||||||||
| 605 | 2 | return Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::Artifacts->new( %$_ ); | |||||||||
| 606 | } | ||||||||||
| 607 | 2 | }; | |||||||||
| 608 | |||||||||||
| 609 | 2 | package Cfn::Resource::Properties::Object::AWS::CodeBuild::Project::Artifacts { | |||||||||
| 610 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 611 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 612 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 613 | |||||||||||
| 614 | 2 | has ArtifactIdentifier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 615 | 2 | has EncryptionDisabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 616 | 2 | has Location => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 617 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 618 | 2 | has NamespaceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 619 | 2 | has OverrideArtifactName => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 620 | 2 | has Packaging => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 621 | 2 | has Path => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 622 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 623 | } | ||||||||||
| 624 | |||||||||||
| 625 | 2 | package Cfn::Resource::Properties::AWS::CodeBuild::Project { | |||||||||
| 626 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 627 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 628 | 2 | extends 'Cfn::Resource::Properties'; | |||||||||
| 629 | |||||||||||
| 630 | 2 | has Artifacts => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::Artifacts', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 631 | 2 | has BadgeEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 632 | 2 | has BuildBatchConfig => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectBuildBatchConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 633 | 2 | has Cache => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectCache', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 634 | 2 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 635 | 2 | has EncryptionKey => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 636 | 2 | has Environment => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::Environment', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 637 | 2 | has FileSystemLocations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::ProjectFileSystemLocation', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 638 | 2 | has LogsConfig => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::LogsConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 639 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 640 | 2 | has QueuedTimeoutInMinutes => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 641 | 2 | has SecondaryArtifacts => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::Artifacts', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 642 | 2 | has SecondarySourceVersions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::ProjectSourceVersion', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 643 | 2 | has SecondarySources => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::Source', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 644 | 2 | has ServiceRole => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 645 | 2 | has Source => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::Source', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 646 | 2 | has SourceVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 647 | 2 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 648 | 2 | has TimeoutInMinutes => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 649 | 2 | has Triggers => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectTriggers', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 650 | 2 | has VpcConfig => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::VpcConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 651 | } | ||||||||||
| 652 | |||||||||||
| 653 | 2 | 1; | |||||||||
| 654 | ### main pod documentation begin ### | ||||||||||
| 655 | |||||||||||
| 656 | =encoding UTF-8 | ||||||||||
| 657 | |||||||||||
| 658 | =head1 NAME | ||||||||||
| 659 | |||||||||||
| 660 | Cfn::Resource::AWS::CodeBuild::Project - Cfn resource for AWS::CodeBuild::Project | ||||||||||
| 661 | |||||||||||
| 662 | =head1 DESCRIPTION | ||||||||||
| 663 | |||||||||||
| 664 | This module implements a Perl module that represents the CloudFormation object AWS::CodeBuild::Project. | ||||||||||
| 665 | |||||||||||
| 666 | See L<Cfn> for more information on how to use it. | ||||||||||
| 667 | |||||||||||
| 668 | =head1 AUTHOR | ||||||||||
| 669 | |||||||||||
| 670 | Jose Luis Martinez | ||||||||||
| 671 | CAPSiDE | ||||||||||
| 672 | jlmartinez@capside.com | ||||||||||
| 673 | |||||||||||
| 674 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 675 | |||||||||||
| 676 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 677 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 678 | license can be found in the LICENSE file included with this module. | ||||||||||
| 679 | |||||||||||
| 680 | =cut | ||||||||||