« Cfn/Resource/AWS/IoTEvents/DetectorModel.pm
↑ Summary
Cfn/Resource/AWS/KinesisFirehose/DeliveryStream.pm »
| 1 | # AWS::CodeBuild::Project generated from spec 11.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::AWS::CodeBuild::Project::SourceAuthValue->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 2 | }; | |||||||||
| 35 | |||||||||||
| 36 | 2 | package Cfn::Resource::Properties::AWS::CodeBuild::Project::SourceAuthValue { | |||||||||
| 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::AWS::CodeBuild::Project::S3LogsConfigValue->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 2 | }; | |||||||||
| 57 | |||||||||||
| 58 | 2 | package Cfn::Resource::Properties::AWS::CodeBuild::Project::S3LogsConfigValue { | |||||||||
| 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::AWS::CodeBuild::Project::RegistryCredentialValue->new( %$_ ); | |||||||||
| 78 | } | ||||||||||
| 79 | 2 | }; | |||||||||
| 80 | |||||||||||
| 81 | 2 | package Cfn::Resource::Properties::AWS::CodeBuild::Project::RegistryCredentialValue { | |||||||||
| 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::AWS::CodeBuild::Project::GitSubmodulesConfigValue->new( %$_ ); | |||||||||
| 100 | } | ||||||||||
| 101 | 2 | }; | |||||||||
| 102 | |||||||||||
| 103 | 2 | package Cfn::Resource::Properties::AWS::CodeBuild::Project::GitSubmodulesConfigValue { | |||||||||
| 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::AWS::CodeBuild::Project::FilterGroupValue->new( %$_ ); | |||||||||
| 143 | } | ||||||||||
| 144 | 2 | }; | |||||||||
| 145 | |||||||||||
| 146 | 2 | package Cfn::Resource::Properties::AWS::CodeBuild::Project::FilterGroupValue { | |||||||||
| 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::AWS::CodeBuild::Project::EnvironmentVariableValue->new( %$_ ); | |||||||||
| 185 | } | ||||||||||
| 186 | 2 | }; | |||||||||
| 187 | |||||||||||
| 188 | 2 | package Cfn::Resource::Properties::AWS::CodeBuild::Project::EnvironmentVariableValue { | |||||||||
| 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::AWS::CodeBuild::Project::CloudWatchLogsConfigValue->new( %$_ ); | |||||||||
| 208 | } | ||||||||||
| 209 | 2 | }; | |||||||||
| 210 | |||||||||||
| 211 | 2 | package Cfn::Resource::Properties::AWS::CodeBuild::Project::CloudWatchLogsConfigValue { | |||||||||
| 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::WebhookFilter', | |||||||||
| 222 | as 'Cfn::Value'; | ||||||||||
| 223 | |||||||||||
| 224 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::WebhookFilter', | ||||||||||
| 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::AWS::CodeBuild::Project::WebhookFilterValue->new( %$_ ); | |||||||||
| 231 | } | ||||||||||
| 232 | 2 | }; | |||||||||
| 233 | |||||||||||
| 234 | 2 | package Cfn::Resource::Properties::AWS::CodeBuild::Project::WebhookFilterValue { | |||||||||
| 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 ExcludeMatchedPattern => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 240 | 2 | has Pattern => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 241 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 242 | } | ||||||||||
| 243 | |||||||||||
| 244 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::VpcConfig', | |||||||||
| 245 | as 'Cfn::Value'; | ||||||||||
| 246 | |||||||||||
| 247 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::VpcConfig', | ||||||||||
| 248 | from 'HashRef', | ||||||||||
| 249 | via { | ||||||||||
| 250 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 251 | 0 | return $f | |||||||||
| 252 | } else { | ||||||||||
| 253 | 0 | return Cfn::Resource::Properties::AWS::CodeBuild::Project::VpcConfigValue->new( %$_ ); | |||||||||
| 254 | } | ||||||||||
| 255 | 2 | }; | |||||||||
| 256 | |||||||||||
| 257 | 2 | package Cfn::Resource::Properties::AWS::CodeBuild::Project::VpcConfigValue { | |||||||||
| 258 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 259 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 260 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 261 | |||||||||||
| 262 | 2 | has SecurityGroupIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 263 | 2 | has Subnets => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 264 | 2 | has VpcId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 265 | } | ||||||||||
| 266 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::Source', | ||||||||||
| 267 | as 'Cfn::Value', | ||||||||||
| 268 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 269 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 270 | |||||||||||
| 271 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::Source', | ||||||||||
| 272 | from 'HashRef', | ||||||||||
| 273 | via { | ||||||||||
| 274 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 275 | 0 | return $f | |||||||||
| 276 | } else { | ||||||||||
| 277 | 0 | die 'Only accepts functions'; | |||||||||
| 278 | } | ||||||||||
| 279 | }, | ||||||||||
| 280 | from 'ArrayRef', | ||||||||||
| 281 | via { | ||||||||||
| 282 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 283 | map { | ||||||||||
| 284 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CodeBuild::Project::Source')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 285 | } @$_ | ||||||||||
| 286 | ]); | ||||||||||
| 287 | 2 | }; | |||||||||
| 288 | |||||||||||
| 289 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::Source', | |||||||||
| 290 | as 'Cfn::Value'; | ||||||||||
| 291 | |||||||||||
| 292 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::Source', | ||||||||||
| 293 | from 'HashRef', | ||||||||||
| 294 | via { | ||||||||||
| 295 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 296 | 0 | return $f | |||||||||
| 297 | } else { | ||||||||||
| 298 | 2 | return Cfn::Resource::Properties::AWS::CodeBuild::Project::SourceValue->new( %$_ ); | |||||||||
| 299 | } | ||||||||||
| 300 | 2 | }; | |||||||||
| 301 | |||||||||||
| 302 | 2 | package Cfn::Resource::Properties::AWS::CodeBuild::Project::SourceValue { | |||||||||
| 303 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 304 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 305 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 306 | |||||||||||
| 307 | 2 | has Auth => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::SourceAuth', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 308 | 2 | has BuildSpec => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 309 | 2 | has GitCloneDepth => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 310 | 2 | has GitSubmodulesConfig => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::GitSubmodulesConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 311 | 2 | has InsecureSsl => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 312 | 2 | has Location => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 313 | 2 | has ReportBuildStatus => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 314 | 2 | has SourceIdentifier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 315 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 316 | } | ||||||||||
| 317 | |||||||||||
| 318 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectTriggers', | |||||||||
| 319 | as 'Cfn::Value'; | ||||||||||
| 320 | |||||||||||
| 321 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectTriggers', | ||||||||||
| 322 | from 'HashRef', | ||||||||||
| 323 | via { | ||||||||||
| 324 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 325 | 0 | return $f | |||||||||
| 326 | } else { | ||||||||||
| 327 | 0 | return Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectTriggersValue->new( %$_ ); | |||||||||
| 328 | } | ||||||||||
| 329 | 2 | }; | |||||||||
| 330 | |||||||||||
| 331 | 2 | package Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectTriggersValue { | |||||||||
| 332 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 333 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 334 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 335 | |||||||||||
| 336 | 2 | has FilterGroups => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::FilterGroup', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 337 | 2 | has Webhook => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 338 | } | ||||||||||
| 339 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::ProjectSourceVersion', | ||||||||||
| 340 | as 'Cfn::Value', | ||||||||||
| 341 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 342 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 343 | |||||||||||
| 344 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::ProjectSourceVersion', | ||||||||||
| 345 | from 'HashRef', | ||||||||||
| 346 | via { | ||||||||||
| 347 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 348 | 0 | return $f | |||||||||
| 349 | } else { | ||||||||||
| 350 | 0 | die 'Only accepts functions'; | |||||||||
| 351 | } | ||||||||||
| 352 | }, | ||||||||||
| 353 | from 'ArrayRef', | ||||||||||
| 354 | via { | ||||||||||
| 355 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 356 | map { | ||||||||||
| 357 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectSourceVersion')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 358 | } @$_ | ||||||||||
| 359 | ]); | ||||||||||
| 360 | 2 | }; | |||||||||
| 361 | |||||||||||
| 362 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectSourceVersion', | |||||||||
| 363 | as 'Cfn::Value'; | ||||||||||
| 364 | |||||||||||
| 365 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectSourceVersion', | ||||||||||
| 366 | from 'HashRef', | ||||||||||
| 367 | via { | ||||||||||
| 368 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 369 | 0 | return $f | |||||||||
| 370 | } else { | ||||||||||
| 371 | 0 | return Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectSourceVersionValue->new( %$_ ); | |||||||||
| 372 | } | ||||||||||
| 373 | 2 | }; | |||||||||
| 374 | |||||||||||
| 375 | 2 | package Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectSourceVersionValue { | |||||||||
| 376 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 377 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 378 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 379 | |||||||||||
| 380 | 2 | has SourceIdentifier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 381 | 2 | has SourceVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 382 | } | ||||||||||
| 383 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::ProjectFileSystemLocation', | ||||||||||
| 384 | as 'Cfn::Value', | ||||||||||
| 385 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 386 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 387 | |||||||||||
| 388 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::ProjectFileSystemLocation', | ||||||||||
| 389 | from 'HashRef', | ||||||||||
| 390 | via { | ||||||||||
| 391 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 392 | 0 | return $f | |||||||||
| 393 | } else { | ||||||||||
| 394 | 0 | die 'Only accepts functions'; | |||||||||
| 395 | } | ||||||||||
| 396 | }, | ||||||||||
| 397 | from 'ArrayRef', | ||||||||||
| 398 | via { | ||||||||||
| 399 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 400 | map { | ||||||||||
| 401 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectFileSystemLocation')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 402 | } @$_ | ||||||||||
| 403 | ]); | ||||||||||
| 404 | 2 | }; | |||||||||
| 405 | |||||||||||
| 406 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectFileSystemLocation', | |||||||||
| 407 | as 'Cfn::Value'; | ||||||||||
| 408 | |||||||||||
| 409 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectFileSystemLocation', | ||||||||||
| 410 | from 'HashRef', | ||||||||||
| 411 | via { | ||||||||||
| 412 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 413 | 0 | return $f | |||||||||
| 414 | } else { | ||||||||||
| 415 | 0 | return Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectFileSystemLocationValue->new( %$_ ); | |||||||||
| 416 | } | ||||||||||
| 417 | 2 | }; | |||||||||
| 418 | |||||||||||
| 419 | 2 | package Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectFileSystemLocationValue { | |||||||||
| 420 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 421 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 422 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 423 | |||||||||||
| 424 | 2 | has Identifier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 425 | 2 | has Location => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 426 | 2 | has MountOptions => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 427 | 2 | has MountPoint => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 428 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 429 | } | ||||||||||
| 430 | |||||||||||
| 431 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectCache', | |||||||||
| 432 | as 'Cfn::Value'; | ||||||||||
| 433 | |||||||||||
| 434 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectCache', | ||||||||||
| 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 | return Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectCacheValue->new( %$_ ); | |||||||||
| 441 | } | ||||||||||
| 442 | 2 | }; | |||||||||
| 443 | |||||||||||
| 444 | 2 | package Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectCacheValue { | |||||||||
| 445 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 446 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 447 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 448 | |||||||||||
| 449 | 2 | has Location => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 450 | 2 | has Modes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 451 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 452 | } | ||||||||||
| 453 | |||||||||||
| 454 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::LogsConfig', | |||||||||
| 455 | as 'Cfn::Value'; | ||||||||||
| 456 | |||||||||||
| 457 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::LogsConfig', | ||||||||||
| 458 | from 'HashRef', | ||||||||||
| 459 | via { | ||||||||||
| 460 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 461 | 0 | return $f | |||||||||
| 462 | } else { | ||||||||||
| 463 | 0 | return Cfn::Resource::Properties::AWS::CodeBuild::Project::LogsConfigValue->new( %$_ ); | |||||||||
| 464 | } | ||||||||||
| 465 | 2 | }; | |||||||||
| 466 | |||||||||||
| 467 | 2 | package Cfn::Resource::Properties::AWS::CodeBuild::Project::LogsConfigValue { | |||||||||
| 468 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 469 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 470 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 471 | |||||||||||
| 472 | 2 | has CloudWatchLogs => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::CloudWatchLogsConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 473 | 2 | has S3Logs => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::S3LogsConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 474 | } | ||||||||||
| 475 | |||||||||||
| 476 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::Environment', | |||||||||
| 477 | as 'Cfn::Value'; | ||||||||||
| 478 | |||||||||||
| 479 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::Environment', | ||||||||||
| 480 | from 'HashRef', | ||||||||||
| 481 | via { | ||||||||||
| 482 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 483 | 0 | return $f | |||||||||
| 484 | } else { | ||||||||||
| 485 | 2 | return Cfn::Resource::Properties::AWS::CodeBuild::Project::EnvironmentValue->new( %$_ ); | |||||||||
| 486 | } | ||||||||||
| 487 | 2 | }; | |||||||||
| 488 | |||||||||||
| 489 | 2 | package Cfn::Resource::Properties::AWS::CodeBuild::Project::EnvironmentValue { | |||||||||
| 490 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 491 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 492 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 493 | |||||||||||
| 494 | 2 | has Certificate => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 495 | 2 | has ComputeType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 496 | 2 | has EnvironmentVariables => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::EnvironmentVariable', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 497 | 2 | has Image => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 498 | 2 | has ImagePullCredentialsType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 499 | 2 | has PrivilegedMode => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 500 | 2 | has RegistryCredential => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::RegistryCredential', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 501 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 502 | } | ||||||||||
| 503 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::Artifacts', | ||||||||||
| 504 | as 'Cfn::Value', | ||||||||||
| 505 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 506 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 507 | |||||||||||
| 508 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::Artifacts', | ||||||||||
| 509 | from 'HashRef', | ||||||||||
| 510 | via { | ||||||||||
| 511 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 512 | 0 | return $f | |||||||||
| 513 | } else { | ||||||||||
| 514 | 0 | die 'Only accepts functions'; | |||||||||
| 515 | } | ||||||||||
| 516 | }, | ||||||||||
| 517 | from 'ArrayRef', | ||||||||||
| 518 | via { | ||||||||||
| 519 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 520 | map { | ||||||||||
| 521 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CodeBuild::Project::Artifacts')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 522 | } @$_ | ||||||||||
| 523 | ]); | ||||||||||
| 524 | 2 | }; | |||||||||
| 525 | |||||||||||
| 526 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodeBuild::Project::Artifacts', | |||||||||
| 527 | as 'Cfn::Value'; | ||||||||||
| 528 | |||||||||||
| 529 | coerce 'Cfn::Resource::Properties::AWS::CodeBuild::Project::Artifacts', | ||||||||||
| 530 | from 'HashRef', | ||||||||||
| 531 | via { | ||||||||||
| 532 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 533 | 0 | return $f | |||||||||
| 534 | } else { | ||||||||||
| 535 | 2 | return Cfn::Resource::Properties::AWS::CodeBuild::Project::ArtifactsValue->new( %$_ ); | |||||||||
| 536 | } | ||||||||||
| 537 | 2 | }; | |||||||||
| 538 | |||||||||||
| 539 | 2 | package Cfn::Resource::Properties::AWS::CodeBuild::Project::ArtifactsValue { | |||||||||
| 540 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 541 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 542 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 543 | |||||||||||
| 544 | 2 | has ArtifactIdentifier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 545 | 2 | has EncryptionDisabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 546 | 2 | has Location => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 547 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 548 | 2 | has NamespaceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 549 | 2 | has OverrideArtifactName => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 550 | 2 | has Packaging => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 551 | 2 | has Path => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 552 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 553 | } | ||||||||||
| 554 | |||||||||||
| 555 | 2 | package Cfn::Resource::Properties::AWS::CodeBuild::Project { | |||||||||
| 556 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 557 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 558 | 2 | extends 'Cfn::Resource::Properties'; | |||||||||
| 559 | |||||||||||
| 560 | 2 | has Artifacts => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::Artifacts', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 561 | 2 | has BadgeEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 562 | 2 | has Cache => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectCache', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 563 | 2 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 564 | 2 | has EncryptionKey => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 565 | 2 | has Environment => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::Environment', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 566 | 2 | has FileSystemLocations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::ProjectFileSystemLocation', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 567 | 2 | has LogsConfig => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::LogsConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 568 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 569 | 2 | has QueuedTimeoutInMinutes => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 570 | 2 | has SecondaryArtifacts => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::Artifacts', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 571 | 2 | has SecondarySourceVersions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::ProjectSourceVersion', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 572 | 2 | has SecondarySources => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CodeBuild::Project::Source', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 573 | 2 | has ServiceRole => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 574 | 2 | has Source => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::Source', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 575 | 2 | has SourceVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 576 | 2 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 577 | 2 | has TimeoutInMinutes => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 578 | 2 | has Triggers => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::ProjectTriggers', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 579 | 2 | has VpcConfig => (isa => 'Cfn::Resource::Properties::AWS::CodeBuild::Project::VpcConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 580 | } | ||||||||||
| 581 | |||||||||||
| 582 | 2 | 1; | |||||||||