File Coverage

blib/lib/Cfn/Resource/AWS/ApiGatewayV2/Api.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::ApiGatewayV2::Api generated from spec 10.0.0
2 2     2   1328 use Moose::Util::TypeConstraints;
  2         5  
  2         20  
3              
4             coerce 'Cfn::Resource::Properties::AWS::ApiGatewayV2::Api',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::ApiGatewayV2::Api->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::ApiGatewayV2::Api {
9 2     2   4145 use Moose;
  2         6  
  2         14  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::ApiGatewayV2::Api', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1043 [ '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' ]
18             }
19             }
20              
21              
22              
23             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::AWS::ApiGatewayV2::Api::CorsValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::ApiGatewayV2::Api::CorsValue {
37 2     2   14214 use Moose;
  2         7  
  2         11  
38 2     2   12949 use MooseX::StrictConstructor;
  2         6  
  2         19  
39             extends 'Cfn::Value::TypedValue';
40            
41             has AllowCredentials => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has AllowHeaders => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             has AllowMethods => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44             has AllowOrigins => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
45             has ExposeHeaders => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
46             has MaxAge => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
47             }
48              
49             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
56             return $f
57             } else {
58             return Cfn::Resource::Properties::AWS::ApiGatewayV2::Api::BodyS3LocationValue->new( %$_ );
59             }
60             };
61              
62             package Cfn::Resource::Properties::AWS::ApiGatewayV2::Api::BodyS3LocationValue {
63 2     2   7136 use Moose;
  2         4  
  2         11  
64 2     2   13014 use MooseX::StrictConstructor;
  2         4  
  2         10  
65             extends 'Cfn::Value::TypedValue';
66            
67             has Bucket => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
68             has Etag => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
69             has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
70             has Version => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
71             }
72              
73             package Cfn::Resource::Properties::AWS::ApiGatewayV2::Api {
74 2     2   6515 use Moose;
  2         7  
  2         10  
75 2     2   12971 use MooseX::StrictConstructor;
  2         8  
  2         9  
76             extends 'Cfn::Resource::Properties';
77            
78             has ApiKeySelectionExpression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
79             has BasePath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
80             has Body => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
81             has BodyS3Location => (isa => 'Cfn::Resource::Properties::AWS::ApiGatewayV2::Api::BodyS3Location', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
82             has CorsConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ApiGatewayV2::Api::Cors', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
83             has CredentialsArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
84             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85             has DisableSchemaValidation => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86             has FailOnWarnings => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88             has ProtocolType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
89             has RouteKey => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
90             has RouteSelectionExpression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
91             has Tags => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
92             has Target => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
93             has Version => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
94             }
95              
96             1;