Cfn/Resource/AWS/Kendra/Index.pm untested

filter: Statementstmt 0.0% 0 / 264 Branchbran 0.0% 0 / 26 Conditioncond 0.0% 0 / 9 MC/DCmcdc 0.0% 0 / 6 Subroutinesub 0.0% 0 / 26 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 333 CC 1 SCAR 6.9
CC
1
Cov
0%
AttributeList
2.0
supported_regions
2.0
BEGIN
2.0
CRAP 2.0
1 # AWS::Kendra::Index generated from spec 34.0.0
2 use Moose::Util::TypeConstraints;
3  
4 coerce 'Cfn::Resource::Properties::AWS::Kendra::Index',
5 from 'HashRef',
6 via { Cfn::Resource::Properties::AWS::Kendra::Index->new( %$_ ) };
7  
8 package Cfn::Resource::AWS::Kendra::Index {
9 use Moose;
10 extends 'Cfn::Resource';
11 has Properties => (isa => 'Cfn::Resource::Properties::AWS::Kendra::Index', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 [ 'Arn','Id' ]
15 }
16 sub supported_regions {
17 [ 'ap-southeast-2','eu-west-1','us-east-1','us-west-2' ]
18 }
19 }
20  
21  
22 subtype 'ArrayOfCfn::Resource::Properties::AWS::Kendra::Index::ValueImportanceItem',
23 as 'Cfn::Value',
24 where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
25 message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
26  
27 coerce 'ArrayOfCfn::Resource::Properties::AWS::Kendra::Index::ValueImportanceItem',
28 from 'HashRef',
29 via {
30 if (my $f = Cfn::TypeLibrary::try_function($_)) {
31 return $f
32 } else {
33 die 'Only accepts functions';
34 }
35 },
36 from 'ArrayRef',
37 via {
38 Cfn::Value::Array->new(Value => [
39 map {
40 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Kendra::Index::ValueImportanceItem')->coerce($_)
41 } @$_
42 ]);
43 };
44  
45 subtype 'Cfn::Resource::Properties::AWS::Kendra::Index::ValueImportanceItem',
46 as 'Cfn::Value';
47  
48 coerce 'Cfn::Resource::Properties::AWS::Kendra::Index::ValueImportanceItem',
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::Kendra::Index::ValueImportanceItem->new( %$_ );
55 }
56 };
57  
58 package Cfn::Resource::Properties::Object::AWS::Kendra::Index::ValueImportanceItem {
59 use Moose;
60 use MooseX::StrictConstructor;
61 extends 'Cfn::Value::TypedValue';
62
63 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64 has Value => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65 }
66  
67 subtype 'Cfn::Resource::Properties::AWS::Kendra::Index::ValueImportanceItems',
68 as 'Cfn::Value';
69  
70 coerce 'Cfn::Resource::Properties::AWS::Kendra::Index::ValueImportanceItems',
71 from 'HashRef',
72 via {
73 if (my $f = Cfn::TypeLibrary::try_function($_)) {
74 return $f
75 } else {
76 return Cfn::Resource::Properties::Object::AWS::Kendra::Index::ValueImportanceItems->new( %$_ );
77 }
78 };
79  
80 package Cfn::Resource::Properties::Object::AWS::Kendra::Index::ValueImportanceItems {
81 use Moose;
82 use MooseX::StrictConstructor;
83 extends 'Cfn::Value::TypedValue';
84
85 has ValueImportanceItems => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Kendra::Index::ValueImportanceItem', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86 }
87  
88 subtype 'Cfn::Resource::Properties::AWS::Kendra::Index::Search',
89 as 'Cfn::Value';
90  
91 coerce 'Cfn::Resource::Properties::AWS::Kendra::Index::Search',
92 from 'HashRef',
93 via {
94 if (my $f = Cfn::TypeLibrary::try_function($_)) {
95 return $f
96 } else {
97 return Cfn::Resource::Properties::Object::AWS::Kendra::Index::Search->new( %$_ );
98 }
99 };
100  
101 package Cfn::Resource::Properties::Object::AWS::Kendra::Index::Search {
102 use Moose;
103 use MooseX::StrictConstructor;
104 extends 'Cfn::Value::TypedValue';
105
106 has Displayable => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
107 has Facetable => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108 has Searchable => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109 has Sortable => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110 }
111  
112 subtype 'Cfn::Resource::Properties::AWS::Kendra::Index::Relevance',
113 as 'Cfn::Value';
114  
115 coerce 'Cfn::Resource::Properties::AWS::Kendra::Index::Relevance',
116 from 'HashRef',
117 via {
118 if (my $f = Cfn::TypeLibrary::try_function($_)) {
119 return $f
120 } else {
121 return Cfn::Resource::Properties::Object::AWS::Kendra::Index::Relevance->new( %$_ );
122 }
123 };
124  
125 package Cfn::Resource::Properties::Object::AWS::Kendra::Index::Relevance {
126 use Moose;
127 use MooseX::StrictConstructor;
128 extends 'Cfn::Value::TypedValue';
129
130 has Duration => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
131 has Freshness => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
132 has Importance => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
133 has RankOrder => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
134 has ValueImportanceItems => (isa => 'Cfn::Resource::Properties::AWS::Kendra::Index::ValueImportanceItems', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
135 }
136  
137 subtype 'Cfn::Resource::Properties::AWS::Kendra::Index::JwtTokenTypeConfiguration',
138 as 'Cfn::Value';
139  
140 coerce 'Cfn::Resource::Properties::AWS::Kendra::Index::JwtTokenTypeConfiguration',
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::Kendra::Index::JwtTokenTypeConfiguration->new( %$_ );
147 }
148 };
149  
150 package Cfn::Resource::Properties::Object::AWS::Kendra::Index::JwtTokenTypeConfiguration {
151 use Moose;
152 use MooseX::StrictConstructor;
153 extends 'Cfn::Value::TypedValue';
154
155 has ClaimRegex => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
156 has GroupAttributeField => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
157 has Issuer => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
158 has KeyLocation => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
159 has SecretManagerArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
160 has URL => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
161 has UserNameAttributeField => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
162 }
163  
164 subtype 'Cfn::Resource::Properties::AWS::Kendra::Index::JsonTokenTypeConfiguration',
165 as 'Cfn::Value';
166  
167 coerce 'Cfn::Resource::Properties::AWS::Kendra::Index::JsonTokenTypeConfiguration',
168 from 'HashRef',
169 via {
170 if (my $f = Cfn::TypeLibrary::try_function($_)) {
171 return $f
172 } else {
173 return Cfn::Resource::Properties::Object::AWS::Kendra::Index::JsonTokenTypeConfiguration->new( %$_ );
174 }
175 };
176  
177 package Cfn::Resource::Properties::Object::AWS::Kendra::Index::JsonTokenTypeConfiguration {
178 use Moose;
179 use MooseX::StrictConstructor;
180 extends 'Cfn::Value::TypedValue';
181
182 has GroupAttributeField => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
183 has UserNameAttributeField => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
184 }
185 subtype 'ArrayOfCfn::Resource::Properties::AWS::Kendra::Index::UserTokenConfiguration',
186 as 'Cfn::Value',
187 where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
188 message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
189  
190 coerce 'ArrayOfCfn::Resource::Properties::AWS::Kendra::Index::UserTokenConfiguration',
191 from 'HashRef',
192 via {
193 if (my $f = Cfn::TypeLibrary::try_function($_)) {
194 return $f
195 } else {
196 die 'Only accepts functions';
197 }
198 },
199 from 'ArrayRef',
200 via {
201 Cfn::Value::Array->new(Value => [
202 map {
203 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Kendra::Index::UserTokenConfiguration')->coerce($_)
204 } @$_
205 ]);
206 };
207  
208 subtype 'Cfn::Resource::Properties::AWS::Kendra::Index::UserTokenConfiguration',
209 as 'Cfn::Value';
210  
211 coerce 'Cfn::Resource::Properties::AWS::Kendra::Index::UserTokenConfiguration',
212 from 'HashRef',
213 via {
214 if (my $f = Cfn::TypeLibrary::try_function($_)) {
215 return $f
216 } else {
217 return Cfn::Resource::Properties::Object::AWS::Kendra::Index::UserTokenConfiguration->new( %$_ );
218 }
219 };
220  
221 package Cfn::Resource::Properties::Object::AWS::Kendra::Index::UserTokenConfiguration {
222 use Moose;
223 use MooseX::StrictConstructor;
224 extends 'Cfn::Value::TypedValue';
225
226 has JsonTokenTypeConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Kendra::Index::JsonTokenTypeConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
227 has JwtTokenTypeConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Kendra::Index::JwtTokenTypeConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
228 }
229  
230 subtype 'Cfn::Resource::Properties::AWS::Kendra::Index::ServerSideEncryptionConfiguration',
231 as 'Cfn::Value';
232  
233 coerce 'Cfn::Resource::Properties::AWS::Kendra::Index::ServerSideEncryptionConfiguration',
234 from 'HashRef',
235 via {
236 if (my $f = Cfn::TypeLibrary::try_function($_)) {
237 return $f
238 } else {
239 return Cfn::Resource::Properties::Object::AWS::Kendra::Index::ServerSideEncryptionConfiguration->new( %$_ );
240 }
241 };
242  
243 package Cfn::Resource::Properties::Object::AWS::Kendra::Index::ServerSideEncryptionConfiguration {
244 use Moose;
245 use MooseX::StrictConstructor;
246 extends 'Cfn::Value::TypedValue';
247
248 has KmsKeyId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
249 }
250 subtype 'ArrayOfCfn::Resource::Properties::AWS::Kendra::Index::DocumentMetadataConfiguration',
251 as 'Cfn::Value',
252 where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
253 message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
254  
255 coerce 'ArrayOfCfn::Resource::Properties::AWS::Kendra::Index::DocumentMetadataConfiguration',
256 from 'HashRef',
257 via {
258 if (my $f = Cfn::TypeLibrary::try_function($_)) {
259 return $f
260 } else {
261 die 'Only accepts functions';
262 }
263 },
264 from 'ArrayRef',
265 via {
266 Cfn::Value::Array->new(Value => [
267 map {
268 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Kendra::Index::DocumentMetadataConfiguration')->coerce($_)
269 } @$_
270 ]);
271 };
272  
273 subtype 'Cfn::Resource::Properties::AWS::Kendra::Index::DocumentMetadataConfiguration',
274 as 'Cfn::Value';
275  
276 coerce 'Cfn::Resource::Properties::AWS::Kendra::Index::DocumentMetadataConfiguration',
277 from 'HashRef',
278 via {
279 if (my $f = Cfn::TypeLibrary::try_function($_)) {
280 return $f
281 } else {
282 return Cfn::Resource::Properties::Object::AWS::Kendra::Index::DocumentMetadataConfiguration->new( %$_ );
283 }
284 };
285  
286 package Cfn::Resource::Properties::Object::AWS::Kendra::Index::DocumentMetadataConfiguration {
287 use Moose;
288 use MooseX::StrictConstructor;
289 extends 'Cfn::Value::TypedValue';
290
291 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
292 has Relevance => (isa => 'Cfn::Resource::Properties::AWS::Kendra::Index::Relevance', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
293 has Search => (isa => 'Cfn::Resource::Properties::AWS::Kendra::Index::Search', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
294 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
295 }
296  
297 subtype 'Cfn::Resource::Properties::AWS::Kendra::Index::CapacityUnitsConfiguration',
298 as 'Cfn::Value';
299  
300 coerce 'Cfn::Resource::Properties::AWS::Kendra::Index::CapacityUnitsConfiguration',
301 from 'HashRef',
302 via {
303 if (my $f = Cfn::TypeLibrary::try_function($_)) {
304 return $f
305 } else {
306 return Cfn::Resource::Properties::Object::AWS::Kendra::Index::CapacityUnitsConfiguration->new( %$_ );
307 }
308 };
309  
310 package Cfn::Resource::Properties::Object::AWS::Kendra::Index::CapacityUnitsConfiguration {
311 use Moose;
312 use MooseX::StrictConstructor;
313 extends 'Cfn::Value::TypedValue';
314
315 has QueryCapacityUnits => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
316 has StorageCapacityUnits => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
317 }
318  
319 package Cfn::Resource::Properties::AWS::Kendra::Index {
320 use Moose;
321 use MooseX::StrictConstructor;
322 extends 'Cfn::Resource::Properties';
323
324 has CapacityUnits => (isa => 'Cfn::Resource::Properties::AWS::Kendra::Index::CapacityUnitsConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
325 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
326 has DocumentMetadataConfigurations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Kendra::Index::DocumentMetadataConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
327 has Edition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
328 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
329 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
330 has ServerSideEncryptionConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Kendra::Index::ServerSideEncryptionConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
331 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
332 has UserContextPolicy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
333 has UserTokenConfigurations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Kendra::Index::UserTokenConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
334 }
335  
336 1;
337 ### main pod documentation begin ###
338  
339 =encoding UTF-8
340  
341 =head1 NAME
342  
343 Cfn::Resource::AWS::Kendra::Index - Cfn resource for AWS::Kendra::Index
344  
345 =head1 DESCRIPTION
346  
347 This module implements a Perl module that represents the CloudFormation object AWS::Kendra::Index.
348  
349 See L<Cfn> for more information on how to use it.
350  
351 =head1 AUTHOR
352  
353 Jose Luis Martinez
354 CAPSiDE
355 jlmartinez@capside.com
356  
357 =head1 COPYRIGHT and LICENSE
358  
359 Copyright (c) 2013 by CAPSiDE
360 This code is distributed under the Apache 2 License. The full text of the
361 license can be found in the LICENSE file included with this module.
362  
363 =cut