« Cfn/Resource/AWS/CloudFront/Distribution.pm
↑ Summary
Cfn/Resource/AWS/AppMesh/VirtualService.pm »
| 1 | # AWS::ElasticLoadBalancing::LoadBalancer generated from spec 18.4.0 | ||||||||||
| 2 | 5 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 36 | ▶ | via { Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 5 | package Cfn::Resource::AWS::ElasticLoadBalancing::LoadBalancer { | |||||||||
| 9 | 5 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 5 | extends 'Cfn::Resource'; | |||||||||
| 11 | 5 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | sub AttributeList { | ||||||||||
| 14 | 1 | ▶ | [ 'CanonicalHostedZoneName','CanonicalHostedZoneNameID','DNSName','SourceSecurityGroup.GroupName','SourceSecurityGroup.OwnerAlias' ] | ||||||||
|
Subroutine
AttributeList: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 15 | } | ||||||||||
| 16 | sub supported_regions { | ||||||||||
| 17 | 1 | ▶ | [ 'af-south-1','ap-east-1','ap-northeast-1','ap-northeast-2','ap-northeast-3','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-north-1','cn-northwest-1','eu-central-1','eu-north-1','eu-south-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-1','us-east-1','us-east-2','us-gov-east-1','us-gov-west-1','us-west-1','us-west-2' ] | ||||||||
|
Subroutine
supported_regions: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::Policies', | ||||||||||
| 23 | as 'Cfn::Value', | ||||||||||
| 24 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 25 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 26 | |||||||||||
| 27 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::Policies', | ||||||||||
| 28 | from 'HashRef', | ||||||||||
| 29 | via { | ||||||||||
| 30 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 31 | 0 | return $f | |||||||||
| 32 | } else { | ||||||||||
| 33 | 0 | die 'Only accepts functions'; | |||||||||
| 34 | } | ||||||||||
| 35 | }, | ||||||||||
| 36 | from 'ArrayRef', | ||||||||||
| 37 | via { | ||||||||||
| 38 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 39 | map { | ||||||||||
| 40 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::Policies')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 41 | } @$_ | ||||||||||
| 42 | ]); | ||||||||||
| 43 | 5 | }; | |||||||||
| 44 | |||||||||||
| 45 | 5 | subtype 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::Policies', | |||||||||
| 46 | as 'Cfn::Value'; | ||||||||||
| 47 | |||||||||||
| 48 | coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::Policies', | ||||||||||
| 49 | from 'HashRef', | ||||||||||
| 50 | via { | ||||||||||
| 51 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 52 | 0 | return $f | |||||||||
| 53 | } else { | ||||||||||
| 54 | 0 | return Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancing::LoadBalancer::Policies->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 5 | }; | |||||||||
| 57 | |||||||||||
| 58 | 5 | package Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancing::LoadBalancer::Policies { | |||||||||
| 59 | 5 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 60 | 5 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 61 | 5 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 62 | |||||||||||
| 63 | 5 | has Attributes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 64 | 5 | has InstancePorts => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 65 | 5 | has LoadBalancerPorts => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 66 | 5 | has PolicyName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 67 | 5 | has PolicyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 68 | } | ||||||||||
| 69 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::Listeners', | ||||||||||
| 70 | as 'Cfn::Value', | ||||||||||
| 71 | 36 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 72 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 73 | |||||||||||
| 74 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::Listeners', | ||||||||||
| 75 | from 'HashRef', | ||||||||||
| 76 | via { | ||||||||||
| 77 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 78 | 0 | return $f | |||||||||
| 79 | } else { | ||||||||||
| 80 | 0 | die 'Only accepts functions'; | |||||||||
| 81 | } | ||||||||||
| 82 | }, | ||||||||||
| 83 | from 'ArrayRef', | ||||||||||
| 84 | via { | ||||||||||
| 85 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 86 | map { | ||||||||||
| 87 | 36 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::Listeners')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 88 | } @$_ | ||||||||||
| 89 | ]); | ||||||||||
| 90 | 5 | }; | |||||||||
| 91 | |||||||||||
| 92 | 5 | subtype 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::Listeners', | |||||||||
| 93 | as 'Cfn::Value'; | ||||||||||
| 94 | |||||||||||
| 95 | coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::Listeners', | ||||||||||
| 96 | from 'HashRef', | ||||||||||
| 97 | via { | ||||||||||
| 98 | 38 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 99 | 0 | return $f | |||||||||
| 100 | } else { | ||||||||||
| 101 | 38 | return Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancing::LoadBalancer::Listeners->new( %$_ ); | |||||||||
| 102 | } | ||||||||||
| 103 | 5 | }; | |||||||||
| 104 | |||||||||||
| 105 | 5 | package Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancing::LoadBalancer::Listeners { | |||||||||
| 106 | 5 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 107 | 5 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 108 | 5 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 109 | |||||||||||
| 110 | 5 | has InstancePort => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 111 | 5 | has InstanceProtocol => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 112 | 5 | has LoadBalancerPort => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 113 | 5 | has PolicyNames => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 114 | 5 | has Protocol => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 115 | 5 | has SSLCertificateId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 116 | } | ||||||||||
| 117 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::LBCookieStickinessPolicy', | ||||||||||
| 118 | as 'Cfn::Value', | ||||||||||
| 119 | 10 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 120 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 121 | |||||||||||
| 122 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::LBCookieStickinessPolicy', | ||||||||||
| 123 | from 'HashRef', | ||||||||||
| 124 | via { | ||||||||||
| 125 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 126 | 0 | return $f | |||||||||
| 127 | } else { | ||||||||||
| 128 | 0 | die 'Only accepts functions'; | |||||||||
| 129 | } | ||||||||||
| 130 | }, | ||||||||||
| 131 | from 'ArrayRef', | ||||||||||
| 132 | via { | ||||||||||
| 133 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 134 | map { | ||||||||||
| 135 | 10 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::LBCookieStickinessPolicy')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 136 | } @$_ | ||||||||||
| 137 | ]); | ||||||||||
| 138 | 5 | }; | |||||||||
| 139 | |||||||||||
| 140 | 5 | subtype 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::LBCookieStickinessPolicy', | |||||||||
| 141 | as 'Cfn::Value'; | ||||||||||
| 142 | |||||||||||
| 143 | coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::LBCookieStickinessPolicy', | ||||||||||
| 144 | from 'HashRef', | ||||||||||
| 145 | via { | ||||||||||
| 146 | 10 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 147 | 0 | return $f | |||||||||
| 148 | } else { | ||||||||||
| 149 | 10 | return Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancing::LoadBalancer::LBCookieStickinessPolicy->new( %$_ ); | |||||||||
| 150 | } | ||||||||||
| 151 | 5 | }; | |||||||||
| 152 | |||||||||||
| 153 | 5 | package Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancing::LoadBalancer::LBCookieStickinessPolicy { | |||||||||
| 154 | 5 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 155 | 5 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 156 | 5 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 157 | |||||||||||
| 158 | 5 | has CookieExpirationPeriod => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 159 | 5 | has PolicyName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 160 | } | ||||||||||
| 161 | |||||||||||
| 162 | 5 | subtype 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::HealthCheck', | |||||||||
| 163 | as 'Cfn::Value'; | ||||||||||
| 164 | |||||||||||
| 165 | coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::HealthCheck', | ||||||||||
| 166 | from 'HashRef', | ||||||||||
| 167 | via { | ||||||||||
| 168 | 34 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 169 | 0 | return $f | |||||||||
| 170 | } else { | ||||||||||
| 171 | 34 | return Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancing::LoadBalancer::HealthCheck->new( %$_ ); | |||||||||
| 172 | } | ||||||||||
| 173 | 5 | }; | |||||||||
| 174 | |||||||||||
| 175 | 5 | package Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancing::LoadBalancer::HealthCheck { | |||||||||
| 176 | 5 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 177 | 5 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 178 | 5 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 179 | |||||||||||
| 180 | 5 | has HealthyThreshold => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 181 | 5 | has Interval => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 182 | 5 | has Target => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 183 | 5 | has Timeout => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 184 | 5 | has UnhealthyThreshold => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 185 | } | ||||||||||
| 186 | |||||||||||
| 187 | 5 | subtype 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::ConnectionSettings', | |||||||||
| 188 | as 'Cfn::Value'; | ||||||||||
| 189 | |||||||||||
| 190 | coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::ConnectionSettings', | ||||||||||
| 191 | from 'HashRef', | ||||||||||
| 192 | via { | ||||||||||
| 193 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 194 | 0 | return $f | |||||||||
| 195 | } else { | ||||||||||
| 196 | 0 | return Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancing::LoadBalancer::ConnectionSettings->new( %$_ ); | |||||||||
| 197 | } | ||||||||||
| 198 | 5 | }; | |||||||||
| 199 | |||||||||||
| 200 | 5 | package Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancing::LoadBalancer::ConnectionSettings { | |||||||||
| 201 | 5 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 202 | 5 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 203 | 5 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 204 | |||||||||||
| 205 | 5 | has IdleTimeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 206 | } | ||||||||||
| 207 | |||||||||||
| 208 | 5 | subtype 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::ConnectionDrainingPolicy', | |||||||||
| 209 | as 'Cfn::Value'; | ||||||||||
| 210 | |||||||||||
| 211 | coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::ConnectionDrainingPolicy', | ||||||||||
| 212 | from 'HashRef', | ||||||||||
| 213 | via { | ||||||||||
| 214 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 215 | 0 | return $f | |||||||||
| 216 | } else { | ||||||||||
| 217 | 2 | return Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancing::LoadBalancer::ConnectionDrainingPolicy->new( %$_ ); | |||||||||
| 218 | } | ||||||||||
| 219 | 5 | }; | |||||||||
| 220 | |||||||||||
| 221 | 5 | package Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancing::LoadBalancer::ConnectionDrainingPolicy { | |||||||||
| 222 | 5 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 223 | 5 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 224 | 5 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 225 | |||||||||||
| 226 | 5 | has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 227 | 5 | has Timeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 228 | } | ||||||||||
| 229 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::AppCookieStickinessPolicy', | ||||||||||
| 230 | as 'Cfn::Value', | ||||||||||
| 231 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 232 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 233 | |||||||||||
| 234 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::AppCookieStickinessPolicy', | ||||||||||
| 235 | from 'HashRef', | ||||||||||
| 236 | via { | ||||||||||
| 237 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 238 | 0 | return $f | |||||||||
| 239 | } else { | ||||||||||
| 240 | 0 | die 'Only accepts functions'; | |||||||||
| 241 | } | ||||||||||
| 242 | }, | ||||||||||
| 243 | from 'ArrayRef', | ||||||||||
| 244 | via { | ||||||||||
| 245 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 246 | map { | ||||||||||
| 247 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::AppCookieStickinessPolicy')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 248 | } @$_ | ||||||||||
| 249 | ]); | ||||||||||
| 250 | 5 | }; | |||||||||
| 251 | |||||||||||
| 252 | 5 | subtype 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::AppCookieStickinessPolicy', | |||||||||
| 253 | as 'Cfn::Value'; | ||||||||||
| 254 | |||||||||||
| 255 | coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::AppCookieStickinessPolicy', | ||||||||||
| 256 | from 'HashRef', | ||||||||||
| 257 | via { | ||||||||||
| 258 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 259 | 0 | return $f | |||||||||
| 260 | } else { | ||||||||||
| 261 | 0 | return Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancing::LoadBalancer::AppCookieStickinessPolicy->new( %$_ ); | |||||||||
| 262 | } | ||||||||||
| 263 | 5 | }; | |||||||||
| 264 | |||||||||||
| 265 | 5 | package Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancing::LoadBalancer::AppCookieStickinessPolicy { | |||||||||
| 266 | 5 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 267 | 5 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 268 | 5 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 269 | |||||||||||
| 270 | 5 | has CookieName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 271 | 5 | has PolicyName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 272 | } | ||||||||||
| 273 | |||||||||||
| 274 | 5 | subtype 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::AccessLoggingPolicy', | |||||||||
| 275 | as 'Cfn::Value'; | ||||||||||
| 276 | |||||||||||
| 277 | coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::AccessLoggingPolicy', | ||||||||||
| 278 | from 'HashRef', | ||||||||||
| 279 | via { | ||||||||||
| 280 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 281 | 0 | return $f | |||||||||
| 282 | } else { | ||||||||||
| 283 | 2 | return Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancing::LoadBalancer::AccessLoggingPolicy->new( %$_ ); | |||||||||
| 284 | } | ||||||||||
| 285 | 5 | }; | |||||||||
| 286 | |||||||||||
| 287 | 5 | package Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancing::LoadBalancer::AccessLoggingPolicy { | |||||||||
| 288 | 5 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 289 | 5 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 290 | 5 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 291 | |||||||||||
| 292 | 5 | has EmitInterval => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 293 | 5 | has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 294 | 5 | has S3BucketName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 295 | 5 | has S3BucketPrefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 296 | } | ||||||||||
| 297 | |||||||||||
| 298 | 5 | package Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer { | |||||||||
| 299 | 5 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 300 | 5 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 301 | 5 | extends 'Cfn::Resource::Properties'; | |||||||||
| 302 | |||||||||||
| 303 | 5 | has AccessLoggingPolicy => (isa => 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::AccessLoggingPolicy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 304 | 5 | has AppCookieStickinessPolicy => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::AppCookieStickinessPolicy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 305 | 5 | has AvailabilityZones => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Conditional'); | |||||||||
| 306 | 5 | has ConnectionDrainingPolicy => (isa => 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::ConnectionDrainingPolicy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 307 | 5 | has ConnectionSettings => (isa => 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::ConnectionSettings', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 308 | 5 | has CrossZone => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 309 | 5 | has HealthCheck => (isa => 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::HealthCheck', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Conditional'); | |||||||||
| 310 | 5 | has Instances => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 311 | 5 | has LBCookieStickinessPolicy => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::LBCookieStickinessPolicy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 312 | 5 | has Listeners => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::Listeners', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 313 | 5 | has LoadBalancerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 314 | 5 | has Policies => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer::Policies', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 315 | 5 | has Scheme => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 316 | 5 | has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 317 | 5 | has Subnets => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Conditional'); | |||||||||
| 318 | 5 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 319 | } | ||||||||||
| 320 | |||||||||||
| 321 | 5 | 1; | |||||||||
| 322 | ### main pod documentation begin ### | ||||||||||
| 323 | |||||||||||
| 324 | =encoding UTF-8 | ||||||||||
| 325 | |||||||||||
| 326 | =head1 NAME | ||||||||||
| 327 | |||||||||||
| 328 | Cfn::Resource::AWS::ElasticLoadBalancing::LoadBalancer - Cfn resource for AWS::ElasticLoadBalancing::LoadBalancer | ||||||||||
| 329 | |||||||||||
| 330 | =head1 DESCRIPTION | ||||||||||
| 331 | |||||||||||
| 332 | This module implements a Perl module that represents the CloudFormation object AWS::ElasticLoadBalancing::LoadBalancer. | ||||||||||
| 333 | |||||||||||
| 334 | See L<Cfn> for more information on how to use it. | ||||||||||
| 335 | |||||||||||
| 336 | =head1 AUTHOR | ||||||||||
| 337 | |||||||||||
| 338 | Jose Luis Martinez | ||||||||||
| 339 | CAPSiDE | ||||||||||
| 340 | jlmartinez@capside.com | ||||||||||
| 341 | |||||||||||
| 342 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 343 | |||||||||||
| 344 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 345 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 346 | license can be found in the LICENSE file included with this module. | ||||||||||
| 347 | |||||||||||
| 348 | =cut | ||||||||||