/
types.go
1746 lines (1378 loc) · 60.7 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
"time"
)
// Access Control List files for the documents in a data source. For the format of
// the file, see Access control for S3 data sources
// (https://docs.aws.amazon.com/kendra/latest/dg/s3-acl.html).
type AccessControlListConfiguration struct {
// Path to the AWS S3 bucket that contains the ACL files.
KeyPath *string
}
// Provides information about the column that should be used for filtering the
// query response by groups.
type AclConfiguration struct {
// A list of groups, separated by semi-colons, that filters a query response based
// on user context. The document is only returned to users that are in one of the
// groups specified in the UserContext field of the Query operation.
//
// This member is required.
AllowedGroupsColumnName *string
}
// An attribute returned from an index query.
type AdditionalResultAttribute struct {
// The key that identifies the attribute.
//
// This member is required.
Key *string
// An object that contains the attribute value.
//
// This member is required.
Value *AdditionalResultAttributeValue
// The data type of the Value property.
//
// This member is required.
ValueType AdditionalResultAttributeValueType
}
// An attribute returned with a document from a search.
type AdditionalResultAttributeValue struct {
// The text associated with the attribute and information about the highlight to
// apply to the text.
TextWithHighlightsValue *TextWithHighlights
}
// Provides filtering the query results based on document attributes. When you use
// the AndAllFilters or OrAllFilters, filters you can use 2 layers under the first
// attribute filter. For example, you can use:
//
// If you use more than 2 layers, you
// receive a ValidationException exception with the message "AttributeFilter cannot
// have a depth of more than 2."
type AttributeFilter struct {
// Performs a logical AND operation on all supplied filters.
AndAllFilters []AttributeFilter
// Returns true when a document contains all of the specified document attributes.
// This filter is only applicable to StringListValue metadata.
ContainsAll *DocumentAttribute
// Returns true when a document contains any of the specified document attributes.
// This filter is only applicable to StringListValue metadata.
ContainsAny *DocumentAttribute
// Performs an equals operation on two document attributes.
EqualsTo *DocumentAttribute
// Performs a greater than operation on two document attributes. Use with a
// document attribute of type Integer or Long.
GreaterThan *DocumentAttribute
// Performs a greater or equals than operation on two document attributes. Use with
// a document attribute of type Integer or Long.
GreaterThanOrEquals *DocumentAttribute
// Performs a less than operation on two document attributes. Use with a document
// attribute of type Integer or Long.
LessThan *DocumentAttribute
// Performs a less than or equals operation on two document attributes. Use with a
// document attribute of type Integer or Long.
LessThanOrEquals *DocumentAttribute
// Performs a logical NOT operation on all supplied filters.
NotFilter *AttributeFilter
// Performs a logical OR operation on all supplied filters.
OrAllFilters []AttributeFilter
}
// Provides information about documents that could not be removed from an index by
// the BatchDeleteDocument operation.
type BatchDeleteDocumentResponseFailedDocument struct {
// The error code for why the document couldn't be removed from the index.
ErrorCode ErrorCode
// An explanation for why the document couldn't be removed from the index.
ErrorMessage *string
// The identifier of the document that couldn't be removed from the index.
Id *string
}
// Provides information about a document that could not be indexed.
type BatchPutDocumentResponseFailedDocument struct {
// The type of error that caused the document to fail to be indexed.
ErrorCode ErrorCode
// A description of the reason why the document could not be indexed.
ErrorMessage *string
// The unique identifier of the document.
Id *string
}
// Specifies capacity units configured for your index. You can add and remove
// capacity units to tune an index to your requirements.
type CapacityUnitsConfiguration struct {
// The amount of extra query capacity for an index. Each capacity unit provides 0.5
// queries per second and 40,000 queries per day.
//
// This member is required.
QueryCapacityUnits *int32
// The amount of extra storage capacity for an index. Each capacity unit provides
// 150 Gb of storage space or 500,000 documents, whichever is reached first.
//
// This member is required.
StorageCapacityUnits *int32
}
// Gathers information about when a particular result was clicked by a user. Your
// application uses the SubmitFeedback operation to provide click information.
type ClickFeedback struct {
// The Unix timestamp of the date and time that the result was clicked.
//
// This member is required.
ClickTime *time.Time
// The unique identifier of the search result that was clicked.
//
// This member is required.
ResultId *string
}
// Provides information about how Amazon Kendra should use the columns of a
// database in an index.
type ColumnConfiguration struct {
// One to five columns that indicate when a document in the database has changed.
//
// This member is required.
ChangeDetectingColumns []string
// The column that contains the contents of the document.
//
// This member is required.
DocumentDataColumnName *string
// The column that provides the document's unique identifier.
//
// This member is required.
DocumentIdColumnName *string
// The column that contains the title of the document.
DocumentTitleColumnName *string
// An array of objects that map database column names to the corresponding fields
// in an index. You must first create the fields in the index using the UpdateIndex
// operation.
FieldMappings []DataSourceToIndexFieldMapping
}
// Specifies the attachment settings for the Confluence data source. Attachment
// settings are optional, if you don't specify settings attachments, Amazon Kendra
// won't index them.
type ConfluenceAttachmentConfiguration struct {
// Defines how attachment metadata fields should be mapped to index fields. Before
// you can map a field, you must first create an index field with a matching type
// using the console or the UpdateIndex operation. If you specify the
// AttachentFieldMappings parameter, you must specify at least one field mapping.
AttachmentFieldMappings []ConfluenceAttachmentToIndexFieldMapping
// Indicates whether Amazon Kendra indexes attachments to the pages and blogs in
// the Confluence data source.
CrawlAttachments bool
}
// Defines the mapping between a field in the Confluence data source to a Amazon
// Kendra index field. You must first create the index field using the operation.
type ConfluenceAttachmentToIndexFieldMapping struct {
// The name of the field in the data source. You must first create the index field
// using the operation.
DataSourceFieldName ConfluenceAttachmentFieldName
// The format for date fields in the data source. If the field specified in
// DataSourceFieldName is a date field you must specify the date format. If the
// field is not a date field, an exception is thrown.
DateFieldFormat *string
// The name of the index field to map to the Confluence data source field. The
// index field type must match the Confluence field type.
IndexFieldName *string
}
// Specifies the blog settings for the Confluence data source. Blogs are always
// indexed unless filtered from the index by the ExclusionPatterns or
// InclusionPatterns fields in the data type.
type ConfluenceBlogConfiguration struct {
// Defines how blog metadata fields should be mapped to index fields. Before you
// can map a field, you must first create an index field with a matching type using
// the console or the UpdateIndex operation. If you specify the BlogFieldMappings
// parameter, you must specify at least one field mapping.
BlogFieldMappings []ConfluenceBlogToIndexFieldMapping
}
// Defines the mapping between a blog field in the Confluence data source to a
// Amazon Kendra index field. You must first create the index field using the
// operation.
type ConfluenceBlogToIndexFieldMapping struct {
// The name of the field in the data source.
DataSourceFieldName ConfluenceBlogFieldName
// The format for date fields in the data source. If the field specified in
// DataSourceFieldName is a date field you must specify the date format. If the
// field is not a date field, an exception is thrown.
DateFieldFormat *string
// The name of the index field to map to the Confluence data source field. The
// index field type must match the Confluence field type.
IndexFieldName *string
}
// Provides configuration information for data sources that connect to Confluence.
type ConfluenceConfiguration struct {
// The Amazon Resource Name (ARN) of an AWS Secrets Manager secret that contains
// the key/value pairs required to connect to your Confluence server. The secret
// must contain a JSON structure with the following keys:
//
// * username - The user
// name or email address of a user with administrative privileges for the
// Confluence server.
//
// * password - The password associated with the user logging
// in to the Confluence server.
//
// This member is required.
SecretArn *string
// The URL of your Confluence instance. Use the full URL of the server. For
// example, https://server.example.com:port/. You can also use an IP address, for
// example, https://192.168.1.113/.
//
// This member is required.
ServerUrl *string
// Specifies the version of the Confluence installation that you are connecting to.
//
// This member is required.
Version ConfluenceVersion
// Specifies configuration information for indexing attachments to Confluence blogs
// and pages.
AttachmentConfiguration *ConfluenceAttachmentConfiguration
// Specifies configuration information for indexing Confluence blogs.
BlogConfiguration *ConfluenceBlogConfiguration
// A list of regular expression patterns that apply to a URL on the Confluence
// server. An exclusion pattern can apply to a blog post, a page, a space, or an
// attachment. Items that match the pattern are excluded from the index. Items that
// don't match the pattern are included in the index. If a item matches both an
// exclusion pattern and an inclusion pattern, the item isn't included in the
// index.
ExclusionPatterns []string
// A list of regular expression patterns that apply to a URL on the Confluence
// server. An inclusion pattern can apply to a blog post, a page, a space, or an
// attachment. Items that match the patterns are included in the index. Items that
// don't match the pattern are excluded from the index. If an item matches both an
// inclusion pattern and an exclusion pattern, the item isn't included in the
// index.
InclusionPatterns []string
// Specifies configuration information for indexing Confluence pages.
PageConfiguration *ConfluencePageConfiguration
// Specifies configuration information for indexing Confluence spaces.
SpaceConfiguration *ConfluenceSpaceConfiguration
// Specifies the information for connecting to an Amazon VPC.
VpcConfiguration *DataSourceVpcConfiguration
}
// Specifies the page settings for the Confluence data source.
type ConfluencePageConfiguration struct {
// Defines how page metadata fields should be mapped to index fields. Before you
// can map a field, you must first create an index field with a matching type using
// the console or the UpdateIndex operation. If you specify the PageFieldMappings
// parameter, you must specify at least one field mapping.
PageFieldMappings []ConfluencePageToIndexFieldMapping
}
// Defines the mapping between a field in the Confluence data source to a Amazon
// Kendra index field. You must first create the index field using the operation.
type ConfluencePageToIndexFieldMapping struct {
// The name of the field in the data source.
DataSourceFieldName ConfluencePageFieldName
// The format for date fields in the data source. If the field specified in
// DataSourceFieldName is a date field you must specify the date format. If the
// field is not a date field, an exception is thrown.
DateFieldFormat *string
// The name of the index field to map to the Confluence data source field. The
// index field type must match the Confluence field type.
IndexFieldName *string
}
// Specifies the configuration for indexing Confluence spaces.
type ConfluenceSpaceConfiguration struct {
// Specifies whether Amazon Kendra should index archived spaces.
CrawlArchivedSpaces bool
// Specifies whether Amazon Kendra should index personal spaces. Users can add
// restrictions to items in personal spaces. If personal spaces are indexed,
// queries without user context information may return restricted items from a
// personal space in their results. For more information, see Filtering on user
// context (https://docs.aws.amazon.com/kendra/latest/dg/user-context-filter.html).
CrawlPersonalSpaces bool
// A list of space keys of Confluence spaces. If you include a key, the blogs,
// documents, and attachments in the space are not indexed. If a space is in both
// the ExcludeSpaces and the IncludeSpaces list, the space is excluded.
ExcludeSpaces []string
// A list of space keys for Confluence spaces. If you include a key, the blogs,
// documents, and attachments in the space are indexed. Spaces that aren't in the
// list aren't indexed. A space in the list must exist. Otherwise, Amazon Kendra
// logs an error when the data source is synchronized. If a space is in both the
// IncludeSpaces and the ExcludeSpaces list, the space is excluded.
IncludeSpaces []string
// Defines how space metadata fields should be mapped to index fields. Before you
// can map a field, you must first create an index field with a matching type using
// the console or the UpdateIndex operation. If you specify the SpaceFieldMappings
// parameter, you must specify at least one field mapping.
SpaceFieldMappings []ConfluenceSpaceToIndexFieldMapping
}
// Defines the mapping between a field in the Confluence data source to a Amazon
// Kendra index field. You must first create the index field using the operation.
type ConfluenceSpaceToIndexFieldMapping struct {
// The name of the field in the data source.
DataSourceFieldName ConfluenceSpaceFieldName
// The format for date fields in the data source. If the field specified in
// DataSourceFieldName is a date field you must specify the date format. If the
// field is not a date field, an exception is thrown.
DateFieldFormat *string
// The name of the index field to map to the Confluence data source field. The
// index field type must match the Confluence field type.
IndexFieldName *string
}
// Provides the information necessary to connect to a database.
type ConnectionConfiguration struct {
// The name of the host for the database. Can be either a string
// (host.subdomain.domain.tld) or an IPv4 or IPv6 address.
//
// This member is required.
DatabaseHost *string
// The name of the database containing the document data.
//
// This member is required.
DatabaseName *string
// The port that the database uses for connections.
//
// This member is required.
DatabasePort *int32
// The Amazon Resource Name (ARN) of credentials stored in AWS Secrets Manager. The
// credentials should be a user/password pair. For more information, see Using a
// Database Data Source
// (https://docs.aws.amazon.com/kendra/latest/dg/data-source-database.html). For
// more information about AWS Secrets Manager, see What Is AWS Secrets Manager
// (https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html) in the
// AWS Secrets Manager user guide.
//
// This member is required.
SecretArn *string
// The name of the table that contains the document data.
//
// This member is required.
TableName *string
}
// Provides the information necessary to connect a database to an index.
type DatabaseConfiguration struct {
// Information about where the index should get the document information from the
// database.
//
// This member is required.
ColumnConfiguration *ColumnConfiguration
// The information necessary to connect to a database.
//
// This member is required.
ConnectionConfiguration *ConnectionConfiguration
// The type of database engine that runs the database.
//
// This member is required.
DatabaseEngineType DatabaseEngineType
// Information about the database column that provides information for user context
// filtering.
AclConfiguration *AclConfiguration
// Provides information about how Amazon Kendra uses quote marks around SQL
// identifiers when querying a database data source.
SqlConfiguration *SqlConfiguration
// Provides information for connecting to an Amazon VPC.
VpcConfiguration *DataSourceVpcConfiguration
}
// Configuration information for a Amazon Kendra data source.
type DataSourceConfiguration struct {
// Provides configuration information for connecting to a Confluence data source.
ConfluenceConfiguration *ConfluenceConfiguration
// Provides information necessary to create a data source connector for a database.
DatabaseConfiguration *DatabaseConfiguration
// Provides configuration for data sources that connect to Google Drive.
GoogleDriveConfiguration *GoogleDriveConfiguration
// Provides configuration for data sources that connect to Microsoft OneDrive.
OneDriveConfiguration *OneDriveConfiguration
// Provides information to create a data source connector for a document repository
// in an Amazon S3 bucket.
S3Configuration *S3DataSourceConfiguration
// Provides configuration information for data sources that connect to a Salesforce
// site.
SalesforceConfiguration *SalesforceConfiguration
// Provides configuration for data sources that connect to ServiceNow instances.
ServiceNowConfiguration *ServiceNowConfiguration
// Provides information necessary to create a data source connector for a Microsoft
// SharePoint site.
SharePointConfiguration *SharePointConfiguration
}
// Summary information for a Amazon Kendra data source. Returned in a call to .
type DataSourceSummary struct {
// The UNIX datetime that the data source was created.
CreatedAt *time.Time
// The unique identifier for the data source.
Id *string
// The name of the data source.
Name *string
// The status of the data source. When the status is ATIVE the data source is ready
// to use.
Status DataSourceStatus
// The type of the data source.
Type DataSourceType
// The UNIX datetime that the data source was lasted updated.
UpdatedAt *time.Time
}
// Provides information about a synchronization job.
type DataSourceSyncJob struct {
// If the reason that the synchronization failed is due to an error with the
// underlying data source, this field contains a code that identifies the error.
DataSourceErrorCode *string
// The UNIX datetime that the synchronization job was completed.
EndTime *time.Time
// If the Status field is set to FAILED, the ErrorCode field contains a the reason
// that the synchronization failed.
ErrorCode ErrorCode
// If the Status field is set to ERROR, the ErrorMessage field contains a
// description of the error that caused the synchronization to fail.
ErrorMessage *string
// A unique identifier for the synchronization job.
ExecutionId *string
// Maps a batch delete document request to a specific data source sync job. This is
// optional and should only be supplied when documents are deleted by a data source
// connector.
Metrics *DataSourceSyncJobMetrics
// The UNIX datetime that the synchronization job was started.
StartTime *time.Time
// The execution status of the synchronization job. When the Status field is set to
// SUCCEEDED, the synchronization job is done. If the status code is set to FAILED,
// the ErrorCode and ErrorMessage fields give you the reason for the failure.
Status DataSourceSyncJobStatus
}
// Maps a batch delete document request to a specific data source sync job. This is
// optional and should only be supplied when documents are deleted by a data source
// connector.
type DataSourceSyncJobMetrics struct {
// The number of documents added from the data source up to now in the data source
// sync.
DocumentsAdded *string
// The number of documents deleted from the data source up to now in the data
// source sync run.
DocumentsDeleted *string
// The number of documents that failed to sync from the data source up to now in
// the data source sync run.
DocumentsFailed *string
// The number of documents modified in the data source up to now in the data source
// sync run.
DocumentsModified *string
// The current number of documents crawled by the current sync job in the data
// source.
DocumentsScanned *string
}
// Maps a particular data source sync job to a particular data source.
type DataSourceSyncJobMetricTarget struct {
// The ID of the data source that is running the sync job.
//
// This member is required.
DataSourceId *string
// The ID of the sync job that is running on the data source.
//
// This member is required.
DataSourceSyncJobId *string
}
// Maps a column or attribute in the data source to an index field. You must first
// create the fields in the index using the UpdateIndex operation.
type DataSourceToIndexFieldMapping struct {
// The name of the column or attribute in the data source.
//
// This member is required.
DataSourceFieldName *string
// The name of the field in the index.
//
// This member is required.
IndexFieldName *string
// The type of data stored in the column or attribute.
DateFieldFormat *string
}
// Provides information for connecting to an Amazon VPC.
type DataSourceVpcConfiguration struct {
// A list of identifiers of security groups within your Amazon VPC. The security
// groups should enable Amazon Kendra to connect to the data source.
//
// This member is required.
SecurityGroupIds []string
// A list of identifiers for subnets within your Amazon VPC. The subnets should be
// able to connect to each other in the VPC, and they should have outgoing access
// to the Internet through a NAT device.
//
// This member is required.
SubnetIds []string
}
// A document in an index.
type Document struct {
// A unique identifier of the document in the index.
//
// This member is required.
Id *string
// Information to use for user context filtering.
AccessControlList []Principal
// Custom attributes to apply to the document. Use the custom attributes to provide
// additional information for searching, to provide facets for refining searches,
// and to provide additional information in the query response.
Attributes []DocumentAttribute
// The contents of the document. Documents passed to the Blob parameter must be
// base64 encoded. Your code might not need to encode the document file bytes if
// you're using an AWS SDK to call Amazon Kendra operations. If you are calling the
// Amazon Kendra endpoint directly using REST, you must base64 encode the contents
// before sending.
Blob []byte
// The file type of the document in the Blob field.
ContentType ContentType
// Information required to find a specific file in an Amazon S3 bucket.
S3Path *S3Path
// The title of the document.
Title *string
}
// A custom attribute value assigned to a document.
type DocumentAttribute struct {
// The identifier for the attribute.
//
// This member is required.
Key *string
// The value of the attribute.
//
// This member is required.
Value DocumentAttributeValue
}
// The value of a custom document attribute. You can only provide one value for a
// custom attribute.
//
// The following types satisfy this interface:
// DocumentAttributeValueMemberStringValue
// DocumentAttributeValueMemberStringListValue
// DocumentAttributeValueMemberLongValue
// DocumentAttributeValueMemberDateValue
type DocumentAttributeValue interface {
isDocumentAttributeValue()
}
// A string, such as "department".
type DocumentAttributeValueMemberStringValue struct {
Value string
}
func (*DocumentAttributeValueMemberStringValue) isDocumentAttributeValue() {}
// A list of strings.
type DocumentAttributeValueMemberStringListValue struct {
Value []string
}
func (*DocumentAttributeValueMemberStringListValue) isDocumentAttributeValue() {}
// A long integer value.
type DocumentAttributeValueMemberLongValue struct {
Value int64
}
func (*DocumentAttributeValueMemberLongValue) isDocumentAttributeValue() {}
// A date expressed as an ISO 8601 string.
type DocumentAttributeValueMemberDateValue struct {
Value time.Time
}
func (*DocumentAttributeValueMemberDateValue) isDocumentAttributeValue() {}
// Provides the count of documents that match a particular attribute when doing a
// faceted search.
type DocumentAttributeValueCountPair struct {
// The number of documents in the response that have the attribute value for the
// key.
Count *int32
// The value of the attribute. For example, "HR."
DocumentAttributeValue DocumentAttributeValue
}
// Specifies the properties of a custom index field.
type DocumentMetadataConfiguration struct {
// The name of the index field.
//
// This member is required.
Name *string
// The data type of the index field.
//
// This member is required.
Type DocumentAttributeValueType
// Provides manual tuning parameters to determine how the field affects the search
// results.
Relevance *Relevance
// Provides information about how the field is used during a search.
Search *Search
}
// Document metadata files that contain information such as the document access
// control information, source URI, document author, and custom attributes. Each
// metadata file contains metadata about a single document.
type DocumentsMetadataConfiguration struct {
// A prefix used to filter metadata configuration files in the AWS S3 bucket. The
// S3 bucket might contain multiple metadata files. Use S3Prefix to include only
// the desired metadata files.
S3Prefix *string
}
// Information about a document attribute
type Facet struct {
// The unique key for the document attribute.
DocumentAttributeKey *string
}
// The facet values for the documents in the response.
type FacetResult struct {
// The key for the facet values. This is the same as the DocumentAttributeKey
// provided in the query.
DocumentAttributeKey *string
// An array of key/value pairs, where the key is the value of the attribute and the
// count is the number of documents that share the key value.
DocumentAttributeValueCountPairs []DocumentAttributeValueCountPair
// The data type of the facet value. This is the same as the type defined for the
// index field when it was created.
DocumentAttributeValueType DocumentAttributeValueType
}
// Provides statistical information about the FAQ questions and answers contained
// in an index.
type FaqStatistics struct {
// The total number of FAQ questions and answers contained in the index.
//
// This member is required.
IndexedQuestionAnswersCount int32
}
// Provides information about a frequently asked questions and answer contained in
// an index.
type FaqSummary struct {
// The UNIX datetime that the FAQ was added to the index.
CreatedAt *time.Time
// The file type used to create the FAQ.
FileFormat FaqFileFormat
// The unique identifier of the FAQ.
Id *string
// The name that you assigned the FAQ when you created or updated the FAQ.
Name *string
// The current status of the FAQ. When the status is ACTIVE the FAQ is ready for
// use.
Status FaqStatus
// The UNIX datetime that the FAQ was last updated.
UpdatedAt *time.Time
}
// Provides configuration information for data sources that connect to Google
// Drive.
type GoogleDriveConfiguration struct {
// The Amazon Resource Name (ARN) of a AWS Secrets Manager secret that contains the
// credentials required to connect to Google Drive. For more information, see Using
// a Google Workspace Drive data source
// (https://docs.aws.amazon.com/kendra/latest/dg/data-source-google-drive.html).
//
// This member is required.
SecretArn *string
// A list of MIME types to exclude from the index. All documents matching the
// specified MIME type are excluded. For a list of MIME types, see Using a Google
// Workspace Drive data source
// (https://docs.aws.amazon.com/kendra/latest/dg/data-source-google-drive.html).
ExcludeMimeTypes []string
// A list of identifiers or shared drives to exclude from the index. All files and
// folders stored on the shared drive are excluded.
ExcludeSharedDrives []string
// A list of email addresses of the users. Documents owned by these users are
// excluded from the index. Documents shared with excluded users are indexed unless
// they are excluded in another way.
ExcludeUserAccounts []string
// A list of regular expression patterns that apply to the path on Google Drive.
// Items that match the pattern are excluded from the index from both shared drives
// and users' My Drives. Items that don't match the pattern are included in the
// index. If an item matches both an exclusion pattern and an inclusion pattern, it
// is excluded from the index.
ExclusionPatterns []string
// Defines mapping between a field in the Google Drive and a Amazon Kendra index
// field. If you are using the console, you can define index fields when creating
// the mapping. If you are using the API, you must first create the field using the
// UpdateIndex operation.
FieldMappings []DataSourceToIndexFieldMapping
// A list of regular expression patterns that apply to path on Google Drive. Items
// that match the pattern are included in the index from both shared drives and
// users' My Drives. Items that don't match the pattern are excluded from the
// index. If an item matches both an inclusion pattern and an exclusion pattern, it
// is excluded from the index.
InclusionPatterns []string
}
// Provides information that you can use to highlight a search result so that your
// users can quickly identify terms in the response.
type Highlight struct {
// The zero-based location in the response string where the highlight starts.
//
// This member is required.
BeginOffset *int32
// The zero-based location in the response string where the highlight ends.
//
// This member is required.
EndOffset *int32
// Indicates whether the response is the best response. True if this is the best
// response; otherwise, false.
TopAnswer bool
// The highlight type.
Type HighlightType
}
// A summary of information about an index.
type IndexConfigurationSummary struct {
// The Unix timestamp when the index was created.
//
// This member is required.
CreatedAt *time.Time
// The current status of the index. When the status is ACTIVE, the index is ready
// to search.
//
// This member is required.
Status IndexStatus
// The Unix timestamp when the index was last updated by the UpdateIndex operation.
//
// This member is required.
UpdatedAt *time.Time
// Indicates whether the index is a enterprise edition index or a developer edition
// index.
Edition IndexEdition
// A unique identifier for the index. Use this to identify the index when you are
// using operations such as Query, DescribeIndex, UpdateIndex, and DeleteIndex.
Id *string
// The name of the index.
Name *string
}
// Provides information about the number of documents and the number of questions
// and answers in an index.
type IndexStatistics struct {
// The number of question and answer topics in the index.
//
// This member is required.
FaqStatistics *FaqStatistics
// The number of text documents indexed.
//
// This member is required.
TextDocumentStatistics *TextDocumentStatistics
}
// Configuration information for the JSON token type.
type JsonTokenTypeConfiguration struct {
// The group attribute field.
//
// This member is required.
GroupAttributeField *string
// The user name attribute field.
//
// This member is required.
UserNameAttributeField *string
}
// Configuration information for the JWT token type.
type JwtTokenTypeConfiguration struct {
// The location of the key.
//
// This member is required.
KeyLocation KeyLocation
// The regular expression that identifies the claim.
ClaimRegex *string
// The group attribute field.
GroupAttributeField *string
// The issuer of the token.
Issuer *string
// The Amazon Resource Name (arn) of the secret.
SecretManagerArn *string
// The signing key URL.
URL *string
// The user name attribute field.
UserNameAttributeField *string
}
// Provides configuration information for data sources that connect to OneDrive.
type OneDriveConfiguration struct {
// A list of user accounts whose documents should be indexed.
//
// This member is required.
OneDriveUsers *OneDriveUsers
// The Amazon Resource Name (ARN) of an AWS Secrets Manager secret that contains
// the user name and password to connect to OneDrive. The user namd should be the
// application ID for the OneDrive application, and the password is the application
// key for the OneDrive application.
//
// This member is required.
SecretArn *string
// The Azure Active Directory domain of the organization.
//
// This member is required.
TenantDomain *string
// A Boolean value that specifies whether local groups are disabled (True) or
// enabled (False).
DisableLocalGroups bool
// List of regular expressions applied to documents. Items that match the exclusion
// pattern are not indexed. If you provide both an inclusion pattern and an
// exclusion pattern, any item that matches the exclusion pattern isn't indexed.
// The exclusion pattern is applied to the file name.
ExclusionPatterns []string
// A list of DataSourceToIndexFieldMapping objects that map Microsoft OneDrive
// fields to custom fields in the Amazon Kendra index. You must first create the