File Coverage

blib/lib/Cfn/Resource/AWS/NetworkFirewall/LoggingConfiguration.pm
Criterion Covered Total %
statement 32 32 100.0
branch n/a
condition n/a
subroutine 12 12 100.0
pod 0 2 0.0
total 44 46 95.6


line stmt bran cond sub pod time code
1             # AWS::NetworkFirewall::LoggingConfiguration generated from spec 21.0.0
2 1     1   736 use Moose::Util::TypeConstraints;
  1         3  
  1         11  
3              
4             coerce 'Cfn::Resource::Properties::AWS::NetworkFirewall::LoggingConfiguration',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::NetworkFirewall::LoggingConfiguration->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::NetworkFirewall::LoggingConfiguration {
9 1     1   2238 use Moose;
  1         3  
  1         9  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::NetworkFirewall::LoggingConfiguration', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 5 [ 'FirewallArn','FirewallName' ]
15             }
16             sub supported_regions {
17 1     1 0 1137 [ 'eu-west-1','us-east-1','us-west-2' ]
18             }
19             }
20              
21              
22             subtype 'ArrayOfCfn::Resource::Properties::AWS::NetworkFirewall::LoggingConfiguration::LogDestinationConfig',
23             as 'Cfn::Value',
24             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
25             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
26              
27             coerce 'ArrayOfCfn::Resource::Properties::AWS::NetworkFirewall::LoggingConfiguration::LogDestinationConfig',
28             from 'HashRef',
29             via {
30             if (my $f = Cfn::TypeLibrary::try_function($_)) {
31             return $f
32             } else {
33             die 'Only accepts functions';
34             }
35             },
36             from 'ArrayRef',
37             via {
38             Cfn::Value::Array->new(Value => [
39             map {
40             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::NetworkFirewall::LoggingConfiguration::LogDestinationConfig')->coerce($_)
41             } @$_
42             ]);
43             };
44              
45             subtype 'Cfn::Resource::Properties::AWS::NetworkFirewall::LoggingConfiguration::LogDestinationConfig',
46             as 'Cfn::Value';
47              
48             coerce 'Cfn::Resource::Properties::AWS::NetworkFirewall::LoggingConfiguration::LogDestinationConfig',
49             from 'HashRef',
50             via {
51             if (my $f = Cfn::TypeLibrary::try_function($_)) {
52             return $f
53             } else {
54             return Cfn::Resource::Properties::Object::AWS::NetworkFirewall::LoggingConfiguration::LogDestinationConfig->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::Object::AWS::NetworkFirewall::LoggingConfiguration::LogDestinationConfig {
59 1     1   7736 use Moose;
  1         3  
  1         6  
60 1     1   6839 use MooseX::StrictConstructor;
  1         3  
  1         12  
61             extends 'Cfn::Value::TypedValue';
62            
63             has LogDestination => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             has LogDestinationType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65             has LogType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66             }
67              
68             subtype 'Cfn::Resource::Properties::AWS::NetworkFirewall::LoggingConfiguration::LogDestinationConfigs',
69             as 'Cfn::Value';
70              
71             coerce 'Cfn::Resource::Properties::AWS::NetworkFirewall::LoggingConfiguration::LogDestinationConfigs',
72             from 'HashRef',
73             via {
74             if (my $f = Cfn::TypeLibrary::try_function($_)) {
75             return $f
76             } else {
77             return Cfn::Resource::Properties::Object::AWS::NetworkFirewall::LoggingConfiguration::LogDestinationConfigs->new( %$_ );
78             }
79             };
80              
81             package Cfn::Resource::Properties::Object::AWS::NetworkFirewall::LoggingConfiguration::LogDestinationConfigs {
82 1     1   3647 use Moose;
  1         3  
  1         6  
83 1     1   6796 use MooseX::StrictConstructor;
  1         3  
  1         5  
84             extends 'Cfn::Value::TypedValue';
85            
86             has LogDestinationConfigs => (isa => 'ArrayOfCfn::Resource::Properties::AWS::NetworkFirewall::LoggingConfiguration::LogDestinationConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87             }
88              
89             subtype 'Cfn::Resource::Properties::AWS::NetworkFirewall::LoggingConfiguration::LoggingConfiguration',
90             as 'Cfn::Value';
91              
92             coerce 'Cfn::Resource::Properties::AWS::NetworkFirewall::LoggingConfiguration::LoggingConfiguration',
93             from 'HashRef',
94             via {
95             if (my $f = Cfn::TypeLibrary::try_function($_)) {
96             return $f
97             } else {
98             return Cfn::Resource::Properties::Object::AWS::NetworkFirewall::LoggingConfiguration::LoggingConfiguration->new( %$_ );
99             }
100             };
101              
102             package Cfn::Resource::Properties::Object::AWS::NetworkFirewall::LoggingConfiguration::LoggingConfiguration {
103 1     1   3448 use Moose;
  1         3  
  1         6  
104 1     1   6671 use MooseX::StrictConstructor;
  1         3  
  1         6  
105             extends 'Cfn::Value::TypedValue';
106            
107             has LogDestinationConfigs => (isa => 'Cfn::Resource::Properties::AWS::NetworkFirewall::LoggingConfiguration::LogDestinationConfigs', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108             }
109              
110             package Cfn::Resource::Properties::AWS::NetworkFirewall::LoggingConfiguration {
111 1     1   3426 use Moose;
  1         3  
  1         8  
112 1     1   6679 use MooseX::StrictConstructor;
  1         3  
  1         6  
113             extends 'Cfn::Resource::Properties';
114            
115             has LoggingConfiguration => (isa => 'Cfn::Resource::Properties::AWS::NetworkFirewall::LoggingConfiguration::LoggingConfiguration', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
116             }
117              
118             1;
119             ### main pod documentation begin ###
120              
121             =encoding UTF-8
122              
123             =head1 NAME
124              
125             Cfn::Resource::AWS::NetworkFirewall::LoggingConfiguration - Cfn resource for AWS::NetworkFirewall::LoggingConfiguration
126              
127             =head1 DESCRIPTION
128              
129             This module implements a Perl module that represents the CloudFormation object AWS::NetworkFirewall::LoggingConfiguration.
130              
131             See L<Cfn> for more information on how to use it.
132              
133             =head1 AUTHOR
134              
135             Jose Luis Martinez
136             CAPSiDE
137             jlmartinez@capside.com
138              
139             =head1 COPYRIGHT and LICENSE
140              
141             Copyright (c) 2013 by CAPSiDE
142             This code is distributed under the Apache 2 License. The full text of the
143             license can be found in the LICENSE file included with this module.
144              
145             =cut