File: types.go

package info (click to toggle)
golang-github-aws-aws-sdk-go-v2 1.24.1-2~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 554,032 kB
  • sloc: java: 15,941; makefile: 419; sh: 175
file content (1269 lines) | stat: -rw-r--r-- 24,577 bytes parent folder | download
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
// Code generated by smithy-go-codegen DO NOT EDIT.

package types

import (
	smithydocument "github.com/aws/smithy-go/document"
	"time"
)

// Type of Executors for an Action Group
//
// The following types satisfy this interface:
//
//	ActionGroupExecutorMemberLambda
type ActionGroupExecutor interface {
	isActionGroupExecutor()
}

// ARN of a Lambda.
type ActionGroupExecutorMemberLambda struct {
	Value string

	noSmithyDocumentSerde
}

func (*ActionGroupExecutorMemberLambda) isActionGroupExecutor() {}

// ActionGroup Summary
type ActionGroupSummary struct {

	// Identifier for a resource.
	//
	// This member is required.
	ActionGroupId *string

	// Name for a resource.
	//
	// This member is required.
	ActionGroupName *string

	// State of the action group
	//
	// This member is required.
	ActionGroupState ActionGroupState

	// Time Stamp.
	//
	// This member is required.
	UpdatedAt *time.Time

	// Description of the Resource.
	Description *string

	noSmithyDocumentSerde
}

// Contains the information of an agent
type Agent struct {

	// Arn representation of the Agent.
	//
	// This member is required.
	AgentArn *string

	// Identifier for a resource.
	//
	// This member is required.
	AgentId *string

	// Name for a resource.
	//
	// This member is required.
	AgentName *string

	// ARN of a IAM role.
	//
	// This member is required.
	AgentResourceRoleArn *string

	// Schema Type for Action APIs.
	//
	// This member is required.
	AgentStatus AgentStatus

	// Draft Agent Version.
	//
	// This member is required.
	AgentVersion *string

	// Time Stamp.
	//
	// This member is required.
	CreatedAt *time.Time

	// Max Session Time.
	//
	// This member is required.
	IdleSessionTTLInSeconds *int32

	// Time Stamp.
	//
	// This member is required.
	UpdatedAt *time.Time

	// Client specified token used for idempotency checks
	ClientToken *string

	// A KMS key ARN
	CustomerEncryptionKeyArn *string

	// Description of the Resource.
	Description *string

	// Failure Reasons for Error.
	FailureReasons []string

	// ARN or name of a Bedrock model.
	FoundationModel *string

	// Instruction for the agent.
	Instruction *string

	// Time Stamp.
	PreparedAt *time.Time

	// Configuration for prompt override.
	PromptOverrideConfiguration *PromptOverrideConfiguration

	// The recommended actions users can take to resolve an error in failureReasons.
	RecommendedActions []string

	noSmithyDocumentSerde
}

// Contains the information of an Agent Action Group
type AgentActionGroup struct {

	// Identifier for a resource.
	//
	// This member is required.
	ActionGroupId *string

	// Name for a resource.
	//
	// This member is required.
	ActionGroupName *string

	// State of the action group
	//
	// This member is required.
	ActionGroupState ActionGroupState

	// Identifier for a resource.
	//
	// This member is required.
	AgentId *string

	// Agent Version.
	//
	// This member is required.
	AgentVersion *string

	// Time Stamp.
	//
	// This member is required.
	CreatedAt *time.Time

	// Time Stamp.
	//
	// This member is required.
	UpdatedAt *time.Time

	// Type of Executors for an Action Group
	ActionGroupExecutor ActionGroupExecutor

	// Contains information about the API Schema for the Action Group
	ApiSchema APISchema

	// Client specified token used for idempotency checks
	ClientToken *string

	// Description of the Resource.
	Description *string

	// Action Group Signature for a BuiltIn Action
	ParentActionSignature ActionGroupSignature

	noSmithyDocumentSerde
}

// Contains the information of an agent alias
type AgentAlias struct {

	// Arn representation of the Agent Alias.
	//
	// This member is required.
	AgentAliasArn *string

	// Id for an Agent Alias generated at the server side.
	//
	// This member is required.
	AgentAliasId *string

	// Name for a resource.
	//
	// This member is required.
	AgentAliasName *string

	// The statuses an Agent Alias can be in.
	//
	// This member is required.
	AgentAliasStatus AgentAliasStatus

	// Identifier for a resource.
	//
	// This member is required.
	AgentId *string

	// Time Stamp.
	//
	// This member is required.
	CreatedAt *time.Time

	// Routing configuration for an Agent alias.
	//
	// This member is required.
	RoutingConfiguration []AgentAliasRoutingConfigurationListItem

	// Time Stamp.
	//
	// This member is required.
	UpdatedAt *time.Time

	// The list of history events for an alias for an Agent.
	AgentAliasHistoryEvents []AgentAliasHistoryEvent

	// Client specified token used for idempotency checks
	ClientToken *string

	// Description of the Resource.
	Description *string

	noSmithyDocumentSerde
}

// History event for an alias for an Agent.
type AgentAliasHistoryEvent struct {

	// Time Stamp.
	EndDate *time.Time

	// Routing configuration for an Agent alias.
	RoutingConfiguration []AgentAliasRoutingConfigurationListItem

	// Time Stamp.
	StartDate *time.Time

	noSmithyDocumentSerde
}

// Details about the routing configuration for an Agent alias.
type AgentAliasRoutingConfigurationListItem struct {

	// Agent Version.
	//
	// This member is required.
	AgentVersion *string

	noSmithyDocumentSerde
}

// Summary of an alias for an Agent.
type AgentAliasSummary struct {

	// Id for an Agent Alias generated at the server side.
	//
	// This member is required.
	AgentAliasId *string

	// Name for a resource.
	//
	// This member is required.
	AgentAliasName *string

	// The statuses an Agent Alias can be in.
	//
	// This member is required.
	AgentAliasStatus AgentAliasStatus

	// Time Stamp.
	//
	// This member is required.
	CreatedAt *time.Time

	// Time Stamp.
	//
	// This member is required.
	UpdatedAt *time.Time

	// Description of the Resource.
	Description *string

	// Routing configuration for an Agent alias.
	RoutingConfiguration []AgentAliasRoutingConfigurationListItem

	noSmithyDocumentSerde
}

// Contains the information of an Agent Knowledge Base.
type AgentKnowledgeBase struct {

	// Identifier for a resource.
	//
	// This member is required.
	AgentId *string

	// Agent Version.
	//
	// This member is required.
	AgentVersion *string

	// Time Stamp.
	//
	// This member is required.
	CreatedAt *time.Time

	// Description of the Resource.
	//
	// This member is required.
	Description *string

	// Identifier for a resource.
	//
	// This member is required.
	KnowledgeBaseId *string

	// State of the knowledge base; whether it is enabled or disabled
	//
	// This member is required.
	KnowledgeBaseState KnowledgeBaseState

	// Time Stamp.
	//
	// This member is required.
	UpdatedAt *time.Time

	noSmithyDocumentSerde
}

// Agent Knowledge Base Summary
type AgentKnowledgeBaseSummary struct {

	// Identifier for a resource.
	//
	// This member is required.
	KnowledgeBaseId *string

	// State of the knowledge base; whether it is enabled or disabled
	//
	// This member is required.
	KnowledgeBaseState KnowledgeBaseState

	// Time Stamp.
	//
	// This member is required.
	UpdatedAt *time.Time

	// Description of the Resource.
	Description *string

	noSmithyDocumentSerde
}

// Summary of Agent.
type AgentSummary struct {

	// Identifier for a resource.
	//
	// This member is required.
	AgentId *string

	// Name for a resource.
	//
	// This member is required.
	AgentName *string

	// Schema Type for Action APIs.
	//
	// This member is required.
	AgentStatus AgentStatus

	// Time Stamp.
	//
	// This member is required.
	UpdatedAt *time.Time

	// Description of the Resource.
	Description *string

	// Agent Version.
	LatestAgentVersion *string

	noSmithyDocumentSerde
}

// Contains the information of an agent version.
type AgentVersion struct {

	// Arn representation of the Agent.
	//
	// This member is required.
	AgentArn *string

	// Identifier for a resource.
	//
	// This member is required.
	AgentId *string

	// Name for a resource.
	//
	// This member is required.
	AgentName *string

	// ARN of a IAM role.
	//
	// This member is required.
	AgentResourceRoleArn *string

	// Schema Type for Action APIs.
	//
	// This member is required.
	AgentStatus AgentStatus

	// Time Stamp.
	//
	// This member is required.
	CreatedAt *time.Time

	// Max Session Time.
	//
	// This member is required.
	IdleSessionTTLInSeconds *int32

	// Time Stamp.
	//
	// This member is required.
	UpdatedAt *time.Time

	// Numerical Agent Version.
	//
	// This member is required.
	Version *string

	// A KMS key ARN
	CustomerEncryptionKeyArn *string

	// Description of the Resource.
	Description *string

	// Failure Reasons for Error.
	FailureReasons []string

	// ARN or name of a Bedrock model.
	FoundationModel *string

	// Instruction for the agent.
	Instruction *string

	// Configuration for prompt override.
	PromptOverrideConfiguration *PromptOverrideConfiguration

	// The recommended actions users can take to resolve an error in failureReasons.
	RecommendedActions []string

	noSmithyDocumentSerde
}

// Summary of agent version.
type AgentVersionSummary struct {

	// Name for a resource.
	//
	// This member is required.
	AgentName *string

	// Schema Type for Action APIs.
	//
	// This member is required.
	AgentStatus AgentStatus

	// Agent Version.
	//
	// This member is required.
	AgentVersion *string

	// Time Stamp.
	//
	// This member is required.
	CreatedAt *time.Time

	// Time Stamp.
	//
	// This member is required.
	UpdatedAt *time.Time

	// Description of the Resource.
	Description *string

	noSmithyDocumentSerde
}

// Contains information about the API Schema for the Action Group
//
// The following types satisfy this interface:
//
//	APISchemaMemberPayload
//	APISchemaMemberS3
type APISchema interface {
	isAPISchema()
}

// String OpenAPI Payload
type APISchemaMemberPayload struct {
	Value string

	noSmithyDocumentSerde
}

func (*APISchemaMemberPayload) isAPISchema() {}

// The identifier for the S3 resource.
type APISchemaMemberS3 struct {
	Value S3Identifier

	noSmithyDocumentSerde
}

func (*APISchemaMemberS3) isAPISchema() {}

// Configures chunking strategy
type ChunkingConfiguration struct {

	// The type of chunking strategy
	//
	// This member is required.
	ChunkingStrategy ChunkingStrategy

	// Configures fixed size chunking strategy
	FixedSizeChunkingConfiguration *FixedSizeChunkingConfiguration

	noSmithyDocumentSerde
}

// Contains the information of a data source.
type DataSource struct {

	// Time Stamp.
	//
	// This member is required.
	CreatedAt *time.Time

	// Specifies a raw data source location to ingest.
	//
	// This member is required.
	DataSourceConfiguration *DataSourceConfiguration

	// Identifier for a resource.
	//
	// This member is required.
	DataSourceId *string

	// Identifier for a resource.
	//
	// This member is required.
	KnowledgeBaseId *string

	// Name for a resource.
	//
	// This member is required.
	Name *string

	// The status of a data source.
	//
	// This member is required.
	Status DataSourceStatus

	// Time Stamp.
	//
	// This member is required.
	UpdatedAt *time.Time

	// Description of the Resource.
	Description *string

	// Server-side encryption configuration.
	ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration

	// Configures ingestion for a vector knowledge base
	VectorIngestionConfiguration *VectorIngestionConfiguration

	noSmithyDocumentSerde
}

// Specifies a raw data source location to ingest.
type DataSourceConfiguration struct {

	// The type of the data source location.
	//
	// This member is required.
	Type DataSourceType

	// Configures an S3 data source location.
	S3Configuration *S3DataSourceConfiguration

	noSmithyDocumentSerde
}

// Summary information of a data source.
type DataSourceSummary struct {

	// Identifier for a resource.
	//
	// This member is required.
	DataSourceId *string

	// Identifier for a resource.
	//
	// This member is required.
	KnowledgeBaseId *string

	// Name for a resource.
	//
	// This member is required.
	Name *string

	// The status of a data source.
	//
	// This member is required.
	Status DataSourceStatus

	// Time Stamp.
	//
	// This member is required.
	UpdatedAt *time.Time

	// Description of the Resource.
	Description *string

	noSmithyDocumentSerde
}

// Configures fixed size chunking strategy
type FixedSizeChunkingConfiguration struct {

	// The maximum number of tokens per chunk.
	//
	// This member is required.
	MaxTokens *int32

	// The overlap percentage between adjacent chunks.
	//
	// This member is required.
	OverlapPercentage *int32

	noSmithyDocumentSerde
}

// Configuration for inference in prompt configuration
type InferenceConfiguration struct {

	// Maximum length of output
	MaximumLength *int32

	// List of stop sequences
	StopSequences []string

	// Controls randomness, higher values increase diversity
	Temperature *float32

	// Sample from the k most likely next tokens
	TopK *int32

	// Cumulative probability cutoff for token selection
	TopP *float32

	noSmithyDocumentSerde
}

// Contains the information of an ingestion job.
type IngestionJob struct {

	// Identifier for a resource.
	//
	// This member is required.
	DataSourceId *string

	// Identifier for a resource.
	//
	// This member is required.
	IngestionJobId *string

	// Identifier for a resource.
	//
	// This member is required.
	KnowledgeBaseId *string

	// Time Stamp.
	//
	// This member is required.
	StartedAt *time.Time

	// The status of an ingestion job.
	//
	// This member is required.
	Status IngestionJobStatus

	// Time Stamp.
	//
	// This member is required.
	UpdatedAt *time.Time

	// Description of the Resource.
	Description *string

	// Failure Reasons for Error.
	FailureReasons []string

	// The document level statistics of an ingestion job
	Statistics *IngestionJobStatistics

	noSmithyDocumentSerde
}

// Filters the response returned by ListIngestionJobs operation.
type IngestionJobFilter struct {

	// The name of the field to filter ingestion jobs.
	//
	// This member is required.
	Attribute IngestionJobFilterAttribute

	// The operator used to filter ingestion jobs.
	//
	// This member is required.
	Operator IngestionJobFilterOperator

	// The list of values used to filter ingestion jobs.
	//
	// This member is required.
	Values []string

	noSmithyDocumentSerde
}

// Sorts the response returned by ListIngestionJobs operation.
type IngestionJobSortBy struct {

	// The name of the field to sort ingestion jobs.
	//
	// This member is required.
	Attribute IngestionJobSortByAttribute

	// Order to sort results by.
	//
	// This member is required.
	Order SortOrder

	noSmithyDocumentSerde
}

// The document level statistics of an ingestion job
type IngestionJobStatistics struct {

	// Number of deleted documents
	NumberOfDocumentsDeleted int64

	// Number of failed documents
	NumberOfDocumentsFailed int64

	// Number of scanned documents
	NumberOfDocumentsScanned int64

	// Number of modified documents indexed
	NumberOfModifiedDocumentsIndexed int64

	// Number of indexed documents
	NumberOfNewDocumentsIndexed int64

	noSmithyDocumentSerde
}

// Summary information of an ingestion job.
type IngestionJobSummary struct {

	// Identifier for a resource.
	//
	// This member is required.
	DataSourceId *string

	// Identifier for a resource.
	//
	// This member is required.
	IngestionJobId *string

	// Identifier for a resource.
	//
	// This member is required.
	KnowledgeBaseId *string

	// Time Stamp.
	//
	// This member is required.
	StartedAt *time.Time

	// The status of an ingestion job.
	//
	// This member is required.
	Status IngestionJobStatus

	// Time Stamp.
	//
	// This member is required.
	UpdatedAt *time.Time

	// Description of the Resource.
	Description *string

	// The document level statistics of an ingestion job
	Statistics *IngestionJobStatistics

	noSmithyDocumentSerde
}

// Contains the information of a knowledge base.
type KnowledgeBase struct {

	// Time Stamp.
	//
	// This member is required.
	CreatedAt *time.Time

	// ARN of a KnowledgeBase
	//
	// This member is required.
	KnowledgeBaseArn *string

	// Configures a bedrock knowledge base.
	//
	// This member is required.
	KnowledgeBaseConfiguration *KnowledgeBaseConfiguration

	// Identifier for a resource.
	//
	// This member is required.
	KnowledgeBaseId *string

	// Name for a resource.
	//
	// This member is required.
	Name *string

	// ARN of a IAM role.
	//
	// This member is required.
	RoleArn *string

	// The status of a knowledge base.
	//
	// This member is required.
	Status KnowledgeBaseStatus

	// Configures the physical storage of ingested data in a knowledge base.
	//
	// This member is required.
	StorageConfiguration *StorageConfiguration

	// Time Stamp.
	//
	// This member is required.
	UpdatedAt *time.Time

	// Description of the Resource.
	Description *string

	// Failure Reasons for Error.
	FailureReasons []string

	noSmithyDocumentSerde
}

// Configures a bedrock knowledge base.
type KnowledgeBaseConfiguration struct {

	// The type of a knowledge base.
	//
	// This member is required.
	Type KnowledgeBaseType

	// Configurations for a vector knowledge base.
	VectorKnowledgeBaseConfiguration *VectorKnowledgeBaseConfiguration

	noSmithyDocumentSerde
}

// Summary information of a knowledge base.
type KnowledgeBaseSummary struct {

	// Identifier for a resource.
	//
	// This member is required.
	KnowledgeBaseId *string

	// Name for a resource.
	//
	// This member is required.
	Name *string

	// The status of a knowledge base.
	//
	// This member is required.
	Status KnowledgeBaseStatus

	// Time Stamp.
	//
	// This member is required.
	UpdatedAt *time.Time

	// Description of the Resource.
	Description *string

	noSmithyDocumentSerde
}

// Contains the configurations to use OpenSearch Serverless to store knowledge
// base data.
type OpenSearchServerlessConfiguration struct {

	// Arn of an OpenSearch Serverless collection.
	//
	// This member is required.
	CollectionArn *string

	// A mapping of Bedrock Knowledge Base fields to OpenSearch Serverless field names
	//
	// This member is required.
	FieldMapping *OpenSearchServerlessFieldMapping

	// Arn of an OpenSearch Serverless index.
	//
	// This member is required.
	VectorIndexName *string

	noSmithyDocumentSerde
}

// A mapping of Bedrock Knowledge Base fields to OpenSearch Serverless field names
type OpenSearchServerlessFieldMapping struct {

	// Name of the field
	//
	// This member is required.
	MetadataField *string

	// Name of the field
	//
	// This member is required.
	TextField *string

	// Name of the field
	//
	// This member is required.
	VectorField *string

	noSmithyDocumentSerde
}

// Contains the configurations to use Pinecone to store knowledge base data.
type PineconeConfiguration struct {

	// Pinecone connection string
	//
	// This member is required.
	ConnectionString *string

	// Arn of a SecretsManager Secret.
	//
	// This member is required.
	CredentialsSecretArn *string

	// A mapping of Bedrock Knowledge Base fields to Pinecone field names
	//
	// This member is required.
	FieldMapping *PineconeFieldMapping

	// Pinecone namespace
	Namespace *string

	noSmithyDocumentSerde
}

// A mapping of Bedrock Knowledge Base fields to Pinecone field names
type PineconeFieldMapping struct {

	// Name of the field
	//
	// This member is required.
	MetadataField *string

	// Name of the field
	//
	// This member is required.
	TextField *string

	noSmithyDocumentSerde
}

// BasePromptConfiguration per Prompt Type.
type PromptConfiguration struct {

	// Base Prompt Template.
	BasePromptTemplate *string

	// Configuration for inference in prompt configuration
	InferenceConfiguration *InferenceConfiguration

	// Creation Mode for Prompt Configuration.
	ParserMode CreationMode

	// Creation Mode for Prompt Configuration.
	PromptCreationMode CreationMode

	// Prompt State.
	PromptState PromptState

	// Prompt Type.
	PromptType PromptType

	noSmithyDocumentSerde
}

// Configuration for prompt override.
type PromptOverrideConfiguration struct {

	// List of BasePromptConfiguration
	//
	// This member is required.
	PromptConfigurations []PromptConfiguration

	// ARN of a Lambda.
	OverrideLambda *string

	noSmithyDocumentSerde
}

// Contains the configurations to use RDS to store knowledge base data.
type RdsConfiguration struct {

	// Arn of a SecretsManager Secret.
	//
	// This member is required.
	CredentialsSecretArn *string

	// Name of the database within RDS
	//
	// This member is required.
	DatabaseName *string

	// A mapping of Bedrock Knowledge Base fields to RDS column names
	//
	// This member is required.
	FieldMapping *RdsFieldMapping

	// Arn of a RDS Resource.
	//
	// This member is required.
	ResourceArn *string

	// Name of the table within RDS
	//
	// This member is required.
	TableName *string

	noSmithyDocumentSerde
}

// A mapping of Bedrock Knowledge Base fields to RDS column names
type RdsFieldMapping struct {

	// Name of the column
	//
	// This member is required.
	MetadataField *string

	// Name of the column
	//
	// This member is required.
	PrimaryKeyField *string

	// Name of the column
	//
	// This member is required.
	TextField *string

	// Name of the column
	//
	// This member is required.
	VectorField *string

	noSmithyDocumentSerde
}

// Contains the configurations to use Redis Enterprise Cloud to store knowledge
// base data.
type RedisEnterpriseCloudConfiguration struct {

	// Arn of a SecretsManager Secret.
	//
	// This member is required.
	CredentialsSecretArn *string

	// Redis enterprise cloud endpoint
	//
	// This member is required.
	Endpoint *string

	// A mapping of Bedrock Knowledge Base fields to Redis Cloud field names
	//
	// This member is required.
	FieldMapping *RedisEnterpriseCloudFieldMapping

	// Name of a redis enterprise cloud index
	//
	// This member is required.
	VectorIndexName *string

	noSmithyDocumentSerde
}

// A mapping of Bedrock Knowledge Base fields to Redis Cloud field names
type RedisEnterpriseCloudFieldMapping struct {

	// Name of the field
	//
	// This member is required.
	MetadataField *string

	// Name of the field
	//
	// This member is required.
	TextField *string

	// Name of the field
	//
	// This member is required.
	VectorField *string

	noSmithyDocumentSerde
}

// Configures an S3 data source location.
type S3DataSourceConfiguration struct {

	// A S3 bucket ARN
	//
	// This member is required.
	BucketArn *string

	// A list of S3 prefixes.
	InclusionPrefixes []string

	noSmithyDocumentSerde
}

// The identifier for the S3 resource.
type S3Identifier struct {

	// A bucket in S3.
	S3BucketName *string

	// A object key in S3.
	S3ObjectKey *string

	noSmithyDocumentSerde
}

// Server-side encryption configuration.
type ServerSideEncryptionConfiguration struct {

	// A KMS key ARN
	KmsKeyArn *string

	noSmithyDocumentSerde
}

// Configures the physical storage of ingested data in a knowledge base.
type StorageConfiguration struct {

	// The storage type of a knowledge base.
	//
	// This member is required.
	Type KnowledgeBaseStorageType

	// Contains the configurations to use OpenSearch Serverless to store knowledge
	// base data.
	OpensearchServerlessConfiguration *OpenSearchServerlessConfiguration

	// Contains the configurations to use Pinecone to store knowledge base data.
	PineconeConfiguration *PineconeConfiguration

	// Contains the configurations to use RDS to store knowledge base data.
	RdsConfiguration *RdsConfiguration

	// Contains the configurations to use Redis Enterprise Cloud to store knowledge
	// base data.
	RedisEnterpriseCloudConfiguration *RedisEnterpriseCloudConfiguration

	noSmithyDocumentSerde
}

// Stores information about a field passed inside a request that resulted in an
// exception
type ValidationExceptionField struct {

	// Non Blank String
	//
	// This member is required.
	Message *string

	// Non Blank String
	//
	// This member is required.
	Name *string

	noSmithyDocumentSerde
}

// Configures ingestion for a vector knowledge base
type VectorIngestionConfiguration struct {

	// Configures chunking strategy
	ChunkingConfiguration *ChunkingConfiguration

	noSmithyDocumentSerde
}

// Configurations for a vector knowledge base.
type VectorKnowledgeBaseConfiguration struct {

	// Arn of a Bedrock model.
	//
	// This member is required.
	EmbeddingModelArn *string

	noSmithyDocumentSerde
}

type noSmithyDocumentSerde = smithydocument.NoSerde

// UnknownUnionMember is returned when a union member is returned over the wire,
// but has an unknown tag.
type UnknownUnionMember struct {
	Tag   string
	Value []byte

	noSmithyDocumentSerde
}

func (*UnknownUnionMember) isActionGroupExecutor() {}
func (*UnknownUnionMember) isAPISchema()           {}