aws-sdk-bedrockagent 1.6.0 → 1.8.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 +102 -56
- data/lib/aws-sdk-bedrockagent/client_api.rb +7 -0
- data/lib/aws-sdk-bedrockagent/types.rb +25 -0
- data/lib/aws-sdk-bedrockagent.rb +1 -1
- data/sig/client.rbs +6 -2
- data/sig/types.rbs +11 -6
- 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: 997448ba6b3fd11e462e3f053b5cec4d5dbbbebfc1e9386b218e4aa00bdd104a
|
4
|
+
data.tar.gz: c7290ca529317aacb42894dce8f3ab6d659510655dcc30104c9206c5e366d8bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c299bc97f8e77db3d481512dddd86612acebbee5030f47fe978283b7ab3d7239cacd8acc39c65e9b8264e83e3a172b853dcb1897c86384b6a498e2d3fa68fd56
|
7
|
+
data.tar.gz: dc371a825cc6936275c80a21e5e290140b9d0ac961057ffd004745e62ffb6fc386fafc386d75238d96501f18d00689de73394a06e2b277586cc275d77391ae29
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.8.0 (2024-04-25)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.7.0 (2024-04-23)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Introducing the ability to create multiple data sources per knowledge base, specify S3 buckets as data sources from external accounts, and exposing levers to define the deletion behavior of the underlying vector store data.
|
13
|
+
|
4
14
|
1.6.0 (2024-04-22)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.8.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
|
@@ -873,6 +897,9 @@ module Aws::BedrockAgent
|
|
873
897
|
#
|
874
898
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
875
899
|
#
|
900
|
+
# @option params [String] :data_deletion_policy
|
901
|
+
# The deletion policy for the requested data source
|
902
|
+
#
|
876
903
|
# @option params [required, Types::DataSourceConfiguration] :data_source_configuration
|
877
904
|
# Contains metadata about where the data source is stored.
|
878
905
|
#
|
@@ -900,9 +927,11 @@ module Aws::BedrockAgent
|
|
900
927
|
#
|
901
928
|
# resp = client.create_data_source({
|
902
929
|
# client_token: "ClientToken",
|
930
|
+
# data_deletion_policy: "RETAIN", # accepts RETAIN, DELETE
|
903
931
|
# data_source_configuration: { # required
|
904
932
|
# s3_configuration: {
|
905
933
|
# bucket_arn: "S3BucketArn", # required
|
934
|
+
# bucket_owner_account_id: "BucketOwnerAccountId",
|
906
935
|
# inclusion_prefixes: ["S3Prefix"],
|
907
936
|
# },
|
908
937
|
# type: "S3", # required, accepts S3
|
@@ -927,16 +956,20 @@ module Aws::BedrockAgent
|
|
927
956
|
# @example Response structure
|
928
957
|
#
|
929
958
|
# resp.data_source.created_at #=> Time
|
959
|
+
# resp.data_source.data_deletion_policy #=> String, one of "RETAIN", "DELETE"
|
930
960
|
# resp.data_source.data_source_configuration.s3_configuration.bucket_arn #=> String
|
961
|
+
# resp.data_source.data_source_configuration.s3_configuration.bucket_owner_account_id #=> String
|
931
962
|
# resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes #=> Array
|
932
963
|
# resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes[0] #=> String
|
933
964
|
# resp.data_source.data_source_configuration.type #=> String, one of "S3"
|
934
965
|
# resp.data_source.data_source_id #=> String
|
935
966
|
# resp.data_source.description #=> String
|
967
|
+
# resp.data_source.failure_reasons #=> Array
|
968
|
+
# resp.data_source.failure_reasons[0] #=> String
|
936
969
|
# resp.data_source.knowledge_base_id #=> String
|
937
970
|
# resp.data_source.name #=> String
|
938
971
|
# resp.data_source.server_side_encryption_configuration.kms_key_arn #=> String
|
939
|
-
# resp.data_source.status #=> String, one of "AVAILABLE", "DELETING"
|
972
|
+
# resp.data_source.status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL"
|
940
973
|
# resp.data_source.updated_at #=> Time
|
941
974
|
# resp.data_source.vector_ingestion_configuration.chunking_configuration.chunking_strategy #=> String, one of "FIXED_SIZE", "NONE"
|
942
975
|
# resp.data_source.vector_ingestion_configuration.chunking_configuration.fixed_size_chunking_configuration.max_tokens #=> Integer
|
@@ -1110,7 +1143,7 @@ module Aws::BedrockAgent
|
|
1110
1143
|
# resp.knowledge_base.knowledge_base_id #=> String
|
1111
1144
|
# resp.knowledge_base.name #=> String
|
1112
1145
|
# resp.knowledge_base.role_arn #=> String
|
1113
|
-
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED"
|
1146
|
+
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
|
1114
1147
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.collection_arn #=> String
|
1115
1148
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.metadata_field #=> String
|
1116
1149
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.text_field #=> String
|
@@ -1323,7 +1356,7 @@ module Aws::BedrockAgent
|
|
1323
1356
|
#
|
1324
1357
|
# resp.data_source_id #=> String
|
1325
1358
|
# resp.knowledge_base_id #=> String
|
1326
|
-
# resp.status #=> String, one of "AVAILABLE", "DELETING"
|
1359
|
+
# resp.status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL"
|
1327
1360
|
#
|
1328
1361
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/DeleteDataSource AWS API Documentation
|
1329
1362
|
#
|
@@ -1359,7 +1392,7 @@ module Aws::BedrockAgent
|
|
1359
1392
|
# @example Response structure
|
1360
1393
|
#
|
1361
1394
|
# resp.knowledge_base_id #=> String
|
1362
|
-
# resp.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED"
|
1395
|
+
# resp.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
|
1363
1396
|
#
|
1364
1397
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/DeleteKnowledgeBase AWS API Documentation
|
1365
1398
|
#
|
@@ -1694,16 +1727,20 @@ module Aws::BedrockAgent
|
|
1694
1727
|
# @example Response structure
|
1695
1728
|
#
|
1696
1729
|
# resp.data_source.created_at #=> Time
|
1730
|
+
# resp.data_source.data_deletion_policy #=> String, one of "RETAIN", "DELETE"
|
1697
1731
|
# resp.data_source.data_source_configuration.s3_configuration.bucket_arn #=> String
|
1732
|
+
# resp.data_source.data_source_configuration.s3_configuration.bucket_owner_account_id #=> String
|
1698
1733
|
# resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes #=> Array
|
1699
1734
|
# resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes[0] #=> String
|
1700
1735
|
# resp.data_source.data_source_configuration.type #=> String, one of "S3"
|
1701
1736
|
# resp.data_source.data_source_id #=> String
|
1702
1737
|
# resp.data_source.description #=> String
|
1738
|
+
# resp.data_source.failure_reasons #=> Array
|
1739
|
+
# resp.data_source.failure_reasons[0] #=> String
|
1703
1740
|
# resp.data_source.knowledge_base_id #=> String
|
1704
1741
|
# resp.data_source.name #=> String
|
1705
1742
|
# resp.data_source.server_side_encryption_configuration.kms_key_arn #=> String
|
1706
|
-
# resp.data_source.status #=> String, one of "AVAILABLE", "DELETING"
|
1743
|
+
# resp.data_source.status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL"
|
1707
1744
|
# resp.data_source.updated_at #=> Time
|
1708
1745
|
# resp.data_source.vector_ingestion_configuration.chunking_configuration.chunking_strategy #=> String, one of "FIXED_SIZE", "NONE"
|
1709
1746
|
# resp.data_source.vector_ingestion_configuration.chunking_configuration.fixed_size_chunking_configuration.max_tokens #=> Integer
|
@@ -1799,7 +1836,7 @@ module Aws::BedrockAgent
|
|
1799
1836
|
# resp.knowledge_base.knowledge_base_id #=> String
|
1800
1837
|
# resp.knowledge_base.name #=> String
|
1801
1838
|
# resp.knowledge_base.role_arn #=> String
|
1802
|
-
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED"
|
1839
|
+
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
|
1803
1840
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.collection_arn #=> String
|
1804
1841
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.metadata_field #=> String
|
1805
1842
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.text_field #=> String
|
@@ -2144,7 +2181,7 @@ module Aws::BedrockAgent
|
|
2144
2181
|
# resp.data_source_summaries[0].description #=> String
|
2145
2182
|
# resp.data_source_summaries[0].knowledge_base_id #=> String
|
2146
2183
|
# resp.data_source_summaries[0].name #=> String
|
2147
|
-
# resp.data_source_summaries[0].status #=> String, one of "AVAILABLE", "DELETING"
|
2184
|
+
# resp.data_source_summaries[0].status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL"
|
2148
2185
|
# resp.data_source_summaries[0].updated_at #=> Time
|
2149
2186
|
# resp.next_token #=> String
|
2150
2187
|
#
|
@@ -2276,7 +2313,7 @@ module Aws::BedrockAgent
|
|
2276
2313
|
# resp.knowledge_base_summaries[0].description #=> String
|
2277
2314
|
# resp.knowledge_base_summaries[0].knowledge_base_id #=> String
|
2278
2315
|
# resp.knowledge_base_summaries[0].name #=> String
|
2279
|
-
# resp.knowledge_base_summaries[0].status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED"
|
2316
|
+
# resp.knowledge_base_summaries[0].status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
|
2280
2317
|
# resp.knowledge_base_summaries[0].updated_at #=> Time
|
2281
2318
|
# resp.next_token #=> String
|
2282
2319
|
#
|
@@ -2869,6 +2906,9 @@ module Aws::BedrockAgent
|
|
2869
2906
|
# You can't change the `chunkingConfiguration` after you create the
|
2870
2907
|
# data source. Specify the existing `chunkingConfiguration`.
|
2871
2908
|
#
|
2909
|
+
# @option params [String] :data_deletion_policy
|
2910
|
+
# The data deletion policy of the updated data source.
|
2911
|
+
#
|
2872
2912
|
# @option params [required, Types::DataSourceConfiguration] :data_source_configuration
|
2873
2913
|
# Contains details about the storage configuration of the data source.
|
2874
2914
|
#
|
@@ -2898,9 +2938,11 @@ module Aws::BedrockAgent
|
|
2898
2938
|
# @example Request syntax with placeholder values
|
2899
2939
|
#
|
2900
2940
|
# resp = client.update_data_source({
|
2941
|
+
# data_deletion_policy: "RETAIN", # accepts RETAIN, DELETE
|
2901
2942
|
# data_source_configuration: { # required
|
2902
2943
|
# s3_configuration: {
|
2903
2944
|
# bucket_arn: "S3BucketArn", # required
|
2945
|
+
# bucket_owner_account_id: "BucketOwnerAccountId",
|
2904
2946
|
# inclusion_prefixes: ["S3Prefix"],
|
2905
2947
|
# },
|
2906
2948
|
# type: "S3", # required, accepts S3
|
@@ -2926,16 +2968,20 @@ module Aws::BedrockAgent
|
|
2926
2968
|
# @example Response structure
|
2927
2969
|
#
|
2928
2970
|
# resp.data_source.created_at #=> Time
|
2971
|
+
# resp.data_source.data_deletion_policy #=> String, one of "RETAIN", "DELETE"
|
2929
2972
|
# resp.data_source.data_source_configuration.s3_configuration.bucket_arn #=> String
|
2973
|
+
# resp.data_source.data_source_configuration.s3_configuration.bucket_owner_account_id #=> String
|
2930
2974
|
# resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes #=> Array
|
2931
2975
|
# resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes[0] #=> String
|
2932
2976
|
# resp.data_source.data_source_configuration.type #=> String, one of "S3"
|
2933
2977
|
# resp.data_source.data_source_id #=> String
|
2934
2978
|
# resp.data_source.description #=> String
|
2979
|
+
# resp.data_source.failure_reasons #=> Array
|
2980
|
+
# resp.data_source.failure_reasons[0] #=> String
|
2935
2981
|
# resp.data_source.knowledge_base_id #=> String
|
2936
2982
|
# resp.data_source.name #=> String
|
2937
2983
|
# resp.data_source.server_side_encryption_configuration.kms_key_arn #=> String
|
2938
|
-
# resp.data_source.status #=> String, one of "AVAILABLE", "DELETING"
|
2984
|
+
# resp.data_source.status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL"
|
2939
2985
|
# resp.data_source.updated_at #=> Time
|
2940
2986
|
# resp.data_source.vector_ingestion_configuration.chunking_configuration.chunking_strategy #=> String, one of "FIXED_SIZE", "NONE"
|
2941
2987
|
# resp.data_source.vector_ingestion_configuration.chunking_configuration.fixed_size_chunking_configuration.max_tokens #=> Integer
|
@@ -3068,7 +3114,7 @@ module Aws::BedrockAgent
|
|
3068
3114
|
# resp.knowledge_base.knowledge_base_id #=> String
|
3069
3115
|
# resp.knowledge_base.name #=> String
|
3070
3116
|
# resp.knowledge_base.role_arn #=> String
|
3071
|
-
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED"
|
3117
|
+
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
|
3072
3118
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.collection_arn #=> String
|
3073
3119
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.metadata_field #=> String
|
3074
3120
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.text_field #=> String
|
@@ -3118,7 +3164,7 @@ module Aws::BedrockAgent
|
|
3118
3164
|
params: params,
|
3119
3165
|
config: config)
|
3120
3166
|
context[:gem_name] = 'aws-sdk-bedrockagent'
|
3121
|
-
context[:gem_version] = '1.
|
3167
|
+
context[:gem_version] = '1.8.0'
|
3122
3168
|
Seahorse::Client::Request.new(handlers, context)
|
3123
3169
|
end
|
3124
3170
|
|
@@ -48,6 +48,7 @@ module Aws::BedrockAgent
|
|
48
48
|
BasePromptTemplate = Shapes::StringShape.new(name: 'BasePromptTemplate')
|
49
49
|
BedrockEmbeddingModelArn = Shapes::StringShape.new(name: 'BedrockEmbeddingModelArn')
|
50
50
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
51
|
+
BucketOwnerAccountId = Shapes::StringShape.new(name: 'BucketOwnerAccountId')
|
51
52
|
ChunkingConfiguration = Shapes::StructureShape.new(name: 'ChunkingConfiguration')
|
52
53
|
ChunkingStrategy = Shapes::StringShape.new(name: 'ChunkingStrategy')
|
53
54
|
ClientToken = Shapes::StringShape.new(name: 'ClientToken')
|
@@ -65,6 +66,7 @@ module Aws::BedrockAgent
|
|
65
66
|
CreateKnowledgeBaseResponse = Shapes::StructureShape.new(name: 'CreateKnowledgeBaseResponse')
|
66
67
|
CreationMode = Shapes::StringShape.new(name: 'CreationMode')
|
67
68
|
CustomControlMethod = Shapes::StringShape.new(name: 'CustomControlMethod')
|
69
|
+
DataDeletionPolicy = Shapes::StringShape.new(name: 'DataDeletionPolicy')
|
68
70
|
DataSource = Shapes::StructureShape.new(name: 'DataSource')
|
69
71
|
DataSourceConfiguration = Shapes::StructureShape.new(name: 'DataSourceConfiguration')
|
70
72
|
DataSourceStatus = Shapes::StringShape.new(name: 'DataSourceStatus')
|
@@ -463,6 +465,7 @@ module Aws::BedrockAgent
|
|
463
465
|
CreateAgentResponse.struct_class = Types::CreateAgentResponse
|
464
466
|
|
465
467
|
CreateDataSourceRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
468
|
+
CreateDataSourceRequest.add_member(:data_deletion_policy, Shapes::ShapeRef.new(shape: DataDeletionPolicy, location_name: "dataDeletionPolicy"))
|
466
469
|
CreateDataSourceRequest.add_member(:data_source_configuration, Shapes::ShapeRef.new(shape: DataSourceConfiguration, required: true, location_name: "dataSourceConfiguration"))
|
467
470
|
CreateDataSourceRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
|
468
471
|
CreateDataSourceRequest.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "knowledgeBaseId"))
|
@@ -487,9 +490,11 @@ module Aws::BedrockAgent
|
|
487
490
|
CreateKnowledgeBaseResponse.struct_class = Types::CreateKnowledgeBaseResponse
|
488
491
|
|
489
492
|
DataSource.add_member(:created_at, Shapes::ShapeRef.new(shape: DateTimestamp, required: true, location_name: "createdAt"))
|
493
|
+
DataSource.add_member(:data_deletion_policy, Shapes::ShapeRef.new(shape: DataDeletionPolicy, location_name: "dataDeletionPolicy"))
|
490
494
|
DataSource.add_member(:data_source_configuration, Shapes::ShapeRef.new(shape: DataSourceConfiguration, required: true, location_name: "dataSourceConfiguration"))
|
491
495
|
DataSource.add_member(:data_source_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "dataSourceId"))
|
492
496
|
DataSource.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
|
497
|
+
DataSource.add_member(:failure_reasons, Shapes::ShapeRef.new(shape: FailureReasons, location_name: "failureReasons"))
|
493
498
|
DataSource.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "knowledgeBaseId"))
|
494
499
|
DataSource.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
|
495
500
|
DataSource.add_member(:server_side_encryption_configuration, Shapes::ShapeRef.new(shape: ServerSideEncryptionConfiguration, location_name: "serverSideEncryptionConfiguration"))
|
@@ -889,6 +894,7 @@ module Aws::BedrockAgent
|
|
889
894
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
890
895
|
|
891
896
|
S3DataSourceConfiguration.add_member(:bucket_arn, Shapes::ShapeRef.new(shape: S3BucketArn, required: true, location_name: "bucketArn"))
|
897
|
+
S3DataSourceConfiguration.add_member(:bucket_owner_account_id, Shapes::ShapeRef.new(shape: BucketOwnerAccountId, location_name: "bucketOwnerAccountId"))
|
892
898
|
S3DataSourceConfiguration.add_member(:inclusion_prefixes, Shapes::ShapeRef.new(shape: S3Prefixes, location_name: "inclusionPrefixes"))
|
893
899
|
S3DataSourceConfiguration.struct_class = Types::S3DataSourceConfiguration
|
894
900
|
|
@@ -991,6 +997,7 @@ module Aws::BedrockAgent
|
|
991
997
|
UpdateAgentResponse.add_member(:agent, Shapes::ShapeRef.new(shape: Agent, required: true, location_name: "agent"))
|
992
998
|
UpdateAgentResponse.struct_class = Types::UpdateAgentResponse
|
993
999
|
|
1000
|
+
UpdateDataSourceRequest.add_member(:data_deletion_policy, Shapes::ShapeRef.new(shape: DataDeletionPolicy, location_name: "dataDeletionPolicy"))
|
994
1001
|
UpdateDataSourceRequest.add_member(:data_source_configuration, Shapes::ShapeRef.new(shape: DataSourceConfiguration, required: true, location_name: "dataSourceConfiguration"))
|
995
1002
|
UpdateDataSourceRequest.add_member(:data_source_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "dataSourceId"))
|
996
1003
|
UpdateDataSourceRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
|
@@ -1206,6 +1206,10 @@ module Aws::BedrockAgent
|
|
1206
1206
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
1207
1207
|
# @return [String]
|
1208
1208
|
#
|
1209
|
+
# @!attribute [rw] data_deletion_policy
|
1210
|
+
# The deletion policy for the requested data source
|
1211
|
+
# @return [String]
|
1212
|
+
#
|
1209
1213
|
# @!attribute [rw] data_source_configuration
|
1210
1214
|
# Contains metadata about where the data source is stored.
|
1211
1215
|
# @return [Types::DataSourceConfiguration]
|
@@ -1237,6 +1241,7 @@ module Aws::BedrockAgent
|
|
1237
1241
|
#
|
1238
1242
|
class CreateDataSourceRequest < Struct.new(
|
1239
1243
|
:client_token,
|
1244
|
+
:data_deletion_policy,
|
1240
1245
|
:data_source_configuration,
|
1241
1246
|
:description,
|
1242
1247
|
:knowledge_base_id,
|
@@ -1333,6 +1338,10 @@ module Aws::BedrockAgent
|
|
1333
1338
|
# The time at which the data source was created.
|
1334
1339
|
# @return [Time]
|
1335
1340
|
#
|
1341
|
+
# @!attribute [rw] data_deletion_policy
|
1342
|
+
# The deletion policy for the data source.
|
1343
|
+
# @return [String]
|
1344
|
+
#
|
1336
1345
|
# @!attribute [rw] data_source_configuration
|
1337
1346
|
# Contains details about how the data source is stored.
|
1338
1347
|
# @return [Types::DataSourceConfiguration]
|
@@ -1345,6 +1354,10 @@ module Aws::BedrockAgent
|
|
1345
1354
|
# The description of the data source.
|
1346
1355
|
# @return [String]
|
1347
1356
|
#
|
1357
|
+
# @!attribute [rw] failure_reasons
|
1358
|
+
# The details of the failure reasons related to the data source.
|
1359
|
+
# @return [Array<String>]
|
1360
|
+
#
|
1348
1361
|
# @!attribute [rw] knowledge_base_id
|
1349
1362
|
# The unique identifier of the knowledge base to which the data source
|
1350
1363
|
# belongs.
|
@@ -1381,9 +1394,11 @@ module Aws::BedrockAgent
|
|
1381
1394
|
#
|
1382
1395
|
class DataSource < Struct.new(
|
1383
1396
|
:created_at,
|
1397
|
+
:data_deletion_policy,
|
1384
1398
|
:data_source_configuration,
|
1385
1399
|
:data_source_id,
|
1386
1400
|
:description,
|
1401
|
+
:failure_reasons,
|
1387
1402
|
:knowledge_base_id,
|
1388
1403
|
:name,
|
1389
1404
|
:server_side_encryption_configuration,
|
@@ -3402,6 +3417,10 @@ module Aws::BedrockAgent
|
|
3402
3417
|
# source.
|
3403
3418
|
# @return [String]
|
3404
3419
|
#
|
3420
|
+
# @!attribute [rw] bucket_owner_account_id
|
3421
|
+
# The account ID for the owner of the S3 bucket.
|
3422
|
+
# @return [String]
|
3423
|
+
#
|
3405
3424
|
# @!attribute [rw] inclusion_prefixes
|
3406
3425
|
# A list of S3 prefixes that define the object containing the data
|
3407
3426
|
# sources. For more information, see [Organizing objects using
|
@@ -3416,6 +3435,7 @@ module Aws::BedrockAgent
|
|
3416
3435
|
#
|
3417
3436
|
class S3DataSourceConfiguration < Struct.new(
|
3418
3437
|
:bucket_arn,
|
3438
|
+
:bucket_owner_account_id,
|
3419
3439
|
:inclusion_prefixes)
|
3420
3440
|
SENSITIVE = []
|
3421
3441
|
include Aws::Structure
|
@@ -3893,6 +3913,10 @@ module Aws::BedrockAgent
|
|
3893
3913
|
include Aws::Structure
|
3894
3914
|
end
|
3895
3915
|
|
3916
|
+
# @!attribute [rw] data_deletion_policy
|
3917
|
+
# The data deletion policy of the updated data source.
|
3918
|
+
# @return [String]
|
3919
|
+
#
|
3896
3920
|
# @!attribute [rw] data_source_configuration
|
3897
3921
|
# Contains details about the storage configuration of the data source.
|
3898
3922
|
# @return [Types::DataSourceConfiguration]
|
@@ -3926,6 +3950,7 @@ module Aws::BedrockAgent
|
|
3926
3950
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/UpdateDataSourceRequest AWS API Documentation
|
3927
3951
|
#
|
3928
3952
|
class UpdateDataSourceRequest < Struct.new(
|
3953
|
+
:data_deletion_policy,
|
3929
3954
|
:data_source_configuration,
|
3930
3955
|
:data_source_id,
|
3931
3956
|
:description,
|
data/lib/aws-sdk-bedrockagent.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -189,9 +189,11 @@ module Aws
|
|
189
189
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#create_data_source-instance_method
|
190
190
|
def create_data_source: (
|
191
191
|
?client_token: ::String,
|
192
|
+
?data_deletion_policy: ("RETAIN" | "DELETE"),
|
192
193
|
data_source_configuration: {
|
193
194
|
s3_configuration: {
|
194
195
|
bucket_arn: ::String,
|
196
|
+
bucket_owner_account_id: ::String?,
|
195
197
|
inclusion_prefixes: Array[::String]?
|
196
198
|
}?,
|
197
199
|
type: ("S3")
|
@@ -332,7 +334,7 @@ module Aws
|
|
332
334
|
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteDataSourceResponse]
|
333
335
|
def data_source_id: () -> ::String
|
334
336
|
def knowledge_base_id: () -> ::String
|
335
|
-
def status: () -> ("AVAILABLE" | "DELETING")
|
337
|
+
def status: () -> ("AVAILABLE" | "DELETING" | "DELETE_UNSUCCESSFUL")
|
336
338
|
end
|
337
339
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#delete_data_source-instance_method
|
338
340
|
def delete_data_source: (
|
@@ -344,7 +346,7 @@ module Aws
|
|
344
346
|
interface _DeleteKnowledgeBaseResponseSuccess
|
345
347
|
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteKnowledgeBaseResponse]
|
346
348
|
def knowledge_base_id: () -> ::String
|
347
|
-
def status: () -> ("CREATING" | "ACTIVE" | "DELETING" | "UPDATING" | "FAILED")
|
349
|
+
def status: () -> ("CREATING" | "ACTIVE" | "DELETING" | "UPDATING" | "FAILED" | "DELETE_UNSUCCESSFUL")
|
348
350
|
end
|
349
351
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#delete_knowledge_base-instance_method
|
350
352
|
def delete_knowledge_base: (
|
@@ -738,9 +740,11 @@ module Aws
|
|
738
740
|
end
|
739
741
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#update_data_source-instance_method
|
740
742
|
def update_data_source: (
|
743
|
+
?data_deletion_policy: ("RETAIN" | "DELETE"),
|
741
744
|
data_source_configuration: {
|
742
745
|
s3_configuration: {
|
743
746
|
bucket_arn: ::String,
|
747
|
+
bucket_owner_account_id: ::String?,
|
744
748
|
inclusion_prefixes: Array[::String]?
|
745
749
|
}?,
|
746
750
|
type: ("S3")
|
data/sig/types.rbs
CHANGED
@@ -266,6 +266,7 @@ module Aws::BedrockAgent
|
|
266
266
|
|
267
267
|
class CreateDataSourceRequest
|
268
268
|
attr_accessor client_token: ::String
|
269
|
+
attr_accessor data_deletion_policy: ("RETAIN" | "DELETE")
|
269
270
|
attr_accessor data_source_configuration: Types::DataSourceConfiguration
|
270
271
|
attr_accessor description: ::String
|
271
272
|
attr_accessor knowledge_base_id: ::String
|
@@ -298,13 +299,15 @@ module Aws::BedrockAgent
|
|
298
299
|
|
299
300
|
class DataSource
|
300
301
|
attr_accessor created_at: ::Time
|
302
|
+
attr_accessor data_deletion_policy: ("RETAIN" | "DELETE")
|
301
303
|
attr_accessor data_source_configuration: Types::DataSourceConfiguration
|
302
304
|
attr_accessor data_source_id: ::String
|
303
305
|
attr_accessor description: ::String
|
306
|
+
attr_accessor failure_reasons: ::Array[::String]
|
304
307
|
attr_accessor knowledge_base_id: ::String
|
305
308
|
attr_accessor name: ::String
|
306
309
|
attr_accessor server_side_encryption_configuration: Types::ServerSideEncryptionConfiguration
|
307
|
-
attr_accessor status: ("AVAILABLE" | "DELETING")
|
310
|
+
attr_accessor status: ("AVAILABLE" | "DELETING" | "DELETE_UNSUCCESSFUL")
|
308
311
|
attr_accessor updated_at: ::Time
|
309
312
|
attr_accessor vector_ingestion_configuration: Types::VectorIngestionConfiguration
|
310
313
|
SENSITIVE: []
|
@@ -321,7 +324,7 @@ module Aws::BedrockAgent
|
|
321
324
|
attr_accessor description: ::String
|
322
325
|
attr_accessor knowledge_base_id: ::String
|
323
326
|
attr_accessor name: ::String
|
324
|
-
attr_accessor status: ("AVAILABLE" | "DELETING")
|
327
|
+
attr_accessor status: ("AVAILABLE" | "DELETING" | "DELETE_UNSUCCESSFUL")
|
325
328
|
attr_accessor updated_at: ::Time
|
326
329
|
SENSITIVE: []
|
327
330
|
end
|
@@ -385,7 +388,7 @@ module Aws::BedrockAgent
|
|
385
388
|
class DeleteDataSourceResponse
|
386
389
|
attr_accessor data_source_id: ::String
|
387
390
|
attr_accessor knowledge_base_id: ::String
|
388
|
-
attr_accessor status: ("AVAILABLE" | "DELETING")
|
391
|
+
attr_accessor status: ("AVAILABLE" | "DELETING" | "DELETE_UNSUCCESSFUL")
|
389
392
|
SENSITIVE: []
|
390
393
|
end
|
391
394
|
|
@@ -396,7 +399,7 @@ module Aws::BedrockAgent
|
|
396
399
|
|
397
400
|
class DeleteKnowledgeBaseResponse
|
398
401
|
attr_accessor knowledge_base_id: ::String
|
399
|
-
attr_accessor status: ("CREATING" | "ACTIVE" | "DELETING" | "UPDATING" | "FAILED")
|
402
|
+
attr_accessor status: ("CREATING" | "ACTIVE" | "DELETING" | "UPDATING" | "FAILED" | "DELETE_UNSUCCESSFUL")
|
400
403
|
SENSITIVE: []
|
401
404
|
end
|
402
405
|
|
@@ -595,7 +598,7 @@ module Aws::BedrockAgent
|
|
595
598
|
attr_accessor knowledge_base_id: ::String
|
596
599
|
attr_accessor name: ::String
|
597
600
|
attr_accessor role_arn: ::String
|
598
|
-
attr_accessor status: ("CREATING" | "ACTIVE" | "DELETING" | "UPDATING" | "FAILED")
|
601
|
+
attr_accessor status: ("CREATING" | "ACTIVE" | "DELETING" | "UPDATING" | "FAILED" | "DELETE_UNSUCCESSFUL")
|
599
602
|
attr_accessor storage_configuration: Types::StorageConfiguration
|
600
603
|
attr_accessor updated_at: ::Time
|
601
604
|
SENSITIVE: []
|
@@ -611,7 +614,7 @@ module Aws::BedrockAgent
|
|
611
614
|
attr_accessor description: ::String
|
612
615
|
attr_accessor knowledge_base_id: ::String
|
613
616
|
attr_accessor name: ::String
|
614
|
-
attr_accessor status: ("CREATING" | "ACTIVE" | "DELETING" | "UPDATING" | "FAILED")
|
617
|
+
attr_accessor status: ("CREATING" | "ACTIVE" | "DELETING" | "UPDATING" | "FAILED" | "DELETE_UNSUCCESSFUL")
|
615
618
|
attr_accessor updated_at: ::Time
|
616
619
|
SENSITIVE: []
|
617
620
|
end
|
@@ -836,6 +839,7 @@ module Aws::BedrockAgent
|
|
836
839
|
|
837
840
|
class S3DataSourceConfiguration
|
838
841
|
attr_accessor bucket_arn: ::String
|
842
|
+
attr_accessor bucket_owner_account_id: ::String
|
839
843
|
attr_accessor inclusion_prefixes: ::Array[::String]
|
840
844
|
SENSITIVE: []
|
841
845
|
end
|
@@ -967,6 +971,7 @@ module Aws::BedrockAgent
|
|
967
971
|
end
|
968
972
|
|
969
973
|
class UpdateDataSourceRequest
|
974
|
+
attr_accessor data_deletion_policy: ("RETAIN" | "DELETE")
|
970
975
|
attr_accessor data_source_configuration: Types::DataSourceConfiguration
|
971
976
|
attr_accessor data_source_id: ::String
|
972
977
|
attr_accessor description: ::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.
|
4
|
+
version: 1.8.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-04-
|
11
|
+
date: 2024-04-25 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
|