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 11.1.0
2 1     1   790 use Moose::Util::TypeConstraints;
  1         3  
  1         11  
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   2140 use Moose;
  1         6  
  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 1099 [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','cn-north-1','eu-central-1','eu-west-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::AWS::AppSync::DataSource::AwsIamConfigValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::AppSync::DataSource::AwsIamConfigValue {
37 1     1   6993 use Moose;
  1         3  
  1         5  
38 1     1   6509 use MooseX::StrictConstructor;
  1         3  
  1         10  
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::AWS::AppSync::DataSource::RdsHttpEndpointConfigValue->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::AWS::AppSync::DataSource::RdsHttpEndpointConfigValue {
59 1     1   3517 use Moose;
  1         4  
  1         6  
60 1     1   6546 use MooseX::StrictConstructor;
  1         3  
  1         8  
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::AWS::AppSync::DataSource::DeltaSyncConfigValue->new( %$_ );
80             }
81             };
82              
83             package Cfn::Resource::Properties::AWS::AppSync::DataSource::DeltaSyncConfigValue {
84 1     1   3362 use Moose;
  1         3  
  1         5  
85 1     1   6494 use MooseX::StrictConstructor;
  1         5  
  1         9  
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::AWS::AppSync::DataSource::AuthorizationConfigValue->new( %$_ );
103             }
104             };
105              
106             package Cfn::Resource::Properties::AWS::AppSync::DataSource::AuthorizationConfigValue {
107 1     1   3356 use Moose;
  1         3  
  1         5  
108 1     1   6495 use MooseX::StrictConstructor;
  1         4  
  1         5  
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::AWS::AppSync::DataSource::RelationalDatabaseConfigValue->new( %$_ );
125             }
126             };
127              
128             package Cfn::Resource::Properties::AWS::AppSync::DataSource::RelationalDatabaseConfigValue {
129 1     1   3352 use Moose;
  1         3  
  1         6  
130 1     1   6425 use MooseX::StrictConstructor;
  1         2  
  1         5  
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::AWS::AppSync::DataSource::LambdaConfigValue->new( %$_ );
147             }
148             };
149              
150             package Cfn::Resource::Properties::AWS::AppSync::DataSource::LambdaConfigValue {
151 1     1   3311 use Moose;
  1         3  
  1         6  
152 1     1   6465 use MooseX::StrictConstructor;
  1         3  
  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::AWS::AppSync::DataSource::HttpConfigValue->new( %$_ );
168             }
169             };
170              
171             package Cfn::Resource::Properties::AWS::AppSync::DataSource::HttpConfigValue {
172 1     1   3274 use Moose;
  1         6  
  1         5  
173 1     1   6481 use MooseX::StrictConstructor;
  1         3  
  1         6  
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::AWS::AppSync::DataSource::ElasticsearchConfigValue->new( %$_ );
190             }
191             };
192              
193             package Cfn::Resource::Properties::AWS::AppSync::DataSource::ElasticsearchConfigValue {
194 1     1   3386 use Moose;
  1         3  
  1         6  
195 1     1   6486 use MooseX::StrictConstructor;
  1         2  
  1         6  
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::AWS::AppSync::DataSource::DynamoDBConfigValue->new( %$_ );
212             }
213             };
214              
215             package Cfn::Resource::Properties::AWS::AppSync::DataSource::DynamoDBConfigValue {
216 1     1   3678 use Moose;
  1         3  
  1         7  
217 1     1   6441 use MooseX::StrictConstructor;
  1         3  
  1         6  
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   3323 use Moose;
  1         2  
  1         6  
229 1     1   6487 use MooseX::StrictConstructor;
  1         3  
  1         6  
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;