line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# AWS::ApiGateway::UsagePlan generated from spec 18.4.0 |
2
|
2
|
|
|
2
|
|
1615
|
use Moose::Util::TypeConstraints; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
24
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan', |
5
|
|
|
|
|
|
|
from 'HashRef', |
6
|
|
|
|
|
|
|
via { Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan->new( %$_ ) }; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
package Cfn::Resource::AWS::ApiGateway::UsagePlan { |
9
|
2
|
|
|
2
|
|
4690
|
use Moose; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
20
|
|
10
|
|
|
|
|
|
|
extends 'Cfn::Resource'; |
11
|
|
|
|
|
|
|
has Properties => (isa => 'Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan', is => 'rw', coerce => 1); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub AttributeList { |
14
|
1
|
|
|
1
|
0
|
5
|
[ ] |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
sub supported_regions { |
17
|
1
|
|
|
1
|
0
|
1225
|
[ '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
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Hash') or $_->isa('Cfn::Value::Function') }, |
26
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
coerce 'MapOfCfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ThrottleSettings', |
29
|
|
|
|
|
|
|
from 'HashRef', |
30
|
|
|
|
|
|
|
via { |
31
|
|
|
|
|
|
|
my $arg = $_; |
32
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($arg)) { |
33
|
|
|
|
|
|
|
return $f |
34
|
|
|
|
|
|
|
} else { |
35
|
|
|
|
|
|
|
Cfn::Value::Hash->new(Value => { |
36
|
|
|
|
|
|
|
map { $_ => Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ThrottleSettings')->coerce($arg->{$_}) } keys %$arg |
37
|
|
|
|
|
|
|
}); |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
}; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
via { |
47
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
48
|
|
|
|
|
|
|
return $f |
49
|
|
|
|
|
|
|
} else { |
50
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::ApiGateway::UsagePlan::ThrottleSettings->new( %$_ ); |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
}; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::ApiGateway::UsagePlan::ThrottleSettings { |
55
|
2
|
|
|
2
|
|
16465
|
use Moose; |
|
2
|
|
|
|
|
10
|
|
|
2
|
|
|
|
|
12
|
|
56
|
2
|
|
|
2
|
|
13466
|
use MooseX::StrictConstructor; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
22
|
|
57
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
has BurstLimit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
60
|
|
|
|
|
|
|
has RateLimit => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
61
|
|
|
|
|
|
|
} |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
via { |
69
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
70
|
|
|
|
|
|
|
return $f |
71
|
|
|
|
|
|
|
} else { |
72
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::ApiGateway::UsagePlan::QuotaSettings->new( %$_ ); |
73
|
|
|
|
|
|
|
} |
74
|
|
|
|
|
|
|
}; |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::ApiGateway::UsagePlan::QuotaSettings { |
77
|
2
|
|
|
2
|
|
7441
|
use Moose; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
14
|
|
78
|
2
|
|
|
2
|
|
13386
|
use MooseX::StrictConstructor; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
12
|
|
79
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
has Limit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
82
|
|
|
|
|
|
|
has Offset => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
83
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
88
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ApiStage', |
91
|
|
|
|
|
|
|
from 'HashRef', |
92
|
|
|
|
|
|
|
via { |
93
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
94
|
|
|
|
|
|
|
return $f |
95
|
|
|
|
|
|
|
} else { |
96
|
|
|
|
|
|
|
die 'Only accepts functions'; |
97
|
|
|
|
|
|
|
} |
98
|
|
|
|
|
|
|
}, |
99
|
|
|
|
|
|
|
from 'ArrayRef', |
100
|
|
|
|
|
|
|
via { |
101
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
102
|
|
|
|
|
|
|
map { |
103
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ApiStage')->coerce($_) |
104
|
|
|
|
|
|
|
} @$_ |
105
|
|
|
|
|
|
|
]); |
106
|
|
|
|
|
|
|
}; |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
via { |
114
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
115
|
|
|
|
|
|
|
return $f |
116
|
|
|
|
|
|
|
} else { |
117
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::ApiGateway::UsagePlan::ApiStage->new( %$_ ); |
118
|
|
|
|
|
|
|
} |
119
|
|
|
|
|
|
|
}; |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::ApiGateway::UsagePlan::ApiStage { |
122
|
2
|
|
|
2
|
|
7453
|
use Moose; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
14
|
|
123
|
2
|
|
|
2
|
|
13443
|
use MooseX::StrictConstructor; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
12
|
|
124
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
has ApiId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
127
|
|
|
|
|
|
|
has Stage => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
128
|
|
|
|
|
|
|
has Throttle => (isa => 'MapOfCfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ThrottleSettings', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
129
|
|
|
|
|
|
|
} |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan { |
132
|
2
|
|
|
2
|
|
6833
|
use Moose; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
12
|
|
133
|
2
|
|
|
2
|
|
13490
|
use MooseX::StrictConstructor; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
11
|
|
134
|
|
|
|
|
|
|
extends 'Cfn::Resource::Properties'; |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
has ApiStages => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ApiStage', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
137
|
|
|
|
|
|
|
has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
138
|
|
|
|
|
|
|
has Quota => (isa => 'Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan::QuotaSettings', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
139
|
|
|
|
|
|
|
has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
140
|
|
|
|
|
|
|
has Throttle => (isa => 'Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ThrottleSettings', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
141
|
|
|
|
|
|
|
has UsagePlanName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
142
|
|
|
|
|
|
|
} |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
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 |