aws-sdk-bedrockagent 1.76.0 → 1.78.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagent/client.rb +322 -41
- data/lib/aws-sdk-bedrockagent/client_api.rb +130 -0
- data/lib/aws-sdk-bedrockagent/types.rb +397 -28
- data/lib/aws-sdk-bedrockagent.rb +1 -1
- data/sig/client.rbs +47 -3
- data/sig/params.rbs +36 -3
- data/sig/types.rbs +100 -9
- metadata +3 -3
|
@@ -199,7 +199,7 @@ module Aws::BedrockAgent
|
|
|
199
199
|
# the required types.
|
|
200
200
|
#
|
|
201
201
|
# @option options [Boolean] :correct_clock_skew (true)
|
|
202
|
-
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
|
202
|
+
# Used only in `standard` and `adaptive` retry modes. Specifies whether to apply
|
|
203
203
|
# a clock skew correction and retry requests with skewed client clocks.
|
|
204
204
|
#
|
|
205
205
|
# @option options [String] :defaults_mode ("legacy")
|
|
@@ -323,17 +323,15 @@ module Aws::BedrockAgent
|
|
|
323
323
|
# @option options [String] :retry_mode ("legacy")
|
|
324
324
|
# Specifies which retry algorithm to use. Values are:
|
|
325
325
|
#
|
|
326
|
-
# * `legacy` - The pre-existing retry behavior.
|
|
327
|
-
# no retry mode is provided.
|
|
326
|
+
# * `legacy` - The pre-existing retry behavior. This is the default
|
|
327
|
+
# value if no retry mode is provided.
|
|
328
328
|
#
|
|
329
329
|
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
|
330
330
|
# This includes support for retry quotas, which limit the number of
|
|
331
331
|
# unsuccessful retries a client can make.
|
|
332
332
|
#
|
|
333
|
-
# * `adaptive` -
|
|
334
|
-
#
|
|
335
|
-
# throttling. This is a provisional mode that may change behavior
|
|
336
|
-
# in the future.
|
|
333
|
+
# * `adaptive` - A retry mode that includes all the functionality of
|
|
334
|
+
# `standard` mode along with automatic client side throttling.
|
|
337
335
|
#
|
|
338
336
|
# @option options [String] :sdk_ua_app_id
|
|
339
337
|
# A unique and opaque application ID that is appended to the
|
|
@@ -1203,6 +1201,11 @@ module Aws::BedrockAgent
|
|
|
1203
1201
|
# resource. Note that the **vector store itself is not deleted** if
|
|
1204
1202
|
# you delete a knowledge base or data source resource.
|
|
1205
1203
|
#
|
|
1204
|
+
# <note markdown="1"> For managed knowledge bases, the only supported option is `DELETE`,
|
|
1205
|
+
# which is also the default.
|
|
1206
|
+
#
|
|
1207
|
+
# </note>
|
|
1208
|
+
#
|
|
1206
1209
|
# @option params [Types::ServerSideEncryptionConfiguration] :server_side_encryption_configuration
|
|
1207
1210
|
# Contains details about the server-side encryption for the data source.
|
|
1208
1211
|
#
|
|
@@ -1221,7 +1224,26 @@ module Aws::BedrockAgent
|
|
|
1221
1224
|
# name: "Name", # required
|
|
1222
1225
|
# description: "Description",
|
|
1223
1226
|
# data_source_configuration: { # required
|
|
1224
|
-
# type: "S3", # required, accepts S3, WEB, CONFLUENCE, SALESFORCE, SHAREPOINT, CUSTOM, REDSHIFT_METADATA
|
|
1227
|
+
# type: "S3", # required, accepts S3, WEB, CONFLUENCE, SALESFORCE, SHAREPOINT, CUSTOM, REDSHIFT_METADATA, MANAGED_KNOWLEDGE_BASE_CONNECTOR
|
|
1228
|
+
# managed_knowledge_base_connector_configuration: {
|
|
1229
|
+
# deletion_protection_configuration: {
|
|
1230
|
+
# deletion_protection_status: "ENABLED", # required, accepts ENABLED, DISABLED
|
|
1231
|
+
# deletion_protection_threshold: 1,
|
|
1232
|
+
# },
|
|
1233
|
+
# media_extraction_configuration: {
|
|
1234
|
+
# image_extraction_configuration: {
|
|
1235
|
+
# image_extraction_status: "ENABLED", # required, accepts ENABLED, DISABLED
|
|
1236
|
+
# },
|
|
1237
|
+
# audio_extraction_configuration: {
|
|
1238
|
+
# audio_extraction_status: "ENABLED", # required, accepts ENABLED, DISABLED
|
|
1239
|
+
# },
|
|
1240
|
+
# video_extraction_configuration: {
|
|
1241
|
+
# video_extraction_status: "ENABLED", # required, accepts ENABLED, DISABLED
|
|
1242
|
+
# },
|
|
1243
|
+
# },
|
|
1244
|
+
# connector_parameters: {
|
|
1245
|
+
# },
|
|
1246
|
+
# },
|
|
1225
1247
|
# s3_configuration: {
|
|
1226
1248
|
# bucket_arn: "S3BucketArn", # required
|
|
1227
1249
|
# inclusion_prefixes: ["S3Prefix"],
|
|
@@ -1360,7 +1382,7 @@ module Aws::BedrockAgent
|
|
|
1360
1382
|
# ],
|
|
1361
1383
|
# },
|
|
1362
1384
|
# parsing_configuration: {
|
|
1363
|
-
# parsing_strategy: "BEDROCK_FOUNDATION_MODEL", # required, accepts BEDROCK_FOUNDATION_MODEL, BEDROCK_DATA_AUTOMATION
|
|
1385
|
+
# parsing_strategy: "BEDROCK_FOUNDATION_MODEL", # required, accepts BEDROCK_FOUNDATION_MODEL, BEDROCK_DATA_AUTOMATION, SMART_PARSING
|
|
1364
1386
|
# bedrock_foundation_model_configuration: {
|
|
1365
1387
|
# model_arn: "BedrockModelArn", # required
|
|
1366
1388
|
# parsing_prompt: {
|
|
@@ -1389,9 +1411,14 @@ module Aws::BedrockAgent
|
|
|
1389
1411
|
# resp.data_source.knowledge_base_id #=> String
|
|
1390
1412
|
# resp.data_source.data_source_id #=> String
|
|
1391
1413
|
# resp.data_source.name #=> String
|
|
1392
|
-
# resp.data_source.status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL"
|
|
1414
|
+
# resp.data_source.status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL", "CREATING", "UPDATING", "FAILED"
|
|
1393
1415
|
# resp.data_source.description #=> String
|
|
1394
|
-
# resp.data_source.data_source_configuration.type #=> String, one of "S3", "WEB", "CONFLUENCE", "SALESFORCE", "SHAREPOINT", "CUSTOM", "REDSHIFT_METADATA"
|
|
1416
|
+
# resp.data_source.data_source_configuration.type #=> String, one of "S3", "WEB", "CONFLUENCE", "SALESFORCE", "SHAREPOINT", "CUSTOM", "REDSHIFT_METADATA", "MANAGED_KNOWLEDGE_BASE_CONNECTOR"
|
|
1417
|
+
# resp.data_source.data_source_configuration.managed_knowledge_base_connector_configuration.deletion_protection_configuration.deletion_protection_status #=> String, one of "ENABLED", "DISABLED"
|
|
1418
|
+
# resp.data_source.data_source_configuration.managed_knowledge_base_connector_configuration.deletion_protection_configuration.deletion_protection_threshold #=> Integer
|
|
1419
|
+
# resp.data_source.data_source_configuration.managed_knowledge_base_connector_configuration.media_extraction_configuration.image_extraction_configuration.image_extraction_status #=> String, one of "ENABLED", "DISABLED"
|
|
1420
|
+
# resp.data_source.data_source_configuration.managed_knowledge_base_connector_configuration.media_extraction_configuration.audio_extraction_configuration.audio_extraction_status #=> String, one of "ENABLED", "DISABLED"
|
|
1421
|
+
# resp.data_source.data_source_configuration.managed_knowledge_base_connector_configuration.media_extraction_configuration.video_extraction_configuration.video_extraction_status #=> String, one of "ENABLED", "DISABLED"
|
|
1395
1422
|
# resp.data_source.data_source_configuration.s3_configuration.bucket_arn #=> String
|
|
1396
1423
|
# resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes #=> Array
|
|
1397
1424
|
# resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes[0] #=> String
|
|
@@ -1456,7 +1483,7 @@ module Aws::BedrockAgent
|
|
|
1456
1483
|
# resp.data_source.vector_ingestion_configuration.custom_transformation_configuration.transformations #=> Array
|
|
1457
1484
|
# resp.data_source.vector_ingestion_configuration.custom_transformation_configuration.transformations[0].transformation_function.transformation_lambda_configuration.lambda_arn #=> String
|
|
1458
1485
|
# resp.data_source.vector_ingestion_configuration.custom_transformation_configuration.transformations[0].step_to_apply #=> String, one of "POST_CHUNKING"
|
|
1459
|
-
# resp.data_source.vector_ingestion_configuration.parsing_configuration.parsing_strategy #=> String, one of "BEDROCK_FOUNDATION_MODEL", "BEDROCK_DATA_AUTOMATION"
|
|
1486
|
+
# resp.data_source.vector_ingestion_configuration.parsing_configuration.parsing_strategy #=> String, one of "BEDROCK_FOUNDATION_MODEL", "BEDROCK_DATA_AUTOMATION", "SMART_PARSING"
|
|
1460
1487
|
# resp.data_source.vector_ingestion_configuration.parsing_configuration.bedrock_foundation_model_configuration.model_arn #=> String
|
|
1461
1488
|
# resp.data_source.vector_ingestion_configuration.parsing_configuration.bedrock_foundation_model_configuration.parsing_prompt.parsing_prompt_text #=> String
|
|
1462
1489
|
# resp.data_source.vector_ingestion_configuration.parsing_configuration.bedrock_foundation_model_configuration.parsing_modality #=> String, one of "MULTIMODAL"
|
|
@@ -2202,9 +2229,9 @@ module Aws::BedrockAgent
|
|
|
2202
2229
|
# a supported vector store. For more information, see [Set up a
|
|
2203
2230
|
# knowledge base][1].
|
|
2204
2231
|
#
|
|
2205
|
-
# <note markdown="1">
|
|
2206
|
-
#
|
|
2207
|
-
# information, see [
|
|
2232
|
+
# <note markdown="1"> To create a managed knowledge base, provide a
|
|
2233
|
+
# `managedKnowledgeBaseConfiguration` during creation. For more
|
|
2234
|
+
# information, see [Build a managed knowledge base][2].
|
|
2208
2235
|
#
|
|
2209
2236
|
# </note>
|
|
2210
2237
|
#
|
|
@@ -2213,11 +2240,19 @@ module Aws::BedrockAgent
|
|
|
2213
2240
|
# * Provide the Amazon Resource Name (ARN) with permissions to create a
|
|
2214
2241
|
# knowledge base in the `roleArn` field.
|
|
2215
2242
|
#
|
|
2216
|
-
# *
|
|
2217
|
-
#
|
|
2243
|
+
# * For managed knowledge bases, set `embeddingModelType` to `MANAGED`
|
|
2244
|
+
# to use the service-managed embedding model, or `CUSTOM` with an
|
|
2245
|
+
# `embeddingModelArn` to use your own. To use your own KMS key for
|
|
2246
|
+
# encryption, provide the ARN in `serverSideEncryptionConfiguration`.
|
|
2247
|
+
# No vector store configuration is required for managed knowledge
|
|
2248
|
+
# bases.
|
|
2249
|
+
#
|
|
2250
|
+
# * For self-managed knowledge bases, provide the embedding model to use
|
|
2251
|
+
# in the `embeddingModelArn` field in the `knowledgeBaseConfiguration`
|
|
2252
|
+
# object.
|
|
2218
2253
|
#
|
|
2219
|
-
# *
|
|
2220
|
-
# `storageConfiguration` object.
|
|
2254
|
+
# * For self-managed knowledge bases, provide the configuration for your
|
|
2255
|
+
# vector store in the `storageConfiguration` object.
|
|
2221
2256
|
#
|
|
2222
2257
|
# * For an Amazon OpenSearch Service database, use the
|
|
2223
2258
|
# `opensearchServerlessConfiguration` object. For more information,
|
|
@@ -2237,7 +2272,7 @@ module Aws::BedrockAgent
|
|
|
2237
2272
|
#
|
|
2238
2273
|
#
|
|
2239
2274
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/knowlege-base-prereq.html
|
|
2240
|
-
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/
|
|
2275
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/kb-build-managed.html
|
|
2241
2276
|
# [3]: https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-oss.html
|
|
2242
2277
|
# [4]: https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-rds.html
|
|
2243
2278
|
# [5]: https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-pinecone.html
|
|
@@ -2290,7 +2325,7 @@ module Aws::BedrockAgent
|
|
|
2290
2325
|
# description: "Description",
|
|
2291
2326
|
# role_arn: "KnowledgeBaseRoleArn", # required
|
|
2292
2327
|
# knowledge_base_configuration: { # required
|
|
2293
|
-
# type: "VECTOR", # required, accepts VECTOR, KENDRA, SQL
|
|
2328
|
+
# type: "VECTOR", # required, accepts VECTOR, KENDRA, SQL, MANAGED
|
|
2294
2329
|
# vector_knowledge_base_configuration: {
|
|
2295
2330
|
# embedding_model_arn: "BedrockEmbeddingModelArn", # required
|
|
2296
2331
|
# embedding_model_configuration: {
|
|
@@ -2324,6 +2359,33 @@ module Aws::BedrockAgent
|
|
|
2324
2359
|
# ],
|
|
2325
2360
|
# },
|
|
2326
2361
|
# },
|
|
2362
|
+
# managed_knowledge_base_configuration: {
|
|
2363
|
+
# embedding_model_type: "CUSTOM", # accepts CUSTOM, MANAGED
|
|
2364
|
+
# embedding_model_arn: "BedrockEmbeddingModelArn",
|
|
2365
|
+
# embedding_model_configuration: {
|
|
2366
|
+
# bedrock_embedding_model_configuration: {
|
|
2367
|
+
# dimensions: 1,
|
|
2368
|
+
# embedding_data_type: "FLOAT32", # accepts FLOAT32, BINARY
|
|
2369
|
+
# audio: [
|
|
2370
|
+
# {
|
|
2371
|
+
# segmentation_configuration: { # required
|
|
2372
|
+
# fixed_length_duration: 1, # required
|
|
2373
|
+
# },
|
|
2374
|
+
# },
|
|
2375
|
+
# ],
|
|
2376
|
+
# video: [
|
|
2377
|
+
# {
|
|
2378
|
+
# segmentation_configuration: { # required
|
|
2379
|
+
# fixed_length_duration: 1, # required
|
|
2380
|
+
# },
|
|
2381
|
+
# },
|
|
2382
|
+
# ],
|
|
2383
|
+
# },
|
|
2384
|
+
# },
|
|
2385
|
+
# server_side_encryption_configuration: {
|
|
2386
|
+
# kms_key_arn: "KmsKeyArn",
|
|
2387
|
+
# },
|
|
2388
|
+
# },
|
|
2327
2389
|
# kendra_knowledge_base_configuration: {
|
|
2328
2390
|
# kendra_index_arn: "KendraIndexArn", # required
|
|
2329
2391
|
# },
|
|
@@ -2479,7 +2541,7 @@ module Aws::BedrockAgent
|
|
|
2479
2541
|
# resp.knowledge_base.knowledge_base_arn #=> String
|
|
2480
2542
|
# resp.knowledge_base.description #=> String
|
|
2481
2543
|
# resp.knowledge_base.role_arn #=> String
|
|
2482
|
-
# resp.knowledge_base.knowledge_base_configuration.type #=> String, one of "VECTOR", "KENDRA", "SQL"
|
|
2544
|
+
# resp.knowledge_base.knowledge_base_configuration.type #=> String, one of "VECTOR", "KENDRA", "SQL", "MANAGED"
|
|
2483
2545
|
# resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_arn #=> String
|
|
2484
2546
|
# resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.dimensions #=> Integer
|
|
2485
2547
|
# resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.embedding_data_type #=> String, one of "FLOAT32", "BINARY"
|
|
@@ -2490,6 +2552,15 @@ module Aws::BedrockAgent
|
|
|
2490
2552
|
# resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.supplemental_data_storage_configuration.storage_locations #=> Array
|
|
2491
2553
|
# resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.supplemental_data_storage_configuration.storage_locations[0].type #=> String, one of "S3"
|
|
2492
2554
|
# resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.supplemental_data_storage_configuration.storage_locations[0].s3_location.uri #=> String
|
|
2555
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_type #=> String, one of "CUSTOM", "MANAGED"
|
|
2556
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_arn #=> String
|
|
2557
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.dimensions #=> Integer
|
|
2558
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.embedding_data_type #=> String, one of "FLOAT32", "BINARY"
|
|
2559
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.audio #=> Array
|
|
2560
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.audio[0].segmentation_configuration.fixed_length_duration #=> Integer
|
|
2561
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.video #=> Array
|
|
2562
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.video[0].segmentation_configuration.fixed_length_duration #=> Integer
|
|
2563
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.server_side_encryption_configuration.kms_key_arn #=> String
|
|
2493
2564
|
# resp.knowledge_base.knowledge_base_configuration.kendra_knowledge_base_configuration.kendra_index_arn #=> String
|
|
2494
2565
|
# resp.knowledge_base.knowledge_base_configuration.sql_knowledge_base_configuration.type #=> String, one of "REDSHIFT"
|
|
2495
2566
|
# resp.knowledge_base.knowledge_base_configuration.sql_knowledge_base_configuration.redshift_configuration.storage_configurations #=> Array
|
|
@@ -2565,7 +2636,7 @@ module Aws::BedrockAgent
|
|
|
2565
2636
|
# resp.knowledge_base.storage_configuration.s3_vectors_configuration.vector_bucket_arn #=> String
|
|
2566
2637
|
# resp.knowledge_base.storage_configuration.s3_vectors_configuration.index_arn #=> String
|
|
2567
2638
|
# resp.knowledge_base.storage_configuration.s3_vectors_configuration.index_name #=> String
|
|
2568
|
-
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
|
|
2639
|
+
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL", "UPDATE_UNSUCCESSFUL"
|
|
2569
2640
|
# resp.knowledge_base.created_at #=> Time
|
|
2570
2641
|
# resp.knowledge_base.updated_at #=> Time
|
|
2571
2642
|
# resp.knowledge_base.failure_reasons #=> Array
|
|
@@ -3099,7 +3170,7 @@ module Aws::BedrockAgent
|
|
|
3099
3170
|
#
|
|
3100
3171
|
# resp.knowledge_base_id #=> String
|
|
3101
3172
|
# resp.data_source_id #=> String
|
|
3102
|
-
# resp.status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL"
|
|
3173
|
+
# resp.status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL", "CREATING", "UPDATING", "FAILED"
|
|
3103
3174
|
#
|
|
3104
3175
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/DeleteDataSource AWS API Documentation
|
|
3105
3176
|
#
|
|
@@ -3244,7 +3315,7 @@ module Aws::BedrockAgent
|
|
|
3244
3315
|
# @example Response structure
|
|
3245
3316
|
#
|
|
3246
3317
|
# resp.knowledge_base_id #=> String
|
|
3247
|
-
# resp.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
|
|
3318
|
+
# resp.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL", "UPDATE_UNSUCCESSFUL"
|
|
3248
3319
|
#
|
|
3249
3320
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/DeleteKnowledgeBase AWS API Documentation
|
|
3250
3321
|
#
|
|
@@ -3376,6 +3447,45 @@ module Aws::BedrockAgent
|
|
|
3376
3447
|
req.send_request(options)
|
|
3377
3448
|
end
|
|
3378
3449
|
|
|
3450
|
+
# Removes the resource policy associated with a knowledge base. After
|
|
3451
|
+
# deletion, other AWS accounts can no longer access the knowledge base
|
|
3452
|
+
# using cross-account permissions.
|
|
3453
|
+
#
|
|
3454
|
+
# @option params [required, String] :resource_arn
|
|
3455
|
+
# The Amazon Resource Name (ARN) of the knowledge base to remove the
|
|
3456
|
+
# resource policy from.
|
|
3457
|
+
#
|
|
3458
|
+
# @option params [String] :expected_revision_id
|
|
3459
|
+
# The expected revision identifier of the resource policy. Use this to
|
|
3460
|
+
# prevent conflicts when multiple users update the same policy
|
|
3461
|
+
# concurrently.
|
|
3462
|
+
#
|
|
3463
|
+
# @return [Types::DeleteResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3464
|
+
#
|
|
3465
|
+
# * {Types::DeleteResourcePolicyResponse#resource_arn #resource_arn} => String
|
|
3466
|
+
# * {Types::DeleteResourcePolicyResponse#revision_id #revision_id} => String
|
|
3467
|
+
#
|
|
3468
|
+
# @example Request syntax with placeholder values
|
|
3469
|
+
#
|
|
3470
|
+
# resp = client.delete_resource_policy({
|
|
3471
|
+
# resource_arn: "ResourceArn", # required
|
|
3472
|
+
# expected_revision_id: "RevisionId",
|
|
3473
|
+
# })
|
|
3474
|
+
#
|
|
3475
|
+
# @example Response structure
|
|
3476
|
+
#
|
|
3477
|
+
# resp.resource_arn #=> String
|
|
3478
|
+
# resp.revision_id #=> String
|
|
3479
|
+
#
|
|
3480
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/DeleteResourcePolicy AWS API Documentation
|
|
3481
|
+
#
|
|
3482
|
+
# @overload delete_resource_policy(params = {})
|
|
3483
|
+
# @param [Hash] params ({})
|
|
3484
|
+
def delete_resource_policy(params = {}, options = {})
|
|
3485
|
+
req = build_request(:delete_resource_policy, params)
|
|
3486
|
+
req.send_request(options)
|
|
3487
|
+
end
|
|
3488
|
+
|
|
3379
3489
|
# Disassociates an agent collaborator.
|
|
3380
3490
|
#
|
|
3381
3491
|
# @option params [required, String] :agent_id
|
|
@@ -3802,9 +3912,14 @@ module Aws::BedrockAgent
|
|
|
3802
3912
|
# resp.data_source.knowledge_base_id #=> String
|
|
3803
3913
|
# resp.data_source.data_source_id #=> String
|
|
3804
3914
|
# resp.data_source.name #=> String
|
|
3805
|
-
# resp.data_source.status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL"
|
|
3915
|
+
# resp.data_source.status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL", "CREATING", "UPDATING", "FAILED"
|
|
3806
3916
|
# resp.data_source.description #=> String
|
|
3807
|
-
# resp.data_source.data_source_configuration.type #=> String, one of "S3", "WEB", "CONFLUENCE", "SALESFORCE", "SHAREPOINT", "CUSTOM", "REDSHIFT_METADATA"
|
|
3917
|
+
# resp.data_source.data_source_configuration.type #=> String, one of "S3", "WEB", "CONFLUENCE", "SALESFORCE", "SHAREPOINT", "CUSTOM", "REDSHIFT_METADATA", "MANAGED_KNOWLEDGE_BASE_CONNECTOR"
|
|
3918
|
+
# resp.data_source.data_source_configuration.managed_knowledge_base_connector_configuration.deletion_protection_configuration.deletion_protection_status #=> String, one of "ENABLED", "DISABLED"
|
|
3919
|
+
# resp.data_source.data_source_configuration.managed_knowledge_base_connector_configuration.deletion_protection_configuration.deletion_protection_threshold #=> Integer
|
|
3920
|
+
# resp.data_source.data_source_configuration.managed_knowledge_base_connector_configuration.media_extraction_configuration.image_extraction_configuration.image_extraction_status #=> String, one of "ENABLED", "DISABLED"
|
|
3921
|
+
# resp.data_source.data_source_configuration.managed_knowledge_base_connector_configuration.media_extraction_configuration.audio_extraction_configuration.audio_extraction_status #=> String, one of "ENABLED", "DISABLED"
|
|
3922
|
+
# resp.data_source.data_source_configuration.managed_knowledge_base_connector_configuration.media_extraction_configuration.video_extraction_configuration.video_extraction_status #=> String, one of "ENABLED", "DISABLED"
|
|
3808
3923
|
# resp.data_source.data_source_configuration.s3_configuration.bucket_arn #=> String
|
|
3809
3924
|
# resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes #=> Array
|
|
3810
3925
|
# resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes[0] #=> String
|
|
@@ -3869,7 +3984,7 @@ module Aws::BedrockAgent
|
|
|
3869
3984
|
# resp.data_source.vector_ingestion_configuration.custom_transformation_configuration.transformations #=> Array
|
|
3870
3985
|
# resp.data_source.vector_ingestion_configuration.custom_transformation_configuration.transformations[0].transformation_function.transformation_lambda_configuration.lambda_arn #=> String
|
|
3871
3986
|
# resp.data_source.vector_ingestion_configuration.custom_transformation_configuration.transformations[0].step_to_apply #=> String, one of "POST_CHUNKING"
|
|
3872
|
-
# resp.data_source.vector_ingestion_configuration.parsing_configuration.parsing_strategy #=> String, one of "BEDROCK_FOUNDATION_MODEL", "BEDROCK_DATA_AUTOMATION"
|
|
3987
|
+
# resp.data_source.vector_ingestion_configuration.parsing_configuration.parsing_strategy #=> String, one of "BEDROCK_FOUNDATION_MODEL", "BEDROCK_DATA_AUTOMATION", "SMART_PARSING"
|
|
3873
3988
|
# resp.data_source.vector_ingestion_configuration.parsing_configuration.bedrock_foundation_model_configuration.model_arn #=> String
|
|
3874
3989
|
# resp.data_source.vector_ingestion_configuration.parsing_configuration.bedrock_foundation_model_configuration.parsing_prompt.parsing_prompt_text #=> String
|
|
3875
3990
|
# resp.data_source.vector_ingestion_configuration.parsing_configuration.bedrock_foundation_model_configuration.parsing_modality #=> String, one of "MULTIMODAL"
|
|
@@ -4335,6 +4450,7 @@ module Aws::BedrockAgent
|
|
|
4335
4450
|
# resp.ingestion_job.statistics.number_of_metadata_documents_modified #=> Integer
|
|
4336
4451
|
# resp.ingestion_job.statistics.number_of_documents_deleted #=> Integer
|
|
4337
4452
|
# resp.ingestion_job.statistics.number_of_documents_failed #=> Integer
|
|
4453
|
+
# resp.ingestion_job.statistics.number_of_documents_skipped #=> Integer
|
|
4338
4454
|
# resp.ingestion_job.failure_reasons #=> Array
|
|
4339
4455
|
# resp.ingestion_job.failure_reasons[0] #=> String
|
|
4340
4456
|
# resp.ingestion_job.started_at #=> Time
|
|
@@ -4372,7 +4488,7 @@ module Aws::BedrockAgent
|
|
|
4372
4488
|
# resp.knowledge_base.knowledge_base_arn #=> String
|
|
4373
4489
|
# resp.knowledge_base.description #=> String
|
|
4374
4490
|
# resp.knowledge_base.role_arn #=> String
|
|
4375
|
-
# resp.knowledge_base.knowledge_base_configuration.type #=> String, one of "VECTOR", "KENDRA", "SQL"
|
|
4491
|
+
# resp.knowledge_base.knowledge_base_configuration.type #=> String, one of "VECTOR", "KENDRA", "SQL", "MANAGED"
|
|
4376
4492
|
# resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_arn #=> String
|
|
4377
4493
|
# resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.dimensions #=> Integer
|
|
4378
4494
|
# resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.embedding_data_type #=> String, one of "FLOAT32", "BINARY"
|
|
@@ -4383,6 +4499,15 @@ module Aws::BedrockAgent
|
|
|
4383
4499
|
# resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.supplemental_data_storage_configuration.storage_locations #=> Array
|
|
4384
4500
|
# resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.supplemental_data_storage_configuration.storage_locations[0].type #=> String, one of "S3"
|
|
4385
4501
|
# resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.supplemental_data_storage_configuration.storage_locations[0].s3_location.uri #=> String
|
|
4502
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_type #=> String, one of "CUSTOM", "MANAGED"
|
|
4503
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_arn #=> String
|
|
4504
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.dimensions #=> Integer
|
|
4505
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.embedding_data_type #=> String, one of "FLOAT32", "BINARY"
|
|
4506
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.audio #=> Array
|
|
4507
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.audio[0].segmentation_configuration.fixed_length_duration #=> Integer
|
|
4508
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.video #=> Array
|
|
4509
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.video[0].segmentation_configuration.fixed_length_duration #=> Integer
|
|
4510
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.server_side_encryption_configuration.kms_key_arn #=> String
|
|
4386
4511
|
# resp.knowledge_base.knowledge_base_configuration.kendra_knowledge_base_configuration.kendra_index_arn #=> String
|
|
4387
4512
|
# resp.knowledge_base.knowledge_base_configuration.sql_knowledge_base_configuration.type #=> String, one of "REDSHIFT"
|
|
4388
4513
|
# resp.knowledge_base.knowledge_base_configuration.sql_knowledge_base_configuration.redshift_configuration.storage_configurations #=> Array
|
|
@@ -4458,7 +4583,7 @@ module Aws::BedrockAgent
|
|
|
4458
4583
|
# resp.knowledge_base.storage_configuration.s3_vectors_configuration.vector_bucket_arn #=> String
|
|
4459
4584
|
# resp.knowledge_base.storage_configuration.s3_vectors_configuration.index_arn #=> String
|
|
4460
4585
|
# resp.knowledge_base.storage_configuration.s3_vectors_configuration.index_name #=> String
|
|
4461
|
-
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
|
|
4586
|
+
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL", "UPDATE_UNSUCCESSFUL"
|
|
4462
4587
|
# resp.knowledge_base.created_at #=> Time
|
|
4463
4588
|
# resp.knowledge_base.updated_at #=> Time
|
|
4464
4589
|
# resp.knowledge_base.failure_reasons #=> Array
|
|
@@ -4629,6 +4754,39 @@ module Aws::BedrockAgent
|
|
|
4629
4754
|
req.send_request(options)
|
|
4630
4755
|
end
|
|
4631
4756
|
|
|
4757
|
+
# Retrieves the resource policy associated with a knowledge base.
|
|
4758
|
+
#
|
|
4759
|
+
# @option params [required, String] :resource_arn
|
|
4760
|
+
# The Amazon Resource Name (ARN) of the knowledge base to retrieve the
|
|
4761
|
+
# resource policy for.
|
|
4762
|
+
#
|
|
4763
|
+
# @return [Types::GetResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4764
|
+
#
|
|
4765
|
+
# * {Types::GetResourcePolicyResponse#resource_arn #resource_arn} => String
|
|
4766
|
+
# * {Types::GetResourcePolicyResponse#policy #policy} => String
|
|
4767
|
+
# * {Types::GetResourcePolicyResponse#revision_id #revision_id} => String
|
|
4768
|
+
#
|
|
4769
|
+
# @example Request syntax with placeholder values
|
|
4770
|
+
#
|
|
4771
|
+
# resp = client.get_resource_policy({
|
|
4772
|
+
# resource_arn: "ResourceArn", # required
|
|
4773
|
+
# })
|
|
4774
|
+
#
|
|
4775
|
+
# @example Response structure
|
|
4776
|
+
#
|
|
4777
|
+
# resp.resource_arn #=> String
|
|
4778
|
+
# resp.policy #=> String
|
|
4779
|
+
# resp.revision_id #=> String
|
|
4780
|
+
#
|
|
4781
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/GetResourcePolicy AWS API Documentation
|
|
4782
|
+
#
|
|
4783
|
+
# @overload get_resource_policy(params = {})
|
|
4784
|
+
# @param [Hash] params ({})
|
|
4785
|
+
def get_resource_policy(params = {}, options = {})
|
|
4786
|
+
req = build_request(:get_resource_policy, params)
|
|
4787
|
+
req.send_request(options)
|
|
4788
|
+
end
|
|
4789
|
+
|
|
4632
4790
|
# Ingests documents directly into the knowledge base that is connected
|
|
4633
4791
|
# to the data source. The `dataSourceType` specified in the content for
|
|
4634
4792
|
# each document must match the type of the data source that you specify
|
|
@@ -4694,6 +4852,13 @@ module Aws::BedrockAgent
|
|
|
4694
4852
|
# uri: "S3ObjectUri", # required
|
|
4695
4853
|
# bucket_owner_account_id: "BucketOwnerAccountId",
|
|
4696
4854
|
# },
|
|
4855
|
+
# access_control_list: [
|
|
4856
|
+
# {
|
|
4857
|
+
# name: "DocumentAccessControlEntryNameString", # required
|
|
4858
|
+
# type: "USER", # required, accepts USER
|
|
4859
|
+
# access: "ALLOW", # required, accepts ALLOW, DENY
|
|
4860
|
+
# },
|
|
4861
|
+
# ],
|
|
4697
4862
|
# },
|
|
4698
4863
|
# content: { # required
|
|
4699
4864
|
# data_source_type: "CUSTOM", # required, accepts CUSTOM, S3
|
|
@@ -5116,7 +5281,7 @@ module Aws::BedrockAgent
|
|
|
5116
5281
|
# resp.data_source_summaries[0].knowledge_base_id #=> String
|
|
5117
5282
|
# resp.data_source_summaries[0].data_source_id #=> String
|
|
5118
5283
|
# resp.data_source_summaries[0].name #=> String
|
|
5119
|
-
# resp.data_source_summaries[0].status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL"
|
|
5284
|
+
# resp.data_source_summaries[0].status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL", "CREATING", "UPDATING", "FAILED"
|
|
5120
5285
|
# resp.data_source_summaries[0].description #=> String
|
|
5121
5286
|
# resp.data_source_summaries[0].updated_at #=> Time
|
|
5122
5287
|
# resp.next_token #=> String
|
|
@@ -5374,6 +5539,7 @@ module Aws::BedrockAgent
|
|
|
5374
5539
|
# resp.ingestion_job_summaries[0].statistics.number_of_metadata_documents_modified #=> Integer
|
|
5375
5540
|
# resp.ingestion_job_summaries[0].statistics.number_of_documents_deleted #=> Integer
|
|
5376
5541
|
# resp.ingestion_job_summaries[0].statistics.number_of_documents_failed #=> Integer
|
|
5542
|
+
# resp.ingestion_job_summaries[0].statistics.number_of_documents_skipped #=> Integer
|
|
5377
5543
|
# resp.next_token #=> String
|
|
5378
5544
|
#
|
|
5379
5545
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/ListIngestionJobs AWS API Documentation
|
|
@@ -5486,7 +5652,7 @@ module Aws::BedrockAgent
|
|
|
5486
5652
|
# resp.knowledge_base_summaries[0].knowledge_base_id #=> String
|
|
5487
5653
|
# resp.knowledge_base_summaries[0].name #=> String
|
|
5488
5654
|
# resp.knowledge_base_summaries[0].description #=> String
|
|
5489
|
-
# resp.knowledge_base_summaries[0].status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
|
|
5655
|
+
# resp.knowledge_base_summaries[0].status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL", "UPDATE_UNSUCCESSFUL"
|
|
5490
5656
|
# resp.knowledge_base_summaries[0].updated_at #=> Time
|
|
5491
5657
|
# resp.next_token #=> String
|
|
5492
5658
|
#
|
|
@@ -5663,6 +5829,59 @@ module Aws::BedrockAgent
|
|
|
5663
5829
|
req.send_request(options)
|
|
5664
5830
|
end
|
|
5665
5831
|
|
|
5832
|
+
# Associates a resource policy with a knowledge base. A resource policy
|
|
5833
|
+
# allows other AWS accounts to access the knowledge base. For more
|
|
5834
|
+
# information, see [Cross-account access for knowledge bases][1].
|
|
5835
|
+
#
|
|
5836
|
+
#
|
|
5837
|
+
#
|
|
5838
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/kb-managed-cross-account.html
|
|
5839
|
+
#
|
|
5840
|
+
# @option params [required, String] :resource_arn
|
|
5841
|
+
# The Amazon Resource Name (ARN) of the knowledge base to attach the
|
|
5842
|
+
# resource policy to.
|
|
5843
|
+
#
|
|
5844
|
+
# @option params [required, String] :policy
|
|
5845
|
+
# The JSON-formatted resource policy to associate with the knowledge
|
|
5846
|
+
# base.
|
|
5847
|
+
#
|
|
5848
|
+
# **SDK automatically handles json encoding and base64 encoding for you
|
|
5849
|
+
# when the required value (Hash, Array, etc.) is provided according to
|
|
5850
|
+
# the description.**
|
|
5851
|
+
#
|
|
5852
|
+
# @option params [String] :expected_revision_id
|
|
5853
|
+
# The expected revision identifier of the resource policy. Use this to
|
|
5854
|
+
# prevent conflicts when multiple users update the same policy
|
|
5855
|
+
# concurrently. Specify the `revisionId` from the most recent
|
|
5856
|
+
# `GetResourcePolicy` or `PutResourcePolicy` response.
|
|
5857
|
+
#
|
|
5858
|
+
# @return [Types::PutResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
5859
|
+
#
|
|
5860
|
+
# * {Types::PutResourcePolicyResponse#resource_arn #resource_arn} => String
|
|
5861
|
+
# * {Types::PutResourcePolicyResponse#revision_id #revision_id} => String
|
|
5862
|
+
#
|
|
5863
|
+
# @example Request syntax with placeholder values
|
|
5864
|
+
#
|
|
5865
|
+
# resp = client.put_resource_policy({
|
|
5866
|
+
# resource_arn: "ResourceArn", # required
|
|
5867
|
+
# policy: "ResourcePolicy", # required
|
|
5868
|
+
# expected_revision_id: "RevisionId",
|
|
5869
|
+
# })
|
|
5870
|
+
#
|
|
5871
|
+
# @example Response structure
|
|
5872
|
+
#
|
|
5873
|
+
# resp.resource_arn #=> String
|
|
5874
|
+
# resp.revision_id #=> String
|
|
5875
|
+
#
|
|
5876
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/PutResourcePolicy AWS API Documentation
|
|
5877
|
+
#
|
|
5878
|
+
# @overload put_resource_policy(params = {})
|
|
5879
|
+
# @param [Hash] params ({})
|
|
5880
|
+
def put_resource_policy(params = {}, options = {})
|
|
5881
|
+
req = build_request(:put_resource_policy, params)
|
|
5882
|
+
req.send_request(options)
|
|
5883
|
+
end
|
|
5884
|
+
|
|
5666
5885
|
# Begins a data ingestion job. Data sources are ingested into your
|
|
5667
5886
|
# knowledge base so that Large Language Models (LLMs) can use your data.
|
|
5668
5887
|
#
|
|
@@ -5717,6 +5936,7 @@ module Aws::BedrockAgent
|
|
|
5717
5936
|
# resp.ingestion_job.statistics.number_of_metadata_documents_modified #=> Integer
|
|
5718
5937
|
# resp.ingestion_job.statistics.number_of_documents_deleted #=> Integer
|
|
5719
5938
|
# resp.ingestion_job.statistics.number_of_documents_failed #=> Integer
|
|
5939
|
+
# resp.ingestion_job.statistics.number_of_documents_skipped #=> Integer
|
|
5720
5940
|
# resp.ingestion_job.failure_reasons #=> Array
|
|
5721
5941
|
# resp.ingestion_job.failure_reasons[0] #=> String
|
|
5722
5942
|
# resp.ingestion_job.started_at #=> Time
|
|
@@ -5772,6 +5992,7 @@ module Aws::BedrockAgent
|
|
|
5772
5992
|
# resp.ingestion_job.statistics.number_of_metadata_documents_modified #=> Integer
|
|
5773
5993
|
# resp.ingestion_job.statistics.number_of_documents_deleted #=> Integer
|
|
5774
5994
|
# resp.ingestion_job.statistics.number_of_documents_failed #=> Integer
|
|
5995
|
+
# resp.ingestion_job.statistics.number_of_documents_skipped #=> Integer
|
|
5775
5996
|
# resp.ingestion_job.failure_reasons #=> Array
|
|
5776
5997
|
# resp.ingestion_job.failure_reasons[0] #=> String
|
|
5777
5998
|
# resp.ingestion_job.started_at #=> Time
|
|
@@ -6478,7 +6699,26 @@ module Aws::BedrockAgent
|
|
|
6478
6699
|
# name: "Name", # required
|
|
6479
6700
|
# description: "Description",
|
|
6480
6701
|
# data_source_configuration: { # required
|
|
6481
|
-
# type: "S3", # required, accepts S3, WEB, CONFLUENCE, SALESFORCE, SHAREPOINT, CUSTOM, REDSHIFT_METADATA
|
|
6702
|
+
# type: "S3", # required, accepts S3, WEB, CONFLUENCE, SALESFORCE, SHAREPOINT, CUSTOM, REDSHIFT_METADATA, MANAGED_KNOWLEDGE_BASE_CONNECTOR
|
|
6703
|
+
# managed_knowledge_base_connector_configuration: {
|
|
6704
|
+
# deletion_protection_configuration: {
|
|
6705
|
+
# deletion_protection_status: "ENABLED", # required, accepts ENABLED, DISABLED
|
|
6706
|
+
# deletion_protection_threshold: 1,
|
|
6707
|
+
# },
|
|
6708
|
+
# media_extraction_configuration: {
|
|
6709
|
+
# image_extraction_configuration: {
|
|
6710
|
+
# image_extraction_status: "ENABLED", # required, accepts ENABLED, DISABLED
|
|
6711
|
+
# },
|
|
6712
|
+
# audio_extraction_configuration: {
|
|
6713
|
+
# audio_extraction_status: "ENABLED", # required, accepts ENABLED, DISABLED
|
|
6714
|
+
# },
|
|
6715
|
+
# video_extraction_configuration: {
|
|
6716
|
+
# video_extraction_status: "ENABLED", # required, accepts ENABLED, DISABLED
|
|
6717
|
+
# },
|
|
6718
|
+
# },
|
|
6719
|
+
# connector_parameters: {
|
|
6720
|
+
# },
|
|
6721
|
+
# },
|
|
6482
6722
|
# s3_configuration: {
|
|
6483
6723
|
# bucket_arn: "S3BucketArn", # required
|
|
6484
6724
|
# inclusion_prefixes: ["S3Prefix"],
|
|
@@ -6617,7 +6857,7 @@ module Aws::BedrockAgent
|
|
|
6617
6857
|
# ],
|
|
6618
6858
|
# },
|
|
6619
6859
|
# parsing_configuration: {
|
|
6620
|
-
# parsing_strategy: "BEDROCK_FOUNDATION_MODEL", # required, accepts BEDROCK_FOUNDATION_MODEL, BEDROCK_DATA_AUTOMATION
|
|
6860
|
+
# parsing_strategy: "BEDROCK_FOUNDATION_MODEL", # required, accepts BEDROCK_FOUNDATION_MODEL, BEDROCK_DATA_AUTOMATION, SMART_PARSING
|
|
6621
6861
|
# bedrock_foundation_model_configuration: {
|
|
6622
6862
|
# model_arn: "BedrockModelArn", # required
|
|
6623
6863
|
# parsing_prompt: {
|
|
@@ -6646,9 +6886,14 @@ module Aws::BedrockAgent
|
|
|
6646
6886
|
# resp.data_source.knowledge_base_id #=> String
|
|
6647
6887
|
# resp.data_source.data_source_id #=> String
|
|
6648
6888
|
# resp.data_source.name #=> String
|
|
6649
|
-
# resp.data_source.status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL"
|
|
6889
|
+
# resp.data_source.status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL", "CREATING", "UPDATING", "FAILED"
|
|
6650
6890
|
# resp.data_source.description #=> String
|
|
6651
|
-
# resp.data_source.data_source_configuration.type #=> String, one of "S3", "WEB", "CONFLUENCE", "SALESFORCE", "SHAREPOINT", "CUSTOM", "REDSHIFT_METADATA"
|
|
6891
|
+
# resp.data_source.data_source_configuration.type #=> String, one of "S3", "WEB", "CONFLUENCE", "SALESFORCE", "SHAREPOINT", "CUSTOM", "REDSHIFT_METADATA", "MANAGED_KNOWLEDGE_BASE_CONNECTOR"
|
|
6892
|
+
# resp.data_source.data_source_configuration.managed_knowledge_base_connector_configuration.deletion_protection_configuration.deletion_protection_status #=> String, one of "ENABLED", "DISABLED"
|
|
6893
|
+
# resp.data_source.data_source_configuration.managed_knowledge_base_connector_configuration.deletion_protection_configuration.deletion_protection_threshold #=> Integer
|
|
6894
|
+
# resp.data_source.data_source_configuration.managed_knowledge_base_connector_configuration.media_extraction_configuration.image_extraction_configuration.image_extraction_status #=> String, one of "ENABLED", "DISABLED"
|
|
6895
|
+
# resp.data_source.data_source_configuration.managed_knowledge_base_connector_configuration.media_extraction_configuration.audio_extraction_configuration.audio_extraction_status #=> String, one of "ENABLED", "DISABLED"
|
|
6896
|
+
# resp.data_source.data_source_configuration.managed_knowledge_base_connector_configuration.media_extraction_configuration.video_extraction_configuration.video_extraction_status #=> String, one of "ENABLED", "DISABLED"
|
|
6652
6897
|
# resp.data_source.data_source_configuration.s3_configuration.bucket_arn #=> String
|
|
6653
6898
|
# resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes #=> Array
|
|
6654
6899
|
# resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes[0] #=> String
|
|
@@ -6713,7 +6958,7 @@ module Aws::BedrockAgent
|
|
|
6713
6958
|
# resp.data_source.vector_ingestion_configuration.custom_transformation_configuration.transformations #=> Array
|
|
6714
6959
|
# resp.data_source.vector_ingestion_configuration.custom_transformation_configuration.transformations[0].transformation_function.transformation_lambda_configuration.lambda_arn #=> String
|
|
6715
6960
|
# resp.data_source.vector_ingestion_configuration.custom_transformation_configuration.transformations[0].step_to_apply #=> String, one of "POST_CHUNKING"
|
|
6716
|
-
# resp.data_source.vector_ingestion_configuration.parsing_configuration.parsing_strategy #=> String, one of "BEDROCK_FOUNDATION_MODEL", "BEDROCK_DATA_AUTOMATION"
|
|
6961
|
+
# resp.data_source.vector_ingestion_configuration.parsing_configuration.parsing_strategy #=> String, one of "BEDROCK_FOUNDATION_MODEL", "BEDROCK_DATA_AUTOMATION", "SMART_PARSING"
|
|
6717
6962
|
# resp.data_source.vector_ingestion_configuration.parsing_configuration.bedrock_foundation_model_configuration.model_arn #=> String
|
|
6718
6963
|
# resp.data_source.vector_ingestion_configuration.parsing_configuration.bedrock_foundation_model_configuration.parsing_prompt.parsing_prompt_text #=> String
|
|
6719
6964
|
# resp.data_source.vector_ingestion_configuration.parsing_configuration.bedrock_foundation_model_configuration.parsing_modality #=> String, one of "MULTIMODAL"
|
|
@@ -7305,7 +7550,7 @@ module Aws::BedrockAgent
|
|
|
7305
7550
|
# description: "Description",
|
|
7306
7551
|
# role_arn: "KnowledgeBaseRoleArn", # required
|
|
7307
7552
|
# knowledge_base_configuration: { # required
|
|
7308
|
-
# type: "VECTOR", # required, accepts VECTOR, KENDRA, SQL
|
|
7553
|
+
# type: "VECTOR", # required, accepts VECTOR, KENDRA, SQL, MANAGED
|
|
7309
7554
|
# vector_knowledge_base_configuration: {
|
|
7310
7555
|
# embedding_model_arn: "BedrockEmbeddingModelArn", # required
|
|
7311
7556
|
# embedding_model_configuration: {
|
|
@@ -7339,6 +7584,33 @@ module Aws::BedrockAgent
|
|
|
7339
7584
|
# ],
|
|
7340
7585
|
# },
|
|
7341
7586
|
# },
|
|
7587
|
+
# managed_knowledge_base_configuration: {
|
|
7588
|
+
# embedding_model_type: "CUSTOM", # accepts CUSTOM, MANAGED
|
|
7589
|
+
# embedding_model_arn: "BedrockEmbeddingModelArn",
|
|
7590
|
+
# embedding_model_configuration: {
|
|
7591
|
+
# bedrock_embedding_model_configuration: {
|
|
7592
|
+
# dimensions: 1,
|
|
7593
|
+
# embedding_data_type: "FLOAT32", # accepts FLOAT32, BINARY
|
|
7594
|
+
# audio: [
|
|
7595
|
+
# {
|
|
7596
|
+
# segmentation_configuration: { # required
|
|
7597
|
+
# fixed_length_duration: 1, # required
|
|
7598
|
+
# },
|
|
7599
|
+
# },
|
|
7600
|
+
# ],
|
|
7601
|
+
# video: [
|
|
7602
|
+
# {
|
|
7603
|
+
# segmentation_configuration: { # required
|
|
7604
|
+
# fixed_length_duration: 1, # required
|
|
7605
|
+
# },
|
|
7606
|
+
# },
|
|
7607
|
+
# ],
|
|
7608
|
+
# },
|
|
7609
|
+
# },
|
|
7610
|
+
# server_side_encryption_configuration: {
|
|
7611
|
+
# kms_key_arn: "KmsKeyArn",
|
|
7612
|
+
# },
|
|
7613
|
+
# },
|
|
7342
7614
|
# kendra_knowledge_base_configuration: {
|
|
7343
7615
|
# kendra_index_arn: "KendraIndexArn", # required
|
|
7344
7616
|
# },
|
|
@@ -7491,7 +7763,7 @@ module Aws::BedrockAgent
|
|
|
7491
7763
|
# resp.knowledge_base.knowledge_base_arn #=> String
|
|
7492
7764
|
# resp.knowledge_base.description #=> String
|
|
7493
7765
|
# resp.knowledge_base.role_arn #=> String
|
|
7494
|
-
# resp.knowledge_base.knowledge_base_configuration.type #=> String, one of "VECTOR", "KENDRA", "SQL"
|
|
7766
|
+
# resp.knowledge_base.knowledge_base_configuration.type #=> String, one of "VECTOR", "KENDRA", "SQL", "MANAGED"
|
|
7495
7767
|
# resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_arn #=> String
|
|
7496
7768
|
# resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.dimensions #=> Integer
|
|
7497
7769
|
# resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.embedding_data_type #=> String, one of "FLOAT32", "BINARY"
|
|
@@ -7502,6 +7774,15 @@ module Aws::BedrockAgent
|
|
|
7502
7774
|
# resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.supplemental_data_storage_configuration.storage_locations #=> Array
|
|
7503
7775
|
# resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.supplemental_data_storage_configuration.storage_locations[0].type #=> String, one of "S3"
|
|
7504
7776
|
# resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.supplemental_data_storage_configuration.storage_locations[0].s3_location.uri #=> String
|
|
7777
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_type #=> String, one of "CUSTOM", "MANAGED"
|
|
7778
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_arn #=> String
|
|
7779
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.dimensions #=> Integer
|
|
7780
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.embedding_data_type #=> String, one of "FLOAT32", "BINARY"
|
|
7781
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.audio #=> Array
|
|
7782
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.audio[0].segmentation_configuration.fixed_length_duration #=> Integer
|
|
7783
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.video #=> Array
|
|
7784
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.video[0].segmentation_configuration.fixed_length_duration #=> Integer
|
|
7785
|
+
# resp.knowledge_base.knowledge_base_configuration.managed_knowledge_base_configuration.server_side_encryption_configuration.kms_key_arn #=> String
|
|
7505
7786
|
# resp.knowledge_base.knowledge_base_configuration.kendra_knowledge_base_configuration.kendra_index_arn #=> String
|
|
7506
7787
|
# resp.knowledge_base.knowledge_base_configuration.sql_knowledge_base_configuration.type #=> String, one of "REDSHIFT"
|
|
7507
7788
|
# resp.knowledge_base.knowledge_base_configuration.sql_knowledge_base_configuration.redshift_configuration.storage_configurations #=> Array
|
|
@@ -7577,7 +7858,7 @@ module Aws::BedrockAgent
|
|
|
7577
7858
|
# resp.knowledge_base.storage_configuration.s3_vectors_configuration.vector_bucket_arn #=> String
|
|
7578
7859
|
# resp.knowledge_base.storage_configuration.s3_vectors_configuration.index_arn #=> String
|
|
7579
7860
|
# resp.knowledge_base.storage_configuration.s3_vectors_configuration.index_name #=> String
|
|
7580
|
-
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
|
|
7861
|
+
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL", "UPDATE_UNSUCCESSFUL"
|
|
7581
7862
|
# resp.knowledge_base.created_at #=> Time
|
|
7582
7863
|
# resp.knowledge_base.updated_at #=> Time
|
|
7583
7864
|
# resp.knowledge_base.failure_reasons #=> Array
|
|
@@ -8157,7 +8438,7 @@ module Aws::BedrockAgent
|
|
|
8157
8438
|
tracer: tracer
|
|
8158
8439
|
)
|
|
8159
8440
|
context[:gem_name] = 'aws-sdk-bedrockagent'
|
|
8160
|
-
context[:gem_version] = '1.
|
|
8441
|
+
context[:gem_version] = '1.78.0'
|
|
8161
8442
|
Seahorse::Client::Request.new(handlers, context)
|
|
8162
8443
|
end
|
|
8163
8444
|
|