aws-sdk-bedrockagent 1.7.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagent/client.rb +130 -53
- data/lib/aws-sdk-bedrockagent/client_api.rb +22 -0
- data/lib/aws-sdk-bedrockagent/types.rb +91 -5
- data/lib/aws-sdk-bedrockagent.rb +1 -1
- data/sig/client.rbs +28 -2
- data/sig/types.rbs +20 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 125a5c3e09987d4d401a80829a6807ba9e3eb334ad7f623cd34be398bf50e07b
|
4
|
+
data.tar.gz: 3075eaef9d0531c1769121ea35b89fa12507b3bbeb2c01610b8d7763a3a654fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 489a210d47c161e5da002886d60d14b64b33dba98804daa26bd8e17572bc906c6f27af931760a15e4fe38044f981f11898e054f4c0429ac4b3cac319e6e99556
|
7
|
+
data.tar.gz: 1ad08b34f699102eb3d7dbbd8d1b83ed3930cef258ed7fe869c9c8062b44ed3c054b946bbe2444e3793de02b4d1f7c7bb7eb3f6956ea142155d99d69a7f31b56
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.9.0 (2024-05-01)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support for using MongoDB Atlas as a vector store when creating a knowledge base.
|
8
|
+
|
9
|
+
1.8.0 (2024-04-25)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.7.0 (2024-04-23)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.9.0
|
@@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
|
|
22
22
|
require 'aws-sdk-core/plugins/response_paging.rb'
|
23
23
|
require 'aws-sdk-core/plugins/stub_responses.rb'
|
24
24
|
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
25
|
+
require 'aws-sdk-core/plugins/invocation_id.rb'
|
25
26
|
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
26
27
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
27
28
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
@@ -72,6 +73,7 @@ module Aws::BedrockAgent
|
|
72
73
|
add_plugin(Aws::Plugins::ResponsePaging)
|
73
74
|
add_plugin(Aws::Plugins::StubResponses)
|
74
75
|
add_plugin(Aws::Plugins::IdempotencyToken)
|
76
|
+
add_plugin(Aws::Plugins::InvocationId)
|
75
77
|
add_plugin(Aws::Plugins::JsonvalueConverter)
|
76
78
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
77
79
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
@@ -196,10 +198,17 @@ module Aws::BedrockAgent
|
|
196
198
|
# When set to 'true' the request body will not be compressed
|
197
199
|
# for supported operations.
|
198
200
|
#
|
199
|
-
# @option options [String] :endpoint
|
200
|
-
#
|
201
|
-
#
|
202
|
-
#
|
201
|
+
# @option options [String, URI::HTTPS, URI::HTTP] :endpoint
|
202
|
+
# Normally you should not configure the `:endpoint` option
|
203
|
+
# directly. This is normally constructed from the `:region`
|
204
|
+
# option. Configuring `:endpoint` is normally reserved for
|
205
|
+
# connecting to test or custom endpoints. The endpoint should
|
206
|
+
# be a URI formatted like:
|
207
|
+
#
|
208
|
+
# 'http://example.com'
|
209
|
+
# 'https://example.com'
|
210
|
+
# 'http://example.com:123'
|
211
|
+
#
|
203
212
|
#
|
204
213
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
205
214
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -337,50 +346,65 @@ module Aws::BedrockAgent
|
|
337
346
|
# @option options [Aws::BedrockAgent::EndpointProvider] :endpoint_provider
|
338
347
|
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::BedrockAgent::EndpointParameters`
|
339
348
|
#
|
340
|
-
# @option options [
|
341
|
-
#
|
342
|
-
#
|
343
|
-
#
|
344
|
-
#
|
345
|
-
#
|
346
|
-
#
|
347
|
-
#
|
348
|
-
#
|
349
|
-
#
|
350
|
-
#
|
351
|
-
# @option options [Float] :
|
352
|
-
#
|
353
|
-
#
|
354
|
-
#
|
355
|
-
#
|
356
|
-
#
|
357
|
-
#
|
358
|
-
#
|
359
|
-
#
|
360
|
-
#
|
361
|
-
#
|
362
|
-
#
|
363
|
-
#
|
364
|
-
#
|
365
|
-
#
|
366
|
-
#
|
367
|
-
#
|
349
|
+
# @option options [Float] :http_continue_timeout (1)
|
350
|
+
# The number of seconds to wait for a 100-continue response before sending the
|
351
|
+
# request body. This option has no effect unless the request has "Expect"
|
352
|
+
# header set to "100-continue". Defaults to `nil` which disables this
|
353
|
+
# behaviour. This value can safely be set per request on the session.
|
354
|
+
#
|
355
|
+
# @option options [Float] :http_idle_timeout (5)
|
356
|
+
# The number of seconds a connection is allowed to sit idle before it
|
357
|
+
# is considered stale. Stale connections are closed and removed from the
|
358
|
+
# pool before making a request.
|
359
|
+
#
|
360
|
+
# @option options [Float] :http_open_timeout (15)
|
361
|
+
# The default number of seconds to wait for response data.
|
362
|
+
# This value can safely be set per-request on the session.
|
363
|
+
#
|
364
|
+
# @option options [URI::HTTP,String] :http_proxy
|
365
|
+
# A proxy to send requests through. Formatted like 'http://proxy.com:123'.
|
366
|
+
#
|
367
|
+
# @option options [Float] :http_read_timeout (60)
|
368
|
+
# The default number of seconds to wait for response data.
|
369
|
+
# This value can safely be set per-request on the session.
|
370
|
+
#
|
371
|
+
# @option options [Boolean] :http_wire_trace (false)
|
372
|
+
# When `true`, HTTP debug output will be sent to the `:logger`.
|
373
|
+
#
|
374
|
+
# @option options [Proc] :on_chunk_received
|
375
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
376
|
+
# of the response body is received. It provides three arguments: the chunk,
|
377
|
+
# the number of bytes received, and the total number of
|
378
|
+
# bytes in the response (or nil if the server did not send a `content-length`).
|
379
|
+
#
|
380
|
+
# @option options [Proc] :on_chunk_sent
|
381
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
382
|
+
# of the request body is sent. It provides three arguments: the chunk,
|
383
|
+
# the number of bytes read from the body, and the total number of
|
384
|
+
# bytes in the body.
|
385
|
+
#
|
386
|
+
# @option options [Boolean] :raise_response_errors (true)
|
387
|
+
# When `true`, response errors are raised.
|
388
|
+
#
|
389
|
+
# @option options [String] :ssl_ca_bundle
|
390
|
+
# Full path to the SSL certificate authority bundle file that should be used when
|
391
|
+
# verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
|
392
|
+
# `:ssl_ca_directory` the the system default will be used if available.
|
393
|
+
#
|
394
|
+
# @option options [String] :ssl_ca_directory
|
395
|
+
# Full path of the directory that contains the unbundled SSL certificate
|
396
|
+
# authority files for verifying peer certificates. If you do
|
397
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
|
398
|
+
# default will be used if available.
|
368
399
|
#
|
369
|
-
# @option options [
|
370
|
-
#
|
371
|
-
# connection.
|
400
|
+
# @option options [String] :ssl_ca_store
|
401
|
+
# Sets the X509::Store to verify peer certificate.
|
372
402
|
#
|
373
|
-
# @option options [
|
374
|
-
#
|
375
|
-
# verifying peer certificates. If you do not pass
|
376
|
-
# `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
|
377
|
-
# will be used if available.
|
403
|
+
# @option options [Float] :ssl_timeout
|
404
|
+
# Sets the SSL timeout in seconds
|
378
405
|
#
|
379
|
-
# @option options [
|
380
|
-
#
|
381
|
-
# authority files for verifying peer certificates. If you do
|
382
|
-
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
|
383
|
-
# system default will be used if available.
|
406
|
+
# @option options [Boolean] :ssl_verify_peer (true)
|
407
|
+
# When `true`, SSL peer certificates are verified when establishing a connection.
|
384
408
|
#
|
385
409
|
def initialize(*args)
|
386
410
|
super
|
@@ -874,7 +898,7 @@ module Aws::BedrockAgent
|
|
874
898
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
875
899
|
#
|
876
900
|
# @option params [String] :data_deletion_policy
|
877
|
-
# The deletion policy
|
901
|
+
# The data deletion policy assigned to the data source.
|
878
902
|
#
|
879
903
|
# @option params [required, Types::DataSourceConfiguration] :data_source_configuration
|
880
904
|
# Contains metadata about where the data source is stored.
|
@@ -1060,6 +1084,19 @@ module Aws::BedrockAgent
|
|
1060
1084
|
# name: "Name", # required
|
1061
1085
|
# role_arn: "KnowledgeBaseRoleArn", # required
|
1062
1086
|
# storage_configuration: { # required
|
1087
|
+
# mongo_db_atlas_configuration: {
|
1088
|
+
# collection_name: "MongoDbAtlasCollectionName", # required
|
1089
|
+
# credentials_secret_arn: "SecretArn", # required
|
1090
|
+
# database_name: "MongoDbAtlasDatabaseName", # required
|
1091
|
+
# endpoint: "MongoDbAtlasEndpoint", # required
|
1092
|
+
# endpoint_service_name: "MongoDbAtlasEndpointServiceName",
|
1093
|
+
# field_mapping: { # required
|
1094
|
+
# metadata_field: "FieldName", # required
|
1095
|
+
# text_field: "FieldName", # required
|
1096
|
+
# vector_field: "FieldName", # required
|
1097
|
+
# },
|
1098
|
+
# vector_index_name: "MongoDbAtlasIndexName", # required
|
1099
|
+
# },
|
1063
1100
|
# opensearch_serverless_configuration: {
|
1064
1101
|
# collection_arn: "OpenSearchServerlessCollectionArn", # required
|
1065
1102
|
# field_mapping: { # required
|
@@ -1100,7 +1137,7 @@ module Aws::BedrockAgent
|
|
1100
1137
|
# },
|
1101
1138
|
# vector_index_name: "RedisEnterpriseCloudIndexName", # required
|
1102
1139
|
# },
|
1103
|
-
# type: "OPENSEARCH_SERVERLESS", # required, accepts OPENSEARCH_SERVERLESS, PINECONE, REDIS_ENTERPRISE_CLOUD, RDS
|
1140
|
+
# type: "OPENSEARCH_SERVERLESS", # required, accepts OPENSEARCH_SERVERLESS, PINECONE, REDIS_ENTERPRISE_CLOUD, RDS, MONGO_DB_ATLAS
|
1104
1141
|
# },
|
1105
1142
|
# tags: {
|
1106
1143
|
# "TagKey" => "TagValue",
|
@@ -1120,6 +1157,15 @@ module Aws::BedrockAgent
|
|
1120
1157
|
# resp.knowledge_base.name #=> String
|
1121
1158
|
# resp.knowledge_base.role_arn #=> String
|
1122
1159
|
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
|
1160
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.collection_name #=> String
|
1161
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.credentials_secret_arn #=> String
|
1162
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.database_name #=> String
|
1163
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.endpoint #=> String
|
1164
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.endpoint_service_name #=> String
|
1165
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.field_mapping.metadata_field #=> String
|
1166
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.field_mapping.text_field #=> String
|
1167
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.field_mapping.vector_field #=> String
|
1168
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.vector_index_name #=> String
|
1123
1169
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.collection_arn #=> String
|
1124
1170
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.metadata_field #=> String
|
1125
1171
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.text_field #=> String
|
@@ -1144,7 +1190,7 @@ module Aws::BedrockAgent
|
|
1144
1190
|
# resp.knowledge_base.storage_configuration.redis_enterprise_cloud_configuration.field_mapping.text_field #=> String
|
1145
1191
|
# resp.knowledge_base.storage_configuration.redis_enterprise_cloud_configuration.field_mapping.vector_field #=> String
|
1146
1192
|
# resp.knowledge_base.storage_configuration.redis_enterprise_cloud_configuration.vector_index_name #=> String
|
1147
|
-
# resp.knowledge_base.storage_configuration.type #=> String, one of "OPENSEARCH_SERVERLESS", "PINECONE", "REDIS_ENTERPRISE_CLOUD", "RDS"
|
1193
|
+
# resp.knowledge_base.storage_configuration.type #=> String, one of "OPENSEARCH_SERVERLESS", "PINECONE", "REDIS_ENTERPRISE_CLOUD", "RDS", "MONGO_DB_ATLAS"
|
1148
1194
|
# resp.knowledge_base.updated_at #=> Time
|
1149
1195
|
#
|
1150
1196
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/CreateKnowledgeBase AWS API Documentation
|
@@ -1813,6 +1859,15 @@ module Aws::BedrockAgent
|
|
1813
1859
|
# resp.knowledge_base.name #=> String
|
1814
1860
|
# resp.knowledge_base.role_arn #=> String
|
1815
1861
|
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
|
1862
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.collection_name #=> String
|
1863
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.credentials_secret_arn #=> String
|
1864
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.database_name #=> String
|
1865
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.endpoint #=> String
|
1866
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.endpoint_service_name #=> String
|
1867
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.field_mapping.metadata_field #=> String
|
1868
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.field_mapping.text_field #=> String
|
1869
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.field_mapping.vector_field #=> String
|
1870
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.vector_index_name #=> String
|
1816
1871
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.collection_arn #=> String
|
1817
1872
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.metadata_field #=> String
|
1818
1873
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.text_field #=> String
|
@@ -1837,7 +1892,7 @@ module Aws::BedrockAgent
|
|
1837
1892
|
# resp.knowledge_base.storage_configuration.redis_enterprise_cloud_configuration.field_mapping.text_field #=> String
|
1838
1893
|
# resp.knowledge_base.storage_configuration.redis_enterprise_cloud_configuration.field_mapping.vector_field #=> String
|
1839
1894
|
# resp.knowledge_base.storage_configuration.redis_enterprise_cloud_configuration.vector_index_name #=> String
|
1840
|
-
# resp.knowledge_base.storage_configuration.type #=> String, one of "OPENSEARCH_SERVERLESS", "PINECONE", "REDIS_ENTERPRISE_CLOUD", "RDS"
|
1895
|
+
# resp.knowledge_base.storage_configuration.type #=> String, one of "OPENSEARCH_SERVERLESS", "PINECONE", "REDIS_ENTERPRISE_CLOUD", "RDS", "MONGO_DB_ATLAS"
|
1841
1896
|
# resp.knowledge_base.updated_at #=> Time
|
1842
1897
|
#
|
1843
1898
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/GetKnowledgeBase AWS API Documentation
|
@@ -2883,7 +2938,7 @@ module Aws::BedrockAgent
|
|
2883
2938
|
# data source. Specify the existing `chunkingConfiguration`.
|
2884
2939
|
#
|
2885
2940
|
# @option params [String] :data_deletion_policy
|
2886
|
-
# The data deletion policy
|
2941
|
+
# The data deletion policy assigned to the data source.
|
2887
2942
|
#
|
2888
2943
|
# @option params [required, Types::DataSourceConfiguration] :data_source_configuration
|
2889
2944
|
# Contains details about the storage configuration of the data source.
|
@@ -3034,6 +3089,19 @@ module Aws::BedrockAgent
|
|
3034
3089
|
# name: "Name", # required
|
3035
3090
|
# role_arn: "KnowledgeBaseRoleArn", # required
|
3036
3091
|
# storage_configuration: { # required
|
3092
|
+
# mongo_db_atlas_configuration: {
|
3093
|
+
# collection_name: "MongoDbAtlasCollectionName", # required
|
3094
|
+
# credentials_secret_arn: "SecretArn", # required
|
3095
|
+
# database_name: "MongoDbAtlasDatabaseName", # required
|
3096
|
+
# endpoint: "MongoDbAtlasEndpoint", # required
|
3097
|
+
# endpoint_service_name: "MongoDbAtlasEndpointServiceName",
|
3098
|
+
# field_mapping: { # required
|
3099
|
+
# metadata_field: "FieldName", # required
|
3100
|
+
# text_field: "FieldName", # required
|
3101
|
+
# vector_field: "FieldName", # required
|
3102
|
+
# },
|
3103
|
+
# vector_index_name: "MongoDbAtlasIndexName", # required
|
3104
|
+
# },
|
3037
3105
|
# opensearch_serverless_configuration: {
|
3038
3106
|
# collection_arn: "OpenSearchServerlessCollectionArn", # required
|
3039
3107
|
# field_mapping: { # required
|
@@ -3074,7 +3142,7 @@ module Aws::BedrockAgent
|
|
3074
3142
|
# },
|
3075
3143
|
# vector_index_name: "RedisEnterpriseCloudIndexName", # required
|
3076
3144
|
# },
|
3077
|
-
# type: "OPENSEARCH_SERVERLESS", # required, accepts OPENSEARCH_SERVERLESS, PINECONE, REDIS_ENTERPRISE_CLOUD, RDS
|
3145
|
+
# type: "OPENSEARCH_SERVERLESS", # required, accepts OPENSEARCH_SERVERLESS, PINECONE, REDIS_ENTERPRISE_CLOUD, RDS, MONGO_DB_ATLAS
|
3078
3146
|
# },
|
3079
3147
|
# })
|
3080
3148
|
#
|
@@ -3091,6 +3159,15 @@ module Aws::BedrockAgent
|
|
3091
3159
|
# resp.knowledge_base.name #=> String
|
3092
3160
|
# resp.knowledge_base.role_arn #=> String
|
3093
3161
|
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
|
3162
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.collection_name #=> String
|
3163
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.credentials_secret_arn #=> String
|
3164
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.database_name #=> String
|
3165
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.endpoint #=> String
|
3166
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.endpoint_service_name #=> String
|
3167
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.field_mapping.metadata_field #=> String
|
3168
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.field_mapping.text_field #=> String
|
3169
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.field_mapping.vector_field #=> String
|
3170
|
+
# resp.knowledge_base.storage_configuration.mongo_db_atlas_configuration.vector_index_name #=> String
|
3094
3171
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.collection_arn #=> String
|
3095
3172
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.metadata_field #=> String
|
3096
3173
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.text_field #=> String
|
@@ -3115,7 +3192,7 @@ module Aws::BedrockAgent
|
|
3115
3192
|
# resp.knowledge_base.storage_configuration.redis_enterprise_cloud_configuration.field_mapping.text_field #=> String
|
3116
3193
|
# resp.knowledge_base.storage_configuration.redis_enterprise_cloud_configuration.field_mapping.vector_field #=> String
|
3117
3194
|
# resp.knowledge_base.storage_configuration.redis_enterprise_cloud_configuration.vector_index_name #=> String
|
3118
|
-
# resp.knowledge_base.storage_configuration.type #=> String, one of "OPENSEARCH_SERVERLESS", "PINECONE", "REDIS_ENTERPRISE_CLOUD", "RDS"
|
3195
|
+
# resp.knowledge_base.storage_configuration.type #=> String, one of "OPENSEARCH_SERVERLESS", "PINECONE", "REDIS_ENTERPRISE_CLOUD", "RDS", "MONGO_DB_ATLAS"
|
3119
3196
|
# resp.knowledge_base.updated_at #=> Time
|
3120
3197
|
#
|
3121
3198
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/UpdateKnowledgeBase AWS API Documentation
|
@@ -3140,7 +3217,7 @@ module Aws::BedrockAgent
|
|
3140
3217
|
params: params,
|
3141
3218
|
config: config)
|
3142
3219
|
context[:gem_name] = 'aws-sdk-bedrockagent'
|
3143
|
-
context[:gem_version] = '1.
|
3220
|
+
context[:gem_version] = '1.9.0'
|
3144
3221
|
Seahorse::Client::Request.new(handlers, context)
|
3145
3222
|
end
|
3146
3223
|
|
@@ -166,6 +166,13 @@ module Aws::BedrockAgent
|
|
166
166
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
167
167
|
MaximumLength = Shapes::IntegerShape.new(name: 'MaximumLength')
|
168
168
|
ModelIdentifier = Shapes::StringShape.new(name: 'ModelIdentifier')
|
169
|
+
MongoDbAtlasCollectionName = Shapes::StringShape.new(name: 'MongoDbAtlasCollectionName')
|
170
|
+
MongoDbAtlasConfiguration = Shapes::StructureShape.new(name: 'MongoDbAtlasConfiguration')
|
171
|
+
MongoDbAtlasDatabaseName = Shapes::StringShape.new(name: 'MongoDbAtlasDatabaseName')
|
172
|
+
MongoDbAtlasEndpoint = Shapes::StringShape.new(name: 'MongoDbAtlasEndpoint')
|
173
|
+
MongoDbAtlasEndpointServiceName = Shapes::StringShape.new(name: 'MongoDbAtlasEndpointServiceName')
|
174
|
+
MongoDbAtlasFieldMapping = Shapes::StructureShape.new(name: 'MongoDbAtlasFieldMapping')
|
175
|
+
MongoDbAtlasIndexName = Shapes::StringShape.new(name: 'MongoDbAtlasIndexName')
|
169
176
|
Name = Shapes::StringShape.new(name: 'Name')
|
170
177
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
171
178
|
NonBlankString = Shapes::StringShape.new(name: 'NonBlankString')
|
@@ -813,6 +820,20 @@ module Aws::BedrockAgent
|
|
813
820
|
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
|
814
821
|
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
815
822
|
|
823
|
+
MongoDbAtlasConfiguration.add_member(:collection_name, Shapes::ShapeRef.new(shape: MongoDbAtlasCollectionName, required: true, location_name: "collectionName"))
|
824
|
+
MongoDbAtlasConfiguration.add_member(:credentials_secret_arn, Shapes::ShapeRef.new(shape: SecretArn, required: true, location_name: "credentialsSecretArn"))
|
825
|
+
MongoDbAtlasConfiguration.add_member(:database_name, Shapes::ShapeRef.new(shape: MongoDbAtlasDatabaseName, required: true, location_name: "databaseName"))
|
826
|
+
MongoDbAtlasConfiguration.add_member(:endpoint, Shapes::ShapeRef.new(shape: MongoDbAtlasEndpoint, required: true, location_name: "endpoint"))
|
827
|
+
MongoDbAtlasConfiguration.add_member(:endpoint_service_name, Shapes::ShapeRef.new(shape: MongoDbAtlasEndpointServiceName, location_name: "endpointServiceName"))
|
828
|
+
MongoDbAtlasConfiguration.add_member(:field_mapping, Shapes::ShapeRef.new(shape: MongoDbAtlasFieldMapping, required: true, location_name: "fieldMapping"))
|
829
|
+
MongoDbAtlasConfiguration.add_member(:vector_index_name, Shapes::ShapeRef.new(shape: MongoDbAtlasIndexName, required: true, location_name: "vectorIndexName"))
|
830
|
+
MongoDbAtlasConfiguration.struct_class = Types::MongoDbAtlasConfiguration
|
831
|
+
|
832
|
+
MongoDbAtlasFieldMapping.add_member(:metadata_field, Shapes::ShapeRef.new(shape: FieldName, required: true, location_name: "metadataField"))
|
833
|
+
MongoDbAtlasFieldMapping.add_member(:text_field, Shapes::ShapeRef.new(shape: FieldName, required: true, location_name: "textField"))
|
834
|
+
MongoDbAtlasFieldMapping.add_member(:vector_field, Shapes::ShapeRef.new(shape: FieldName, required: true, location_name: "vectorField"))
|
835
|
+
MongoDbAtlasFieldMapping.struct_class = Types::MongoDbAtlasFieldMapping
|
836
|
+
|
816
837
|
OpenSearchServerlessConfiguration.add_member(:collection_arn, Shapes::ShapeRef.new(shape: OpenSearchServerlessCollectionArn, required: true, location_name: "collectionArn"))
|
817
838
|
OpenSearchServerlessConfiguration.add_member(:field_mapping, Shapes::ShapeRef.new(shape: OpenSearchServerlessFieldMapping, required: true, location_name: "fieldMapping"))
|
818
839
|
OpenSearchServerlessConfiguration.add_member(:vector_index_name, Shapes::ShapeRef.new(shape: OpenSearchServerlessIndexName, required: true, location_name: "vectorIndexName"))
|
@@ -921,6 +942,7 @@ module Aws::BedrockAgent
|
|
921
942
|
|
922
943
|
StopSequences.member = Shapes::ShapeRef.new(shape: String)
|
923
944
|
|
945
|
+
StorageConfiguration.add_member(:mongo_db_atlas_configuration, Shapes::ShapeRef.new(shape: MongoDbAtlasConfiguration, location_name: "mongoDbAtlasConfiguration"))
|
924
946
|
StorageConfiguration.add_member(:opensearch_serverless_configuration, Shapes::ShapeRef.new(shape: OpenSearchServerlessConfiguration, location_name: "opensearchServerlessConfiguration"))
|
925
947
|
StorageConfiguration.add_member(:pinecone_configuration, Shapes::ShapeRef.new(shape: PineconeConfiguration, location_name: "pineconeConfiguration"))
|
926
948
|
StorageConfiguration.add_member(:rds_configuration, Shapes::ShapeRef.new(shape: RdsConfiguration, location_name: "rdsConfiguration"))
|
@@ -1207,7 +1207,7 @@ module Aws::BedrockAgent
|
|
1207
1207
|
# @return [String]
|
1208
1208
|
#
|
1209
1209
|
# @!attribute [rw] data_deletion_policy
|
1210
|
-
# The deletion policy
|
1210
|
+
# The data deletion policy assigned to the data source.
|
1211
1211
|
# @return [String]
|
1212
1212
|
#
|
1213
1213
|
# @!attribute [rw] data_source_configuration
|
@@ -1339,7 +1339,7 @@ module Aws::BedrockAgent
|
|
1339
1339
|
# @return [Time]
|
1340
1340
|
#
|
1341
1341
|
# @!attribute [rw] data_deletion_policy
|
1342
|
-
# The deletion policy for
|
1342
|
+
# The data deletion policy for a data source.
|
1343
1343
|
# @return [String]
|
1344
1344
|
#
|
1345
1345
|
# @!attribute [rw] data_source_configuration
|
@@ -1355,7 +1355,7 @@ module Aws::BedrockAgent
|
|
1355
1355
|
# @return [String]
|
1356
1356
|
#
|
1357
1357
|
# @!attribute [rw] failure_reasons
|
1358
|
-
# The
|
1358
|
+
# The detailed reasons on the failure to delete a data source.
|
1359
1359
|
# @return [Array<String>]
|
1360
1360
|
#
|
1361
1361
|
# @!attribute [rw] knowledge_base_id
|
@@ -2929,6 +2929,86 @@ module Aws::BedrockAgent
|
|
2929
2929
|
include Aws::Structure
|
2930
2930
|
end
|
2931
2931
|
|
2932
|
+
# Contains details about the storage configuration of the knowledge base
|
2933
|
+
# in MongoDB Atlas.
|
2934
|
+
#
|
2935
|
+
# @!attribute [rw] collection_name
|
2936
|
+
# The collection name of the knowledge base in MongoDB Atlas.
|
2937
|
+
# @return [String]
|
2938
|
+
#
|
2939
|
+
# @!attribute [rw] credentials_secret_arn
|
2940
|
+
# The Amazon Resource Name (ARN) of the secret that you created in
|
2941
|
+
# Secrets Manager that contains user credentials for your MongoDB
|
2942
|
+
# Atlas cluster.
|
2943
|
+
# @return [String]
|
2944
|
+
#
|
2945
|
+
# @!attribute [rw] database_name
|
2946
|
+
# The database name in your MongoDB Atlas cluster for your knowledge
|
2947
|
+
# base.
|
2948
|
+
# @return [String]
|
2949
|
+
#
|
2950
|
+
# @!attribute [rw] endpoint
|
2951
|
+
# The endpoint URL of your MongoDB Atlas cluster for your knowledge
|
2952
|
+
# base.
|
2953
|
+
# @return [String]
|
2954
|
+
#
|
2955
|
+
# @!attribute [rw] endpoint_service_name
|
2956
|
+
# The name of the VPC endpoint service in your account that is
|
2957
|
+
# connected to your MongoDB Atlas cluster.
|
2958
|
+
# @return [String]
|
2959
|
+
#
|
2960
|
+
# @!attribute [rw] field_mapping
|
2961
|
+
# Contains the names of the fields to which to map information about
|
2962
|
+
# the vector store.
|
2963
|
+
# @return [Types::MongoDbAtlasFieldMapping]
|
2964
|
+
#
|
2965
|
+
# @!attribute [rw] vector_index_name
|
2966
|
+
# The name of the MongoDB Atlas vector search index.
|
2967
|
+
# @return [String]
|
2968
|
+
#
|
2969
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/MongoDbAtlasConfiguration AWS API Documentation
|
2970
|
+
#
|
2971
|
+
class MongoDbAtlasConfiguration < Struct.new(
|
2972
|
+
:collection_name,
|
2973
|
+
:credentials_secret_arn,
|
2974
|
+
:database_name,
|
2975
|
+
:endpoint,
|
2976
|
+
:endpoint_service_name,
|
2977
|
+
:field_mapping,
|
2978
|
+
:vector_index_name)
|
2979
|
+
SENSITIVE = []
|
2980
|
+
include Aws::Structure
|
2981
|
+
end
|
2982
|
+
|
2983
|
+
# Contains the names of the fields to which to map information about the
|
2984
|
+
# vector store.
|
2985
|
+
#
|
2986
|
+
# @!attribute [rw] metadata_field
|
2987
|
+
# The name of the field in which Amazon Bedrock stores metadata about
|
2988
|
+
# the vector store.
|
2989
|
+
# @return [String]
|
2990
|
+
#
|
2991
|
+
# @!attribute [rw] text_field
|
2992
|
+
# The name of the field in which Amazon Bedrock stores the raw text
|
2993
|
+
# from your data. The text is split according to the chunking strategy
|
2994
|
+
# you choose.
|
2995
|
+
# @return [String]
|
2996
|
+
#
|
2997
|
+
# @!attribute [rw] vector_field
|
2998
|
+
# The name of the field in which Amazon Bedrock stores the vector
|
2999
|
+
# embeddings for your data sources.
|
3000
|
+
# @return [String]
|
3001
|
+
#
|
3002
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/MongoDbAtlasFieldMapping AWS API Documentation
|
3003
|
+
#
|
3004
|
+
class MongoDbAtlasFieldMapping < Struct.new(
|
3005
|
+
:metadata_field,
|
3006
|
+
:text_field,
|
3007
|
+
:vector_field)
|
3008
|
+
SENSITIVE = []
|
3009
|
+
include Aws::Structure
|
3010
|
+
end
|
3011
|
+
|
2932
3012
|
# Contains details about the storage configuration of the knowledge base
|
2933
3013
|
# in Amazon OpenSearch Service. For more information, see [Create a
|
2934
3014
|
# vector index in Amazon OpenSearch Service][1].
|
@@ -3418,7 +3498,7 @@ module Aws::BedrockAgent
|
|
3418
3498
|
# @return [String]
|
3419
3499
|
#
|
3420
3500
|
# @!attribute [rw] bucket_owner_account_id
|
3421
|
-
# The account ID for the
|
3501
|
+
# The bucket account owner ID for the S3 bucket.
|
3422
3502
|
# @return [String]
|
3423
3503
|
#
|
3424
3504
|
# @!attribute [rw] inclusion_prefixes
|
@@ -3541,6 +3621,11 @@ module Aws::BedrockAgent
|
|
3541
3621
|
|
3542
3622
|
# Contains the storage configuration of the knowledge base.
|
3543
3623
|
#
|
3624
|
+
# @!attribute [rw] mongo_db_atlas_configuration
|
3625
|
+
# Contains the storage configuration of the knowledge base in MongoDB
|
3626
|
+
# Atlas.
|
3627
|
+
# @return [Types::MongoDbAtlasConfiguration]
|
3628
|
+
#
|
3544
3629
|
# @!attribute [rw] opensearch_serverless_configuration
|
3545
3630
|
# Contains the storage configuration of the knowledge base in Amazon
|
3546
3631
|
# OpenSearch Service.
|
@@ -3573,6 +3658,7 @@ module Aws::BedrockAgent
|
|
3573
3658
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/StorageConfiguration AWS API Documentation
|
3574
3659
|
#
|
3575
3660
|
class StorageConfiguration < Struct.new(
|
3661
|
+
:mongo_db_atlas_configuration,
|
3576
3662
|
:opensearch_serverless_configuration,
|
3577
3663
|
:pinecone_configuration,
|
3578
3664
|
:rds_configuration,
|
@@ -3914,7 +4000,7 @@ module Aws::BedrockAgent
|
|
3914
4000
|
end
|
3915
4001
|
|
3916
4002
|
# @!attribute [rw] data_deletion_policy
|
3917
|
-
# The data deletion policy
|
4003
|
+
# The data deletion policy assigned to the data source.
|
3918
4004
|
# @return [String]
|
3919
4005
|
#
|
3920
4006
|
# @!attribute [rw] data_source_configuration
|
data/lib/aws-sdk-bedrockagent.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -233,6 +233,19 @@ module Aws
|
|
233
233
|
name: ::String,
|
234
234
|
role_arn: ::String,
|
235
235
|
storage_configuration: {
|
236
|
+
mongo_db_atlas_configuration: {
|
237
|
+
collection_name: ::String,
|
238
|
+
credentials_secret_arn: ::String,
|
239
|
+
database_name: ::String,
|
240
|
+
endpoint: ::String,
|
241
|
+
endpoint_service_name: ::String?,
|
242
|
+
field_mapping: {
|
243
|
+
metadata_field: ::String,
|
244
|
+
text_field: ::String,
|
245
|
+
vector_field: ::String
|
246
|
+
},
|
247
|
+
vector_index_name: ::String
|
248
|
+
}?,
|
236
249
|
opensearch_serverless_configuration: {
|
237
250
|
collection_arn: ::String,
|
238
251
|
field_mapping: {
|
@@ -273,7 +286,7 @@ module Aws
|
|
273
286
|
},
|
274
287
|
vector_index_name: ::String
|
275
288
|
}?,
|
276
|
-
type: ("OPENSEARCH_SERVERLESS" | "PINECONE" | "REDIS_ENTERPRISE_CLOUD" | "RDS")
|
289
|
+
type: ("OPENSEARCH_SERVERLESS" | "PINECONE" | "REDIS_ENTERPRISE_CLOUD" | "RDS" | "MONGO_DB_ATLAS")
|
277
290
|
},
|
278
291
|
?tags: Hash[::String, ::String]
|
279
292
|
) -> _CreateKnowledgeBaseResponseSuccess
|
@@ -785,6 +798,19 @@ module Aws
|
|
785
798
|
name: ::String,
|
786
799
|
role_arn: ::String,
|
787
800
|
storage_configuration: {
|
801
|
+
mongo_db_atlas_configuration: {
|
802
|
+
collection_name: ::String,
|
803
|
+
credentials_secret_arn: ::String,
|
804
|
+
database_name: ::String,
|
805
|
+
endpoint: ::String,
|
806
|
+
endpoint_service_name: ::String?,
|
807
|
+
field_mapping: {
|
808
|
+
metadata_field: ::String,
|
809
|
+
text_field: ::String,
|
810
|
+
vector_field: ::String
|
811
|
+
},
|
812
|
+
vector_index_name: ::String
|
813
|
+
}?,
|
788
814
|
opensearch_serverless_configuration: {
|
789
815
|
collection_arn: ::String,
|
790
816
|
field_mapping: {
|
@@ -825,7 +851,7 @@ module Aws
|
|
825
851
|
},
|
826
852
|
vector_index_name: ::String
|
827
853
|
}?,
|
828
|
-
type: ("OPENSEARCH_SERVERLESS" | "PINECONE" | "REDIS_ENTERPRISE_CLOUD" | "RDS")
|
854
|
+
type: ("OPENSEARCH_SERVERLESS" | "PINECONE" | "REDIS_ENTERPRISE_CLOUD" | "RDS" | "MONGO_DB_ATLAS")
|
829
855
|
}
|
830
856
|
) -> _UpdateKnowledgeBaseResponseSuccess
|
831
857
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateKnowledgeBaseResponseSuccess
|
data/sig/types.rbs
CHANGED
@@ -736,6 +736,24 @@ module Aws::BedrockAgent
|
|
736
736
|
SENSITIVE: []
|
737
737
|
end
|
738
738
|
|
739
|
+
class MongoDbAtlasConfiguration
|
740
|
+
attr_accessor collection_name: ::String
|
741
|
+
attr_accessor credentials_secret_arn: ::String
|
742
|
+
attr_accessor database_name: ::String
|
743
|
+
attr_accessor endpoint: ::String
|
744
|
+
attr_accessor endpoint_service_name: ::String
|
745
|
+
attr_accessor field_mapping: Types::MongoDbAtlasFieldMapping
|
746
|
+
attr_accessor vector_index_name: ::String
|
747
|
+
SENSITIVE: []
|
748
|
+
end
|
749
|
+
|
750
|
+
class MongoDbAtlasFieldMapping
|
751
|
+
attr_accessor metadata_field: ::String
|
752
|
+
attr_accessor text_field: ::String
|
753
|
+
attr_accessor vector_field: ::String
|
754
|
+
SENSITIVE: []
|
755
|
+
end
|
756
|
+
|
739
757
|
class OpenSearchServerlessConfiguration
|
740
758
|
attr_accessor collection_arn: ::String
|
741
759
|
attr_accessor field_mapping: Types::OpenSearchServerlessFieldMapping
|
@@ -874,11 +892,12 @@ module Aws::BedrockAgent
|
|
874
892
|
end
|
875
893
|
|
876
894
|
class StorageConfiguration
|
895
|
+
attr_accessor mongo_db_atlas_configuration: Types::MongoDbAtlasConfiguration
|
877
896
|
attr_accessor opensearch_serverless_configuration: Types::OpenSearchServerlessConfiguration
|
878
897
|
attr_accessor pinecone_configuration: Types::PineconeConfiguration
|
879
898
|
attr_accessor rds_configuration: Types::RdsConfiguration
|
880
899
|
attr_accessor redis_enterprise_cloud_configuration: Types::RedisEnterpriseCloudConfiguration
|
881
|
-
attr_accessor type: ("OPENSEARCH_SERVERLESS" | "PINECONE" | "REDIS_ENTERPRISE_CLOUD" | "RDS")
|
900
|
+
attr_accessor type: ("OPENSEARCH_SERVERLESS" | "PINECONE" | "REDIS_ENTERPRISE_CLOUD" | "RDS" | "MONGO_DB_ATLAS")
|
882
901
|
SENSITIVE: []
|
883
902
|
end
|
884
903
|
|
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.
|
4
|
+
version: 1.9.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
|
+
date: 2024-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.193.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.193.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|