| 1 | # AWS::CodePipeline::Pipeline generated from spec 18.4.0 | ||||||||||
| 2 | 2 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 2 | ▶ | via { Cfn::Resource::Properties::AWS::CodePipeline::Pipeline->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 2 | package Cfn::Resource::AWS::CodePipeline::Pipeline { | |||||||||
| 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::CodePipeline::Pipeline', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | sub AttributeList { | ||||||||||
| 14 | 1 | ▶ | [ 'Version' ] | ||||||||
|
Subroutine
AttributeList: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 15 | } | ||||||||||
| 16 | sub supported_regions { | ||||||||||
| 17 | 1 | ▶ | [ 'af-south-1','ap-east-1','ap-northeast-1','ap-northeast-2','ap-northeast-3','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-south-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 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::OutputArtifact', | ||||||||||
| 23 | as 'Cfn::Value', | ||||||||||
| 24 | 2 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 25 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 26 | |||||||||||
| 27 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::OutputArtifact', | ||||||||||
| 28 | from 'HashRef', | ||||||||||
| 29 | via { | ||||||||||
| 30 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 31 | 0 | return $f | |||||||||
| 32 | } else { | ||||||||||
| 33 | 0 | die 'Only accepts functions'; | |||||||||
| 34 | } | ||||||||||
| 35 | }, | ||||||||||
| 36 | from 'ArrayRef', | ||||||||||
| 37 | via { | ||||||||||
| 38 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 39 | map { | ||||||||||
| 40 | 2 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::OutputArtifact')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 41 | } @$_ | ||||||||||
| 42 | ]); | ||||||||||
| 43 | 2 | }; | |||||||||
| 44 | |||||||||||
| 45 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::OutputArtifact', | |||||||||
| 46 | as 'Cfn::Value'; | ||||||||||
| 47 | |||||||||||
| 48 | coerce 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::OutputArtifact', | ||||||||||
| 49 | from 'HashRef', | ||||||||||
| 50 | via { | ||||||||||
| 51 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 52 | 0 | return $f | |||||||||
| 53 | } else { | ||||||||||
| 54 | 2 | return Cfn::Resource::Properties::Object::AWS::CodePipeline::Pipeline::OutputArtifact->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 2 | }; | |||||||||
| 57 | |||||||||||
| 58 | 2 | package Cfn::Resource::Properties::Object::AWS::CodePipeline::Pipeline::OutputArtifact { | |||||||||
| 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 Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 64 | } | ||||||||||
| 65 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::InputArtifact', | ||||||||||
| 66 | as 'Cfn::Value', | ||||||||||
| 67 | 4 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 68 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 69 | |||||||||||
| 70 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::InputArtifact', | ||||||||||
| 71 | from 'HashRef', | ||||||||||
| 72 | via { | ||||||||||
| 73 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 74 | 0 | return $f | |||||||||
| 75 | } else { | ||||||||||
| 76 | 0 | die 'Only accepts functions'; | |||||||||
| 77 | } | ||||||||||
| 78 | }, | ||||||||||
| 79 | from 'ArrayRef', | ||||||||||
| 80 | via { | ||||||||||
| 81 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 82 | map { | ||||||||||
| 83 | 4 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::InputArtifact')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 84 | } @$_ | ||||||||||
| 85 | ]); | ||||||||||
| 86 | 2 | }; | |||||||||
| 87 | |||||||||||
| 88 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::InputArtifact', | |||||||||
| 89 | as 'Cfn::Value'; | ||||||||||
| 90 | |||||||||||
| 91 | coerce 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::InputArtifact', | ||||||||||
| 92 | from 'HashRef', | ||||||||||
| 93 | via { | ||||||||||
| 94 | 4 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 95 | 0 | return $f | |||||||||
| 96 | } else { | ||||||||||
| 97 | 4 | return Cfn::Resource::Properties::Object::AWS::CodePipeline::Pipeline::InputArtifact->new( %$_ ); | |||||||||
| 98 | } | ||||||||||
| 99 | 2 | }; | |||||||||
| 100 | |||||||||||
| 101 | 2 | package Cfn::Resource::Properties::Object::AWS::CodePipeline::Pipeline::InputArtifact { | |||||||||
| 102 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 103 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 104 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 105 | |||||||||||
| 106 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 107 | } | ||||||||||
| 108 | |||||||||||
| 109 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::EncryptionKey', | |||||||||
| 110 | as 'Cfn::Value'; | ||||||||||
| 111 | |||||||||||
| 112 | coerce 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::EncryptionKey', | ||||||||||
| 113 | from 'HashRef', | ||||||||||
| 114 | via { | ||||||||||
| 115 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 116 | 0 | return $f | |||||||||
| 117 | } else { | ||||||||||
| 118 | 0 | return Cfn::Resource::Properties::Object::AWS::CodePipeline::Pipeline::EncryptionKey->new( %$_ ); | |||||||||
| 119 | } | ||||||||||
| 120 | 2 | }; | |||||||||
| 121 | |||||||||||
| 122 | 2 | package Cfn::Resource::Properties::Object::AWS::CodePipeline::Pipeline::EncryptionKey { | |||||||||
| 123 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 124 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 125 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 126 | |||||||||||
| 127 | 2 | has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 128 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 129 | } | ||||||||||
| 130 | |||||||||||
| 131 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::ActionTypeId', | |||||||||
| 132 | as 'Cfn::Value'; | ||||||||||
| 133 | |||||||||||
| 134 | coerce 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::ActionTypeId', | ||||||||||
| 135 | from 'HashRef', | ||||||||||
| 136 | via { | ||||||||||
| 137 | 6 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 138 | 0 | return $f | |||||||||
| 139 | } else { | ||||||||||
| 140 | 6 | return Cfn::Resource::Properties::Object::AWS::CodePipeline::Pipeline::ActionTypeId->new( %$_ ); | |||||||||
| 141 | } | ||||||||||
| 142 | 2 | }; | |||||||||
| 143 | |||||||||||
| 144 | 2 | package Cfn::Resource::Properties::Object::AWS::CodePipeline::Pipeline::ActionTypeId { | |||||||||
| 145 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 146 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 147 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 148 | |||||||||||
| 149 | 2 | has Category => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 150 | 2 | has Owner => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 151 | 2 | has Provider => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 152 | 2 | has Version => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 153 | } | ||||||||||
| 154 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::BlockerDeclaration', | ||||||||||
| 155 | as 'Cfn::Value', | ||||||||||
| 156 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 157 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 158 | |||||||||||
| 159 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::BlockerDeclaration', | ||||||||||
| 160 | from 'HashRef', | ||||||||||
| 161 | via { | ||||||||||
| 162 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 163 | 0 | return $f | |||||||||
| 164 | } else { | ||||||||||
| 165 | 0 | die 'Only accepts functions'; | |||||||||
| 166 | } | ||||||||||
| 167 | }, | ||||||||||
| 168 | from 'ArrayRef', | ||||||||||
| 169 | via { | ||||||||||
| 170 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 171 | map { | ||||||||||
| 172 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::BlockerDeclaration')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 173 | } @$_ | ||||||||||
| 174 | ]); | ||||||||||
| 175 | 2 | }; | |||||||||
| 176 | |||||||||||
| 177 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::BlockerDeclaration', | |||||||||
| 178 | as 'Cfn::Value'; | ||||||||||
| 179 | |||||||||||
| 180 | coerce 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::BlockerDeclaration', | ||||||||||
| 181 | from 'HashRef', | ||||||||||
| 182 | via { | ||||||||||
| 183 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 184 | 0 | return $f | |||||||||
| 185 | } else { | ||||||||||
| 186 | 0 | return Cfn::Resource::Properties::Object::AWS::CodePipeline::Pipeline::BlockerDeclaration->new( %$_ ); | |||||||||
| 187 | } | ||||||||||
| 188 | 2 | }; | |||||||||
| 189 | |||||||||||
| 190 | 2 | package Cfn::Resource::Properties::Object::AWS::CodePipeline::Pipeline::BlockerDeclaration { | |||||||||
| 191 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 192 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 193 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 194 | |||||||||||
| 195 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 196 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 197 | } | ||||||||||
| 198 | |||||||||||
| 199 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::ArtifactStore', | |||||||||
| 200 | as 'Cfn::Value'; | ||||||||||
| 201 | |||||||||||
| 202 | coerce 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::ArtifactStore', | ||||||||||
| 203 | from 'HashRef', | ||||||||||
| 204 | via { | ||||||||||
| 205 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 206 | 0 | return $f | |||||||||
| 207 | } else { | ||||||||||
| 208 | 2 | return Cfn::Resource::Properties::Object::AWS::CodePipeline::Pipeline::ArtifactStore->new( %$_ ); | |||||||||
| 209 | } | ||||||||||
| 210 | 2 | }; | |||||||||
| 211 | |||||||||||
| 212 | 2 | package Cfn::Resource::Properties::Object::AWS::CodePipeline::Pipeline::ArtifactStore { | |||||||||
| 213 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 214 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 215 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 216 | |||||||||||
| 217 | 2 | has EncryptionKey => (isa => 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::EncryptionKey', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 218 | 2 | has Location => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 219 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 220 | } | ||||||||||
| 221 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::ActionDeclaration', | ||||||||||
| 222 | as 'Cfn::Value', | ||||||||||
| 223 | 6 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 224 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 225 | |||||||||||
| 226 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::ActionDeclaration', | ||||||||||
| 227 | from 'HashRef', | ||||||||||
| 228 | via { | ||||||||||
| 229 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 230 | 0 | return $f | |||||||||
| 231 | } else { | ||||||||||
| 232 | 0 | die 'Only accepts functions'; | |||||||||
| 233 | } | ||||||||||
| 234 | }, | ||||||||||
| 235 | from 'ArrayRef', | ||||||||||
| 236 | via { | ||||||||||
| 237 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 238 | map { | ||||||||||
| 239 | 6 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::ActionDeclaration')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 240 | } @$_ | ||||||||||
| 241 | ]); | ||||||||||
| 242 | 2 | }; | |||||||||
| 243 | |||||||||||
| 244 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::ActionDeclaration', | |||||||||
| 245 | as 'Cfn::Value'; | ||||||||||
| 246 | |||||||||||
| 247 | coerce 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::ActionDeclaration', | ||||||||||
| 248 | from 'HashRef', | ||||||||||
| 249 | via { | ||||||||||
| 250 | 6 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 251 | 0 | return $f | |||||||||
| 252 | } else { | ||||||||||
| 253 | 6 | return Cfn::Resource::Properties::Object::AWS::CodePipeline::Pipeline::ActionDeclaration->new( %$_ ); | |||||||||
| 254 | } | ||||||||||
| 255 | 2 | }; | |||||||||
| 256 | |||||||||||
| 257 | 2 | package Cfn::Resource::Properties::Object::AWS::CodePipeline::Pipeline::ActionDeclaration { | |||||||||
| 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 ActionTypeId => (isa => 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::ActionTypeId', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 263 | 2 | has Configuration => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 264 | 2 | has InputArtifacts => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::InputArtifact', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 265 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 266 | 2 | has Namespace => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 267 | 2 | has OutputArtifacts => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::OutputArtifact', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 268 | 2 | has Region => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 269 | 2 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 270 | 2 | has RunOrder => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 271 | } | ||||||||||
| 272 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::StageTransition', | ||||||||||
| 273 | as 'Cfn::Value', | ||||||||||
| 274 | 2 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 275 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 276 | |||||||||||
| 277 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::StageTransition', | ||||||||||
| 278 | from 'HashRef', | ||||||||||
| 279 | via { | ||||||||||
| 280 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 281 | 0 | return $f | |||||||||
| 282 | } else { | ||||||||||
| 283 | 0 | die 'Only accepts functions'; | |||||||||
| 284 | } | ||||||||||
| 285 | }, | ||||||||||
| 286 | from 'ArrayRef', | ||||||||||
| 287 | via { | ||||||||||
| 288 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 289 | map { | ||||||||||
| 290 | 2 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::StageTransition')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 291 | } @$_ | ||||||||||
| 292 | ]); | ||||||||||
| 293 | 2 | }; | |||||||||
| 294 | |||||||||||
| 295 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::StageTransition', | |||||||||
| 296 | as 'Cfn::Value'; | ||||||||||
| 297 | |||||||||||
| 298 | coerce 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::StageTransition', | ||||||||||
| 299 | from 'HashRef', | ||||||||||
| 300 | via { | ||||||||||
| 301 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 302 | 0 | return $f | |||||||||
| 303 | } else { | ||||||||||
| 304 | 2 | return Cfn::Resource::Properties::Object::AWS::CodePipeline::Pipeline::StageTransition->new( %$_ ); | |||||||||
| 305 | } | ||||||||||
| 306 | 2 | }; | |||||||||
| 307 | |||||||||||
| 308 | 2 | package Cfn::Resource::Properties::Object::AWS::CodePipeline::Pipeline::StageTransition { | |||||||||
| 309 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 310 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 311 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 312 | |||||||||||
| 313 | 2 | has Reason => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 314 | 2 | has StageName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 315 | } | ||||||||||
| 316 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::StageDeclaration', | ||||||||||
| 317 | as 'Cfn::Value', | ||||||||||
| 318 | 2 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 319 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 320 | |||||||||||
| 321 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::StageDeclaration', | ||||||||||
| 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 | die 'Only accepts functions'; | |||||||||
| 328 | } | ||||||||||
| 329 | }, | ||||||||||
| 330 | from 'ArrayRef', | ||||||||||
| 331 | via { | ||||||||||
| 332 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 333 | map { | ||||||||||
| 334 | 2 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::StageDeclaration')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 335 | } @$_ | ||||||||||
| 336 | ]); | ||||||||||
| 337 | 2 | }; | |||||||||
| 338 | |||||||||||
| 339 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::StageDeclaration', | |||||||||
| 340 | as 'Cfn::Value'; | ||||||||||
| 341 | |||||||||||
| 342 | coerce 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::StageDeclaration', | ||||||||||
| 343 | from 'HashRef', | ||||||||||
| 344 | via { | ||||||||||
| 345 | 6 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 346 | 0 | return $f | |||||||||
| 347 | } else { | ||||||||||
| 348 | 6 | return Cfn::Resource::Properties::Object::AWS::CodePipeline::Pipeline::StageDeclaration->new( %$_ ); | |||||||||
| 349 | } | ||||||||||
| 350 | 2 | }; | |||||||||
| 351 | |||||||||||
| 352 | 2 | package Cfn::Resource::Properties::Object::AWS::CodePipeline::Pipeline::StageDeclaration { | |||||||||
| 353 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 354 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 355 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 356 | |||||||||||
| 357 | 2 | has Actions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::ActionDeclaration', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 358 | 2 | has Blockers => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::BlockerDeclaration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 359 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 360 | } | ||||||||||
| 361 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::ArtifactStoreMap', | ||||||||||
| 362 | as 'Cfn::Value', | ||||||||||
| 363 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 364 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 365 | |||||||||||
| 366 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::ArtifactStoreMap', | ||||||||||
| 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 | die 'Only accepts functions'; | |||||||||
| 373 | } | ||||||||||
| 374 | }, | ||||||||||
| 375 | from 'ArrayRef', | ||||||||||
| 376 | via { | ||||||||||
| 377 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 378 | map { | ||||||||||
| 379 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::ArtifactStoreMap')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 380 | } @$_ | ||||||||||
| 381 | ]); | ||||||||||
| 382 | 2 | }; | |||||||||
| 383 | |||||||||||
| 384 | 2 | subtype 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::ArtifactStoreMap', | |||||||||
| 385 | as 'Cfn::Value'; | ||||||||||
| 386 | |||||||||||
| 387 | coerce 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::ArtifactStoreMap', | ||||||||||
| 388 | from 'HashRef', | ||||||||||
| 389 | via { | ||||||||||
| 390 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 391 | 0 | return $f | |||||||||
| 392 | } else { | ||||||||||
| 393 | 0 | return Cfn::Resource::Properties::Object::AWS::CodePipeline::Pipeline::ArtifactStoreMap->new( %$_ ); | |||||||||
| 394 | } | ||||||||||
| 395 | 2 | }; | |||||||||
| 396 | |||||||||||
| 397 | 2 | package Cfn::Resource::Properties::Object::AWS::CodePipeline::Pipeline::ArtifactStoreMap { | |||||||||
| 398 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 399 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 400 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 401 | |||||||||||
| 402 | 2 | has ArtifactStore => (isa => 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::ArtifactStore', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 403 | 2 | has Region => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 404 | } | ||||||||||
| 405 | |||||||||||
| 406 | 2 | package Cfn::Resource::Properties::AWS::CodePipeline::Pipeline { | |||||||||
| 407 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 408 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 409 | 2 | extends 'Cfn::Resource::Properties'; | |||||||||
| 410 | |||||||||||
| 411 | 2 | has ArtifactStore => (isa => 'Cfn::Resource::Properties::AWS::CodePipeline::Pipeline::ArtifactStore', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 412 | 2 | has ArtifactStores => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::ArtifactStoreMap', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 413 | 2 | has DisableInboundStageTransitions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::StageTransition', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 414 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 415 | 2 | has RestartExecutionOnUpdate => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 416 | 2 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 417 | 2 | has Stages => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::Pipeline::StageDeclaration', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 418 | 2 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 419 | } | ||||||||||
| 420 | |||||||||||
| 421 | 2 | 1; | |||||||||
| 422 | ### main pod documentation begin ### | ||||||||||
| 423 | |||||||||||
| 424 | =encoding UTF-8 | ||||||||||
| 425 | |||||||||||
| 426 | =head1 NAME | ||||||||||
| 427 | |||||||||||
| 428 | Cfn::Resource::AWS::CodePipeline::Pipeline - Cfn resource for AWS::CodePipeline::Pipeline | ||||||||||
| 429 | |||||||||||
| 430 | =head1 DESCRIPTION | ||||||||||
| 431 | |||||||||||
| 432 | This module implements a Perl module that represents the CloudFormation object AWS::CodePipeline::Pipeline. | ||||||||||
| 433 | |||||||||||
| 434 | See L<Cfn> for more information on how to use it. | ||||||||||
| 435 | |||||||||||
| 436 | =head1 AUTHOR | ||||||||||
| 437 | |||||||||||
| 438 | Jose Luis Martinez | ||||||||||
| 439 | CAPSiDE | ||||||||||
| 440 | jlmartinez@capside.com | ||||||||||
| 441 | |||||||||||
| 442 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 443 | |||||||||||
| 444 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 445 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 446 | license can be found in the LICENSE file included with this module. | ||||||||||
| 447 | |||||||||||
| 448 | =cut | ||||||||||