Cfn/Resource/AWS/ApiGateway/UsagePlan.pm

filter: Statementstmt 88.1% 82 / 93 Branchbran 42.8% 6 / 14 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 78.2% 18 / 23 Podpod 0.0% 0 / 2 totaltotal 80.3% 106 / 132 CC 8 SCAR 6.3
CC
8
Cov
82%
__ANON__
6.0
__ANON__
2.3
__ANON__
2.3
CRAP 1.9
« Cfn/Resource/AWS/FSx/FileSystem.pm ↑ Summary Cfn/Resource/AWS/Config/ConfigRule.pm »
1 # AWS::ApiGateway::UsagePlan generated from spec 18.4.0
2 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan',
5 from 'HashRef',
6 4 ▶ via { Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan->new( %$_ ) };
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8 1 package Cfn::Resource::AWS::ApiGateway::UsagePlan {
9 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 extends 'Cfn::Resource';
11 1 has Properties => (isa => 'Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan', is => 'rw', coerce => 1);
12
13 0 ▶ sub AttributeList {
Subroutine AttributeList: not called CC=1 SCAR=6.9
Pod undocumented
14 0 [ ]
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  
23 subtype 'MapOfCfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ThrottleSettings',
24 as 'Cfn::Value',
25 2 ▶ where { $_->isa('Cfn::Value::Hash') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Hash") or $_->isa("Cfn::Value::Function") 2 0 2
26 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
27  
28 coerce 'MapOfCfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ThrottleSettings',
29 from 'HashRef',
30 2 ▶ via {
Subroutine __ANON__: called CC=2 SCAR=7.4
31 2 my $arg = $_;
32 2 ▶ if (my $f = Cfn::TypeLibrary::try_function($arg)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($arg)) { } 0 2 2
33 0 return $f
34 } else {
35 Cfn::Value::Hash->new(Value => {
36 2 map { $_ => Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ThrottleSettings')->coerce($arg->{$_}) } keys %$arg
37 });
38 }
39 1 };
40  
41 1 subtype 'Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ThrottleSettings',
42 as 'Cfn::Value';
43  
44 coerce 'Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ThrottleSettings',
45 from 'HashRef',
46 8 ▶ via {
Subroutine __ANON__: called CC=2 SCAR=8.1
47 8 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 8 8
48 0 return $f
49 } else {
50 8 return Cfn::Resource::Properties::Object::AWS::ApiGateway::UsagePlan::ThrottleSettings->new( %$_ );
51 }
52 1 };
53  
54 1 package Cfn::Resource::Properties::Object::AWS::ApiGateway::UsagePlan::ThrottleSettings {
55 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
56 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
57 1 extends 'Cfn::Value::TypedValue';
58
59 1 has BurstLimit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
60 1 has RateLimit => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
61 }
62  
63 1 subtype 'Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan::QuotaSettings',
64 as 'Cfn::Value';
65  
66 coerce 'Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan::QuotaSettings',
67 from 'HashRef',
68 4 ▶ via {
Subroutine __ANON__: called CC=2 SCAR=8.1
69 4 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 4 4
70 0 return $f
71 } else {
72 4 return Cfn::Resource::Properties::Object::AWS::ApiGateway::UsagePlan::QuotaSettings->new( %$_ );
73 }
74 1 };
75  
76 1 package Cfn::Resource::Properties::Object::AWS::ApiGateway::UsagePlan::QuotaSettings {
77 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
78 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
79 1 extends 'Cfn::Value::TypedValue';
80
81 1 has Limit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
82 1 has Offset => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
83 1 has Period => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
84 }
85 subtype 'ArrayOfCfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ApiStage',
86 as 'Cfn::Value',
87 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
88 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
89  
90 coerce 'ArrayOfCfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ApiStage',
91 from 'HashRef',
92 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
93 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
94 0 return $f
95 } else {
96 0 die 'Only accepts functions';
97 }
98 },
99 from 'ArrayRef',
100 4 ▶ via {
Subroutine __ANON__: called CC=1 SCAR=0.0
101 Cfn::Value::Array->new(Value => [
102 map {
103 4 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ApiStage')->coerce($_)
104 } @$_
105 ]);
106 1 };
107  
108 1 subtype 'Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ApiStage',
109 as 'Cfn::Value';
110  
111 coerce 'Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ApiStage',
112 from 'HashRef',
113 4 ▶ via {
Subroutine __ANON__: called CC=2 SCAR=8.1
114 4 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 4 4
115 0 return $f
116 } else {
117 4 return Cfn::Resource::Properties::Object::AWS::ApiGateway::UsagePlan::ApiStage->new( %$_ );
118 }
119 1 };
120  
121 1 package Cfn::Resource::Properties::Object::AWS::ApiGateway::UsagePlan::ApiStage {
122 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
123 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
124 1 extends 'Cfn::Value::TypedValue';
125
126 1 has ApiId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
127 1 has Stage => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
128 1 has Throttle => (isa => 'MapOfCfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ThrottleSettings', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
129 }
130  
131 1 package Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan {
132 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
133 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
134 1 extends 'Cfn::Resource::Properties';
135
136 1 has ApiStages => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ApiStage', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
137 1 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
138 1 has Quota => (isa => 'Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan::QuotaSettings', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
139 1 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
140 1 has Throttle => (isa => 'Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ThrottleSettings', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
141 1 has UsagePlanName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
142 }
143  
144 1 1;
145 ### main pod documentation begin ###
146  
147 =encoding UTF-8
148  
149 =head1 NAME
150  
151 Cfn::Resource::AWS::ApiGateway::UsagePlan - Cfn resource for AWS::ApiGateway::UsagePlan
152  
153 =head1 DESCRIPTION
154  
155 This module implements a Perl module that represents the CloudFormation object AWS::ApiGateway::UsagePlan.
156  
157 See L<Cfn> for more information on how to use it.
158  
159 =head1 AUTHOR
160  
161 Jose Luis Martinez
162 CAPSiDE
163 jlmartinez@capside.com
164  
165 =head1 COPYRIGHT and LICENSE
166  
167 Copyright (c) 2013 by CAPSiDE
168 This code is distributed under the Apache 2 License. The full text of the
169 license can be found in the LICENSE file included with this module.
170  
171 =cut
« Cfn/Resource/AWS/FSx/FileSystem.pm ↑ Summary Cfn/Resource/AWS/Config/ConfigRule.pm »