File Coverage

blib/lib/Cfn/Resource/AWS/Kendra/Index.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::Kendra::Index generated from spec 21.0.0
2 1     1   758 use Moose::Util::TypeConstraints;
  1         3  
  1         11  
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 1     1   1988 use Moose;
  1         2  
  1         9  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::Kendra::Index', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 6 [ 'Arn','Id' ]
15             }
16             sub supported_regions {
17 1     1 0 10889 [ '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 1     1   6779 use Moose;
  1         2  
  1         6  
60 1     1   6048 use MooseX::StrictConstructor;
  1         2  
  1         9  
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 1     1   3635 use Moose;
  1         3  
  1         6  
82 1     1   6380 use MooseX::StrictConstructor;
  1         3  
  1         7  
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 1     1   3127 use Moose;
  1         3  
  1         5  
103 1     1   6005 use MooseX::StrictConstructor;
  1         3  
  1         7  
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 1     1   3204 use Moose;
  1         4  
  1         7  
127 1     1   6012 use MooseX::StrictConstructor;
  1         2  
  1         7  
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             subtype 'ArrayOfCfn::Resource::Properties::AWS::Kendra::Index::DocumentMetadataConfiguration',
137             as 'Cfn::Value',
138             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
139             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
140              
141             coerce 'ArrayOfCfn::Resource::Properties::AWS::Kendra::Index::DocumentMetadataConfiguration',
142             from 'HashRef',
143             via {
144             if (my $f = Cfn::TypeLibrary::try_function($_)) {
145             return $f
146             } else {
147             die 'Only accepts functions';
148             }
149             },
150             from 'ArrayRef',
151             via {
152             Cfn::Value::Array->new(Value => [
153             map {
154             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Kendra::Index::DocumentMetadataConfiguration')->coerce($_)
155             } @$_
156             ]);
157             };
158              
159             subtype 'Cfn::Resource::Properties::AWS::Kendra::Index::DocumentMetadataConfiguration',
160             as 'Cfn::Value';
161              
162             coerce 'Cfn::Resource::Properties::AWS::Kendra::Index::DocumentMetadataConfiguration',
163             from 'HashRef',
164             via {
165             if (my $f = Cfn::TypeLibrary::try_function($_)) {
166             return $f
167             } else {
168             return Cfn::Resource::Properties::Object::AWS::Kendra::Index::DocumentMetadataConfiguration->new( %$_ );
169             }
170             };
171              
172             package Cfn::Resource::Properties::Object::AWS::Kendra::Index::DocumentMetadataConfiguration {
173 1     1   3398 use Moose;
  1         3  
  1         7  
174 1     1   6108 use MooseX::StrictConstructor;
  1         1  
  1         8  
175             extends 'Cfn::Value::TypedValue';
176            
177             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
178             has Relevance => (isa => 'Cfn::Resource::Properties::AWS::Kendra::Index::Relevance', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
179             has Search => (isa => 'Cfn::Resource::Properties::AWS::Kendra::Index::Search', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
180             has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
181             }
182              
183             subtype 'Cfn::Resource::Properties::AWS::Kendra::Index::TagList',
184             as 'Cfn::Value';
185              
186             coerce 'Cfn::Resource::Properties::AWS::Kendra::Index::TagList',
187             from 'HashRef',
188             via {
189             if (my $f = Cfn::TypeLibrary::try_function($_)) {
190             return $f
191             } else {
192             return Cfn::Resource::Properties::Object::AWS::Kendra::Index::TagList->new( %$_ );
193             }
194             };
195              
196             package Cfn::Resource::Properties::Object::AWS::Kendra::Index::TagList {
197 1     1   3230 use Moose;
  1         2  
  1         5  
198 1     1   6136 use MooseX::StrictConstructor;
  1         3  
  1         8  
199             extends 'Cfn::Value::TypedValue';
200            
201             has TagList => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
202             }
203              
204             subtype 'Cfn::Resource::Properties::AWS::Kendra::Index::ServerSideEncryptionConfiguration',
205             as 'Cfn::Value';
206              
207             coerce 'Cfn::Resource::Properties::AWS::Kendra::Index::ServerSideEncryptionConfiguration',
208             from 'HashRef',
209             via {
210             if (my $f = Cfn::TypeLibrary::try_function($_)) {
211             return $f
212             } else {
213             return Cfn::Resource::Properties::Object::AWS::Kendra::Index::ServerSideEncryptionConfiguration->new( %$_ );
214             }
215             };
216              
217             package Cfn::Resource::Properties::Object::AWS::Kendra::Index::ServerSideEncryptionConfiguration {
218 1     1   3504 use Moose;
  1         5  
  1         13  
219 1     1   6053 use MooseX::StrictConstructor;
  1         3  
  1         7  
220             extends 'Cfn::Value::TypedValue';
221            
222             has KmsKeyId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
223             }
224              
225             subtype 'Cfn::Resource::Properties::AWS::Kendra::Index::DocumentMetadataConfigurationList',
226             as 'Cfn::Value';
227              
228             coerce 'Cfn::Resource::Properties::AWS::Kendra::Index::DocumentMetadataConfigurationList',
229             from 'HashRef',
230             via {
231             if (my $f = Cfn::TypeLibrary::try_function($_)) {
232             return $f
233             } else {
234             return Cfn::Resource::Properties::Object::AWS::Kendra::Index::DocumentMetadataConfigurationList->new( %$_ );
235             }
236             };
237              
238             package Cfn::Resource::Properties::Object::AWS::Kendra::Index::DocumentMetadataConfigurationList {
239 1     1   3027 use Moose;
  1         3  
  1         5  
240 1     1   6060 use MooseX::StrictConstructor;
  1         3  
  1         6  
241             extends 'Cfn::Value::TypedValue';
242            
243             has DocumentMetadataConfigurationList => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Kendra::Index::DocumentMetadataConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
244             }
245              
246             subtype 'Cfn::Resource::Properties::AWS::Kendra::Index::CapacityUnitsConfiguration',
247             as 'Cfn::Value';
248              
249             coerce 'Cfn::Resource::Properties::AWS::Kendra::Index::CapacityUnitsConfiguration',
250             from 'HashRef',
251             via {
252             if (my $f = Cfn::TypeLibrary::try_function($_)) {
253             return $f
254             } else {
255             return Cfn::Resource::Properties::Object::AWS::Kendra::Index::CapacityUnitsConfiguration->new( %$_ );
256             }
257             };
258              
259             package Cfn::Resource::Properties::Object::AWS::Kendra::Index::CapacityUnitsConfiguration {
260 1     1   3419 use Moose;
  1         2  
  1         7  
261 1     1   6149 use MooseX::StrictConstructor;
  1         3  
  1         6  
262             extends 'Cfn::Value::TypedValue';
263            
264             has QueryCapacityUnits => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
265             has StorageCapacityUnits => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
266             }
267              
268             package Cfn::Resource::Properties::AWS::Kendra::Index {
269 1     1   3101 use Moose;
  1         3  
  1         7  
270 1     1   6327 use MooseX::StrictConstructor;
  1         4  
  1         9  
271             extends 'Cfn::Resource::Properties';
272            
273             has CapacityUnits => (isa => 'Cfn::Resource::Properties::AWS::Kendra::Index::CapacityUnitsConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
274             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
275             has DocumentMetadataConfigurations => (isa => 'Cfn::Resource::Properties::AWS::Kendra::Index::DocumentMetadataConfigurationList', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
276             has Edition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
277             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
278             has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
279             has ServerSideEncryptionConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Kendra::Index::ServerSideEncryptionConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
280             has Tags => (isa => 'Cfn::Resource::Properties::AWS::Kendra::Index::TagList', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
281             }
282              
283             1;
284             ### main pod documentation begin ###
285              
286             =encoding UTF-8
287              
288             =head1 NAME
289              
290             Cfn::Resource::AWS::Kendra::Index - Cfn resource for AWS::Kendra::Index
291              
292             =head1 DESCRIPTION
293              
294             This module implements a Perl module that represents the CloudFormation object AWS::Kendra::Index.
295              
296             See L<Cfn> for more information on how to use it.
297              
298             =head1 AUTHOR
299              
300             Jose Luis Martinez
301             CAPSiDE
302             jlmartinez@capside.com
303              
304             =head1 COPYRIGHT and LICENSE
305              
306             Copyright (c) 2013 by CAPSiDE
307             This code is distributed under the Apache 2 License. The full text of the
308             license can be found in the LICENSE file included with this module.
309              
310             =cut