« Cfn/Resource/AWS/EFS/FileSystem.pm
↑ Summary
Cfn/Resource/AWS/ElasticLoadBalancing/LoadBalancer.pm »
| 1 | # AWS::CloudFront::Distribution generated from spec 21.0.0 | ||||||||||
| 2 | 4 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 12 | ▶ | via { Cfn::Resource::Properties::AWS::CloudFront::Distribution->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 4 | package Cfn::Resource::AWS::CloudFront::Distribution { | |||||||||
| 9 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 4 | extends 'Cfn::Resource'; | |||||||||
| 11 | 4 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | sub AttributeList { | ||||||||||
| 14 | 1 | ▶ | [ 'DomainName' ] | ||||||||
|
Subroutine
AttributeList: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 15 | } | ||||||||||
| 16 | sub supported_regions { | ||||||||||
| 17 | 1 | ▶ | [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-1','eu-north-1','eu-west-1','eu-west-2','eu-west-3','sa-east-1','us-east-1','us-east-2','us-west-1','us-west-2' ] | ||||||||
|
Subroutine
supported_regions: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | |||||||||||
| 23 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::StatusCodes', | |||||||||
| 24 | as 'Cfn::Value'; | ||||||||||
| 25 | |||||||||||
| 26 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::StatusCodes', | ||||||||||
| 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::CloudFront::Distribution::StatusCodes->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 4 | }; | |||||||||
| 35 | |||||||||||
| 36 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::StatusCodes { | |||||||||
| 37 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 38 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 39 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 40 | |||||||||||
| 41 | 4 | has Items => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 42 | 4 | has Quantity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 43 | } | ||||||||||
| 44 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroupMember', | ||||||||||
| 45 | as 'Cfn::Value', | ||||||||||
| 46 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 47 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 48 | |||||||||||
| 49 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroupMember', | ||||||||||
| 50 | from 'HashRef', | ||||||||||
| 51 | via { | ||||||||||
| 52 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 53 | 0 | return $f | |||||||||
| 54 | } else { | ||||||||||
| 55 | 0 | die 'Only accepts functions'; | |||||||||
| 56 | } | ||||||||||
| 57 | }, | ||||||||||
| 58 | from 'ArrayRef', | ||||||||||
| 59 | via { | ||||||||||
| 60 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 61 | map { | ||||||||||
| 62 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroupMember')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 63 | } @$_ | ||||||||||
| 64 | ]); | ||||||||||
| 65 | 4 | }; | |||||||||
| 66 | |||||||||||
| 67 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroupMember', | |||||||||
| 68 | as 'Cfn::Value'; | ||||||||||
| 69 | |||||||||||
| 70 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroupMember', | ||||||||||
| 71 | from 'HashRef', | ||||||||||
| 72 | via { | ||||||||||
| 73 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 74 | 0 | return $f | |||||||||
| 75 | } else { | ||||||||||
| 76 | 0 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::OriginGroupMember->new( %$_ ); | |||||||||
| 77 | } | ||||||||||
| 78 | 4 | }; | |||||||||
| 79 | |||||||||||
| 80 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::OriginGroupMember { | |||||||||
| 81 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 82 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 83 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 84 | |||||||||||
| 85 | 4 | has OriginId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 86 | } | ||||||||||
| 87 | |||||||||||
| 88 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroupMembers', | |||||||||
| 89 | as 'Cfn::Value'; | ||||||||||
| 90 | |||||||||||
| 91 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroupMembers', | ||||||||||
| 92 | from 'HashRef', | ||||||||||
| 93 | via { | ||||||||||
| 94 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 95 | 0 | return $f | |||||||||
| 96 | } else { | ||||||||||
| 97 | 0 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::OriginGroupMembers->new( %$_ ); | |||||||||
| 98 | } | ||||||||||
| 99 | 4 | }; | |||||||||
| 100 | |||||||||||
| 101 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::OriginGroupMembers { | |||||||||
| 102 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 103 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 104 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 105 | |||||||||||
| 106 | 4 | has Items => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroupMember', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 107 | 4 | has Quantity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 108 | } | ||||||||||
| 109 | |||||||||||
| 110 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroupFailoverCriteria', | |||||||||
| 111 | as 'Cfn::Value'; | ||||||||||
| 112 | |||||||||||
| 113 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroupFailoverCriteria', | ||||||||||
| 114 | from 'HashRef', | ||||||||||
| 115 | via { | ||||||||||
| 116 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 117 | 0 | return $f | |||||||||
| 118 | } else { | ||||||||||
| 119 | 0 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::OriginGroupFailoverCriteria->new( %$_ ); | |||||||||
| 120 | } | ||||||||||
| 121 | 4 | }; | |||||||||
| 122 | |||||||||||
| 123 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::OriginGroupFailoverCriteria { | |||||||||
| 124 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 125 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 126 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 127 | |||||||||||
| 128 | 4 | has StatusCodes => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::StatusCodes', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 129 | } | ||||||||||
| 130 | |||||||||||
| 131 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Cookies', | |||||||||
| 132 | as 'Cfn::Value'; | ||||||||||
| 133 | |||||||||||
| 134 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Cookies', | ||||||||||
| 135 | from 'HashRef', | ||||||||||
| 136 | via { | ||||||||||
| 137 | 4 | ▶ | 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 | 4 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::Cookies->new( %$_ ); | |||||||||
| 141 | } | ||||||||||
| 142 | 4 | }; | |||||||||
| 143 | |||||||||||
| 144 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::Cookies { | |||||||||
| 145 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 146 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 147 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 148 | |||||||||||
| 149 | 4 | has Forward => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 150 | 4 | has WhitelistedNames => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 151 | } | ||||||||||
| 152 | |||||||||||
| 153 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::S3OriginConfig', | |||||||||
| 154 | as 'Cfn::Value'; | ||||||||||
| 155 | |||||||||||
| 156 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::S3OriginConfig', | ||||||||||
| 157 | from 'HashRef', | ||||||||||
| 158 | via { | ||||||||||
| 159 | 6 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 160 | 0 | return $f | |||||||||
| 161 | } else { | ||||||||||
| 162 | 6 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::S3OriginConfig->new( %$_ ); | |||||||||
| 163 | } | ||||||||||
| 164 | 4 | }; | |||||||||
| 165 | |||||||||||
| 166 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::S3OriginConfig { | |||||||||
| 167 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 168 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 169 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 170 | |||||||||||
| 171 | 4 | has OriginAccessIdentity => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 172 | } | ||||||||||
| 173 | |||||||||||
| 174 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginShield', | |||||||||
| 175 | as 'Cfn::Value'; | ||||||||||
| 176 | |||||||||||
| 177 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginShield', | ||||||||||
| 178 | from 'HashRef', | ||||||||||
| 179 | via { | ||||||||||
| 180 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 181 | 0 | return $f | |||||||||
| 182 | } else { | ||||||||||
| 183 | 0 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::OriginShield->new( %$_ ); | |||||||||
| 184 | } | ||||||||||
| 185 | 4 | }; | |||||||||
| 186 | |||||||||||
| 187 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::OriginShield { | |||||||||
| 188 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 189 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 190 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 191 | |||||||||||
| 192 | 4 | has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 193 | 4 | has OriginShieldRegion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 194 | } | ||||||||||
| 195 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroup', | ||||||||||
| 196 | as 'Cfn::Value', | ||||||||||
| 197 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 198 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 199 | |||||||||||
| 200 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroup', | ||||||||||
| 201 | from 'HashRef', | ||||||||||
| 202 | via { | ||||||||||
| 203 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 204 | 0 | return $f | |||||||||
| 205 | } else { | ||||||||||
| 206 | 0 | die 'Only accepts functions'; | |||||||||
| 207 | } | ||||||||||
| 208 | }, | ||||||||||
| 209 | from 'ArrayRef', | ||||||||||
| 210 | via { | ||||||||||
| 211 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 212 | map { | ||||||||||
| 213 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroup')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 214 | } @$_ | ||||||||||
| 215 | ]); | ||||||||||
| 216 | 4 | }; | |||||||||
| 217 | |||||||||||
| 218 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroup', | |||||||||
| 219 | as 'Cfn::Value'; | ||||||||||
| 220 | |||||||||||
| 221 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroup', | ||||||||||
| 222 | from 'HashRef', | ||||||||||
| 223 | via { | ||||||||||
| 224 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 225 | 0 | return $f | |||||||||
| 226 | } else { | ||||||||||
| 227 | 0 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::OriginGroup->new( %$_ ); | |||||||||
| 228 | } | ||||||||||
| 229 | 4 | }; | |||||||||
| 230 | |||||||||||
| 231 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::OriginGroup { | |||||||||
| 232 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 233 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 234 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 235 | |||||||||||
| 236 | 4 | has FailoverCriteria => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroupFailoverCriteria', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 237 | 4 | has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 238 | 4 | has Members => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroupMembers', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 239 | } | ||||||||||
| 240 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::OriginCustomHeader', | ||||||||||
| 241 | as 'Cfn::Value', | ||||||||||
| 242 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 243 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 244 | |||||||||||
| 245 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::OriginCustomHeader', | ||||||||||
| 246 | from 'HashRef', | ||||||||||
| 247 | via { | ||||||||||
| 248 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 249 | 0 | return $f | |||||||||
| 250 | } else { | ||||||||||
| 251 | 0 | die 'Only accepts functions'; | |||||||||
| 252 | } | ||||||||||
| 253 | }, | ||||||||||
| 254 | from 'ArrayRef', | ||||||||||
| 255 | via { | ||||||||||
| 256 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 257 | map { | ||||||||||
| 258 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginCustomHeader')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 259 | } @$_ | ||||||||||
| 260 | ]); | ||||||||||
| 261 | 4 | }; | |||||||||
| 262 | |||||||||||
| 263 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginCustomHeader', | |||||||||
| 264 | as 'Cfn::Value'; | ||||||||||
| 265 | |||||||||||
| 266 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginCustomHeader', | ||||||||||
| 267 | from 'HashRef', | ||||||||||
| 268 | via { | ||||||||||
| 269 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 270 | 0 | return $f | |||||||||
| 271 | } else { | ||||||||||
| 272 | 0 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::OriginCustomHeader->new( %$_ ); | |||||||||
| 273 | } | ||||||||||
| 274 | 4 | }; | |||||||||
| 275 | |||||||||||
| 276 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::OriginCustomHeader { | |||||||||
| 277 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 278 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 279 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 280 | |||||||||||
| 281 | 4 | has HeaderName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 282 | 4 | has HeaderValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 283 | } | ||||||||||
| 284 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::LambdaFunctionAssociation', | ||||||||||
| 285 | as 'Cfn::Value', | ||||||||||
| 286 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 287 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 288 | |||||||||||
| 289 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::LambdaFunctionAssociation', | ||||||||||
| 290 | from 'HashRef', | ||||||||||
| 291 | via { | ||||||||||
| 292 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 293 | 0 | return $f | |||||||||
| 294 | } else { | ||||||||||
| 295 | 0 | die 'Only accepts functions'; | |||||||||
| 296 | } | ||||||||||
| 297 | }, | ||||||||||
| 298 | from 'ArrayRef', | ||||||||||
| 299 | via { | ||||||||||
| 300 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 301 | map { | ||||||||||
| 302 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CloudFront::Distribution::LambdaFunctionAssociation')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 303 | } @$_ | ||||||||||
| 304 | ]); | ||||||||||
| 305 | 4 | }; | |||||||||
| 306 | |||||||||||
| 307 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::LambdaFunctionAssociation', | |||||||||
| 308 | as 'Cfn::Value'; | ||||||||||
| 309 | |||||||||||
| 310 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::LambdaFunctionAssociation', | ||||||||||
| 311 | from 'HashRef', | ||||||||||
| 312 | via { | ||||||||||
| 313 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 314 | 0 | return $f | |||||||||
| 315 | } else { | ||||||||||
| 316 | 0 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::LambdaFunctionAssociation->new( %$_ ); | |||||||||
| 317 | } | ||||||||||
| 318 | 4 | }; | |||||||||
| 319 | |||||||||||
| 320 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::LambdaFunctionAssociation { | |||||||||
| 321 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 322 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 323 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 324 | |||||||||||
| 325 | 4 | has EventType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 326 | 4 | has IncludeBody => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 327 | 4 | has LambdaFunctionARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 328 | } | ||||||||||
| 329 | |||||||||||
| 330 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::GeoRestriction', | |||||||||
| 331 | as 'Cfn::Value'; | ||||||||||
| 332 | |||||||||||
| 333 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::GeoRestriction', | ||||||||||
| 334 | from 'HashRef', | ||||||||||
| 335 | via { | ||||||||||
| 336 | 4 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 337 | 0 | return $f | |||||||||
| 338 | } else { | ||||||||||
| 339 | 4 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::GeoRestriction->new( %$_ ); | |||||||||
| 340 | } | ||||||||||
| 341 | 4 | }; | |||||||||
| 342 | |||||||||||
| 343 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::GeoRestriction { | |||||||||
| 344 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 345 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 346 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 347 | |||||||||||
| 348 | 4 | has Locations => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 349 | 4 | has RestrictionType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 350 | } | ||||||||||
| 351 | |||||||||||
| 352 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::ForwardedValues', | |||||||||
| 353 | as 'Cfn::Value'; | ||||||||||
| 354 | |||||||||||
| 355 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::ForwardedValues', | ||||||||||
| 356 | from 'HashRef', | ||||||||||
| 357 | via { | ||||||||||
| 358 | 16 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 359 | 0 | return $f | |||||||||
| 360 | } else { | ||||||||||
| 361 | 16 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::ForwardedValues->new( %$_ ); | |||||||||
| 362 | } | ||||||||||
| 363 | 4 | }; | |||||||||
| 364 | |||||||||||
| 365 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::ForwardedValues { | |||||||||
| 366 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 367 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 368 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 369 | |||||||||||
| 370 | 4 | has Cookies => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Cookies', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 371 | 4 | has Headers => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 372 | 4 | has QueryString => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 373 | 4 | has QueryStringCacheKeys => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 374 | } | ||||||||||
| 375 | |||||||||||
| 376 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::CustomOriginConfig', | |||||||||
| 377 | as 'Cfn::Value'; | ||||||||||
| 378 | |||||||||||
| 379 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::CustomOriginConfig', | ||||||||||
| 380 | from 'HashRef', | ||||||||||
| 381 | via { | ||||||||||
| 382 | 8 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 383 | 0 | return $f | |||||||||
| 384 | } else { | ||||||||||
| 385 | 8 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::CustomOriginConfig->new( %$_ ); | |||||||||
| 386 | } | ||||||||||
| 387 | 4 | }; | |||||||||
| 388 | |||||||||||
| 389 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::CustomOriginConfig { | |||||||||
| 390 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 391 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 392 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 393 | |||||||||||
| 394 | 4 | has HTTPPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 395 | 4 | has HTTPSPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 396 | 4 | has OriginKeepaliveTimeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 397 | 4 | has OriginProtocolPolicy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 398 | 4 | has OriginReadTimeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 399 | 4 | has OriginSSLProtocols => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 400 | } | ||||||||||
| 401 | |||||||||||
| 402 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::ViewerCertificate', | |||||||||
| 403 | as 'Cfn::Value'; | ||||||||||
| 404 | |||||||||||
| 405 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::ViewerCertificate', | ||||||||||
| 406 | from 'HashRef', | ||||||||||
| 407 | via { | ||||||||||
| 408 | 4 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 409 | 0 | return $f | |||||||||
| 410 | } else { | ||||||||||
| 411 | 4 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::ViewerCertificate->new( %$_ ); | |||||||||
| 412 | } | ||||||||||
| 413 | 4 | }; | |||||||||
| 414 | |||||||||||
| 415 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::ViewerCertificate { | |||||||||
| 416 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 417 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 418 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 419 | |||||||||||
| 420 | 4 | has AcmCertificateArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 421 | 4 | has CloudFrontDefaultCertificate => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 422 | 4 | has IamCertificateId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 423 | 4 | has MinimumProtocolVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 424 | 4 | has SslSupportMethod => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 425 | } | ||||||||||
| 426 | |||||||||||
| 427 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Restrictions', | |||||||||
| 428 | as 'Cfn::Value'; | ||||||||||
| 429 | |||||||||||
| 430 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Restrictions', | ||||||||||
| 431 | from 'HashRef', | ||||||||||
| 432 | via { | ||||||||||
| 433 | 4 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 434 | 0 | return $f | |||||||||
| 435 | } else { | ||||||||||
| 436 | 4 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::Restrictions->new( %$_ ); | |||||||||
| 437 | } | ||||||||||
| 438 | 4 | }; | |||||||||
| 439 | |||||||||||
| 440 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::Restrictions { | |||||||||
| 441 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 442 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 443 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 444 | |||||||||||
| 445 | 4 | has GeoRestriction => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::GeoRestriction', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 446 | } | ||||||||||
| 447 | |||||||||||
| 448 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroups', | |||||||||
| 449 | as 'Cfn::Value'; | ||||||||||
| 450 | |||||||||||
| 451 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroups', | ||||||||||
| 452 | from 'HashRef', | ||||||||||
| 453 | via { | ||||||||||
| 454 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 455 | 0 | return $f | |||||||||
| 456 | } else { | ||||||||||
| 457 | 0 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::OriginGroups->new( %$_ ); | |||||||||
| 458 | } | ||||||||||
| 459 | 4 | }; | |||||||||
| 460 | |||||||||||
| 461 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::OriginGroups { | |||||||||
| 462 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 463 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 464 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 465 | |||||||||||
| 466 | 4 | has Items => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroup', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 467 | 4 | has Quantity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 468 | } | ||||||||||
| 469 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::Origin', | ||||||||||
| 470 | as 'Cfn::Value', | ||||||||||
| 471 | 12 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 472 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 473 | |||||||||||
| 474 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::Origin', | ||||||||||
| 475 | from 'HashRef', | ||||||||||
| 476 | via { | ||||||||||
| 477 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 478 | 0 | return $f | |||||||||
| 479 | } else { | ||||||||||
| 480 | 0 | die 'Only accepts functions'; | |||||||||
| 481 | } | ||||||||||
| 482 | }, | ||||||||||
| 483 | from 'ArrayRef', | ||||||||||
| 484 | via { | ||||||||||
| 485 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 486 | map { | ||||||||||
| 487 | 12 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CloudFront::Distribution::Origin')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 488 | } @$_ | ||||||||||
| 489 | ]); | ||||||||||
| 490 | 4 | }; | |||||||||
| 491 | |||||||||||
| 492 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Origin', | |||||||||
| 493 | as 'Cfn::Value'; | ||||||||||
| 494 | |||||||||||
| 495 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Origin', | ||||||||||
| 496 | from 'HashRef', | ||||||||||
| 497 | via { | ||||||||||
| 498 | 14 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 499 | 0 | return $f | |||||||||
| 500 | } else { | ||||||||||
| 501 | 14 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::Origin->new( %$_ ); | |||||||||
| 502 | } | ||||||||||
| 503 | 4 | }; | |||||||||
| 504 | |||||||||||
| 505 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::Origin { | |||||||||
| 506 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 507 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 508 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 509 | |||||||||||
| 510 | 4 | has ConnectionAttempts => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 511 | 4 | has ConnectionTimeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 512 | 4 | has CustomOriginConfig => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::CustomOriginConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 513 | 4 | has DomainName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 514 | 4 | has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 515 | 4 | has OriginCustomHeaders => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::OriginCustomHeader', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 516 | 4 | has OriginPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 517 | 4 | has OriginShield => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginShield', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 518 | 4 | has S3OriginConfig => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::S3OriginConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 519 | } | ||||||||||
| 520 | |||||||||||
| 521 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Logging', | |||||||||
| 522 | as 'Cfn::Value'; | ||||||||||
| 523 | |||||||||||
| 524 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Logging', | ||||||||||
| 525 | from 'HashRef', | ||||||||||
| 526 | via { | ||||||||||
| 527 | 6 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 528 | 0 | return $f | |||||||||
| 529 | } else { | ||||||||||
| 530 | 6 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::Logging->new( %$_ ); | |||||||||
| 531 | } | ||||||||||
| 532 | 4 | }; | |||||||||
| 533 | |||||||||||
| 534 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::Logging { | |||||||||
| 535 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 536 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 537 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 538 | |||||||||||
| 539 | 4 | has Bucket => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 540 | 4 | has IncludeCookies => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 541 | 4 | has Prefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 542 | } | ||||||||||
| 543 | |||||||||||
| 544 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::DefaultCacheBehavior', | |||||||||
| 545 | as 'Cfn::Value'; | ||||||||||
| 546 | |||||||||||
| 547 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::DefaultCacheBehavior', | ||||||||||
| 548 | from 'HashRef', | ||||||||||
| 549 | via { | ||||||||||
| 550 | 12 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 551 | 0 | return $f | |||||||||
| 552 | } else { | ||||||||||
| 553 | 12 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::DefaultCacheBehavior->new( %$_ ); | |||||||||
| 554 | } | ||||||||||
| 555 | 4 | }; | |||||||||
| 556 | |||||||||||
| 557 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::DefaultCacheBehavior { | |||||||||
| 558 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 559 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 560 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 561 | |||||||||||
| 562 | 4 | has AllowedMethods => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 563 | 4 | has CachedMethods => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 564 | 4 | has CachePolicyId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 565 | 4 | has Compress => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 566 | 4 | has DefaultTTL => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 567 | 4 | has FieldLevelEncryptionId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 568 | 4 | has ForwardedValues => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::ForwardedValues', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 569 | 4 | has LambdaFunctionAssociations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::LambdaFunctionAssociation', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 570 | 4 | has MaxTTL => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 571 | 4 | has MinTTL => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 572 | 4 | has OriginRequestPolicyId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 573 | 4 | has RealtimeLogConfigArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 574 | 4 | has SmoothStreaming => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 575 | 4 | has TargetOriginId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 576 | 4 | has TrustedKeyGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 577 | 4 | has TrustedSigners => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 578 | 4 | has ViewerProtocolPolicy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 579 | } | ||||||||||
| 580 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::CustomErrorResponse', | ||||||||||
| 581 | as 'Cfn::Value', | ||||||||||
| 582 | 4 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 583 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 584 | |||||||||||
| 585 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::CustomErrorResponse', | ||||||||||
| 586 | from 'HashRef', | ||||||||||
| 587 | via { | ||||||||||
| 588 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 589 | 0 | return $f | |||||||||
| 590 | } else { | ||||||||||
| 591 | 0 | die 'Only accepts functions'; | |||||||||
| 592 | } | ||||||||||
| 593 | }, | ||||||||||
| 594 | from 'ArrayRef', | ||||||||||
| 595 | via { | ||||||||||
| 596 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 597 | map { | ||||||||||
| 598 | 4 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CloudFront::Distribution::CustomErrorResponse')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 599 | } @$_ | ||||||||||
| 600 | ]); | ||||||||||
| 601 | 4 | }; | |||||||||
| 602 | |||||||||||
| 603 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::CustomErrorResponse', | |||||||||
| 604 | as 'Cfn::Value'; | ||||||||||
| 605 | |||||||||||
| 606 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::CustomErrorResponse', | ||||||||||
| 607 | from 'HashRef', | ||||||||||
| 608 | via { | ||||||||||
| 609 | 4 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 610 | 0 | return $f | |||||||||
| 611 | } else { | ||||||||||
| 612 | 4 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::CustomErrorResponse->new( %$_ ); | |||||||||
| 613 | } | ||||||||||
| 614 | 4 | }; | |||||||||
| 615 | |||||||||||
| 616 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::CustomErrorResponse { | |||||||||
| 617 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 618 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 619 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 620 | |||||||||||
| 621 | 4 | has ErrorCachingMinTTL => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 622 | 4 | has ErrorCode => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 623 | 4 | has ResponseCode => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 624 | 4 | has ResponsePagePath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 625 | } | ||||||||||
| 626 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::CacheBehavior', | ||||||||||
| 627 | as 'Cfn::Value', | ||||||||||
| 628 | 2 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 629 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 630 | |||||||||||
| 631 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::CacheBehavior', | ||||||||||
| 632 | from 'HashRef', | ||||||||||
| 633 | via { | ||||||||||
| 634 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 635 | 0 | return $f | |||||||||
| 636 | } else { | ||||||||||
| 637 | 0 | die 'Only accepts functions'; | |||||||||
| 638 | } | ||||||||||
| 639 | }, | ||||||||||
| 640 | from 'ArrayRef', | ||||||||||
| 641 | via { | ||||||||||
| 642 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 643 | map { | ||||||||||
| 644 | 2 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CloudFront::Distribution::CacheBehavior')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 645 | } @$_ | ||||||||||
| 646 | ]); | ||||||||||
| 647 | 4 | }; | |||||||||
| 648 | |||||||||||
| 649 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::CacheBehavior', | |||||||||
| 650 | as 'Cfn::Value'; | ||||||||||
| 651 | |||||||||||
| 652 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::CacheBehavior', | ||||||||||
| 653 | from 'HashRef', | ||||||||||
| 654 | via { | ||||||||||
| 655 | 4 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 656 | 0 | return $f | |||||||||
| 657 | } else { | ||||||||||
| 658 | 4 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::CacheBehavior->new( %$_ ); | |||||||||
| 659 | } | ||||||||||
| 660 | 4 | }; | |||||||||
| 661 | |||||||||||
| 662 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::CacheBehavior { | |||||||||
| 663 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 664 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 665 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 666 | |||||||||||
| 667 | 4 | has AllowedMethods => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 668 | 4 | has CachedMethods => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 669 | 4 | has CachePolicyId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 670 | 4 | has Compress => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 671 | 4 | has DefaultTTL => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 672 | 4 | has FieldLevelEncryptionId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 673 | 4 | has ForwardedValues => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::ForwardedValues', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 674 | 4 | has LambdaFunctionAssociations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::LambdaFunctionAssociation', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 675 | 4 | has MaxTTL => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 676 | 4 | has MinTTL => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 677 | 4 | has OriginRequestPolicyId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 678 | 4 | has PathPattern => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 679 | 4 | has RealtimeLogConfigArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 680 | 4 | has SmoothStreaming => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 681 | 4 | has TargetOriginId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 682 | 4 | has TrustedKeyGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 683 | 4 | has TrustedSigners => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 684 | 4 | has ViewerProtocolPolicy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 685 | } | ||||||||||
| 686 | |||||||||||
| 687 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::DistributionConfig', | |||||||||
| 688 | as 'Cfn::Value'; | ||||||||||
| 689 | |||||||||||
| 690 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::DistributionConfig', | ||||||||||
| 691 | from 'HashRef', | ||||||||||
| 692 | via { | ||||||||||
| 693 | 12 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 694 | 0 | return $f | |||||||||
| 695 | } else { | ||||||||||
| 696 | 12 | return Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::DistributionConfig->new( %$_ ); | |||||||||
| 697 | } | ||||||||||
| 698 | 4 | }; | |||||||||
| 699 | |||||||||||
| 700 | 4 | package Cfn::Resource::Properties::Object::AWS::CloudFront::Distribution::DistributionConfig { | |||||||||
| 701 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 702 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 703 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 704 | |||||||||||
| 705 | 4 | has Aliases => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 706 | 4 | has CacheBehaviors => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::CacheBehavior', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 707 | 4 | has Comment => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 708 | 4 | has CustomErrorResponses => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::CustomErrorResponse', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 709 | 4 | has DefaultCacheBehavior => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::DefaultCacheBehavior', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 710 | 4 | has DefaultRootObject => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 711 | 4 | has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 712 | 4 | has HttpVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 713 | 4 | has IPV6Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 714 | 4 | has Logging => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Logging', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 715 | 4 | has OriginGroups => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginGroups', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 716 | 4 | has Origins => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::Origin', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 717 | 4 | has PriceClass => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 718 | 4 | has Restrictions => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Restrictions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 719 | 4 | has ViewerCertificate => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::ViewerCertificate', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 720 | 4 | has WebACLId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 721 | } | ||||||||||
| 722 | |||||||||||
| 723 | 4 | package Cfn::Resource::Properties::AWS::CloudFront::Distribution { | |||||||||
| 724 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 725 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 726 | 4 | extends 'Cfn::Resource::Properties'; | |||||||||
| 727 | |||||||||||
| 728 | 4 | has DistributionConfig => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::DistributionConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 729 | 4 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 730 | } | ||||||||||
| 731 | |||||||||||
| 732 | 4 | 1; | |||||||||
| 733 | ### main pod documentation begin ### | ||||||||||
| 734 | |||||||||||
| 735 | =encoding UTF-8 | ||||||||||
| 736 | |||||||||||
| 737 | =head1 NAME | ||||||||||
| 738 | |||||||||||
| 739 | Cfn::Resource::AWS::CloudFront::Distribution - Cfn resource for AWS::CloudFront::Distribution | ||||||||||
| 740 | |||||||||||
| 741 | =head1 DESCRIPTION | ||||||||||
| 742 | |||||||||||
| 743 | This module implements a Perl module that represents the CloudFormation object AWS::CloudFront::Distribution. | ||||||||||
| 744 | |||||||||||
| 745 | See L<Cfn> for more information on how to use it. | ||||||||||
| 746 | |||||||||||
| 747 | =head1 AUTHOR | ||||||||||
| 748 | |||||||||||
| 749 | Jose Luis Martinez | ||||||||||
| 750 | CAPSiDE | ||||||||||
| 751 | jlmartinez@capside.com | ||||||||||
| 752 | |||||||||||
| 753 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 754 | |||||||||||
| 755 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 756 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 757 | license can be found in the LICENSE file included with this module. | ||||||||||
| 758 | |||||||||||
| 759 | =cut | ||||||||||