/
types.go
2619 lines (2041 loc) · 90.9 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 (
smithydocument "github.com/aws/smithy-go/document"
"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 Amazon Web Services S3 bucket that contains the ACL files.
KeyPath *string
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// 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." If you use more than 10 attribute filters in a
// given list for AndAllFilters or OrAllFilters, you receive a ValidationException
// with the message "AttributeFilter cannot have a length of more than 10".
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 Date or Long.
GreaterThan *DocumentAttribute
// Performs a greater or equals than operation on two document attributes. Use with
// a document attribute of type Date or Long.
GreaterThanOrEquals *DocumentAttribute
// Performs a less than operation on two document attributes. Use with a document
// attribute of type Date or Long.
LessThan *DocumentAttribute
// Performs a less than or equals operation on two document attributes. Use with a
// document attribute of type Date 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
noSmithyDocumentSerde
}
// Provides the configuration information to connect to websites that require user
// authentication.
type AuthenticationConfiguration struct {
// The list of configuration information that's required to connect to and crawl a
// website host using basic authentication credentials. The list includes the name
// and port number of the website host.
BasicAuthentication []BasicAuthenticationConfiguration
noSmithyDocumentSerde
}
// Provides the configuration information to connect to websites that require basic
// user authentication.
type BasicAuthenticationConfiguration struct {
// Your secret ARN, which you can create in AWS Secrets Manager
// (https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html) You use
// a secret if basic authentication credentials are required to connect to a
// website. The secret stores your credentials of user name and password.
//
// This member is required.
Credentials *string
// The name of the website host you want to connect to using authentication
// credentials. For example, the host name of https://a.example.com/page1.html is
// "a.example.com".
//
// This member is required.
Host *string
// The port number of the website host you want to connect to using authentication
// credentials. For example, the port for https://a.example.com/page1.html is 443,
// the standard port for HTTPS.
//
// This member is required.
Port *int32
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// Provides a response when the status of a document could not be retrieved.
type BatchGetDocumentStatusResponseError struct {
// The unique identifier of the document whose status could not be retrieved.
DocumentId *string
// Indicates the source of the error.
ErrorCode ErrorCode
// States that the API could not get the status of a document. This could be
// because the request is not valid or there is a system error.
ErrorMessage *string
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// Specifies capacity units configured for your enterprise edition 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 and GetQuerySuggestions
// (https://docs.aws.amazon.com/kendra/latest/dg/API_GetQuerySuggestions.html)
// capacity. A single extra capacity unit for an index provides 0.1 queries per
// second or approximately 8,000 queries per day. GetQuerySuggestions capacity is
// five times the provisioned query capacity for an index, or the base capacity of
// 2.5 calls per second, whichever is higher. For example, the base capacity for an
// index is 0.1 queries per second, and GetQuerySuggestions capacity has a base of
// 2.5 calls per second. If you add another 0.1 queries per second to total 0.2
// queries per second for an index, the GetQuerySuggestions capacity is 2.5 calls
// per second (higher than five times 0.2 queries per second).
//
// This member is required.
QueryCapacityUnits *int32
// The amount of extra storage capacity for an index. A single capacity unit
// provides 30 GB of storage space or 100,000 documents, whichever is reached
// first.
//
// This member is required.
StorageCapacityUnits *int32
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// 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 UpdateIndex
// operation.
type ConfluenceAttachmentToIndexFieldMapping struct {
// The name of the field in the data source. You must first create the index field
// using the UpdateIndex 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
noSmithyDocumentSerde
}
// 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 ConfluenceConfiguration 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
noSmithyDocumentSerde
}
// 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
// UpdateIndex 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
noSmithyDocumentSerde
}
// Provides configuration information for data sources that connect to Confluence.
type ConfluenceConfiguration struct {
// The Amazon Resource Name (ARN) of an Secrets Managersecret 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
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// 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 UpdateIndex
// 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
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// 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 UpdateIndex
// 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
noSmithyDocumentSerde
}
// 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 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 Secrets Manager, see What Is Secrets Manager
// (https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html) in the
// 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
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// 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
// Provides the configuration information required for Amazon Kendra web crawler.
WebCrawlerConfiguration *WebCrawlerConfiguration
// Provides the configuration information to connect to WorkDocs as your data
// source.
WorkDocsConfiguration *WorkDocsConfiguration
noSmithyDocumentSerde
}
// Data source information for user context filtering.
type DataSourceGroup struct {
// The identifier of the data source group you want to add to your list of data
// source groups. This is for filtering search results based on the groups' access
// to documents in that data source.
//
// This member is required.
DataSourceId *string
// The identifier of the group you want to add to your list of groups. This is for
// filtering search results based on the groups' access to documents.
//
// This member is required.
GroupId *string
noSmithyDocumentSerde
}
// Summary information for a Amazon Kendra data source. Returned in a call to the
// DescribeDataSource operation.
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 code for a language. This shows a supported language for all documents in
// the data source. English is supported by default. For more information on
// supported languages, including their codes, see Adding documents in languages
// other than English
// (https://docs.aws.amazon.com/kendra/latest/dg/in-adding-languages.html).
LanguageCode *string
// The name of the data source.
Name *string
// The status of the data source. When the status is ACTIVE 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
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// 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. If the ID of a sync
// job is not provided and there is a sync job running, then the ID of this sync
// job is used and metrics are generated for this sync job. If the ID of a sync job
// is not provided and there is no sync job running, then no metrics are generated
// and documents are indexed/deleted at the index level without sync job metrics
// included.
DataSourceSyncJobId *string
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// A document in an index.
type Document struct {
// A unique identifier of the document in the index.
//
// This member is required.
Id *string
// Information on user and group access rights, which is used 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 Amazon Web Services 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
// The list of principal
// (https://docs.aws.amazon.com/kendra/latest/dg/API_Principal.html) lists that
// define the hierarchy for which documents users should have access to.
HierarchicalAccessControlList []HierarchicalPrincipal
// Information required to find a specific file in an Amazon S3 bucket.
S3Path *S3Path
// The title of the document.
Title *string
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// The value of a custom document attribute. You can only provide one value for a
// custom attribute.
//
// The following types satisfy this interface:
// DocumentAttributeValueMemberDateValue
// DocumentAttributeValueMemberLongValue
// DocumentAttributeValueMemberStringListValue
// DocumentAttributeValueMemberStringValue
type DocumentAttributeValue interface {
isDocumentAttributeValue()
}
// A date expressed as an ISO 8601 string. It is important for the time zone to be
// included in the ISO 8601 date-time format. For example, 20120325T123010+01:00 is
// the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds)
// in Central European Time.
type DocumentAttributeValueMemberDateValue struct {
Value time.Time
noSmithyDocumentSerde
}
func (*DocumentAttributeValueMemberDateValue) isDocumentAttributeValue() {}
// A long integer value.
type DocumentAttributeValueMemberLongValue struct {
Value int64
noSmithyDocumentSerde
}
func (*DocumentAttributeValueMemberLongValue) isDocumentAttributeValue() {}
// A list of strings.
type DocumentAttributeValueMemberStringListValue struct {
Value []string
noSmithyDocumentSerde
}
func (*DocumentAttributeValueMemberStringListValue) isDocumentAttributeValue() {}
// A string, such as "department".
type DocumentAttributeValueMemberStringValue struct {
Value string
noSmithyDocumentSerde
}
func (*DocumentAttributeValueMemberStringValue) 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
noSmithyDocumentSerde
}
// Identifies a document for which to retrieve status information
type DocumentInfo struct {
// The unique identifier of the document.
//
// This member is required.
DocumentId *string
// Attributes that identify a specific version of a document to check. The only
// valid attributes are:
//
// * version
//
// * datasourceId
//
// * jobExecutionId
//
// The
// attributes follow these rules:
//
// * dataSourceId and jobExecutionId must be used
// together.
//
// * version is ignored if dataSourceId and jobExecutionId are not
// provided.
//
// * If dataSourceId and jobExecutionId are provided, but version is
// not, the version defaults to "0".
Attributes []DocumentAttribute
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// Overrides the document relevance properties of a custom index field.
type DocumentRelevanceConfiguration struct {
// The name of the tuning configuration to override document relevance at the index
// level.
//
// This member is required.
Name *string
// Provides information for manually tuning the relevance of a field in a search.
// When a query includes terms that match the field, the results are given a boost
// in the response based on these tuning parameters.
//
// This member is required.
Relevance *Relevance
noSmithyDocumentSerde
}
// 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 Amazon Web Services
// S3 bucket. The S3 bucket might contain multiple metadata files. Use S3Prefix to
// include only the desired metadata files.
S3Prefix *string
noSmithyDocumentSerde
}
// Information about a document attribute
type Facet struct {