aws-sdk-bedrockagent 1.37.0 → 1.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/sig/client.rbs CHANGED
@@ -282,7 +282,7 @@ module Aws
282
282
  tenant_id: ::String?
283
283
  }
284
284
  }?,
285
- type: ("S3" | "WEB" | "CONFLUENCE" | "SALESFORCE" | "SHAREPOINT"),
285
+ type: ("S3" | "WEB" | "CONFLUENCE" | "SALESFORCE" | "SHAREPOINT" | "CUSTOM"),
286
286
  web_configuration: {
287
287
  crawler_configuration: {
288
288
  crawler_limits: {
@@ -922,6 +922,29 @@ module Aws
922
922
  ) -> _DeleteKnowledgeBaseResponseSuccess
923
923
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteKnowledgeBaseResponseSuccess
924
924
 
925
+ interface _DeleteKnowledgeBaseDocumentsResponseSuccess
926
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteKnowledgeBaseDocumentsResponse]
927
+ def document_details: () -> ::Array[Types::KnowledgeBaseDocumentDetail]
928
+ end
929
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#delete_knowledge_base_documents-instance_method
930
+ def delete_knowledge_base_documents: (
931
+ ?client_token: ::String,
932
+ data_source_id: ::String,
933
+ document_identifiers: Array[
934
+ {
935
+ custom: {
936
+ id: ::String
937
+ }?,
938
+ data_source_type: ("CUSTOM" | "S3"),
939
+ s3: {
940
+ uri: ::String
941
+ }?
942
+ },
943
+ ],
944
+ knowledge_base_id: ::String
945
+ ) -> _DeleteKnowledgeBaseDocumentsResponseSuccess
946
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteKnowledgeBaseDocumentsResponseSuccess
947
+
925
948
  interface _DeletePromptResponseSuccess
926
949
  include ::Seahorse::Client::_ResponseSuccess[Types::DeletePromptResponse]
927
950
  def id: () -> ::String
@@ -1093,6 +1116,28 @@ module Aws
1093
1116
  ) -> _GetKnowledgeBaseResponseSuccess
1094
1117
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetKnowledgeBaseResponseSuccess
1095
1118
 
1119
+ interface _GetKnowledgeBaseDocumentsResponseSuccess
1120
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetKnowledgeBaseDocumentsResponse]
1121
+ def document_details: () -> ::Array[Types::KnowledgeBaseDocumentDetail]
1122
+ end
1123
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#get_knowledge_base_documents-instance_method
1124
+ def get_knowledge_base_documents: (
1125
+ data_source_id: ::String,
1126
+ document_identifiers: Array[
1127
+ {
1128
+ custom: {
1129
+ id: ::String
1130
+ }?,
1131
+ data_source_type: ("CUSTOM" | "S3"),
1132
+ s3: {
1133
+ uri: ::String
1134
+ }?
1135
+ },
1136
+ ],
1137
+ knowledge_base_id: ::String
1138
+ ) -> _GetKnowledgeBaseDocumentsResponseSuccess
1139
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetKnowledgeBaseDocumentsResponseSuccess
1140
+
1096
1141
  interface _GetPromptResponseSuccess
1097
1142
  include ::Seahorse::Client::_ResponseSuccess[Types::GetPromptResponse]
1098
1143
  def arn: () -> ::String
@@ -1113,6 +1158,69 @@ module Aws
1113
1158
  ) -> _GetPromptResponseSuccess
1114
1159
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPromptResponseSuccess
1115
1160
 
1161
+ interface _IngestKnowledgeBaseDocumentsResponseSuccess
1162
+ include ::Seahorse::Client::_ResponseSuccess[Types::IngestKnowledgeBaseDocumentsResponse]
1163
+ def document_details: () -> ::Array[Types::KnowledgeBaseDocumentDetail]
1164
+ end
1165
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#ingest_knowledge_base_documents-instance_method
1166
+ def ingest_knowledge_base_documents: (
1167
+ ?client_token: ::String,
1168
+ data_source_id: ::String,
1169
+ documents: Array[
1170
+ {
1171
+ content: {
1172
+ custom: {
1173
+ custom_document_identifier: {
1174
+ id: ::String
1175
+ },
1176
+ inline_content: {
1177
+ byte_content: {
1178
+ data: ::String,
1179
+ mime_type: ::String
1180
+ }?,
1181
+ text_content: {
1182
+ data: ::String
1183
+ }?,
1184
+ type: ("BYTE" | "TEXT")
1185
+ }?,
1186
+ s3_location: {
1187
+ bucket_owner_account_id: ::String?,
1188
+ uri: ::String
1189
+ }?,
1190
+ source_type: ("IN_LINE" | "S3_LOCATION")
1191
+ }?,
1192
+ data_source_type: ("CUSTOM" | "S3"),
1193
+ s3: {
1194
+ s3_location: {
1195
+ uri: ::String
1196
+ }
1197
+ }?
1198
+ },
1199
+ metadata: {
1200
+ inline_attributes: Array[
1201
+ {
1202
+ key: ::String,
1203
+ value: {
1204
+ boolean_value: bool?,
1205
+ number_value: ::Float?,
1206
+ string_list_value: Array[::String]?,
1207
+ string_value: ::String?,
1208
+ type: ("BOOLEAN" | "NUMBER" | "STRING" | "STRING_LIST")
1209
+ }
1210
+ },
1211
+ ]?,
1212
+ s3_location: {
1213
+ bucket_owner_account_id: ::String?,
1214
+ uri: ::String
1215
+ }?,
1216
+ type: ("IN_LINE_ATTRIBUTE" | "S3_LOCATION")
1217
+ }?
1218
+ },
1219
+ ],
1220
+ knowledge_base_id: ::String
1221
+ ) -> _IngestKnowledgeBaseDocumentsResponseSuccess
1222
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _IngestKnowledgeBaseDocumentsResponseSuccess
1223
+
1116
1224
  interface _ListAgentActionGroupsResponseSuccess
1117
1225
  include ::Seahorse::Client::_ResponseSuccess[Types::ListAgentActionGroupsResponse]
1118
1226
  def action_group_summaries: () -> ::Array[Types::ActionGroupSummary]
@@ -1255,6 +1363,20 @@ module Aws
1255
1363
  ) -> _ListIngestionJobsResponseSuccess
1256
1364
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListIngestionJobsResponseSuccess
1257
1365
 
1366
+ interface _ListKnowledgeBaseDocumentsResponseSuccess
1367
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListKnowledgeBaseDocumentsResponse]
1368
+ def document_details: () -> ::Array[Types::KnowledgeBaseDocumentDetail]
1369
+ def next_token: () -> ::String
1370
+ end
1371
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#list_knowledge_base_documents-instance_method
1372
+ def list_knowledge_base_documents: (
1373
+ data_source_id: ::String,
1374
+ knowledge_base_id: ::String,
1375
+ ?max_results: ::Integer,
1376
+ ?next_token: ::String
1377
+ ) -> _ListKnowledgeBaseDocumentsResponseSuccess
1378
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListKnowledgeBaseDocumentsResponseSuccess
1379
+
1258
1380
  interface _ListKnowledgeBasesResponseSuccess
1259
1381
  include ::Seahorse::Client::_ResponseSuccess[Types::ListKnowledgeBasesResponse]
1260
1382
  def knowledge_base_summaries: () -> ::Array[Types::KnowledgeBaseSummary]
@@ -1563,7 +1685,7 @@ module Aws
1563
1685
  tenant_id: ::String?
1564
1686
  }
1565
1687
  }?,
1566
- type: ("S3" | "WEB" | "CONFLUENCE" | "SALESFORCE" | "SHAREPOINT"),
1688
+ type: ("S3" | "WEB" | "CONFLUENCE" | "SALESFORCE" | "SHAREPOINT" | "CUSTOM"),
1567
1689
  web_configuration: {
1568
1690
  crawler_configuration: {
1569
1691
  crawler_limits: {
data/sig/types.rbs CHANGED
@@ -233,6 +233,12 @@ module Aws::BedrockAgent
233
233
  SENSITIVE: []
234
234
  end
235
235
 
236
+ class ByteContentDoc
237
+ attr_accessor data: ::String
238
+ attr_accessor mime_type: ::String
239
+ SENSITIVE: [:data]
240
+ end
241
+
236
242
  class ChatPromptTemplateConfiguration
237
243
  attr_accessor input_variables: ::Array[Types::PromptInputVariable]
238
244
  attr_accessor messages: ::Array[Types::Message]
@@ -504,11 +510,30 @@ module Aws::BedrockAgent
504
510
  SENSITIVE: [:variants]
505
511
  end
506
512
 
513
+ class CustomContent
514
+ attr_accessor custom_document_identifier: Types::CustomDocumentIdentifier
515
+ attr_accessor inline_content: Types::InlineContent
516
+ attr_accessor s3_location: Types::CustomS3Location
517
+ attr_accessor source_type: ("IN_LINE" | "S3_LOCATION")
518
+ SENSITIVE: []
519
+ end
520
+
521
+ class CustomDocumentIdentifier
522
+ attr_accessor id: ::String
523
+ SENSITIVE: []
524
+ end
525
+
507
526
  class CustomOrchestration
508
527
  attr_accessor executor: Types::OrchestrationExecutor
509
528
  SENSITIVE: []
510
529
  end
511
530
 
531
+ class CustomS3Location
532
+ attr_accessor bucket_owner_account_id: ::String
533
+ attr_accessor uri: ::String
534
+ SENSITIVE: []
535
+ end
536
+
512
537
  class CustomTransformationConfiguration
513
538
  attr_accessor intermediate_storage: Types::IntermediateStorage
514
539
  attr_accessor transformations: ::Array[Types::Transformation]
@@ -541,7 +566,7 @@ module Aws::BedrockAgent
541
566
  attr_accessor s3_configuration: Types::S3DataSourceConfiguration
542
567
  attr_accessor salesforce_configuration: Types::SalesforceDataSourceConfiguration
543
568
  attr_accessor share_point_configuration: Types::SharePointDataSourceConfiguration
544
- attr_accessor type: ("S3" | "WEB" | "CONFLUENCE" | "SALESFORCE" | "SHAREPOINT")
569
+ attr_accessor type: ("S3" | "WEB" | "CONFLUENCE" | "SALESFORCE" | "SHAREPOINT" | "CUSTOM")
545
570
  attr_accessor web_configuration: Types::WebDataSourceConfiguration
546
571
  SENSITIVE: []
547
572
  end
@@ -655,6 +680,19 @@ module Aws::BedrockAgent
655
680
  SENSITIVE: []
656
681
  end
657
682
 
683
+ class DeleteKnowledgeBaseDocumentsRequest
684
+ attr_accessor client_token: ::String
685
+ attr_accessor data_source_id: ::String
686
+ attr_accessor document_identifiers: ::Array[Types::DocumentIdentifier]
687
+ attr_accessor knowledge_base_id: ::String
688
+ SENSITIVE: []
689
+ end
690
+
691
+ class DeleteKnowledgeBaseDocumentsResponse
692
+ attr_accessor document_details: ::Array[Types::KnowledgeBaseDocumentDetail]
693
+ SENSITIVE: []
694
+ end
695
+
658
696
  class DeleteKnowledgeBaseRequest
659
697
  attr_accessor knowledge_base_id: ::String
660
698
  SENSITIVE: []
@@ -688,6 +726,27 @@ module Aws::BedrockAgent
688
726
  class DisassociateAgentKnowledgeBaseResponse < Aws::EmptyStructure
689
727
  end
690
728
 
729
+ class DocumentContent
730
+ attr_accessor custom: Types::CustomContent
731
+ attr_accessor data_source_type: ("CUSTOM" | "S3")
732
+ attr_accessor s3: Types::S3Content
733
+ SENSITIVE: []
734
+ end
735
+
736
+ class DocumentIdentifier
737
+ attr_accessor custom: Types::CustomDocumentIdentifier
738
+ attr_accessor data_source_type: ("CUSTOM" | "S3")
739
+ attr_accessor s3: Types::S3Location
740
+ SENSITIVE: []
741
+ end
742
+
743
+ class DocumentMetadata
744
+ attr_accessor inline_attributes: ::Array[Types::MetadataAttribute]
745
+ attr_accessor s3_location: Types::CustomS3Location
746
+ attr_accessor type: ("IN_LINE_ATTRIBUTE" | "S3_LOCATION")
747
+ SENSITIVE: []
748
+ end
749
+
691
750
  class DuplicateConditionExpressionFlowValidationDetails
692
751
  attr_accessor expression: ::String
693
752
  attr_accessor node: ::String
@@ -1109,6 +1168,18 @@ module Aws::BedrockAgent
1109
1168
  SENSITIVE: []
1110
1169
  end
1111
1170
 
1171
+ class GetKnowledgeBaseDocumentsRequest
1172
+ attr_accessor data_source_id: ::String
1173
+ attr_accessor document_identifiers: ::Array[Types::DocumentIdentifier]
1174
+ attr_accessor knowledge_base_id: ::String
1175
+ SENSITIVE: []
1176
+ end
1177
+
1178
+ class GetKnowledgeBaseDocumentsResponse
1179
+ attr_accessor document_details: ::Array[Types::KnowledgeBaseDocumentDetail]
1180
+ SENSITIVE: []
1181
+ end
1182
+
1112
1183
  class GetKnowledgeBaseRequest
1113
1184
  attr_accessor knowledge_base_id: ::String
1114
1185
  SENSITIVE: []
@@ -1170,6 +1241,19 @@ module Aws::BedrockAgent
1170
1241
  SENSITIVE: []
1171
1242
  end
1172
1243
 
1244
+ class IngestKnowledgeBaseDocumentsRequest
1245
+ attr_accessor client_token: ::String
1246
+ attr_accessor data_source_id: ::String
1247
+ attr_accessor documents: ::Array[Types::KnowledgeBaseDocument]
1248
+ attr_accessor knowledge_base_id: ::String
1249
+ SENSITIVE: []
1250
+ end
1251
+
1252
+ class IngestKnowledgeBaseDocumentsResponse
1253
+ attr_accessor document_details: ::Array[Types::KnowledgeBaseDocumentDetail]
1254
+ SENSITIVE: []
1255
+ end
1256
+
1173
1257
  class IngestionJob
1174
1258
  attr_accessor data_source_id: ::String
1175
1259
  attr_accessor description: ::String
@@ -1219,6 +1303,13 @@ module Aws::BedrockAgent
1219
1303
  SENSITIVE: []
1220
1304
  end
1221
1305
 
1306
+ class InlineContent
1307
+ attr_accessor byte_content: Types::ByteContentDoc
1308
+ attr_accessor text_content: Types::TextContentDoc
1309
+ attr_accessor type: ("BYTE" | "TEXT")
1310
+ SENSITIVE: []
1311
+ end
1312
+
1222
1313
  class InputFlowNodeConfiguration < Aws::EmptyStructure
1223
1314
  end
1224
1315
 
@@ -1256,6 +1347,22 @@ module Aws::BedrockAgent
1256
1347
  SENSITIVE: []
1257
1348
  end
1258
1349
 
1350
+ class KnowledgeBaseDocument
1351
+ attr_accessor content: Types::DocumentContent
1352
+ attr_accessor metadata: Types::DocumentMetadata
1353
+ SENSITIVE: []
1354
+ end
1355
+
1356
+ class KnowledgeBaseDocumentDetail
1357
+ attr_accessor data_source_id: ::String
1358
+ attr_accessor identifier: Types::DocumentIdentifier
1359
+ attr_accessor knowledge_base_id: ::String
1360
+ attr_accessor status: ("INDEXED" | "PARTIALLY_INDEXED" | "PENDING" | "FAILED" | "METADATA_PARTIALLY_INDEXED" | "METADATA_UPDATE_FAILED" | "IGNORED" | "NOT_FOUND" | "STARTING" | "IN_PROGRESS" | "DELETING" | "DELETE_IN_PROGRESS")
1361
+ attr_accessor status_reason: ::String
1362
+ attr_accessor updated_at: ::Time
1363
+ SENSITIVE: []
1364
+ end
1365
+
1259
1366
  class KnowledgeBaseFlowNodeConfiguration
1260
1367
  attr_accessor guardrail_configuration: Types::GuardrailConfiguration
1261
1368
  attr_accessor knowledge_base_id: ::String
@@ -1416,6 +1523,20 @@ module Aws::BedrockAgent
1416
1523
  SENSITIVE: []
1417
1524
  end
1418
1525
 
1526
+ class ListKnowledgeBaseDocumentsRequest
1527
+ attr_accessor data_source_id: ::String
1528
+ attr_accessor knowledge_base_id: ::String
1529
+ attr_accessor max_results: ::Integer
1530
+ attr_accessor next_token: ::String
1531
+ SENSITIVE: []
1532
+ end
1533
+
1534
+ class ListKnowledgeBaseDocumentsResponse
1535
+ attr_accessor document_details: ::Array[Types::KnowledgeBaseDocumentDetail]
1536
+ attr_accessor next_token: ::String
1537
+ SENSITIVE: []
1538
+ end
1539
+
1419
1540
  class ListKnowledgeBasesRequest
1420
1541
  attr_accessor max_results: ::Integer
1421
1542
  attr_accessor next_token: ::String
@@ -1477,6 +1598,21 @@ module Aws::BedrockAgent
1477
1598
  SENSITIVE: []
1478
1599
  end
1479
1600
 
1601
+ class MetadataAttribute
1602
+ attr_accessor key: ::String
1603
+ attr_accessor value: Types::MetadataAttributeValue
1604
+ SENSITIVE: [:key]
1605
+ end
1606
+
1607
+ class MetadataAttributeValue
1608
+ attr_accessor boolean_value: bool
1609
+ attr_accessor number_value: ::Float
1610
+ attr_accessor string_list_value: ::Array[::String]
1611
+ attr_accessor string_value: ::String
1612
+ attr_accessor type: ("BOOLEAN" | "NUMBER" | "STRING" | "STRING_LIST")
1613
+ SENSITIVE: [:number_value, :string_value]
1614
+ end
1615
+
1480
1616
  class MismatchedNodeInputTypeFlowValidationDetails
1481
1617
  attr_accessor expected_type: ("String" | "Number" | "Boolean" | "Object" | "Array")
1482
1618
  attr_accessor input: ::String
@@ -1835,6 +1971,11 @@ module Aws::BedrockAgent
1835
1971
  end
1836
1972
  end
1837
1973
 
1974
+ class S3Content
1975
+ attr_accessor s3_location: Types::S3Location
1976
+ SENSITIVE: []
1977
+ end
1978
+
1838
1979
  class S3DataSourceConfiguration
1839
1980
  attr_accessor bucket_arn: ::String
1840
1981
  attr_accessor bucket_owner_account_id: ::String
@@ -1995,6 +2136,11 @@ module Aws::BedrockAgent
1995
2136
  class TagResourceResponse < Aws::EmptyStructure
1996
2137
  end
1997
2138
 
2139
+ class TextContentDoc
2140
+ attr_accessor data: ::String
2141
+ SENSITIVE: [:data]
2142
+ end
2143
+
1998
2144
  class TextPromptTemplateConfiguration
1999
2145
  attr_accessor input_variables: ::Array[Types::PromptInputVariable]
2000
2146
  attr_accessor text: ::String
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockagent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.37.0
4
+ version: 1.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-27 00:00:00.000000000 Z
11
+ date: 2024-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core