File Coverage

blib/lib/Cfn/Resource/AWS/AppSync/DataSource.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::AppSync::DataSource generated from spec 20.1.0
2 1     1   660 use Moose::Util::TypeConstraints;
  1         2  
  1         9  
3              
4             coerce 'Cfn::Resource::Properties::AWS::AppSync::DataSource',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::AppSync::DataSource->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::AppSync::DataSource {
9 1     1   1990 use Moose;
  1         2  
  1         8  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::AppSync::DataSource', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 5 [ 'DataSourceArn','Name' ]
15             }
16             sub supported_regions {
17 1     1 0 1037 [ 'ap-east-1','ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','cn-north-1','cn-northwest-1','eu-central-1','eu-west-1','me-south-1','us-east-1','us-east-2','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::AppSync::DataSource::AwsIamConfig',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::AppSync::DataSource::AwsIamConfig',
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::AppSync::DataSource::AwsIamConfig->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::AwsIamConfig {
37 1     1   6458 use Moose;
  1         2  
  1         7  
38 1     1   5802 use MooseX::StrictConstructor;
  1         2  
  1         9  
39             extends 'Cfn::Value::TypedValue';
40            
41             has SigningRegion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has SigningServiceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             }
44              
45             subtype 'Cfn::Resource::Properties::AWS::AppSync::DataSource::RdsHttpEndpointConfig',
46             as 'Cfn::Value';
47              
48             coerce 'Cfn::Resource::Properties::AWS::AppSync::DataSource::RdsHttpEndpointConfig',
49             from 'HashRef',
50             via {
51             if (my $f = Cfn::TypeLibrary::try_function($_)) {
52             return $f
53             } else {
54             return Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::RdsHttpEndpointConfig->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::RdsHttpEndpointConfig {
59 1     1   3237 use Moose;
  1         3  
  1         4  
60 1     1   5716 use MooseX::StrictConstructor;
  1         2  
  1         6  
61             extends 'Cfn::Value::TypedValue';
62            
63             has AwsRegion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             has AwsSecretStoreArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65             has DatabaseName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66             has DbClusterIdentifier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67             has Schema => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
68             }
69              
70             subtype 'Cfn::Resource::Properties::AWS::AppSync::DataSource::DeltaSyncConfig',
71             as 'Cfn::Value';
72              
73             coerce 'Cfn::Resource::Properties::AWS::AppSync::DataSource::DeltaSyncConfig',
74             from 'HashRef',
75             via {
76             if (my $f = Cfn::TypeLibrary::try_function($_)) {
77             return $f
78             } else {
79             return Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::DeltaSyncConfig->new( %$_ );
80             }
81             };
82              
83             package Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::DeltaSyncConfig {
84 1     1   2979 use Moose;
  1         3  
  1         4  
85 1     1   5612 use MooseX::StrictConstructor;
  1         2  
  1         6  
86             extends 'Cfn::Value::TypedValue';
87            
88             has BaseTableTTL => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89             has DeltaSyncTableName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
90             has DeltaSyncTableTTL => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
91             }
92              
93             subtype 'Cfn::Resource::Properties::AWS::AppSync::DataSource::AuthorizationConfig',
94             as 'Cfn::Value';
95              
96             coerce 'Cfn::Resource::Properties::AWS::AppSync::DataSource::AuthorizationConfig',
97             from 'HashRef',
98             via {
99             if (my $f = Cfn::TypeLibrary::try_function($_)) {
100             return $f
101             } else {
102             return Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::AuthorizationConfig->new( %$_ );
103             }
104             };
105              
106             package Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::AuthorizationConfig {
107 1     1   2889 use Moose;
  1         2  
  1         5  
108 1     1   5535 use MooseX::StrictConstructor;
  1         3  
  1         6  
109             extends 'Cfn::Value::TypedValue';
110            
111             has AuthorizationType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
112             has AwsIamConfig => (isa => 'Cfn::Resource::Properties::AWS::AppSync::DataSource::AwsIamConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
113             }
114              
115             subtype 'Cfn::Resource::Properties::AWS::AppSync::DataSource::RelationalDatabaseConfig',
116             as 'Cfn::Value';
117              
118             coerce 'Cfn::Resource::Properties::AWS::AppSync::DataSource::RelationalDatabaseConfig',
119             from 'HashRef',
120             via {
121             if (my $f = Cfn::TypeLibrary::try_function($_)) {
122             return $f
123             } else {
124             return Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::RelationalDatabaseConfig->new( %$_ );
125             }
126             };
127              
128             package Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::RelationalDatabaseConfig {
129 1     1   2872 use Moose;
  1         3  
  1         6  
130 1     1   5669 use MooseX::StrictConstructor;
  1         2  
  1         6  
131             extends 'Cfn::Value::TypedValue';
132            
133             has RdsHttpEndpointConfig => (isa => 'Cfn::Resource::Properties::AWS::AppSync::DataSource::RdsHttpEndpointConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
134             has RelationalDatabaseSourceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
135             }
136              
137             subtype 'Cfn::Resource::Properties::AWS::AppSync::DataSource::LambdaConfig',
138             as 'Cfn::Value';
139              
140             coerce 'Cfn::Resource::Properties::AWS::AppSync::DataSource::LambdaConfig',
141             from 'HashRef',
142             via {
143             if (my $f = Cfn::TypeLibrary::try_function($_)) {
144             return $f
145             } else {
146             return Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::LambdaConfig->new( %$_ );
147             }
148             };
149              
150             package Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::LambdaConfig {
151 1     1   2898 use Moose;
  1         2  
  1         6  
152 1     1   5576 use MooseX::StrictConstructor;
  1         2  
  1         5  
153             extends 'Cfn::Value::TypedValue';
154            
155             has LambdaFunctionArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
156             }
157              
158             subtype 'Cfn::Resource::Properties::AWS::AppSync::DataSource::HttpConfig',
159             as 'Cfn::Value';
160              
161             coerce 'Cfn::Resource::Properties::AWS::AppSync::DataSource::HttpConfig',
162             from 'HashRef',
163             via {
164             if (my $f = Cfn::TypeLibrary::try_function($_)) {
165             return $f
166             } else {
167             return Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::HttpConfig->new( %$_ );
168             }
169             };
170              
171             package Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::HttpConfig {
172 1     1   2816 use Moose;
  1         3  
  1         6  
173 1     1   5623 use MooseX::StrictConstructor;
  1         3  
  1         4  
174             extends 'Cfn::Value::TypedValue';
175            
176             has AuthorizationConfig => (isa => 'Cfn::Resource::Properties::AWS::AppSync::DataSource::AuthorizationConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
177             has Endpoint => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
178             }
179              
180             subtype 'Cfn::Resource::Properties::AWS::AppSync::DataSource::ElasticsearchConfig',
181             as 'Cfn::Value';
182              
183             coerce 'Cfn::Resource::Properties::AWS::AppSync::DataSource::ElasticsearchConfig',
184             from 'HashRef',
185             via {
186             if (my $f = Cfn::TypeLibrary::try_function($_)) {
187             return $f
188             } else {
189             return Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::ElasticsearchConfig->new( %$_ );
190             }
191             };
192              
193             package Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::ElasticsearchConfig {
194 1     1   2843 use Moose;
  1         3  
  1         5  
195 1     1   5508 use MooseX::StrictConstructor;
  1         4  
  1         4  
196             extends 'Cfn::Value::TypedValue';
197            
198             has AwsRegion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
199             has Endpoint => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
200             }
201              
202             subtype 'Cfn::Resource::Properties::AWS::AppSync::DataSource::DynamoDBConfig',
203             as 'Cfn::Value';
204              
205             coerce 'Cfn::Resource::Properties::AWS::AppSync::DataSource::DynamoDBConfig',
206             from 'HashRef',
207             via {
208             if (my $f = Cfn::TypeLibrary::try_function($_)) {
209             return $f
210             } else {
211             return Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::DynamoDBConfig->new( %$_ );
212             }
213             };
214              
215             package Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::DynamoDBConfig {
216 1     1   3165 use Moose;
  1         2  
  1         4  
217 1     1   5429 use MooseX::StrictConstructor;
  1         3  
  1         5  
218             extends 'Cfn::Value::TypedValue';
219            
220             has AwsRegion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
221             has DeltaSyncConfig => (isa => 'Cfn::Resource::Properties::AWS::AppSync::DataSource::DeltaSyncConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
222             has TableName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
223             has UseCallerCredentials => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
224             has Versioned => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
225             }
226              
227             package Cfn::Resource::Properties::AWS::AppSync::DataSource {
228 1     1   2827 use Moose;
  1         2  
  1         4  
229 1     1   5476 use MooseX::StrictConstructor;
  1         2  
  1         5  
230             extends 'Cfn::Resource::Properties';
231            
232             has ApiId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
233             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
234             has DynamoDBConfig => (isa => 'Cfn::Resource::Properties::AWS::AppSync::DataSource::DynamoDBConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
235             has ElasticsearchConfig => (isa => 'Cfn::Resource::Properties::AWS::AppSync::DataSource::ElasticsearchConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
236             has HttpConfig => (isa => 'Cfn::Resource::Properties::AWS::AppSync::DataSource::HttpConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
237             has LambdaConfig => (isa => 'Cfn::Resource::Properties::AWS::AppSync::DataSource::LambdaConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
238             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
239             has RelationalDatabaseConfig => (isa => 'Cfn::Resource::Properties::AWS::AppSync::DataSource::RelationalDatabaseConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
240             has ServiceRoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
241             has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
242             }
243              
244             1;
245             ### main pod documentation begin ###
246              
247             =encoding UTF-8
248              
249             =head1 NAME
250              
251             Cfn::Resource::AWS::AppSync::DataSource - Cfn resource for AWS::AppSync::DataSource
252              
253             =head1 DESCRIPTION
254              
255             This module implements a Perl module that represents the CloudFormation object AWS::AppSync::DataSource.
256              
257             See L<Cfn> for more information on how to use it.
258              
259             =head1 AUTHOR
260              
261             Jose Luis Martinez
262             CAPSiDE
263             jlmartinez@capside.com
264              
265             =head1 COPYRIGHT and LICENSE
266              
267             Copyright (c) 2013 by CAPSiDE
268             This code is distributed under the Apache 2 License. The full text of the
269             license can be found in the LICENSE file included with this module.
270              
271             =cut