Cfn/Resource/AWS/ApiGatewayV2/Api.pm

filter: Statementstmt 92.0% 69 / 75 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 84.6% 11 / 13 Podpod 0.0% 0 / 2 totaltotal 85.1% 80 / 94 CC 3 SCAR 8.5
CC
3
Cov
87%
__ANON__
6.0
__ANON__
6.0
BEGIN
1.0
CRAP 2.3
« Cfn/Resource/AWS/Route53/RecordSet.pm ↑ Summary Cfn/Resource/AWS/Route53/HostedZone.pm »
1 # AWS::ApiGatewayV2::Api 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::ApiGatewayV2::Api',
5 from 'HashRef',
6 4 ▶ via { Cfn::Resource::Properties::AWS::ApiGatewayV2::Api->new( %$_ ) };
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8 2 package Cfn::Resource::AWS::ApiGatewayV2::Api {
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::ApiGatewayV2::Api', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ 'ApiEndpoint' ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 1 ▶ [ 'ap-east-1','ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-1','eu-north-1','eu-west-1','eu-west-2','eu-west-3','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 2 subtype 'Cfn::Resource::Properties::AWS::ApiGatewayV2::Api::Cors',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::ApiGatewayV2::Api::Cors',
27 from 'HashRef',
28 via {
29 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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::ApiGatewayV2::Api::Cors->new( %$_ );
33 }
34 2 };
35  
36 2 package Cfn::Resource::Properties::Object::AWS::ApiGatewayV2::Api::Cors {
37 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 2 extends 'Cfn::Value::TypedValue';
40
41 2 has AllowCredentials => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 2 has AllowHeaders => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 2 has AllowMethods => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44 2 has AllowOrigins => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
45 2 has ExposeHeaders => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
46 2 has MaxAge => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
47 }
48  
49 2 subtype 'Cfn::Resource::Properties::AWS::ApiGatewayV2::Api::BodyS3Location',
50 as 'Cfn::Value';
51  
52 coerce 'Cfn::Resource::Properties::AWS::ApiGatewayV2::Api::BodyS3Location',
53 from 'HashRef',
54 via {
55 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
56 0 return $f
57 } else {
58 0 return Cfn::Resource::Properties::Object::AWS::ApiGatewayV2::Api::BodyS3Location->new( %$_ );
59 }
60 2 };
61  
62 2 package Cfn::Resource::Properties::Object::AWS::ApiGatewayV2::Api::BodyS3Location {
63 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
64 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
65 2 extends 'Cfn::Value::TypedValue';
66
67 2 has Bucket => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
68 2 has Etag => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
69 2 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
70 2 has Version => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
71 }
72  
73 2 package Cfn::Resource::Properties::AWS::ApiGatewayV2::Api {
74 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
75 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
76 2 extends 'Cfn::Resource::Properties';
77
78 2 has ApiKeySelectionExpression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
79 2 has BasePath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
80 2 has Body => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
81 2 has BodyS3Location => (isa => 'Cfn::Resource::Properties::AWS::ApiGatewayV2::Api::BodyS3Location', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
82 2 has CorsConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ApiGatewayV2::Api::Cors', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
83 2 has CredentialsArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
84 2 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85 2 has DisableExecuteApiEndpoint => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86 2 has DisableSchemaValidation => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87 2 has FailOnWarnings => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88 2 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89 2 has ProtocolType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
90 2 has RouteKey => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
91 2 has RouteSelectionExpression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
92 2 has Tags => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
93 2 has Target => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
94 2 has Version => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
95 }
96  
97 2 1;
98 ### main pod documentation begin ###
99  
100 =encoding UTF-8
101  
102 =head1 NAME
103  
104 Cfn::Resource::AWS::ApiGatewayV2::Api - Cfn resource for AWS::ApiGatewayV2::Api
105  
106 =head1 DESCRIPTION
107  
108 This module implements a Perl module that represents the CloudFormation object AWS::ApiGatewayV2::Api.
109  
110 See L<Cfn> for more information on how to use it.
111  
112 =head1 AUTHOR
113  
114 Jose Luis Martinez
115 CAPSiDE
116 jlmartinez@capside.com
117  
118 =head1 COPYRIGHT and LICENSE
119  
120 Copyright (c) 2013 by CAPSiDE
121 This code is distributed under the Apache 2 License. The full text of the
122 license can be found in the LICENSE file included with this module.
123  
124 =cut
« Cfn/Resource/AWS/Route53/RecordSet.pm ↑ Summary Cfn/Resource/AWS/Route53/HostedZone.pm »