File Coverage

blib/lib/Cfn/Resource/AWS/ApiGateway/RestApi.pm
Criterion Covered Total %
statement 26 26 100.0
branch n/a
condition n/a
subroutine 10 10 100.0
pod 0 2 0.0
total 36 38 94.7


line stmt bran cond sub pod time code
1             # AWS::ApiGateway::RestApi generated from spec 18.4.0
2 5     5   3492 use Moose::Util::TypeConstraints;
  5         14  
  5         58  
3              
4             coerce 'Cfn::Resource::Properties::AWS::ApiGateway::RestApi',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::ApiGateway::RestApi->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::ApiGateway::RestApi {
9 5     5   11684 use Moose;
  5         17  
  5         47  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::ApiGateway::RestApi', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 4     4 0 38 [ 'RootResourceId' ]
15             }
16             sub supported_regions {
17 2     2 0 1188 [ '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 'Cfn::Resource::Properties::AWS::ApiGateway::RestApi::S3Location',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::ApiGateway::RestApi::S3Location',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::Object::AWS::ApiGateway::RestApi::S3Location->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::ApiGateway::RestApi::S3Location {
37 5     5   39344 use Moose;
  5         44  
  5         34  
38 5     5   34207 use MooseX::StrictConstructor;
  5         27718  
  5         44  
39             extends 'Cfn::Value::TypedValue';
40            
41             has Bucket => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has ETag => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44             has Version => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
45             }
46              
47             subtype 'Cfn::Resource::Properties::AWS::ApiGateway::RestApi::EndpointConfiguration',
48             as 'Cfn::Value';
49              
50             coerce 'Cfn::Resource::Properties::AWS::ApiGateway::RestApi::EndpointConfiguration',
51             from 'HashRef',
52             via {
53             if (my $f = Cfn::TypeLibrary::try_function($_)) {
54             return $f
55             } else {
56             return Cfn::Resource::Properties::Object::AWS::ApiGateway::RestApi::EndpointConfiguration->new( %$_ );
57             }
58             };
59              
60             package Cfn::Resource::Properties::Object::AWS::ApiGateway::RestApi::EndpointConfiguration {
61 5     5   26224 use Moose;
  5         15  
  5         35  
62 5     5   34344 use MooseX::StrictConstructor;
  5         14  
  5         24  
63             extends 'Cfn::Value::TypedValue';
64            
65             has Types => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66             has VpcEndpointIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67             }
68              
69             package Cfn::Resource::Properties::AWS::ApiGateway::RestApi {
70 5     5   16711 use Moose;
  5         22  
  5         32  
71 5     5   32952 use MooseX::StrictConstructor;
  5         28  
  5         29  
72             extends 'Cfn::Resource::Properties';
73            
74             has ApiKeySourceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
75             has BinaryMediaTypes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
76             has Body => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
77             has BodyS3Location => (isa => 'Cfn::Resource::Properties::AWS::ApiGateway::RestApi::S3Location', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
78             has CloneFrom => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
79             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
80             has EndpointConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ApiGateway::RestApi::EndpointConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
81             has FailOnWarnings => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
82             has MinimumCompressionSize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
83             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
84             has Parameters => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85             has Policy => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87             }
88              
89             1;
90             ### main pod documentation begin ###
91              
92             =encoding UTF-8
93              
94             =head1 NAME
95              
96             Cfn::Resource::AWS::ApiGateway::RestApi - Cfn resource for AWS::ApiGateway::RestApi
97              
98             =head1 DESCRIPTION
99              
100             This module implements a Perl module that represents the CloudFormation object AWS::ApiGateway::RestApi.
101              
102             See L<Cfn> for more information on how to use it.
103              
104             =head1 AUTHOR
105              
106             Jose Luis Martinez
107             CAPSiDE
108             jlmartinez@capside.com
109              
110             =head1 COPYRIGHT and LICENSE
111              
112             Copyright (c) 2013 by CAPSiDE
113             This code is distributed under the Apache 2 License. The full text of the
114             license can be found in the LICENSE file included with this module.
115              
116             =cut