File Coverage

blib/lib/Cfn/Resource/AWS/AppMesh/GatewayRoute.pm
Criterion Covered Total %
statement 68 68 100.0
branch n/a
condition n/a
subroutine 24 24 100.0
pod 0 2 0.0
total 92 94 97.8


line stmt bran cond sub pod time code
1             # AWS::AppMesh::GatewayRoute generated from spec 18.4.0
2 1     1   684 use Moose::Util::TypeConstraints;
  1         2  
  1         14  
3              
4             coerce 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::AppMesh::GatewayRoute {
9 1     1   2200 use Moose;
  1         4  
  1         9  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 7 [ 'Arn','GatewayRouteName','MeshName','MeshOwner','ResourceOwner','Uid','VirtualGatewayName' ]
15             }
16             sub supported_regions {
17 1     1 0 1173 [ 'ap-east-1','ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-2','ca-central-1','eu-central-1','eu-north-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-1','us-east-1','us-east-2','us-west-1','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::GatewayRouteVirtualService',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::GatewayRouteVirtualService',
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::AppMesh::GatewayRoute::GatewayRouteVirtualService->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::AppMesh::GatewayRoute::GatewayRouteVirtualService {
37 1     1   7211 use Moose;
  1         4  
  1         5  
38 1     1   6771 use MooseX::StrictConstructor;
  1         2  
  1         10  
39             extends 'Cfn::Value::TypedValue';
40            
41             has VirtualServiceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             }
43              
44             subtype 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::GatewayRouteTarget',
45             as 'Cfn::Value';
46              
47             coerce 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::GatewayRouteTarget',
48             from 'HashRef',
49             via {
50             if (my $f = Cfn::TypeLibrary::try_function($_)) {
51             return $f
52             } else {
53             return Cfn::Resource::Properties::Object::AWS::AppMesh::GatewayRoute::GatewayRouteTarget->new( %$_ );
54             }
55             };
56              
57             package Cfn::Resource::Properties::Object::AWS::AppMesh::GatewayRoute::GatewayRouteTarget {
58 1     1   3598 use Moose;
  1         9  
  1         6  
59 1     1   7048 use MooseX::StrictConstructor;
  1         3  
  1         6  
60             extends 'Cfn::Value::TypedValue';
61            
62             has VirtualService => (isa => 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::GatewayRouteVirtualService', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
63             }
64              
65             subtype 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::HttpGatewayRouteMatch',
66             as 'Cfn::Value';
67              
68             coerce 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::HttpGatewayRouteMatch',
69             from 'HashRef',
70             via {
71             if (my $f = Cfn::TypeLibrary::try_function($_)) {
72             return $f
73             } else {
74             return Cfn::Resource::Properties::Object::AWS::AppMesh::GatewayRoute::HttpGatewayRouteMatch->new( %$_ );
75             }
76             };
77              
78             package Cfn::Resource::Properties::Object::AWS::AppMesh::GatewayRoute::HttpGatewayRouteMatch {
79 1     1   3417 use Moose;
  1         3  
  1         7  
80 1     1   6614 use MooseX::StrictConstructor;
  1         2  
  1         6  
81             extends 'Cfn::Value::TypedValue';
82            
83             has Prefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
84             }
85              
86             subtype 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::HttpGatewayRouteAction',
87             as 'Cfn::Value';
88              
89             coerce 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::HttpGatewayRouteAction',
90             from 'HashRef',
91             via {
92             if (my $f = Cfn::TypeLibrary::try_function($_)) {
93             return $f
94             } else {
95             return Cfn::Resource::Properties::Object::AWS::AppMesh::GatewayRoute::HttpGatewayRouteAction->new( %$_ );
96             }
97             };
98              
99             package Cfn::Resource::Properties::Object::AWS::AppMesh::GatewayRoute::HttpGatewayRouteAction {
100 1     1   3442 use Moose;
  1         3  
  1         6  
101 1     1   6850 use MooseX::StrictConstructor;
  1         3  
  1         5  
102             extends 'Cfn::Value::TypedValue';
103            
104             has Target => (isa => 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::GatewayRouteTarget', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
105             }
106              
107             subtype 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::GrpcGatewayRouteMatch',
108             as 'Cfn::Value';
109              
110             coerce 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::GrpcGatewayRouteMatch',
111             from 'HashRef',
112             via {
113             if (my $f = Cfn::TypeLibrary::try_function($_)) {
114             return $f
115             } else {
116             return Cfn::Resource::Properties::Object::AWS::AppMesh::GatewayRoute::GrpcGatewayRouteMatch->new( %$_ );
117             }
118             };
119              
120             package Cfn::Resource::Properties::Object::AWS::AppMesh::GatewayRoute::GrpcGatewayRouteMatch {
121 1     1   3521 use Moose;
  1         2  
  1         9  
122 1     1   6812 use MooseX::StrictConstructor;
  1         2  
  1         6  
123             extends 'Cfn::Value::TypedValue';
124            
125             has ServiceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
126             }
127              
128             subtype 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::GrpcGatewayRouteAction',
129             as 'Cfn::Value';
130              
131             coerce 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::GrpcGatewayRouteAction',
132             from 'HashRef',
133             via {
134             if (my $f = Cfn::TypeLibrary::try_function($_)) {
135             return $f
136             } else {
137             return Cfn::Resource::Properties::Object::AWS::AppMesh::GatewayRoute::GrpcGatewayRouteAction->new( %$_ );
138             }
139             };
140              
141             package Cfn::Resource::Properties::Object::AWS::AppMesh::GatewayRoute::GrpcGatewayRouteAction {
142 1     1   3402 use Moose;
  1         5  
  1         6  
143 1     1   6690 use MooseX::StrictConstructor;
  1         2  
  1         5  
144             extends 'Cfn::Value::TypedValue';
145            
146             has Target => (isa => 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::GatewayRouteTarget', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
147             }
148              
149             subtype 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::HttpGatewayRoute',
150             as 'Cfn::Value';
151              
152             coerce 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::HttpGatewayRoute',
153             from 'HashRef',
154             via {
155             if (my $f = Cfn::TypeLibrary::try_function($_)) {
156             return $f
157             } else {
158             return Cfn::Resource::Properties::Object::AWS::AppMesh::GatewayRoute::HttpGatewayRoute->new( %$_ );
159             }
160             };
161              
162             package Cfn::Resource::Properties::Object::AWS::AppMesh::GatewayRoute::HttpGatewayRoute {
163 1     1   3461 use Moose;
  1         3  
  1         5  
164 1     1   6717 use MooseX::StrictConstructor;
  1         3  
  1         10  
165             extends 'Cfn::Value::TypedValue';
166            
167             has Action => (isa => 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::HttpGatewayRouteAction', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
168             has Match => (isa => 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::HttpGatewayRouteMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
169             }
170              
171             subtype 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::GrpcGatewayRoute',
172             as 'Cfn::Value';
173              
174             coerce 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::GrpcGatewayRoute',
175             from 'HashRef',
176             via {
177             if (my $f = Cfn::TypeLibrary::try_function($_)) {
178             return $f
179             } else {
180             return Cfn::Resource::Properties::Object::AWS::AppMesh::GatewayRoute::GrpcGatewayRoute->new( %$_ );
181             }
182             };
183              
184             package Cfn::Resource::Properties::Object::AWS::AppMesh::GatewayRoute::GrpcGatewayRoute {
185 1     1   3435 use Moose;
  1         3  
  1         6  
186 1     1   6790 use MooseX::StrictConstructor;
  1         4  
  1         5  
187             extends 'Cfn::Value::TypedValue';
188            
189             has Action => (isa => 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::GrpcGatewayRouteAction', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
190             has Match => (isa => 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::GrpcGatewayRouteMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
191             }
192              
193             subtype 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::GatewayRouteSpec',
194             as 'Cfn::Value';
195              
196             coerce 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::GatewayRouteSpec',
197             from 'HashRef',
198             via {
199             if (my $f = Cfn::TypeLibrary::try_function($_)) {
200             return $f
201             } else {
202             return Cfn::Resource::Properties::Object::AWS::AppMesh::GatewayRoute::GatewayRouteSpec->new( %$_ );
203             }
204             };
205              
206             package Cfn::Resource::Properties::Object::AWS::AppMesh::GatewayRoute::GatewayRouteSpec {
207 1     1   3546 use Moose;
  1         4  
  1         6  
208 1     1   6907 use MooseX::StrictConstructor;
  1         3  
  1         7  
209             extends 'Cfn::Value::TypedValue';
210            
211             has GrpcRoute => (isa => 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::GrpcGatewayRoute', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
212             has Http2Route => (isa => 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::HttpGatewayRoute', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
213             has HttpRoute => (isa => 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::HttpGatewayRoute', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
214             }
215              
216             package Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute {
217 1     1   3614 use Moose;
  1         3  
  1         6  
218 1     1   6986 use MooseX::StrictConstructor;
  1         2  
  1         6  
219             extends 'Cfn::Resource::Properties';
220            
221             has GatewayRouteName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
222             has MeshName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
223             has MeshOwner => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
224             has Spec => (isa => 'Cfn::Resource::Properties::AWS::AppMesh::GatewayRoute::GatewayRouteSpec', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
225             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
226             has VirtualGatewayName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
227             }
228              
229             1;
230             ### main pod documentation begin ###
231              
232             =encoding UTF-8
233              
234             =head1 NAME
235              
236             Cfn::Resource::AWS::AppMesh::GatewayRoute - Cfn resource for AWS::AppMesh::GatewayRoute
237              
238             =head1 DESCRIPTION
239              
240             This module implements a Perl module that represents the CloudFormation object AWS::AppMesh::GatewayRoute.
241              
242             See L<Cfn> for more information on how to use it.
243              
244             =head1 AUTHOR
245              
246             Jose Luis Martinez
247             CAPSiDE
248             jlmartinez@capside.com
249              
250             =head1 COPYRIGHT and LICENSE
251              
252             Copyright (c) 2013 by CAPSiDE
253             This code is distributed under the Apache 2 License. The full text of the
254             license can be found in the LICENSE file included with this module.
255              
256             =cut