aws-sdk-bedrockagent 1.92.0 → 1.93.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f98f38fa59e61afc716cdab33edc7127d162b6d89f3bb85938a81e5704a35ba9
4
- data.tar.gz: 50a1ad7b6708dd6fb01c815a36dad561563d3245d52ae28a9cd86f979863891c
3
+ metadata.gz: 1ed6122a55b292d3fa5f997abda61ef6c2ad35e2e3d5d1b54c5a8f8661433af5
4
+ data.tar.gz: ac9d254c30ebfd5c4c84aba8e6df00fecd09b19b2347ea1434a78d7a44a30b08
5
5
  SHA512:
6
- metadata.gz: cb70a62d867d61a831ffa682ccf59b200dfb0c6cd721864729f55ac82865c135776a458baa51b536d32ab14c8b23b9cce1157cae0bade818793ab2fde440be58
7
- data.tar.gz: 2f8fbaf67c60b3a0a09045e510e2048445f853e1746ea625f4fa1eeaca283482a30319b6fe5f2c334e8d7a9e18a9870319a425c3de40c571767e7e6eb2afca44
6
+ metadata.gz: 9d2f3bde6c290f8b412752aa71c4aa9a5bc3c38938898f15c006d3b1a658baee2bb735033bb90052448799158a23759228a65749fdd5210cde7fd195f0c9fe2a
7
+ data.tar.gz: 599bad776950283e787966b2ec91a47138bab461c0b43e6c07c41d23c7b5620a4e84165b90a91aede9491b5abf5dce139714dc6997cb3eec3f8ab0054057875b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.93.0 (2026-11-06)
5
+ ------------------
6
+
7
+ * Feature - Add support for configuring searchability for metadata fields via UpdateKnowledgeBase request for Managed Knowledge Base. Once a field is marked as searchable it can be queried via query text and is factored into Managed Knowledge Base's ranking algorithm.
8
+
4
9
  1.92.0 (2026-11-04)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.92.0
1
+ 1.93.0
@@ -2691,6 +2691,10 @@ module Aws::BedrockAgent
2691
2691
  # resp.knowledge_base.updated_at #=> Time
2692
2692
  # resp.knowledge_base.failure_reasons #=> Array
2693
2693
  # resp.knowledge_base.failure_reasons[0] #=> String
2694
+ # resp.knowledge_base.metadata_configurations #=> Array
2695
+ # resp.knowledge_base.metadata_configurations[0].name #=> String
2696
+ # resp.knowledge_base.metadata_configurations[0].type #=> String, one of "STRING", "STRING_LIST"
2697
+ # resp.knowledge_base.metadata_configurations[0].searchability #=> String, one of "ENABLED", "DISABLED"
2694
2698
  #
2695
2699
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/CreateKnowledgeBase AWS API Documentation
2696
2700
  #
@@ -5000,6 +5004,10 @@ module Aws::BedrockAgent
5000
5004
  # resp.knowledge_base.updated_at #=> Time
5001
5005
  # resp.knowledge_base.failure_reasons #=> Array
5002
5006
  # resp.knowledge_base.failure_reasons[0] #=> String
5007
+ # resp.knowledge_base.metadata_configurations #=> Array
5008
+ # resp.knowledge_base.metadata_configurations[0].name #=> String
5009
+ # resp.knowledge_base.metadata_configurations[0].type #=> String, one of "STRING", "STRING_LIST"
5010
+ # resp.knowledge_base.metadata_configurations[0].searchability #=> String, one of "ENABLED", "DISABLED"
5003
5011
  #
5004
5012
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/GetKnowledgeBase AWS API Documentation
5005
5013
  #
@@ -8252,6 +8260,15 @@ module Aws::BedrockAgent
8252
8260
  # knowledge base. You must use the same configuration as when the
8253
8261
  # knowledge base was created.
8254
8262
  #
8263
+ # @option params [Array<Types::MetadataConfiguration>] :metadata_configurations
8264
+ # Specifies up to 30 custom metadata field configurations for a managed
8265
+ # knowledge base.
8266
+ #
8267
+ # The list that you specify replaces the existing configurations. The
8268
+ # update removes any configuration that you leave out, and its field is
8269
+ # no longer searchable. An empty list removes all configurations. If you
8270
+ # don't specify a list, the existing configurations don't change.
8271
+ #
8255
8272
  # @return [Types::UpdateKnowledgeBaseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
8256
8273
  #
8257
8274
  # * {Types::UpdateKnowledgeBaseResponse#knowledge_base #knowledge_base} => Types::KnowledgeBase
@@ -8482,6 +8499,13 @@ module Aws::BedrockAgent
8482
8499
  # index_name: "IndexName",
8483
8500
  # },
8484
8501
  # },
8502
+ # metadata_configurations: [
8503
+ # {
8504
+ # name: "MetadataKeyName", # required
8505
+ # type: "STRING", # required, accepts STRING, STRING_LIST
8506
+ # searchability: "ENABLED", # required, accepts ENABLED, DISABLED
8507
+ # },
8508
+ # ],
8485
8509
  # })
8486
8510
  #
8487
8511
  # @example Response structure
@@ -8594,6 +8618,10 @@ module Aws::BedrockAgent
8594
8618
  # resp.knowledge_base.updated_at #=> Time
8595
8619
  # resp.knowledge_base.failure_reasons #=> Array
8596
8620
  # resp.knowledge_base.failure_reasons[0] #=> String
8621
+ # resp.knowledge_base.metadata_configurations #=> Array
8622
+ # resp.knowledge_base.metadata_configurations[0].name #=> String
8623
+ # resp.knowledge_base.metadata_configurations[0].type #=> String, one of "STRING", "STRING_LIST"
8624
+ # resp.knowledge_base.metadata_configurations[0].searchability #=> String, one of "ENABLED", "DISABLED"
8597
8625
  #
8598
8626
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/UpdateKnowledgeBase AWS API Documentation
8599
8627
  #
@@ -9229,7 +9257,7 @@ module Aws::BedrockAgent
9229
9257
  tracer: tracer
9230
9258
  )
9231
9259
  context[:gem_name] = 'aws-sdk-bedrockagent'
9232
- context[:gem_version] = '1.92.0'
9260
+ context[:gem_version] = '1.93.0'
9233
9261
  Seahorse::Client::Request.new(handlers, context)
9234
9262
  end
9235
9263
 
@@ -224,6 +224,7 @@ module Aws::BedrockAgent
224
224
  FieldForReranking = Shapes::StructureShape.new(name: 'FieldForReranking')
225
225
  FieldForRerankingFieldNameString = Shapes::StringShape.new(name: 'FieldForRerankingFieldNameString')
226
226
  FieldName = Shapes::StringShape.new(name: 'FieldName')
227
+ FieldType = Shapes::StringShape.new(name: 'FieldType')
227
228
  FieldsForReranking = Shapes::ListShape.new(name: 'FieldsForReranking')
228
229
  FilterList = Shapes::ListShape.new(name: 'FilterList')
229
230
  FilterPattern = Shapes::StringShape.new(name: 'FilterPattern')
@@ -458,7 +459,10 @@ module Aws::BedrockAgent
458
459
  MetadataAttribute = Shapes::StructureShape.new(name: 'MetadataAttribute')
459
460
  MetadataAttributeValue = Shapes::StructureShape.new(name: 'MetadataAttributeValue')
460
461
  MetadataAttributeValueStringListValueList = Shapes::ListShape.new(name: 'MetadataAttributeValueStringListValueList')
462
+ MetadataConfiguration = Shapes::StructureShape.new(name: 'MetadataConfiguration')
461
463
  MetadataConfigurationForReranking = Shapes::StructureShape.new(name: 'MetadataConfigurationForReranking')
464
+ MetadataConfigurations = Shapes::ListShape.new(name: 'MetadataConfigurations')
465
+ MetadataKeyName = Shapes::StringShape.new(name: 'MetadataKeyName')
462
466
  MetadataSourceType = Shapes::StringShape.new(name: 'MetadataSourceType')
463
467
  MetadataValueType = Shapes::StringShape.new(name: 'MetadataValueType')
464
468
  Microsoft365TenantId = Shapes::StringShape.new(name: 'Microsoft365TenantId')
@@ -650,6 +654,7 @@ module Aws::BedrockAgent
650
654
  SalesforceCrawlerConfiguration = Shapes::StructureShape.new(name: 'SalesforceCrawlerConfiguration')
651
655
  SalesforceDataSourceConfiguration = Shapes::StructureShape.new(name: 'SalesforceDataSourceConfiguration')
652
656
  SalesforceSourceConfiguration = Shapes::StructureShape.new(name: 'SalesforceSourceConfiguration')
657
+ SearchableStatus = Shapes::StringShape.new(name: 'SearchableStatus')
653
658
  SecretArn = Shapes::StringShape.new(name: 'SecretArn')
654
659
  SeedUrl = Shapes::StructureShape.new(name: 'SeedUrl')
655
660
  SeedUrls = Shapes::ListShape.new(name: 'SeedUrls')
@@ -2126,6 +2131,7 @@ module Aws::BedrockAgent
2126
2131
  KnowledgeBase.add_member(:created_at, Shapes::ShapeRef.new(shape: DateTimestamp, required: true, location_name: "createdAt"))
2127
2132
  KnowledgeBase.add_member(:updated_at, Shapes::ShapeRef.new(shape: DateTimestamp, required: true, location_name: "updatedAt"))
2128
2133
  KnowledgeBase.add_member(:failure_reasons, Shapes::ShapeRef.new(shape: FailureReasons, location_name: "failureReasons"))
2134
+ KnowledgeBase.add_member(:metadata_configurations, Shapes::ShapeRef.new(shape: MetadataConfigurations, location_name: "metadataConfigurations"))
2129
2135
  KnowledgeBase.struct_class = Types::KnowledgeBase
2130
2136
 
2131
2137
  KnowledgeBaseConfiguration.add_member(:type, Shapes::ShapeRef.new(shape: KnowledgeBaseType, required: true, location_name: "type"))
@@ -2418,10 +2424,17 @@ module Aws::BedrockAgent
2418
2424
 
2419
2425
  MetadataAttributeValueStringListValueList.member = Shapes::ShapeRef.new(shape: StringValue)
2420
2426
 
2427
+ MetadataConfiguration.add_member(:name, Shapes::ShapeRef.new(shape: MetadataKeyName, required: true, location_name: "name"))
2428
+ MetadataConfiguration.add_member(:type, Shapes::ShapeRef.new(shape: FieldType, required: true, location_name: "type"))
2429
+ MetadataConfiguration.add_member(:searchability, Shapes::ShapeRef.new(shape: SearchableStatus, required: true, location_name: "searchability"))
2430
+ MetadataConfiguration.struct_class = Types::MetadataConfiguration
2431
+
2421
2432
  MetadataConfigurationForReranking.add_member(:selection_mode, Shapes::ShapeRef.new(shape: RerankingMetadataSelectionMode, required: true, location_name: "selectionMode"))
2422
2433
  MetadataConfigurationForReranking.add_member(:selective_mode_configuration, Shapes::ShapeRef.new(shape: RerankingMetadataSelectiveModeConfiguration, location_name: "selectiveModeConfiguration"))
2423
2434
  MetadataConfigurationForReranking.struct_class = Types::MetadataConfigurationForReranking
2424
2435
 
2436
+ MetadataConfigurations.member = Shapes::ShapeRef.new(shape: MetadataConfiguration)
2437
+
2425
2438
  MismatchedNodeInputTypeFlowValidationDetails.add_member(:node, Shapes::ShapeRef.new(shape: FlowNodeName, required: true, location_name: "node"))
2426
2439
  MismatchedNodeInputTypeFlowValidationDetails.add_member(:input, Shapes::ShapeRef.new(shape: FlowNodeInputName, required: true, location_name: "input"))
2427
2440
  MismatchedNodeInputTypeFlowValidationDetails.add_member(:expected_type, Shapes::ShapeRef.new(shape: FlowNodeIODataType, required: true, location_name: "expectedType"))
@@ -3221,6 +3234,7 @@ module Aws::BedrockAgent
3221
3234
  UpdateKnowledgeBaseRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: KnowledgeBaseRoleArn, required: true, location_name: "roleArn"))
3222
3235
  UpdateKnowledgeBaseRequest.add_member(:knowledge_base_configuration, Shapes::ShapeRef.new(shape: KnowledgeBaseConfiguration, required: true, location_name: "knowledgeBaseConfiguration"))
3223
3236
  UpdateKnowledgeBaseRequest.add_member(:storage_configuration, Shapes::ShapeRef.new(shape: StorageConfiguration, location_name: "storageConfiguration"))
3237
+ UpdateKnowledgeBaseRequest.add_member(:metadata_configurations, Shapes::ShapeRef.new(shape: MetadataConfigurations, location_name: "metadataConfigurations"))
3224
3238
  UpdateKnowledgeBaseRequest.struct_class = Types::UpdateKnowledgeBaseRequest
3225
3239
 
3226
3240
  UpdateKnowledgeBaseResponse.add_member(:knowledge_base, Shapes::ShapeRef.new(shape: KnowledgeBase, required: true, location_name: "knowledgeBase"))
@@ -6896,6 +6896,17 @@ module Aws::BedrockAgent
6896
6896
  # failed.
6897
6897
  # @return [Array<String>]
6898
6898
  #
6899
+ # @!attribute [rw] metadata_configurations
6900
+ # The custom metadata field configurations of the knowledge base. Each
6901
+ # configuration specifies whether its field is searchable (`ENABLED`
6902
+ # or `DISABLED`).
6903
+ #
6904
+ # If the update fails, the knowledge base status becomes
6905
+ # `UPDATE_UNSUCCESSFUL`, the field configurations revert to their
6906
+ # previous values, and `failureReasons` describes the cause. You can
6907
+ # retry the update from `UPDATE_UNSUCCESSFUL`.
6908
+ # @return [Array<Types::MetadataConfiguration>]
6909
+ #
6899
6910
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/KnowledgeBase AWS API Documentation
6900
6911
  #
6901
6912
  class KnowledgeBase < Struct.new(
@@ -6909,7 +6920,8 @@ module Aws::BedrockAgent
6909
6920
  :status,
6910
6921
  :created_at,
6911
6922
  :updated_at,
6912
- :failure_reasons)
6923
+ :failure_reasons,
6924
+ :metadata_configurations)
6913
6925
  SENSITIVE = []
6914
6926
  include Aws::Structure
6915
6927
  end
@@ -8470,6 +8482,38 @@ module Aws::BedrockAgent
8470
8482
  include Aws::Structure
8471
8483
  end
8472
8484
 
8485
+ # Contains the configuration of a single custom metadata field in a
8486
+ # knowledge base, including its name, data type, and whether the field
8487
+ # is searchable.
8488
+ #
8489
+ # @!attribute [rw] name
8490
+ # The name of the custom metadata field.
8491
+ # @return [String]
8492
+ #
8493
+ # @!attribute [rw] type
8494
+ # The data type of the custom metadata field. Valid values are
8495
+ # `STRING` and `STRING_LIST`.
8496
+ # @return [String]
8497
+ #
8498
+ # @!attribute [rw] searchability
8499
+ # Specifies whether the custom metadata field is searchable. Valid
8500
+ # values:
8501
+ #
8502
+ # * `ENABLED` – The field is searchable.
8503
+ #
8504
+ # * `DISABLED` – The field is not searchable.
8505
+ # @return [String]
8506
+ #
8507
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/MetadataConfiguration AWS API Documentation
8508
+ #
8509
+ class MetadataConfiguration < Struct.new(
8510
+ :name,
8511
+ :type,
8512
+ :searchability)
8513
+ SENSITIVE = [:name]
8514
+ include Aws::Structure
8515
+ end
8516
+
8473
8517
  # Specifies how metadata fields should be handled during the reranking
8474
8518
  # process.
8475
8519
  #
@@ -12661,6 +12705,17 @@ module Aws::BedrockAgent
12661
12705
  # knowledge base was created.
12662
12706
  # @return [Types::StorageConfiguration]
12663
12707
  #
12708
+ # @!attribute [rw] metadata_configurations
12709
+ # Specifies up to 30 custom metadata field configurations for a
12710
+ # managed knowledge base.
12711
+ #
12712
+ # The list that you specify replaces the existing configurations. The
12713
+ # update removes any configuration that you leave out, and its field
12714
+ # is no longer searchable. An empty list removes all configurations.
12715
+ # If you don't specify a list, the existing configurations don't
12716
+ # change.
12717
+ # @return [Array<Types::MetadataConfiguration>]
12718
+ #
12664
12719
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/UpdateKnowledgeBaseRequest AWS API Documentation
12665
12720
  #
12666
12721
  class UpdateKnowledgeBaseRequest < Struct.new(
@@ -12669,7 +12724,8 @@ module Aws::BedrockAgent
12669
12724
  :description,
12670
12725
  :role_arn,
12671
12726
  :knowledge_base_configuration,
12672
- :storage_configuration)
12727
+ :storage_configuration,
12728
+ :metadata_configurations)
12673
12729
  SENSITIVE = []
12674
12730
  include Aws::Structure
12675
12731
  end
@@ -55,7 +55,7 @@ module Aws::BedrockAgent
55
55
  autoload :EndpointProvider, 'aws-sdk-bedrockagent/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-bedrockagent/endpoints'
57
57
 
58
- GEM_VERSION = '1.92.0'
58
+ GEM_VERSION = '1.93.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -1463,7 +1463,14 @@ module Aws
1463
1463
  ?description: ::String,
1464
1464
  role_arn: ::String,
1465
1465
  knowledge_base_configuration: Params::knowledge_base_configuration,
1466
- ?storage_configuration: Params::storage_configuration
1466
+ ?storage_configuration: Params::storage_configuration,
1467
+ ?metadata_configurations: Array[
1468
+ {
1469
+ name: ::String,
1470
+ type: ("STRING" | "STRING_LIST"),
1471
+ searchability: ("ENABLED" | "DISABLED")
1472
+ }
1473
+ ]
1467
1474
  ) -> _UpdateKnowledgeBaseResponseSuccess
1468
1475
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateKnowledgeBaseResponseSuccess
1469
1476
 
data/sig/types.rbs CHANGED
@@ -332,7 +332,7 @@ module Aws::BedrockAgent
332
332
  attr_accessor system: ::Array[Types::SystemContentBlock]
333
333
  attr_accessor input_variables: ::Array[Types::PromptInputVariable]
334
334
  attr_accessor tool_configuration: Types::ToolConfiguration
335
- SENSITIVE: [:input_variables]
335
+ SENSITIVE: [:system, :input_variables]
336
336
  end
337
337
 
338
338
  class ChunkingConfiguration
@@ -989,7 +989,7 @@ module Aws::BedrockAgent
989
989
  attr_accessor inline_attributes: ::Array[Types::MetadataAttribute]
990
990
  attr_accessor s3_location: Types::CustomS3Location
991
991
  attr_accessor access_control_list: ::Array[Types::DocumentAccessControlEntry]
992
- SENSITIVE: []
992
+ SENSITIVE: [:access_control_list]
993
993
  end
994
994
 
995
995
  class DuplicateConditionExpressionFlowValidationDetails
@@ -1725,6 +1725,7 @@ module Aws::BedrockAgent
1725
1725
  attr_accessor created_at: ::Time
1726
1726
  attr_accessor updated_at: ::Time
1727
1727
  attr_accessor failure_reasons: ::Array[::String]
1728
+ attr_accessor metadata_configurations: ::Array[Types::MetadataConfiguration]
1728
1729
  SENSITIVE: []
1729
1730
  end
1730
1731
 
@@ -2106,7 +2107,7 @@ module Aws::BedrockAgent
2106
2107
  class Message
2107
2108
  attr_accessor role: ("user" | "assistant")
2108
2109
  attr_accessor content: ::Array[Types::ContentBlock]
2109
- SENSITIVE: []
2110
+ SENSITIVE: [:content]
2110
2111
  end
2111
2112
 
2112
2113
  class MetadataAttribute
@@ -2121,7 +2122,14 @@ module Aws::BedrockAgent
2121
2122
  attr_accessor boolean_value: bool
2122
2123
  attr_accessor string_value: ::String
2123
2124
  attr_accessor string_list_value: ::Array[::String]
2124
- SENSITIVE: [:number_value, :string_value]
2125
+ SENSITIVE: [:number_value, :string_value, :string_list_value]
2126
+ end
2127
+
2128
+ class MetadataConfiguration
2129
+ attr_accessor name: ::String
2130
+ attr_accessor type: ("STRING" | "STRING_LIST")
2131
+ attr_accessor searchability: ("ENABLED" | "DISABLED")
2132
+ SENSITIVE: [:name]
2125
2133
  end
2126
2134
 
2127
2135
  class MetadataConfigurationForReranking
@@ -2702,7 +2710,7 @@ module Aws::BedrockAgent
2702
2710
  attr_accessor bucket_arn: ::String
2703
2711
  attr_accessor inclusion_prefixes: ::Array[::String]
2704
2712
  attr_accessor bucket_owner_account_id: ::String
2705
- SENSITIVE: []
2713
+ SENSITIVE: [:inclusion_prefixes]
2706
2714
  end
2707
2715
 
2708
2716
  class S3Identifier
@@ -3224,6 +3232,7 @@ module Aws::BedrockAgent
3224
3232
  attr_accessor role_arn: ::String
3225
3233
  attr_accessor knowledge_base_configuration: Types::KnowledgeBaseConfiguration
3226
3234
  attr_accessor storage_configuration: Types::StorageConfiguration
3235
+ attr_accessor metadata_configurations: ::Array[Types::MetadataConfiguration]
3227
3236
  SENSITIVE: []
3228
3237
  end
3229
3238
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockagent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.92.0
4
+ version: 1.93.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: '3'
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 3.264.0
21
+ version: 3.265.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  version: '3'
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 3.264.0
31
+ version: 3.265.0
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: aws-sigv4
34
34
  requirement: !ruby/object:Gem::Requirement