aws-sdk-bedrockagent 1.6.0 → 1.7.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagent/client.rb +33 -11
- 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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcb2814f409a0dd580ca9fac184a721497956f9dc4f2dc3d42e2a527501f348f
|
4
|
+
data.tar.gz: 1c8674b5d0d383286f891e7499d3f8149c8281b90a4c853ae163351112e9c1e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8668ed7e1e8d33ed7be55f8df2090e4d0bc450216d5862cb46b4f1f3fbb901316c123e2eddccc9235e5175c3d4ccc0465c147bda1082cc3e49306533f0a15fdd
|
7
|
+
data.tar.gz: d280ca0c93898e4c5fa82482f65f62d4c3af1820aebc4fd9e3460da3a92dfb65d865fbbc05a3c8a7e129489aee30aeeb663531394b8ee37b7b7c2c835a694192
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.7.0 (2024-04-23)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* 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.
|
8
|
+
|
4
9
|
1.6.0 (2024-04-22)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.7.0
|
@@ -873,6 +873,9 @@ module Aws::BedrockAgent
|
|
873
873
|
#
|
874
874
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
875
875
|
#
|
876
|
+
# @option params [String] :data_deletion_policy
|
877
|
+
# The deletion policy for the requested data source
|
878
|
+
#
|
876
879
|
# @option params [required, Types::DataSourceConfiguration] :data_source_configuration
|
877
880
|
# Contains metadata about where the data source is stored.
|
878
881
|
#
|
@@ -900,9 +903,11 @@ module Aws::BedrockAgent
|
|
900
903
|
#
|
901
904
|
# resp = client.create_data_source({
|
902
905
|
# client_token: "ClientToken",
|
906
|
+
# data_deletion_policy: "RETAIN", # accepts RETAIN, DELETE
|
903
907
|
# data_source_configuration: { # required
|
904
908
|
# s3_configuration: {
|
905
909
|
# bucket_arn: "S3BucketArn", # required
|
910
|
+
# bucket_owner_account_id: "BucketOwnerAccountId",
|
906
911
|
# inclusion_prefixes: ["S3Prefix"],
|
907
912
|
# },
|
908
913
|
# type: "S3", # required, accepts S3
|
@@ -927,16 +932,20 @@ module Aws::BedrockAgent
|
|
927
932
|
# @example Response structure
|
928
933
|
#
|
929
934
|
# resp.data_source.created_at #=> Time
|
935
|
+
# resp.data_source.data_deletion_policy #=> String, one of "RETAIN", "DELETE"
|
930
936
|
# resp.data_source.data_source_configuration.s3_configuration.bucket_arn #=> String
|
937
|
+
# resp.data_source.data_source_configuration.s3_configuration.bucket_owner_account_id #=> String
|
931
938
|
# resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes #=> Array
|
932
939
|
# resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes[0] #=> String
|
933
940
|
# resp.data_source.data_source_configuration.type #=> String, one of "S3"
|
934
941
|
# resp.data_source.data_source_id #=> String
|
935
942
|
# resp.data_source.description #=> String
|
943
|
+
# resp.data_source.failure_reasons #=> Array
|
944
|
+
# resp.data_source.failure_reasons[0] #=> String
|
936
945
|
# resp.data_source.knowledge_base_id #=> String
|
937
946
|
# resp.data_source.name #=> String
|
938
947
|
# resp.data_source.server_side_encryption_configuration.kms_key_arn #=> String
|
939
|
-
# resp.data_source.status #=> String, one of "AVAILABLE", "DELETING"
|
948
|
+
# resp.data_source.status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL"
|
940
949
|
# resp.data_source.updated_at #=> Time
|
941
950
|
# resp.data_source.vector_ingestion_configuration.chunking_configuration.chunking_strategy #=> String, one of "FIXED_SIZE", "NONE"
|
942
951
|
# resp.data_source.vector_ingestion_configuration.chunking_configuration.fixed_size_chunking_configuration.max_tokens #=> Integer
|
@@ -1110,7 +1119,7 @@ module Aws::BedrockAgent
|
|
1110
1119
|
# resp.knowledge_base.knowledge_base_id #=> String
|
1111
1120
|
# resp.knowledge_base.name #=> String
|
1112
1121
|
# resp.knowledge_base.role_arn #=> String
|
1113
|
-
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED"
|
1122
|
+
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
|
1114
1123
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.collection_arn #=> String
|
1115
1124
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.metadata_field #=> String
|
1116
1125
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.text_field #=> String
|
@@ -1323,7 +1332,7 @@ module Aws::BedrockAgent
|
|
1323
1332
|
#
|
1324
1333
|
# resp.data_source_id #=> String
|
1325
1334
|
# resp.knowledge_base_id #=> String
|
1326
|
-
# resp.status #=> String, one of "AVAILABLE", "DELETING"
|
1335
|
+
# resp.status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL"
|
1327
1336
|
#
|
1328
1337
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/DeleteDataSource AWS API Documentation
|
1329
1338
|
#
|
@@ -1359,7 +1368,7 @@ module Aws::BedrockAgent
|
|
1359
1368
|
# @example Response structure
|
1360
1369
|
#
|
1361
1370
|
# resp.knowledge_base_id #=> String
|
1362
|
-
# resp.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED"
|
1371
|
+
# resp.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
|
1363
1372
|
#
|
1364
1373
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/DeleteKnowledgeBase AWS API Documentation
|
1365
1374
|
#
|
@@ -1694,16 +1703,20 @@ module Aws::BedrockAgent
|
|
1694
1703
|
# @example Response structure
|
1695
1704
|
#
|
1696
1705
|
# resp.data_source.created_at #=> Time
|
1706
|
+
# resp.data_source.data_deletion_policy #=> String, one of "RETAIN", "DELETE"
|
1697
1707
|
# resp.data_source.data_source_configuration.s3_configuration.bucket_arn #=> String
|
1708
|
+
# resp.data_source.data_source_configuration.s3_configuration.bucket_owner_account_id #=> String
|
1698
1709
|
# resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes #=> Array
|
1699
1710
|
# resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes[0] #=> String
|
1700
1711
|
# resp.data_source.data_source_configuration.type #=> String, one of "S3"
|
1701
1712
|
# resp.data_source.data_source_id #=> String
|
1702
1713
|
# resp.data_source.description #=> String
|
1714
|
+
# resp.data_source.failure_reasons #=> Array
|
1715
|
+
# resp.data_source.failure_reasons[0] #=> String
|
1703
1716
|
# resp.data_source.knowledge_base_id #=> String
|
1704
1717
|
# resp.data_source.name #=> String
|
1705
1718
|
# resp.data_source.server_side_encryption_configuration.kms_key_arn #=> String
|
1706
|
-
# resp.data_source.status #=> String, one of "AVAILABLE", "DELETING"
|
1719
|
+
# resp.data_source.status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL"
|
1707
1720
|
# resp.data_source.updated_at #=> Time
|
1708
1721
|
# resp.data_source.vector_ingestion_configuration.chunking_configuration.chunking_strategy #=> String, one of "FIXED_SIZE", "NONE"
|
1709
1722
|
# resp.data_source.vector_ingestion_configuration.chunking_configuration.fixed_size_chunking_configuration.max_tokens #=> Integer
|
@@ -1799,7 +1812,7 @@ module Aws::BedrockAgent
|
|
1799
1812
|
# resp.knowledge_base.knowledge_base_id #=> String
|
1800
1813
|
# resp.knowledge_base.name #=> String
|
1801
1814
|
# resp.knowledge_base.role_arn #=> String
|
1802
|
-
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED"
|
1815
|
+
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
|
1803
1816
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.collection_arn #=> String
|
1804
1817
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.metadata_field #=> String
|
1805
1818
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.text_field #=> String
|
@@ -2144,7 +2157,7 @@ module Aws::BedrockAgent
|
|
2144
2157
|
# resp.data_source_summaries[0].description #=> String
|
2145
2158
|
# resp.data_source_summaries[0].knowledge_base_id #=> String
|
2146
2159
|
# resp.data_source_summaries[0].name #=> String
|
2147
|
-
# resp.data_source_summaries[0].status #=> String, one of "AVAILABLE", "DELETING"
|
2160
|
+
# resp.data_source_summaries[0].status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL"
|
2148
2161
|
# resp.data_source_summaries[0].updated_at #=> Time
|
2149
2162
|
# resp.next_token #=> String
|
2150
2163
|
#
|
@@ -2276,7 +2289,7 @@ module Aws::BedrockAgent
|
|
2276
2289
|
# resp.knowledge_base_summaries[0].description #=> String
|
2277
2290
|
# resp.knowledge_base_summaries[0].knowledge_base_id #=> String
|
2278
2291
|
# resp.knowledge_base_summaries[0].name #=> String
|
2279
|
-
# resp.knowledge_base_summaries[0].status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED"
|
2292
|
+
# resp.knowledge_base_summaries[0].status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
|
2280
2293
|
# resp.knowledge_base_summaries[0].updated_at #=> Time
|
2281
2294
|
# resp.next_token #=> String
|
2282
2295
|
#
|
@@ -2869,6 +2882,9 @@ module Aws::BedrockAgent
|
|
2869
2882
|
# You can't change the `chunkingConfiguration` after you create the
|
2870
2883
|
# data source. Specify the existing `chunkingConfiguration`.
|
2871
2884
|
#
|
2885
|
+
# @option params [String] :data_deletion_policy
|
2886
|
+
# The data deletion policy of the updated data source.
|
2887
|
+
#
|
2872
2888
|
# @option params [required, Types::DataSourceConfiguration] :data_source_configuration
|
2873
2889
|
# Contains details about the storage configuration of the data source.
|
2874
2890
|
#
|
@@ -2898,9 +2914,11 @@ module Aws::BedrockAgent
|
|
2898
2914
|
# @example Request syntax with placeholder values
|
2899
2915
|
#
|
2900
2916
|
# resp = client.update_data_source({
|
2917
|
+
# data_deletion_policy: "RETAIN", # accepts RETAIN, DELETE
|
2901
2918
|
# data_source_configuration: { # required
|
2902
2919
|
# s3_configuration: {
|
2903
2920
|
# bucket_arn: "S3BucketArn", # required
|
2921
|
+
# bucket_owner_account_id: "BucketOwnerAccountId",
|
2904
2922
|
# inclusion_prefixes: ["S3Prefix"],
|
2905
2923
|
# },
|
2906
2924
|
# type: "S3", # required, accepts S3
|
@@ -2926,16 +2944,20 @@ module Aws::BedrockAgent
|
|
2926
2944
|
# @example Response structure
|
2927
2945
|
#
|
2928
2946
|
# resp.data_source.created_at #=> Time
|
2947
|
+
# resp.data_source.data_deletion_policy #=> String, one of "RETAIN", "DELETE"
|
2929
2948
|
# resp.data_source.data_source_configuration.s3_configuration.bucket_arn #=> String
|
2949
|
+
# resp.data_source.data_source_configuration.s3_configuration.bucket_owner_account_id #=> String
|
2930
2950
|
# resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes #=> Array
|
2931
2951
|
# resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes[0] #=> String
|
2932
2952
|
# resp.data_source.data_source_configuration.type #=> String, one of "S3"
|
2933
2953
|
# resp.data_source.data_source_id #=> String
|
2934
2954
|
# resp.data_source.description #=> String
|
2955
|
+
# resp.data_source.failure_reasons #=> Array
|
2956
|
+
# resp.data_source.failure_reasons[0] #=> String
|
2935
2957
|
# resp.data_source.knowledge_base_id #=> String
|
2936
2958
|
# resp.data_source.name #=> String
|
2937
2959
|
# resp.data_source.server_side_encryption_configuration.kms_key_arn #=> String
|
2938
|
-
# resp.data_source.status #=> String, one of "AVAILABLE", "DELETING"
|
2960
|
+
# resp.data_source.status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL"
|
2939
2961
|
# resp.data_source.updated_at #=> Time
|
2940
2962
|
# resp.data_source.vector_ingestion_configuration.chunking_configuration.chunking_strategy #=> String, one of "FIXED_SIZE", "NONE"
|
2941
2963
|
# resp.data_source.vector_ingestion_configuration.chunking_configuration.fixed_size_chunking_configuration.max_tokens #=> Integer
|
@@ -3068,7 +3090,7 @@ module Aws::BedrockAgent
|
|
3068
3090
|
# resp.knowledge_base.knowledge_base_id #=> String
|
3069
3091
|
# resp.knowledge_base.name #=> String
|
3070
3092
|
# resp.knowledge_base.role_arn #=> String
|
3071
|
-
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED"
|
3093
|
+
# resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
|
3072
3094
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.collection_arn #=> String
|
3073
3095
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.metadata_field #=> String
|
3074
3096
|
# resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.text_field #=> String
|
@@ -3118,7 +3140,7 @@ module Aws::BedrockAgent
|
|
3118
3140
|
params: params,
|
3119
3141
|
config: config)
|
3120
3142
|
context[:gem_name] = 'aws-sdk-bedrockagent'
|
3121
|
-
context[:gem_version] = '1.
|
3143
|
+
context[:gem_version] = '1.7.0'
|
3122
3144
|
Seahorse::Client::Request.new(handlers, context)
|
3123
3145
|
end
|
3124
3146
|
|
@@ -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.7.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-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|