Cfn/Resource/AWS/AppSync/DataSource.pm

filter: Statementstmt 83.8% 145 / 173 Branchbran 0.0% 0 / 18 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 70.5% 24 / 34 Podpod 0.0% 0 / 2 totaltotal 74.4% 169 / 227 CC 10 SCAR 11.3
CC
10
Cov
76%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.1
« Cfn/Resource/AWS/AppMesh/GatewayRoute.pm ↑ Summary Cfn/Resource/AWS/NetworkFirewall/LoggingConfiguration.pm »
1 # AWS::AppSync::DataSource generated from spec 20.1.0
2 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::AppSync::DataSource',
5 from 'HashRef',
6 0 ▶ via { Cfn::Resource::Properties::AWS::AppSync::DataSource->new( %$_ ) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
7  
8 1 package Cfn::Resource::AWS::AppSync::DataSource {
9 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 extends 'Cfn::Resource';
11 1 has Properties => (isa => 'Cfn::Resource::Properties::AWS::AppSync::DataSource', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ 'DataSourceArn','Name' ]
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','cn-north-1','cn-northwest-1','eu-central-1','eu-west-1','me-south-1','us-east-1','us-east-2','us-west-2' ]
Subroutine supported_regions: called CC=1 SCAR=0.0
Pod undocumented
18 }
19 }
20  
21  
22  
23 1 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 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::AppSync::DataSource::AwsIamConfig->new( %$_ );
33 }
34 1 };
35  
36 1 package Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::AwsIamConfig {
37 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 1 extends 'Cfn::Value::TypedValue';
40
41 1 has SigningRegion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 1 has SigningServiceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 }
44  
45 1 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 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
52 0 return $f
53 } else {
54 0 return Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::RdsHttpEndpointConfig->new( %$_ );
55 }
56 1 };
57  
58 1 package Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::RdsHttpEndpointConfig {
59 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
60 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 1 extends 'Cfn::Value::TypedValue';
62
63 1 has AwsRegion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64 1 has AwsSecretStoreArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65 1 has DatabaseName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66 1 has DbClusterIdentifier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67 1 has Schema => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
68 }
69  
70 1 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 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
77 0 return $f
78 } else {
79 0 return Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::DeltaSyncConfig->new( %$_ );
80 }
81 1 };
82  
83 1 package Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::DeltaSyncConfig {
84 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
85 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
86 1 extends 'Cfn::Value::TypedValue';
87
88 1 has BaseTableTTL => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89 1 has DeltaSyncTableName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
90 1 has DeltaSyncTableTTL => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
91 }
92  
93 1 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 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
100 0 return $f
101 } else {
102 0 return Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::AuthorizationConfig->new( %$_ );
103 }
104 1 };
105  
106 1 package Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::AuthorizationConfig {
107 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
108 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
109 1 extends 'Cfn::Value::TypedValue';
110
111 1 has AuthorizationType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
112 1 has AwsIamConfig => (isa => 'Cfn::Resource::Properties::AWS::AppSync::DataSource::AwsIamConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
113 }
114  
115 1 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 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
122 0 return $f
123 } else {
124 0 return Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::RelationalDatabaseConfig->new( %$_ );
125 }
126 1 };
127  
128 1 package Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::RelationalDatabaseConfig {
129 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
130 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
131 1 extends 'Cfn::Value::TypedValue';
132
133 1 has RdsHttpEndpointConfig => (isa => 'Cfn::Resource::Properties::AWS::AppSync::DataSource::RdsHttpEndpointConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
134 1 has RelationalDatabaseSourceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
135 }
136  
137 1 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 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
144 0 return $f
145 } else {
146 0 return Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::LambdaConfig->new( %$_ );
147 }
148 1 };
149  
150 1 package Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::LambdaConfig {
151 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
152 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
153 1 extends 'Cfn::Value::TypedValue';
154
155 1 has LambdaFunctionArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
156 }
157  
158 1 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 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
165 0 return $f
166 } else {
167 0 return Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::HttpConfig->new( %$_ );
168 }
169 1 };
170  
171 1 package Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::HttpConfig {
172 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
173 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
174 1 extends 'Cfn::Value::TypedValue';
175
176 1 has AuthorizationConfig => (isa => 'Cfn::Resource::Properties::AWS::AppSync::DataSource::AuthorizationConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
177 1 has Endpoint => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
178 }
179  
180 1 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 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
187 0 return $f
188 } else {
189 0 return Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::ElasticsearchConfig->new( %$_ );
190 }
191 1 };
192  
193 1 package Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::ElasticsearchConfig {
194 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
195 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
196 1 extends 'Cfn::Value::TypedValue';
197
198 1 has AwsRegion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
199 1 has Endpoint => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
200 }
201  
202 1 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 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
209 0 return $f
210 } else {
211 0 return Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::DynamoDBConfig->new( %$_ );
212 }
213 1 };
214  
215 1 package Cfn::Resource::Properties::Object::AWS::AppSync::DataSource::DynamoDBConfig {
216 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
217 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
218 1 extends 'Cfn::Value::TypedValue';
219
220 1 has AwsRegion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
221 1 has DeltaSyncConfig => (isa => 'Cfn::Resource::Properties::AWS::AppSync::DataSource::DeltaSyncConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
222 1 has TableName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
223 1 has UseCallerCredentials => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
224 1 has Versioned => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
225 }
226  
227 1 package Cfn::Resource::Properties::AWS::AppSync::DataSource {
228 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
229 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
230 1 extends 'Cfn::Resource::Properties';
231
232 1 has ApiId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
233 1 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
234 1 has DynamoDBConfig => (isa => 'Cfn::Resource::Properties::AWS::AppSync::DataSource::DynamoDBConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
235 1 has ElasticsearchConfig => (isa => 'Cfn::Resource::Properties::AWS::AppSync::DataSource::ElasticsearchConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
236 1 has HttpConfig => (isa => 'Cfn::Resource::Properties::AWS::AppSync::DataSource::HttpConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
237 1 has LambdaConfig => (isa => 'Cfn::Resource::Properties::AWS::AppSync::DataSource::LambdaConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
238 1 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
239 1 has RelationalDatabaseConfig => (isa => 'Cfn::Resource::Properties::AWS::AppSync::DataSource::RelationalDatabaseConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
240 1 has ServiceRoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
241 1 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
242 }
243  
244 1 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
« Cfn/Resource/AWS/AppMesh/GatewayRoute.pm ↑ Summary Cfn/Resource/AWS/NetworkFirewall/LoggingConfiguration.pm »