Cfn/Resource/AWS/Lambda/EventSourceMapping.pm

filter: Statementstmt 82.2% 74 / 90 Branchbran 0.0% 0 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 65.0% 13 / 20 Podpod 0.0% 0 / 2 totaltotal 71.3% 87 / 122 CC 6 SCAR 11.1
CC
6
Cov
74%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.0
« Cfn/Resource/AWS/ApplicationAutoScaling/ScalableTarget.pm ↑ Summary Cfn/Resource/AWS/AutoScaling/AutoScalingGroup.pm »
1 # AWS::Lambda::EventSourceMapping generated from spec 21.0.0
2 2 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping',
5 from 'HashRef',
6 2 ▶ via { Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping->new( %$_ ) };
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8 2 package Cfn::Resource::AWS::Lambda::EventSourceMapping {
9 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 extends 'Cfn::Resource';
11 2 has Properties => (isa => 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ 'Id' ]
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  
23 2 subtype 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::OnFailure',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::OnFailure',
27 from 'HashRef',
28 via {
29 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
30 0 return $f
31 } else {
32 0 return Cfn::Resource::Properties::Object::AWS::Lambda::EventSourceMapping::OnFailure->new( %$_ );
33 }
34 2 };
35  
36 2 package Cfn::Resource::Properties::Object::AWS::Lambda::EventSourceMapping::OnFailure {
37 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 2 extends 'Cfn::Value::TypedValue';
40
41 2 has Destination => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 }
43 subtype 'ArrayOfCfn::Resource::Properties::AWS::Lambda::EventSourceMapping::SourceAccessConfiguration',
44 as 'Cfn::Value',
45 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
46 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
47  
48 coerce 'ArrayOfCfn::Resource::Properties::AWS::Lambda::EventSourceMapping::SourceAccessConfiguration',
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
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
52 0 return $f
53 } else {
54 0 die 'Only accepts functions';
55 }
56 },
57 from 'ArrayRef',
58 via {
59 Cfn::Value::Array->new(Value => [
60 map {
61 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::SourceAccessConfiguration')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
62 } @$_
63 ]);
64 2 };
65  
66 2 subtype 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::SourceAccessConfiguration',
67 as 'Cfn::Value';
68  
69 coerce 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::SourceAccessConfiguration',
70 from 'HashRef',
71 via {
72 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
73 0 return $f
74 } else {
75 0 return Cfn::Resource::Properties::Object::AWS::Lambda::EventSourceMapping::SourceAccessConfiguration->new( %$_ );
76 }
77 2 };
78  
79 2 package Cfn::Resource::Properties::Object::AWS::Lambda::EventSourceMapping::SourceAccessConfiguration {
80 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
81 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
82 2 extends 'Cfn::Value::TypedValue';
83
84 2 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85 2 has URI => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86 }
87  
88 2 subtype 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::DestinationConfig',
89 as 'Cfn::Value';
90  
91 coerce 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::DestinationConfig',
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
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
95 0 return $f
96 } else {
97 0 return Cfn::Resource::Properties::Object::AWS::Lambda::EventSourceMapping::DestinationConfig->new( %$_ );
98 }
99 2 };
100  
101 2 package Cfn::Resource::Properties::Object::AWS::Lambda::EventSourceMapping::DestinationConfig {
102 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
103 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
104 2 extends 'Cfn::Value::TypedValue';
105
106 2 has OnFailure => (isa => 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::OnFailure', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
107 }
108  
109 2 package Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping {
110 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
111 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
112 2 extends 'Cfn::Resource::Properties';
113
114 2 has BatchSize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
115 2 has BisectBatchOnFunctionError => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
116 2 has DestinationConfig => (isa => 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::DestinationConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
117 2 has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
118 2 has EventSourceArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
119 2 has FunctionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
120 2 has MaximumBatchingWindowInSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
121 2 has MaximumRecordAgeInSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
122 2 has MaximumRetryAttempts => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
123 2 has ParallelizationFactor => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
124 2 has PartialBatchResponse => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
125 2 has Queues => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
126 2 has SourceAccessConfigurations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Lambda::EventSourceMapping::SourceAccessConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
127 2 has StartingPosition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
128 2 has Topics => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
129 2 has TumblingWindowInSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
130 }
131  
132 2 1;
133 ### main pod documentation begin ###
134  
135 =encoding UTF-8
136  
137 =head1 NAME
138  
139 Cfn::Resource::AWS::Lambda::EventSourceMapping - Cfn resource for AWS::Lambda::EventSourceMapping
140  
141 =head1 DESCRIPTION
142  
143 This module implements a Perl module that represents the CloudFormation object AWS::Lambda::EventSourceMapping.
144  
145 See L<Cfn> for more information on how to use it.
146  
147 =head1 AUTHOR
148  
149 Jose Luis Martinez
150 CAPSiDE
151 jlmartinez@capside.com
152  
153 =head1 COPYRIGHT and LICENSE
154  
155 Copyright (c) 2013 by CAPSiDE
156 This code is distributed under the Apache 2 License. The full text of the
157 license can be found in the LICENSE file included with this module.
158  
159 =cut
« Cfn/Resource/AWS/ApplicationAutoScaling/ScalableTarget.pm ↑ Summary Cfn/Resource/AWS/AutoScaling/AutoScalingGroup.pm »