« Cfn/Resource/AWS/CertificateManager/Certificate.pm
↑ Summary
Cfn/Resource/AWS/WAF/SqlInjectionMatchSet.pm »
| 1 | # AWS::ApiGateway::UsagePlan generated from spec 18.4.0 | ||||||||||
| 2 | 2 | ▶ | 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 | 2 | package Cfn::Resource::AWS::ApiGateway::UsagePlan { | |||||||||
| 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::ApiGateway::UsagePlan', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | sub AttributeList { | ||||||||||
| 14 | 1 | ▶ | [ ] | ||||||||
|
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 | 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
| |||||||||||
| 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 | via { | ||||||||||
| 31 | 2 | ▶ | my $arg = $_; | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.4
| |||||||||||
| 32 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($arg)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 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 | 2 | }; | |||||||||
| 40 | |||||||||||
| 41 | 2 | 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 | 8 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 48 | 0 | return $f | |||||||||
| 49 | } else { | ||||||||||
| 50 | 8 | return Cfn::Resource::Properties::Object::AWS::ApiGateway::UsagePlan::ThrottleSettings->new( %$_ ); | |||||||||
| 51 | } | ||||||||||
| 52 | 2 | }; | |||||||||
| 53 | |||||||||||
| 54 | 2 | package Cfn::Resource::Properties::Object::AWS::ApiGateway::UsagePlan::ThrottleSettings { | |||||||||
| 55 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 56 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 57 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 58 | |||||||||||
| 59 | 2 | has BurstLimit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 60 | 2 | has RateLimit => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 61 | } | ||||||||||
| 62 | |||||||||||
| 63 | 2 | 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 | 4 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 70 | 0 | return $f | |||||||||
| 71 | } else { | ||||||||||
| 72 | 4 | return Cfn::Resource::Properties::Object::AWS::ApiGateway::UsagePlan::QuotaSettings->new( %$_ ); | |||||||||
| 73 | } | ||||||||||
| 74 | 2 | }; | |||||||||
| 75 | |||||||||||
| 76 | 2 | package Cfn::Resource::Properties::Object::AWS::ApiGateway::UsagePlan::QuotaSettings { | |||||||||
| 77 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 78 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 79 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 80 | |||||||||||
| 81 | 2 | has Limit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 82 | 2 | has Offset => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 83 | 2 | 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
| |||||||||||
| 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 | via { | ||||||||||
| 93 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 94 | 0 | return $f | |||||||||
| 95 | } else { | ||||||||||
| 96 | 0 | die 'Only accepts functions'; | |||||||||
| 97 | } | ||||||||||
| 98 | }, | ||||||||||
| 99 | from 'ArrayRef', | ||||||||||
| 100 | via { | ||||||||||
| 101 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 102 | map { | ||||||||||
| 103 | 4 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ApiStage')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 104 | } @$_ | ||||||||||
| 105 | ]); | ||||||||||
| 106 | 2 | }; | |||||||||
| 107 | |||||||||||
| 108 | 2 | 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 | 4 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 115 | 0 | return $f | |||||||||
| 116 | } else { | ||||||||||
| 117 | 4 | return Cfn::Resource::Properties::Object::AWS::ApiGateway::UsagePlan::ApiStage->new( %$_ ); | |||||||||
| 118 | } | ||||||||||
| 119 | 2 | }; | |||||||||
| 120 | |||||||||||
| 121 | 2 | package Cfn::Resource::Properties::Object::AWS::ApiGateway::UsagePlan::ApiStage { | |||||||||
| 122 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 123 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 124 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 125 | |||||||||||
| 126 | 2 | has ApiId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 127 | 2 | has Stage => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 128 | 2 | has Throttle => (isa => 'MapOfCfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ThrottleSettings', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 129 | } | ||||||||||
| 130 | |||||||||||
| 131 | 2 | package Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan { | |||||||||
| 132 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 133 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 134 | 2 | extends 'Cfn::Resource::Properties'; | |||||||||
| 135 | |||||||||||
| 136 | 2 | has ApiStages => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ApiStage', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 137 | 2 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 138 | 2 | has Quota => (isa => 'Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan::QuotaSettings', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 139 | 2 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 140 | 2 | has Throttle => (isa => 'Cfn::Resource::Properties::AWS::ApiGateway::UsagePlan::ThrottleSettings', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 141 | 2 | has UsagePlanName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 142 | } | ||||||||||
| 143 | |||||||||||
| 144 | 2 | 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 | ||||||||||