| 1 | # AWS::CloudFront::Distribution generated from spec 11.1.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::Cookies', | |||||||||
| 24 | as 'Cfn::Value'; | ||||||||||
| 25 | |||||||||||
| 26 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Cookies', | ||||||||||
| 27 | from 'HashRef', | ||||||||||
| 28 | via { | ||||||||||
| 29 | 4 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 30 | 0 | return $f | |||||||||
| 31 | } else { | ||||||||||
| 32 | 4 | return Cfn::Resource::Properties::AWS::CloudFront::Distribution::CookiesValue->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 4 | }; | |||||||||
| 35 | |||||||||||
| 36 | 4 | package Cfn::Resource::Properties::AWS::CloudFront::Distribution::CookiesValue { | |||||||||
| 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 Forward => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 42 | 4 | has WhitelistedNames => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 43 | } | ||||||||||
| 44 | |||||||||||
| 45 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::S3OriginConfig', | |||||||||
| 46 | as 'Cfn::Value'; | ||||||||||
| 47 | |||||||||||
| 48 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::S3OriginConfig', | ||||||||||
| 49 | from 'HashRef', | ||||||||||
| 50 | via { | ||||||||||
| 51 | 6 | ▶ | 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 | 6 | return Cfn::Resource::Properties::AWS::CloudFront::Distribution::S3OriginConfigValue->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 4 | }; | |||||||||
| 57 | |||||||||||
| 58 | 4 | package Cfn::Resource::Properties::AWS::CloudFront::Distribution::S3OriginConfigValue { | |||||||||
| 59 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 60 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 61 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 62 | |||||||||||
| 63 | 4 | has OriginAccessIdentity => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 64 | } | ||||||||||
| 65 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::OriginCustomHeader', | ||||||||||
| 66 | as 'Cfn::Value', | ||||||||||
| 67 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
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::CloudFront::Distribution::OriginCustomHeader', | ||||||||||
| 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 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginCustomHeader')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 84 | } @$_ | ||||||||||
| 85 | ]); | ||||||||||
| 86 | 4 | }; | |||||||||
| 87 | |||||||||||
| 88 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginCustomHeader', | |||||||||
| 89 | as 'Cfn::Value'; | ||||||||||
| 90 | |||||||||||
| 91 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginCustomHeader', | ||||||||||
| 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::AWS::CloudFront::Distribution::OriginCustomHeaderValue->new( %$_ ); | |||||||||
| 98 | } | ||||||||||
| 99 | 4 | }; | |||||||||
| 100 | |||||||||||
| 101 | 4 | package Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginCustomHeaderValue { | |||||||||
| 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 HeaderName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 107 | 4 | has HeaderValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 108 | } | ||||||||||
| 109 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::LambdaFunctionAssociation', | ||||||||||
| 110 | as 'Cfn::Value', | ||||||||||
| 111 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 112 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 113 | |||||||||||
| 114 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::LambdaFunctionAssociation', | ||||||||||
| 115 | from 'HashRef', | ||||||||||
| 116 | via { | ||||||||||
| 117 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 118 | 0 | return $f | |||||||||
| 119 | } else { | ||||||||||
| 120 | 0 | die 'Only accepts functions'; | |||||||||
| 121 | } | ||||||||||
| 122 | }, | ||||||||||
| 123 | from 'ArrayRef', | ||||||||||
| 124 | via { | ||||||||||
| 125 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 126 | map { | ||||||||||
| 127 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CloudFront::Distribution::LambdaFunctionAssociation')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 128 | } @$_ | ||||||||||
| 129 | ]); | ||||||||||
| 130 | 4 | }; | |||||||||
| 131 | |||||||||||
| 132 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::LambdaFunctionAssociation', | |||||||||
| 133 | as 'Cfn::Value'; | ||||||||||
| 134 | |||||||||||
| 135 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::LambdaFunctionAssociation', | ||||||||||
| 136 | from 'HashRef', | ||||||||||
| 137 | via { | ||||||||||
| 138 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 139 | 0 | return $f | |||||||||
| 140 | } else { | ||||||||||
| 141 | 0 | return Cfn::Resource::Properties::AWS::CloudFront::Distribution::LambdaFunctionAssociationValue->new( %$_ ); | |||||||||
| 142 | } | ||||||||||
| 143 | 4 | }; | |||||||||
| 144 | |||||||||||
| 145 | 4 | package Cfn::Resource::Properties::AWS::CloudFront::Distribution::LambdaFunctionAssociationValue { | |||||||||
| 146 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 147 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 148 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 149 | |||||||||||
| 150 | 4 | has EventType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 151 | 4 | has LambdaFunctionARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 152 | } | ||||||||||
| 153 | |||||||||||
| 154 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::GeoRestriction', | |||||||||
| 155 | as 'Cfn::Value'; | ||||||||||
| 156 | |||||||||||
| 157 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::GeoRestriction', | ||||||||||
| 158 | from 'HashRef', | ||||||||||
| 159 | via { | ||||||||||
| 160 | 4 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 161 | 0 | return $f | |||||||||
| 162 | } else { | ||||||||||
| 163 | 4 | return Cfn::Resource::Properties::AWS::CloudFront::Distribution::GeoRestrictionValue->new( %$_ ); | |||||||||
| 164 | } | ||||||||||
| 165 | 4 | }; | |||||||||
| 166 | |||||||||||
| 167 | 4 | package Cfn::Resource::Properties::AWS::CloudFront::Distribution::GeoRestrictionValue { | |||||||||
| 168 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 169 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 170 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 171 | |||||||||||
| 172 | 4 | has Locations => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 173 | 4 | has RestrictionType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 174 | } | ||||||||||
| 175 | |||||||||||
| 176 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::ForwardedValues', | |||||||||
| 177 | as 'Cfn::Value'; | ||||||||||
| 178 | |||||||||||
| 179 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::ForwardedValues', | ||||||||||
| 180 | from 'HashRef', | ||||||||||
| 181 | via { | ||||||||||
| 182 | 16 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 183 | 0 | return $f | |||||||||
| 184 | } else { | ||||||||||
| 185 | 16 | return Cfn::Resource::Properties::AWS::CloudFront::Distribution::ForwardedValuesValue->new( %$_ ); | |||||||||
| 186 | } | ||||||||||
| 187 | 4 | }; | |||||||||
| 188 | |||||||||||
| 189 | 4 | package Cfn::Resource::Properties::AWS::CloudFront::Distribution::ForwardedValuesValue { | |||||||||
| 190 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 191 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 192 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 193 | |||||||||||
| 194 | 4 | has Cookies => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Cookies', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 195 | 4 | has Headers => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 196 | 4 | has QueryString => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 197 | 4 | has QueryStringCacheKeys => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 198 | } | ||||||||||
| 199 | |||||||||||
| 200 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::CustomOriginConfig', | |||||||||
| 201 | as 'Cfn::Value'; | ||||||||||
| 202 | |||||||||||
| 203 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::CustomOriginConfig', | ||||||||||
| 204 | from 'HashRef', | ||||||||||
| 205 | via { | ||||||||||
| 206 | 8 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 207 | 0 | return $f | |||||||||
| 208 | } else { | ||||||||||
| 209 | 8 | return Cfn::Resource::Properties::AWS::CloudFront::Distribution::CustomOriginConfigValue->new( %$_ ); | |||||||||
| 210 | } | ||||||||||
| 211 | 4 | }; | |||||||||
| 212 | |||||||||||
| 213 | 4 | package Cfn::Resource::Properties::AWS::CloudFront::Distribution::CustomOriginConfigValue { | |||||||||
| 214 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 215 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 216 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 217 | |||||||||||
| 218 | 4 | has HTTPPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 219 | 4 | has HTTPSPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 220 | 4 | has OriginKeepaliveTimeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 221 | 4 | has OriginProtocolPolicy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 222 | 4 | has OriginReadTimeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 223 | 4 | has OriginSSLProtocols => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 224 | } | ||||||||||
| 225 | |||||||||||
| 226 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::ViewerCertificate', | |||||||||
| 227 | as 'Cfn::Value'; | ||||||||||
| 228 | |||||||||||
| 229 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::ViewerCertificate', | ||||||||||
| 230 | from 'HashRef', | ||||||||||
| 231 | via { | ||||||||||
| 232 | 4 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 233 | 0 | return $f | |||||||||
| 234 | } else { | ||||||||||
| 235 | 4 | return Cfn::Resource::Properties::AWS::CloudFront::Distribution::ViewerCertificateValue->new( %$_ ); | |||||||||
| 236 | } | ||||||||||
| 237 | 4 | }; | |||||||||
| 238 | |||||||||||
| 239 | 4 | package Cfn::Resource::Properties::AWS::CloudFront::Distribution::ViewerCertificateValue { | |||||||||
| 240 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 241 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 242 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 243 | |||||||||||
| 244 | 4 | has AcmCertificateArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 245 | 4 | has CloudFrontDefaultCertificate => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 246 | 4 | has IamCertificateId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 247 | 4 | has MinimumProtocolVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 248 | 4 | has SslSupportMethod => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 249 | } | ||||||||||
| 250 | |||||||||||
| 251 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Restrictions', | |||||||||
| 252 | as 'Cfn::Value'; | ||||||||||
| 253 | |||||||||||
| 254 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Restrictions', | ||||||||||
| 255 | from 'HashRef', | ||||||||||
| 256 | via { | ||||||||||
| 257 | 4 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 258 | 0 | return $f | |||||||||
| 259 | } else { | ||||||||||
| 260 | 4 | return Cfn::Resource::Properties::AWS::CloudFront::Distribution::RestrictionsValue->new( %$_ ); | |||||||||
| 261 | } | ||||||||||
| 262 | 4 | }; | |||||||||
| 263 | |||||||||||
| 264 | 4 | package Cfn::Resource::Properties::AWS::CloudFront::Distribution::RestrictionsValue { | |||||||||
| 265 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 266 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 267 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 268 | |||||||||||
| 269 | 4 | has GeoRestriction => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::GeoRestriction', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 270 | } | ||||||||||
| 271 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::Origin', | ||||||||||
| 272 | as 'Cfn::Value', | ||||||||||
| 273 | 12 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 274 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 275 | |||||||||||
| 276 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::Origin', | ||||||||||
| 277 | from 'HashRef', | ||||||||||
| 278 | via { | ||||||||||
| 279 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 280 | 0 | return $f | |||||||||
| 281 | } else { | ||||||||||
| 282 | 0 | die 'Only accepts functions'; | |||||||||
| 283 | } | ||||||||||
| 284 | }, | ||||||||||
| 285 | from 'ArrayRef', | ||||||||||
| 286 | via { | ||||||||||
| 287 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 288 | map { | ||||||||||
| 289 | 12 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CloudFront::Distribution::Origin')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 290 | } @$_ | ||||||||||
| 291 | ]); | ||||||||||
| 292 | 4 | }; | |||||||||
| 293 | |||||||||||
| 294 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Origin', | |||||||||
| 295 | as 'Cfn::Value'; | ||||||||||
| 296 | |||||||||||
| 297 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Origin', | ||||||||||
| 298 | from 'HashRef', | ||||||||||
| 299 | via { | ||||||||||
| 300 | 14 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 301 | 0 | return $f | |||||||||
| 302 | } else { | ||||||||||
| 303 | 14 | return Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginValue->new( %$_ ); | |||||||||
| 304 | } | ||||||||||
| 305 | 4 | }; | |||||||||
| 306 | |||||||||||
| 307 | 4 | package Cfn::Resource::Properties::AWS::CloudFront::Distribution::OriginValue { | |||||||||
| 308 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 309 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 310 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 311 | |||||||||||
| 312 | 4 | has CustomOriginConfig => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::CustomOriginConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 313 | 4 | has DomainName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 314 | 4 | has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 315 | 4 | has OriginCustomHeaders => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::OriginCustomHeader', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 316 | 4 | has OriginPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 317 | 4 | has S3OriginConfig => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::S3OriginConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 318 | } | ||||||||||
| 319 | |||||||||||
| 320 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Logging', | |||||||||
| 321 | as 'Cfn::Value'; | ||||||||||
| 322 | |||||||||||
| 323 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Logging', | ||||||||||
| 324 | from 'HashRef', | ||||||||||
| 325 | via { | ||||||||||
| 326 | 6 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 327 | 0 | return $f | |||||||||
| 328 | } else { | ||||||||||
| 329 | 6 | return Cfn::Resource::Properties::AWS::CloudFront::Distribution::LoggingValue->new( %$_ ); | |||||||||
| 330 | } | ||||||||||
| 331 | 4 | }; | |||||||||
| 332 | |||||||||||
| 333 | 4 | package Cfn::Resource::Properties::AWS::CloudFront::Distribution::LoggingValue { | |||||||||
| 334 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 335 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 336 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 337 | |||||||||||
| 338 | 4 | has Bucket => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 339 | 4 | has IncludeCookies => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 340 | 4 | has Prefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 341 | } | ||||||||||
| 342 | |||||||||||
| 343 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::DefaultCacheBehavior', | |||||||||
| 344 | as 'Cfn::Value'; | ||||||||||
| 345 | |||||||||||
| 346 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::DefaultCacheBehavior', | ||||||||||
| 347 | from 'HashRef', | ||||||||||
| 348 | via { | ||||||||||
| 349 | 12 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 350 | 0 | return $f | |||||||||
| 351 | } else { | ||||||||||
| 352 | 12 | return Cfn::Resource::Properties::AWS::CloudFront::Distribution::DefaultCacheBehaviorValue->new( %$_ ); | |||||||||
| 353 | } | ||||||||||
| 354 | 4 | }; | |||||||||
| 355 | |||||||||||
| 356 | 4 | package Cfn::Resource::Properties::AWS::CloudFront::Distribution::DefaultCacheBehaviorValue { | |||||||||
| 357 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 358 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 359 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 360 | |||||||||||
| 361 | 4 | has AllowedMethods => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 362 | 4 | has CachedMethods => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 363 | 4 | has Compress => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 364 | 4 | has DefaultTTL => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 365 | 4 | has FieldLevelEncryptionId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 366 | 4 | has ForwardedValues => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::ForwardedValues', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 367 | 4 | has LambdaFunctionAssociations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::LambdaFunctionAssociation', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 368 | 4 | has MaxTTL => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 369 | 4 | has MinTTL => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 370 | 4 | has SmoothStreaming => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 371 | 4 | has TargetOriginId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 372 | 4 | has TrustedSigners => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 373 | 4 | has ViewerProtocolPolicy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 374 | } | ||||||||||
| 375 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::CustomErrorResponse', | ||||||||||
| 376 | as 'Cfn::Value', | ||||||||||
| 377 | 4 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 378 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 379 | |||||||||||
| 380 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::CustomErrorResponse', | ||||||||||
| 381 | from 'HashRef', | ||||||||||
| 382 | via { | ||||||||||
| 383 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 384 | 0 | return $f | |||||||||
| 385 | } else { | ||||||||||
| 386 | 0 | die 'Only accepts functions'; | |||||||||
| 387 | } | ||||||||||
| 388 | }, | ||||||||||
| 389 | from 'ArrayRef', | ||||||||||
| 390 | via { | ||||||||||
| 391 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 392 | map { | ||||||||||
| 393 | 4 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CloudFront::Distribution::CustomErrorResponse')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 394 | } @$_ | ||||||||||
| 395 | ]); | ||||||||||
| 396 | 4 | }; | |||||||||
| 397 | |||||||||||
| 398 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::CustomErrorResponse', | |||||||||
| 399 | as 'Cfn::Value'; | ||||||||||
| 400 | |||||||||||
| 401 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::CustomErrorResponse', | ||||||||||
| 402 | from 'HashRef', | ||||||||||
| 403 | via { | ||||||||||
| 404 | 4 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 405 | 0 | return $f | |||||||||
| 406 | } else { | ||||||||||
| 407 | 4 | return Cfn::Resource::Properties::AWS::CloudFront::Distribution::CustomErrorResponseValue->new( %$_ ); | |||||||||
| 408 | } | ||||||||||
| 409 | 4 | }; | |||||||||
| 410 | |||||||||||
| 411 | 4 | package Cfn::Resource::Properties::AWS::CloudFront::Distribution::CustomErrorResponseValue { | |||||||||
| 412 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 413 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 414 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 415 | |||||||||||
| 416 | 4 | has ErrorCachingMinTTL => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 417 | 4 | has ErrorCode => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 418 | 4 | has ResponseCode => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 419 | 4 | has ResponsePagePath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 420 | } | ||||||||||
| 421 | subtype 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::CacheBehavior', | ||||||||||
| 422 | as 'Cfn::Value', | ||||||||||
| 423 | 2 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 424 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 425 | |||||||||||
| 426 | coerce 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::CacheBehavior', | ||||||||||
| 427 | from 'HashRef', | ||||||||||
| 428 | via { | ||||||||||
| 429 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 430 | 0 | return $f | |||||||||
| 431 | } else { | ||||||||||
| 432 | 0 | die 'Only accepts functions'; | |||||||||
| 433 | } | ||||||||||
| 434 | }, | ||||||||||
| 435 | from 'ArrayRef', | ||||||||||
| 436 | via { | ||||||||||
| 437 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 438 | map { | ||||||||||
| 439 | 2 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CloudFront::Distribution::CacheBehavior')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 440 | } @$_ | ||||||||||
| 441 | ]); | ||||||||||
| 442 | 4 | }; | |||||||||
| 443 | |||||||||||
| 444 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::CacheBehavior', | |||||||||
| 445 | as 'Cfn::Value'; | ||||||||||
| 446 | |||||||||||
| 447 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::CacheBehavior', | ||||||||||
| 448 | from 'HashRef', | ||||||||||
| 449 | via { | ||||||||||
| 450 | 4 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 451 | 0 | return $f | |||||||||
| 452 | } else { | ||||||||||
| 453 | 4 | return Cfn::Resource::Properties::AWS::CloudFront::Distribution::CacheBehaviorValue->new( %$_ ); | |||||||||
| 454 | } | ||||||||||
| 455 | 4 | }; | |||||||||
| 456 | |||||||||||
| 457 | 4 | package Cfn::Resource::Properties::AWS::CloudFront::Distribution::CacheBehaviorValue { | |||||||||
| 458 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 459 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 460 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 461 | |||||||||||
| 462 | 4 | has AllowedMethods => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 463 | 4 | has CachedMethods => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 464 | 4 | has Compress => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 465 | 4 | has DefaultTTL => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 466 | 4 | has FieldLevelEncryptionId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 467 | 4 | has ForwardedValues => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::ForwardedValues', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 468 | 4 | has LambdaFunctionAssociations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::LambdaFunctionAssociation', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 469 | 4 | has MaxTTL => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 470 | 4 | has MinTTL => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 471 | 4 | has PathPattern => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 472 | 4 | has SmoothStreaming => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 473 | 4 | has TargetOriginId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 474 | 4 | has TrustedSigners => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 475 | 4 | has ViewerProtocolPolicy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 476 | } | ||||||||||
| 477 | |||||||||||
| 478 | 4 | subtype 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::DistributionConfig', | |||||||||
| 479 | as 'Cfn::Value'; | ||||||||||
| 480 | |||||||||||
| 481 | coerce 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::DistributionConfig', | ||||||||||
| 482 | from 'HashRef', | ||||||||||
| 483 | via { | ||||||||||
| 484 | 12 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 485 | 0 | return $f | |||||||||
| 486 | } else { | ||||||||||
| 487 | 12 | return Cfn::Resource::Properties::AWS::CloudFront::Distribution::DistributionConfigValue->new( %$_ ); | |||||||||
| 488 | } | ||||||||||
| 489 | 4 | }; | |||||||||
| 490 | |||||||||||
| 491 | 4 | package Cfn::Resource::Properties::AWS::CloudFront::Distribution::DistributionConfigValue { | |||||||||
| 492 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 493 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 494 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 495 | |||||||||||
| 496 | 4 | has Aliases => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 497 | 4 | has CacheBehaviors => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::CacheBehavior', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 498 | 4 | has Comment => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 499 | 4 | has CustomErrorResponses => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::CustomErrorResponse', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 500 | 4 | has DefaultCacheBehavior => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::DefaultCacheBehavior', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 501 | 4 | has DefaultRootObject => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 502 | 4 | has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 503 | 4 | has HttpVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 504 | 4 | has IPV6Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 505 | 4 | has Logging => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Logging', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 506 | 4 | has Origins => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CloudFront::Distribution::Origin', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 507 | 4 | has PriceClass => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 508 | 4 | has Restrictions => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::Restrictions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 509 | 4 | has ViewerCertificate => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::ViewerCertificate', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 510 | 4 | has WebACLId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 511 | } | ||||||||||
| 512 | |||||||||||
| 513 | 4 | package Cfn::Resource::Properties::AWS::CloudFront::Distribution { | |||||||||
| 514 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 515 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 516 | 4 | extends 'Cfn::Resource::Properties'; | |||||||||
| 517 | |||||||||||
| 518 | 4 | has DistributionConfig => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::Distribution::DistributionConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 519 | 4 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 520 | } | ||||||||||
| 521 | |||||||||||
| 522 | 4 | 1; | |||||||||