Cfn/Resource/AWS/ApiGateway/RestApi.pm

filter: Statementstmt 91.1% 62 / 68 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 84.6% 11 / 13 Podpod 0.0% 0 / 2 totaltotal 83.9% 73 / 87 CC 3 SCAR 8.5
CC
3
Cov
86%
__ANON__
6.0
__ANON__
6.0
BEGIN
1.0
CRAP 2.3
« Cfn/Resource/AWS/GameLift/Fleet.pm ↑ Summary Cfn/Resource/AWS/ElasticBeanstalk/Environment.pm »
1 # AWS::ApiGateway::RestApi generated from spec 34.0.0
2 4 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::ApiGateway::RestApi',
5 from 'HashRef',
6 7 ▶ via { Cfn::Resource::Properties::AWS::ApiGateway::RestApi->new( %$_ ) };
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8 4 package Cfn::Resource::AWS::ApiGateway::RestApi {
9 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 4 extends 'Cfn::Resource';
11 4 has Properties => (isa => 'Cfn::Resource::Properties::AWS::ApiGateway::RestApi', is => 'rw', coerce => 1);
12
13 3 ▶ sub AttributeList {
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
14 3 [ 'RootResourceId' ]
15 }
16 1 ▶ sub supported_regions {
Subroutine supported_regions: called CC=1 SCAR=0.0
Pod undocumented
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' ]
18 }
19 }
20  
21  
22  
23 4 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 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
29 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
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::ApiGateway::RestApi::S3Location->new( %$_ );
33 }
34 4 };
35  
36 4 package Cfn::Resource::Properties::Object::AWS::ApiGateway::RestApi::S3Location {
37 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 4 extends 'Cfn::Value::TypedValue';
40
41 4 has Bucket => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 4 has ETag => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 4 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44 4 has Version => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
45 }
46  
47 4 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 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
53 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
54 0 return $f
55 } else {
56 0 return Cfn::Resource::Properties::Object::AWS::ApiGateway::RestApi::EndpointConfiguration->new( %$_ );
57 }
58 4 };
59  
60 4 package Cfn::Resource::Properties::Object::AWS::ApiGateway::RestApi::EndpointConfiguration {
61 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
62 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
63 4 extends 'Cfn::Value::TypedValue';
64
65 4 has Types => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66 4 has VpcEndpointIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67 }
68  
69 4 package Cfn::Resource::Properties::AWS::ApiGateway::RestApi {
70 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
71 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
72 4 extends 'Cfn::Resource::Properties';
73
74 4 has ApiKeySourceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
75 4 has BinaryMediaTypes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
76 4 has Body => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
77 4 has BodyS3Location => (isa => 'Cfn::Resource::Properties::AWS::ApiGateway::RestApi::S3Location', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
78 4 has CloneFrom => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
79 4 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
80 4 has DisableExecuteApiEndpoint => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
81 4 has EndpointConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ApiGateway::RestApi::EndpointConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
82 4 has FailOnWarnings => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
83 4 has MinimumCompressionSize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
84 4 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85 4 has Parameters => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86 4 has Policy => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87 4 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88 }
89  
90 4 1;
91 ### main pod documentation begin ###
92  
93 =encoding UTF-8
94  
95 =head1 NAME
96  
97 Cfn::Resource::AWS::ApiGateway::RestApi - Cfn resource for AWS::ApiGateway::RestApi
98  
99 =head1 DESCRIPTION
100  
101 This module implements a Perl module that represents the CloudFormation object AWS::ApiGateway::RestApi.
102  
103 See L<Cfn> for more information on how to use it.
104  
105 =head1 AUTHOR
106  
107 Jose Luis Martinez
108 CAPSiDE
109 jlmartinez@capside.com
110  
111 =head1 COPYRIGHT and LICENSE
112  
113 Copyright (c) 2013 by CAPSiDE
114 This code is distributed under the Apache 2 License. The full text of the
115 license can be found in the LICENSE file included with this module.
116  
117 =cut
« Cfn/Resource/AWS/GameLift/Fleet.pm ↑ Summary Cfn/Resource/AWS/ElasticBeanstalk/Environment.pm »