Cfn/Resource/AWS/ElasticLoadBalancingV2/LoadBalancer.pm

filter: Statementstmt 85.1% 69 / 81 Branchbran 33.3% 4 / 12 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 15 / 21 Podpod 0.0% 0 / 2 totaltotal 75.8% 88 / 116 CC 7 SCAR 7.8
CC
7
Cov
78%
__ANON__
6.0
__ANON__
6.0
__ANON__
2.3
CRAP 2.2
« Cfn/Resource/AWS/RDS/OptionGroup.pm ↑ Summary Cfn/Resource/AWS/EC2/SecurityGroup.pm »
1 # AWS::ElasticLoadBalancingV2::LoadBalancer generated from spec 20.1.0
2 3 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::LoadBalancer',
5 from 'HashRef',
6 10 ▶ via { Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::LoadBalancer->new( %$_ ) };
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8 3 package Cfn::Resource::AWS::ElasticLoadBalancingV2::LoadBalancer {
9 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 extends 'Cfn::Resource';
11 3 has Properties => (isa => 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::LoadBalancer', is => 'rw', coerce => 1);
12
13 0 ▶ sub AttributeList {
Subroutine AttributeList: not called CC=1 SCAR=6.9
Pod undocumented
14 0 [ 'CanonicalHostedZoneID','DNSName','LoadBalancerFullName','LoadBalancerName','SecurityGroups' ]
15 }
16 0 ▶ sub supported_regions {
Subroutine supported_regions: not called CC=1 SCAR=6.9
Pod undocumented
17 0 [ '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' ]
18 }
19 }
20  
21  
22 subtype 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancingV2::LoadBalancer::SubnetMapping',
23 as 'Cfn::Value',
24 2 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 2 0 2
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::ElasticLoadBalancingV2::LoadBalancer::SubnetMapping',
28 from 'HashRef',
29 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
30 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
31 0 return $f
32 } else {
33 0 die 'Only accepts functions';
34 }
35 },
36 from 'ArrayRef',
37 2 ▶ via {
Subroutine __ANON__: called CC=1 SCAR=0.0
38 Cfn::Value::Array->new(Value => [
39 map {
40 2 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::LoadBalancer::SubnetMapping')->coerce($_)
41 } @$_
42 ]);
43 3 };
44  
45 3 subtype 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::LoadBalancer::SubnetMapping',
46 as 'Cfn::Value';
47  
48 coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::LoadBalancer::SubnetMapping',
49 from 'HashRef',
50 4 ▶ via {
Subroutine __ANON__: called CC=2 SCAR=8.1
51 4 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 4 4
52 0 return $f
53 } else {
54 4 return Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::LoadBalancer::SubnetMapping->new( %$_ );
55 }
56 3 };
57  
58 3 package Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::LoadBalancer::SubnetMapping {
59 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
60 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 3 extends 'Cfn::Value::TypedValue';
62
63 3 has AllocationId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64 3 has IPv6Address => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65 3 has PrivateIPv4Address => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66 3 has SubnetId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67 }
68 subtype 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancingV2::LoadBalancer::LoadBalancerAttribute',
69 as 'Cfn::Value',
70 4 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 4 0 4
71 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
72  
73 coerce 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancingV2::LoadBalancer::LoadBalancerAttribute',
74 from 'HashRef',
75 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
76 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
77 0 return $f
78 } else {
79 0 die 'Only accepts functions';
80 }
81 },
82 from 'ArrayRef',
83 4 ▶ via {
Subroutine __ANON__: called CC=1 SCAR=0.0
84 Cfn::Value::Array->new(Value => [
85 map {
86 4 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::LoadBalancer::LoadBalancerAttribute')->coerce($_)
87 } @$_
88 ]);
89 3 };
90  
91 3 subtype 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::LoadBalancer::LoadBalancerAttribute',
92 as 'Cfn::Value';
93  
94 coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::LoadBalancer::LoadBalancerAttribute',
95 from 'HashRef',
96 8 ▶ via {
Subroutine __ANON__: called CC=2 SCAR=8.1
97 8 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 8 8
98 0 return $f
99 } else {
100 8 return Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::LoadBalancer::LoadBalancerAttribute->new( %$_ );
101 }
102 3 };
103  
104 3 package Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::LoadBalancer::LoadBalancerAttribute {
105 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
106 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
107 3 extends 'Cfn::Value::TypedValue';
108
109 3 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110 3 has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111 }
112  
113 3 package Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::LoadBalancer {
114 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
115 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
116 3 extends 'Cfn::Resource::Properties';
117
118 3 has IpAddressType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
119 3 has LoadBalancerAttributes => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancingV2::LoadBalancer::LoadBalancerAttribute', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
120 3 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
121 3 has Scheme => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
122 3 has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
123 3 has SubnetMappings => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancingV2::LoadBalancer::SubnetMapping', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
124 3 has Subnets => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
125 3 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
126 3 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
127 }
128  
129 3 1;
130 ### main pod documentation begin ###
131  
132 =encoding UTF-8
133  
134 =head1 NAME
135  
136 Cfn::Resource::AWS::ElasticLoadBalancingV2::LoadBalancer - Cfn resource for AWS::ElasticLoadBalancingV2::LoadBalancer
137  
138 =head1 DESCRIPTION
139  
140 This module implements a Perl module that represents the CloudFormation object AWS::ElasticLoadBalancingV2::LoadBalancer.
141  
142 See L<Cfn> for more information on how to use it.
143  
144 =head1 AUTHOR
145  
146 Jose Luis Martinez
147 CAPSiDE
148 jlmartinez@capside.com
149  
150 =head1 COPYRIGHT and LICENSE
151  
152 Copyright (c) 2013 by CAPSiDE
153 This code is distributed under the Apache 2 License. The full text of the
154 license can be found in the LICENSE file included with this module.
155  
156 =cut
« Cfn/Resource/AWS/RDS/OptionGroup.pm ↑ Summary Cfn/Resource/AWS/EC2/SecurityGroup.pm »