File Coverage

blib/lib/Cfn/Resource/AWS/ElasticLoadBalancing/LoadBalancer.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1 2     2   1473 use Moose::Util::TypeConstraints;
  2         10  
  2         24  
2              
3             coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer',
4             from 'HashRef',
5             via { Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer->new( %$_ ) };
6              
7             package Cfn::Resource::AWS::ElasticLoadBalancing::LoadBalancer {
8 2     2   4766 use Moose;
  2         8  
  2         17  
9             extends 'Cfn::Resource';
10             has Properties => (isa => 'Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer', is => 'rw', coerce => 1, required => 1);
11             }
12              
13             package Cfn::Resource::Properties::AWS::ElasticLoadBalancing::LoadBalancer {
14 2     2   15516 use Moose;
  2         16  
  2         11  
15 2     2   13711 use MooseX::StrictConstructor;
  2         6  
  2         19  
16             extends 'Cfn::Resource::Properties';
17             has AccessLoggingPolicy => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
18             has AppCookieStickinessPolicy => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
19             has AvailabilityZones => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
20             has ConnectionDrainingPolicy => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
21             has CrossZone => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
22             has ConnectionSettings => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
23             has HealthCheck => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
24             has Instances => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
25             has LBCookieStickinessPolicy => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
26             has Listeners => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1, required => 1);
27             has LoadBalancerName => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
28             has Policies => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
29             has Scheme => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
30             has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
31             has Subnets => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
32             has Tags => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
33             }
34              
35             1;