aws-sdk-lexmodelsv2 1.56.0 → 1.58.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c69b10c9337bfda8539cfd956f10de188f3ccd140793b2bf30689c596145983
4
- data.tar.gz: 4b5db33a4773c3990bf25ecaa98b0e086a9b9853ee8f6df012ceda028607a97e
3
+ metadata.gz: 57134db1d24ce4b4595326a3ab4c2e84ef047a92b8ffca81df68d99e9f9a42f1
4
+ data.tar.gz: cbfa2e3d87422a3cc2629d51518b9c01c6befeb55e27711e42e3626a30e525c8
5
5
  SHA512:
6
- metadata.gz: 37fed9f65539a0a1196ca3d5c218bde659f02932b5a14e145bab1c53903b2b005968d92b2cd1d3e4f2f7c019863569a8bfae3a795bb97e95c4bdc09aed2e14a7
7
- data.tar.gz: 74fb662626238dc424310128f79b15d1fe52bcb0f6a338c23220f408ec1a81b84af37d549ea98cdf8cc184a7ccad523e8866ffce5926e8a0089c2571e802b6aa
6
+ metadata.gz: ebdd114c0b69bf9781945da27cb5986a40d7132c088341d4da8e95a9976e7182e6fa284b58c99261b619d493119d8ddde9d6ea3d8ac8911085e6d3c52331eb08
7
+ data.tar.gz: 874e9441d0d025f594d2fa1ec69d27bca33f2a3d6f2045a79a314accff43771777a7f4d92b6923a803956e6c4a7d79045bdda540351e010331356ad30bbe8a2d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.58.0 (2024-09-03)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.57.0 (2024-07-30)
10
+ ------------------
11
+
12
+ * Feature - This release adds new capabilities to the AMAZON.QnAIntent: Custom prompting, Guardrails integration and ExactResponse support for Bedrock Knowledge Base.
13
+
4
14
  1.56.0 (2024-07-02)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.56.0
1
+ 1.58.0
@@ -32,6 +32,7 @@ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
32
32
  require 'aws-sdk-core/plugins/request_compression.rb'
33
33
  require 'aws-sdk-core/plugins/defaults_mode.rb'
34
34
  require 'aws-sdk-core/plugins/recursion_detection.rb'
35
+ require 'aws-sdk-core/plugins/telemetry.rb'
35
36
  require 'aws-sdk-core/plugins/sign.rb'
36
37
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
37
38
 
@@ -83,6 +84,7 @@ module Aws::LexModelsV2
83
84
  add_plugin(Aws::Plugins::RequestCompression)
84
85
  add_plugin(Aws::Plugins::DefaultsMode)
85
86
  add_plugin(Aws::Plugins::RecursionDetection)
87
+ add_plugin(Aws::Plugins::Telemetry)
86
88
  add_plugin(Aws::Plugins::Sign)
87
89
  add_plugin(Aws::Plugins::Protocols::RestJson)
88
90
  add_plugin(Aws::LexModelsV2::Plugins::Endpoints)
@@ -330,6 +332,16 @@ module Aws::LexModelsV2
330
332
  # ** Please note ** When response stubbing is enabled, no HTTP
331
333
  # requests are made, and retries are disabled.
332
334
  #
335
+ # @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider)
336
+ # Allows you to provide a telemetry provider, which is used to
337
+ # emit telemetry data. By default, uses `NoOpTelemetryProvider` which
338
+ # will not record or emit any telemetry data. The SDK supports the
339
+ # following telemetry providers:
340
+ #
341
+ # * OpenTelemetry (OTel) - To use the OTel provider, install and require the
342
+ # `opentelemetry-sdk` gem and then, pass in an instance of a
343
+ # `Aws::Telemetry::OTelProvider` for telemetry provider.
344
+ #
333
345
  # @option options [Aws::TokenProvider] :token_provider
334
346
  # A Bearer Token Provider. This can be an instance of any one of the
335
347
  # following classes:
@@ -1050,6 +1062,12 @@ module Aws::LexModelsV2
1050
1062
  # enabled: false, # required
1051
1063
  # bedrock_model_specification: {
1052
1064
  # model_arn: "BedrockModelArn", # required
1065
+ # guardrail: {
1066
+ # identifier: "BedrockGuardrailIdentifier", # required
1067
+ # version: "BedrockGuardrailVersion", # required
1068
+ # },
1069
+ # trace_status: "ENABLED", # accepts ENABLED, DISABLED
1070
+ # custom_prompt: "BedrockModelCustomPrompt",
1053
1071
  # },
1054
1072
  # },
1055
1073
  # },
@@ -1058,12 +1076,24 @@ module Aws::LexModelsV2
1058
1076
  # enabled: false, # required
1059
1077
  # bedrock_model_specification: {
1060
1078
  # model_arn: "BedrockModelArn", # required
1079
+ # guardrail: {
1080
+ # identifier: "BedrockGuardrailIdentifier", # required
1081
+ # version: "BedrockGuardrailVersion", # required
1082
+ # },
1083
+ # trace_status: "ENABLED", # accepts ENABLED, DISABLED
1084
+ # custom_prompt: "BedrockModelCustomPrompt",
1061
1085
  # },
1062
1086
  # },
1063
1087
  # sample_utterance_generation: {
1064
1088
  # enabled: false, # required
1065
1089
  # bedrock_model_specification: {
1066
1090
  # model_arn: "BedrockModelArn", # required
1091
+ # guardrail: {
1092
+ # identifier: "BedrockGuardrailIdentifier", # required
1093
+ # version: "BedrockGuardrailVersion", # required
1094
+ # },
1095
+ # trace_status: "ENABLED", # accepts ENABLED, DISABLED
1096
+ # custom_prompt: "BedrockModelCustomPrompt",
1067
1097
  # },
1068
1098
  # },
1069
1099
  # },
@@ -1084,10 +1114,22 @@ module Aws::LexModelsV2
1084
1114
  # resp.creation_date_time #=> Time
1085
1115
  # resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.enabled #=> Boolean
1086
1116
  # resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.model_arn #=> String
1117
+ # resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.guardrail.identifier #=> String
1118
+ # resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.guardrail.version #=> String
1119
+ # resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.trace_status #=> String, one of "ENABLED", "DISABLED"
1120
+ # resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.custom_prompt #=> String
1087
1121
  # resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.enabled #=> Boolean
1088
1122
  # resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.model_arn #=> String
1123
+ # resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.guardrail.identifier #=> String
1124
+ # resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.guardrail.version #=> String
1125
+ # resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.trace_status #=> String, one of "ENABLED", "DISABLED"
1126
+ # resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.custom_prompt #=> String
1089
1127
  # resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.enabled #=> Boolean
1090
1128
  # resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.model_arn #=> String
1129
+ # resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.guardrail.identifier #=> String
1130
+ # resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.guardrail.version #=> String
1131
+ # resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.trace_status #=> String, one of "ENABLED", "DISABLED"
1132
+ # resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.custom_prompt #=> String
1091
1133
  #
1092
1134
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateBotLocale AWS API Documentation
1093
1135
  #
@@ -1513,6 +1555,9 @@ module Aws::LexModelsV2
1513
1555
  # You can't create a resource policy statement that allows
1514
1556
  # cross-account access.
1515
1557
  #
1558
+ # You need to add the `CreateResourcePolicy` or `UpdateResourcePolicy`
1559
+ # action to the bot role in order to call the API.
1560
+ #
1516
1561
  # @option params [required, String] :resource_arn
1517
1562
  # The Amazon Resource Name (ARN) of the bot or bot alias that the
1518
1563
  # resource policy is attached to.
@@ -3083,6 +3128,9 @@ module Aws::LexModelsV2
3083
3128
  # alias doesn't have a policy attached, Amazon Lex returns an
3084
3129
  # exception.
3085
3130
  #
3131
+ # You need to add the `DeleteResourcePolicy` or `UpdateResourcePolicy`
3132
+ # action to the bot role in order to call the API.
3133
+ #
3086
3134
  # @option params [required, String] :resource_arn
3087
3135
  # The Amazon Resource Name (ARN) of the bot or bot alias that the
3088
3136
  # resource policy is attached to.
@@ -3511,10 +3559,22 @@ module Aws::LexModelsV2
3511
3559
  # resp.recommended_actions[0] #=> String
3512
3560
  # resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.enabled #=> Boolean
3513
3561
  # resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.model_arn #=> String
3562
+ # resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.guardrail.identifier #=> String
3563
+ # resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.guardrail.version #=> String
3564
+ # resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.trace_status #=> String, one of "ENABLED", "DISABLED"
3565
+ # resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.custom_prompt #=> String
3514
3566
  # resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.enabled #=> Boolean
3515
3567
  # resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.model_arn #=> String
3568
+ # resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.guardrail.identifier #=> String
3569
+ # resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.guardrail.version #=> String
3570
+ # resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.trace_status #=> String, one of "ENABLED", "DISABLED"
3571
+ # resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.custom_prompt #=> String
3516
3572
  # resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.enabled #=> Boolean
3517
3573
  # resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.model_arn #=> String
3574
+ # resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.guardrail.identifier #=> String
3575
+ # resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.guardrail.version #=> String
3576
+ # resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.trace_status #=> String, one of "ENABLED", "DISABLED"
3577
+ # resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.custom_prompt #=> String
3518
3578
  #
3519
3579
  #
3520
3580
  # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
@@ -9008,6 +9068,12 @@ module Aws::LexModelsV2
9008
9068
  # enabled: false, # required
9009
9069
  # bedrock_model_specification: {
9010
9070
  # model_arn: "BedrockModelArn", # required
9071
+ # guardrail: {
9072
+ # identifier: "BedrockGuardrailIdentifier", # required
9073
+ # version: "BedrockGuardrailVersion", # required
9074
+ # },
9075
+ # trace_status: "ENABLED", # accepts ENABLED, DISABLED
9076
+ # custom_prompt: "BedrockModelCustomPrompt",
9011
9077
  # },
9012
9078
  # },
9013
9079
  # },
@@ -9016,12 +9082,24 @@ module Aws::LexModelsV2
9016
9082
  # enabled: false, # required
9017
9083
  # bedrock_model_specification: {
9018
9084
  # model_arn: "BedrockModelArn", # required
9085
+ # guardrail: {
9086
+ # identifier: "BedrockGuardrailIdentifier", # required
9087
+ # version: "BedrockGuardrailVersion", # required
9088
+ # },
9089
+ # trace_status: "ENABLED", # accepts ENABLED, DISABLED
9090
+ # custom_prompt: "BedrockModelCustomPrompt",
9019
9091
  # },
9020
9092
  # },
9021
9093
  # sample_utterance_generation: {
9022
9094
  # enabled: false, # required
9023
9095
  # bedrock_model_specification: {
9024
9096
  # model_arn: "BedrockModelArn", # required
9097
+ # guardrail: {
9098
+ # identifier: "BedrockGuardrailIdentifier", # required
9099
+ # version: "BedrockGuardrailVersion", # required
9100
+ # },
9101
+ # trace_status: "ENABLED", # accepts ENABLED, DISABLED
9102
+ # custom_prompt: "BedrockModelCustomPrompt",
9025
9103
  # },
9026
9104
  # },
9027
9105
  # },
@@ -9047,10 +9125,22 @@ module Aws::LexModelsV2
9047
9125
  # resp.recommended_actions[0] #=> String
9048
9126
  # resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.enabled #=> Boolean
9049
9127
  # resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.model_arn #=> String
9128
+ # resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.guardrail.identifier #=> String
9129
+ # resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.guardrail.version #=> String
9130
+ # resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.trace_status #=> String, one of "ENABLED", "DISABLED"
9131
+ # resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.custom_prompt #=> String
9050
9132
  # resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.enabled #=> Boolean
9051
9133
  # resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.model_arn #=> String
9134
+ # resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.guardrail.identifier #=> String
9135
+ # resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.guardrail.version #=> String
9136
+ # resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.trace_status #=> String, one of "ENABLED", "DISABLED"
9137
+ # resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.custom_prompt #=> String
9052
9138
  # resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.enabled #=> Boolean
9053
9139
  # resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.model_arn #=> String
9140
+ # resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.guardrail.identifier #=> String
9141
+ # resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.guardrail.version #=> String
9142
+ # resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.trace_status #=> String, one of "ENABLED", "DISABLED"
9143
+ # resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.custom_prompt #=> String
9054
9144
  #
9055
9145
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotLocale AWS API Documentation
9056
9146
  #
@@ -10386,14 +10476,19 @@ module Aws::LexModelsV2
10386
10476
  # @api private
10387
10477
  def build_request(operation_name, params = {})
10388
10478
  handlers = @handlers.for(operation_name)
10479
+ tracer = config.telemetry_provider.tracer_provider.tracer(
10480
+ Aws::Telemetry.module_to_tracer_name('Aws::LexModelsV2')
10481
+ )
10389
10482
  context = Seahorse::Client::RequestContext.new(
10390
10483
  operation_name: operation_name,
10391
10484
  operation: config.api.operation(operation_name),
10392
10485
  client: self,
10393
10486
  params: params,
10394
- config: config)
10487
+ config: config,
10488
+ tracer: tracer
10489
+ )
10395
10490
  context[:gem_name] = 'aws-sdk-lexmodelsv2'
10396
- context[:gem_version] = '1.56.0'
10491
+ context[:gem_version] = '1.58.0'
10397
10492
  Seahorse::Client::Request.new(handlers, context)
10398
10493
  end
10399
10494
 
@@ -145,10 +145,16 @@ module Aws::LexModelsV2
145
145
  BatchDeleteCustomVocabularyItemResponse = Shapes::StructureShape.new(name: 'BatchDeleteCustomVocabularyItemResponse')
146
146
  BatchUpdateCustomVocabularyItemRequest = Shapes::StructureShape.new(name: 'BatchUpdateCustomVocabularyItemRequest')
147
147
  BatchUpdateCustomVocabularyItemResponse = Shapes::StructureShape.new(name: 'BatchUpdateCustomVocabularyItemResponse')
148
+ BedrockGuardrailConfiguration = Shapes::StructureShape.new(name: 'BedrockGuardrailConfiguration')
149
+ BedrockGuardrailIdentifier = Shapes::StringShape.new(name: 'BedrockGuardrailIdentifier')
150
+ BedrockGuardrailVersion = Shapes::StringShape.new(name: 'BedrockGuardrailVersion')
148
151
  BedrockKnowledgeBaseArn = Shapes::StringShape.new(name: 'BedrockKnowledgeBaseArn')
149
152
  BedrockKnowledgeStoreConfiguration = Shapes::StructureShape.new(name: 'BedrockKnowledgeStoreConfiguration')
153
+ BedrockKnowledgeStoreExactResponseFields = Shapes::StructureShape.new(name: 'BedrockKnowledgeStoreExactResponseFields')
150
154
  BedrockModelArn = Shapes::StringShape.new(name: 'BedrockModelArn')
155
+ BedrockModelCustomPrompt = Shapes::StringShape.new(name: 'BedrockModelCustomPrompt')
151
156
  BedrockModelSpecification = Shapes::StructureShape.new(name: 'BedrockModelSpecification')
157
+ BedrockTraceStatus = Shapes::StringShape.new(name: 'BedrockTraceStatus')
152
158
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
153
159
  BotAliasHistoryEvent = Shapes::StructureShape.new(name: 'BotAliasHistoryEvent')
154
160
  BotAliasHistoryEventsList = Shapes::ListShape.new(name: 'BotAliasHistoryEventsList')
@@ -1136,10 +1142,22 @@ module Aws::LexModelsV2
1136
1142
  BatchUpdateCustomVocabularyItemResponse.add_member(:resources, Shapes::ShapeRef.new(shape: CustomVocabularyItems, location_name: "resources"))
1137
1143
  BatchUpdateCustomVocabularyItemResponse.struct_class = Types::BatchUpdateCustomVocabularyItemResponse
1138
1144
 
1145
+ BedrockGuardrailConfiguration.add_member(:identifier, Shapes::ShapeRef.new(shape: BedrockGuardrailIdentifier, required: true, location_name: "identifier"))
1146
+ BedrockGuardrailConfiguration.add_member(:version, Shapes::ShapeRef.new(shape: BedrockGuardrailVersion, required: true, location_name: "version"))
1147
+ BedrockGuardrailConfiguration.struct_class = Types::BedrockGuardrailConfiguration
1148
+
1139
1149
  BedrockKnowledgeStoreConfiguration.add_member(:bedrock_knowledge_base_arn, Shapes::ShapeRef.new(shape: BedrockKnowledgeBaseArn, required: true, location_name: "bedrockKnowledgeBaseArn"))
1150
+ BedrockKnowledgeStoreConfiguration.add_member(:exact_response, Shapes::ShapeRef.new(shape: Boolean, location_name: "exactResponse"))
1151
+ BedrockKnowledgeStoreConfiguration.add_member(:exact_response_fields, Shapes::ShapeRef.new(shape: BedrockKnowledgeStoreExactResponseFields, location_name: "exactResponseFields"))
1140
1152
  BedrockKnowledgeStoreConfiguration.struct_class = Types::BedrockKnowledgeStoreConfiguration
1141
1153
 
1154
+ BedrockKnowledgeStoreExactResponseFields.add_member(:answer_field, Shapes::ShapeRef.new(shape: AnswerField, location_name: "answerField"))
1155
+ BedrockKnowledgeStoreExactResponseFields.struct_class = Types::BedrockKnowledgeStoreExactResponseFields
1156
+
1142
1157
  BedrockModelSpecification.add_member(:model_arn, Shapes::ShapeRef.new(shape: BedrockModelArn, required: true, location_name: "modelArn"))
1158
+ BedrockModelSpecification.add_member(:guardrail, Shapes::ShapeRef.new(shape: BedrockGuardrailConfiguration, location_name: "guardrail"))
1159
+ BedrockModelSpecification.add_member(:trace_status, Shapes::ShapeRef.new(shape: BedrockTraceStatus, location_name: "traceStatus"))
1160
+ BedrockModelSpecification.add_member(:custom_prompt, Shapes::ShapeRef.new(shape: BedrockModelCustomPrompt, location_name: "customPrompt"))
1143
1161
  BedrockModelSpecification.struct_class = Types::BedrockModelSpecification
1144
1162
 
1145
1163
  BotAliasHistoryEvent.add_member(:bot_version, Shapes::ShapeRef.new(shape: BotVersion, location_name: "botVersion"))
@@ -1836,17 +1836,64 @@ module Aws::LexModelsV2
1836
1836
  include Aws::Structure
1837
1837
  end
1838
1838
 
1839
+ # The details on the Bedrock guardrail configuration.
1840
+ #
1841
+ # @!attribute [rw] identifier
1842
+ # The unique guardrail id for the Bedrock guardrail configuration.
1843
+ # @return [String]
1844
+ #
1845
+ # @!attribute [rw] version
1846
+ # The guardrail version for the Bedrock guardrail configuration.
1847
+ # @return [String]
1848
+ #
1849
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BedrockGuardrailConfiguration AWS API Documentation
1850
+ #
1851
+ class BedrockGuardrailConfiguration < Struct.new(
1852
+ :identifier,
1853
+ :version)
1854
+ SENSITIVE = []
1855
+ include Aws::Structure
1856
+ end
1857
+
1839
1858
  # Contains details about the configuration of a Amazon Bedrock knowledge
1840
1859
  # base.
1841
1860
  #
1842
1861
  # @!attribute [rw] bedrock_knowledge_base_arn
1843
- # The ARN of the knowledge base used.
1862
+ # The base ARN of the knowledge base used.
1844
1863
  # @return [String]
1845
1864
  #
1865
+ # @!attribute [rw] exact_response
1866
+ # Specifies whether to return an exact response, or to return an
1867
+ # answer generated by the model, using the fields you specify from the
1868
+ # database.
1869
+ # @return [Boolean]
1870
+ #
1871
+ # @!attribute [rw] exact_response_fields
1872
+ # Contains the names of the fields used for an exact response to the
1873
+ # user.
1874
+ # @return [Types::BedrockKnowledgeStoreExactResponseFields]
1875
+ #
1846
1876
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BedrockKnowledgeStoreConfiguration AWS API Documentation
1847
1877
  #
1848
1878
  class BedrockKnowledgeStoreConfiguration < Struct.new(
1849
- :bedrock_knowledge_base_arn)
1879
+ :bedrock_knowledge_base_arn,
1880
+ :exact_response,
1881
+ :exact_response_fields)
1882
+ SENSITIVE = []
1883
+ include Aws::Structure
1884
+ end
1885
+
1886
+ # The exact response fields given by the Bedrock knowledge store.
1887
+ #
1888
+ # @!attribute [rw] answer_field
1889
+ # The answer field used for an exact response from Bedrock Knowledge
1890
+ # Store.
1891
+ # @return [String]
1892
+ #
1893
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BedrockKnowledgeStoreExactResponseFields AWS API Documentation
1894
+ #
1895
+ class BedrockKnowledgeStoreExactResponseFields < Struct.new(
1896
+ :answer_field)
1850
1897
  SENSITIVE = []
1851
1898
  include Aws::Structure
1852
1899
  end
@@ -1858,10 +1905,26 @@ module Aws::LexModelsV2
1858
1905
  # The ARN of the foundation model used in descriptive bot building.
1859
1906
  # @return [String]
1860
1907
  #
1908
+ # @!attribute [rw] guardrail
1909
+ # The guardrail configuration in the Bedrock model specification
1910
+ # details.
1911
+ # @return [Types::BedrockGuardrailConfiguration]
1912
+ #
1913
+ # @!attribute [rw] trace_status
1914
+ # The Bedrock trace status in the Bedrock model specification details.
1915
+ # @return [String]
1916
+ #
1917
+ # @!attribute [rw] custom_prompt
1918
+ # The custom prompt used in the Bedrock model specification details.
1919
+ # @return [String]
1920
+ #
1861
1921
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BedrockModelSpecification AWS API Documentation
1862
1922
  #
1863
1923
  class BedrockModelSpecification < Struct.new(
1864
- :model_arn)
1924
+ :model_arn,
1925
+ :guardrail,
1926
+ :trace_status,
1927
+ :custom_prompt)
1865
1928
  SENSITIVE = []
1866
1929
  include Aws::Structure
1867
1930
  end
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-lexmodelsv2/customizations'
53
53
  # @!group service
54
54
  module Aws::LexModelsV2
55
55
 
56
- GEM_VERSION = '1.56.0'
56
+ GEM_VERSION = '1.58.0'
57
57
 
58
58
  end
data/sig/client.rbs CHANGED
@@ -50,6 +50,7 @@ module Aws
50
50
  ?session_token: String,
51
51
  ?sigv4a_signing_region_set: Array[String],
52
52
  ?stub_responses: untyped,
53
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
53
54
  ?token_provider: untyped,
54
55
  ?use_dualstack_endpoint: bool,
55
56
  ?use_fips_endpoint: bool,
@@ -288,7 +289,13 @@ module Aws
288
289
  slot_resolution_improvement: {
289
290
  enabled: bool,
290
291
  bedrock_model_specification: {
291
- model_arn: ::String
292
+ model_arn: ::String,
293
+ guardrail: {
294
+ identifier: ::String,
295
+ version: ::String
296
+ }?,
297
+ trace_status: ("ENABLED" | "DISABLED")?,
298
+ custom_prompt: ::String?
292
299
  }?
293
300
  }?
294
301
  }?,
@@ -296,13 +303,25 @@ module Aws
296
303
  descriptive_bot_builder: {
297
304
  enabled: bool,
298
305
  bedrock_model_specification: {
299
- model_arn: ::String
306
+ model_arn: ::String,
307
+ guardrail: {
308
+ identifier: ::String,
309
+ version: ::String
310
+ }?,
311
+ trace_status: ("ENABLED" | "DISABLED")?,
312
+ custom_prompt: ::String?
300
313
  }?
301
314
  }?,
302
315
  sample_utterance_generation: {
303
316
  enabled: bool,
304
317
  bedrock_model_specification: {
305
- model_arn: ::String
318
+ model_arn: ::String,
319
+ guardrail: {
320
+ identifier: ::String,
321
+ version: ::String
322
+ }?,
323
+ trace_status: ("ENABLED" | "DISABLED")?,
324
+ custom_prompt: ::String?
306
325
  }?
307
326
  }?
308
327
  }?
@@ -3921,11 +3940,21 @@ module Aws
3921
3940
  exact_response: bool?
3922
3941
  }?,
3923
3942
  bedrock_knowledge_store_configuration: {
3924
- bedrock_knowledge_base_arn: ::String
3943
+ bedrock_knowledge_base_arn: ::String,
3944
+ exact_response: bool?,
3945
+ exact_response_fields: {
3946
+ answer_field: ::String?
3947
+ }?
3925
3948
  }?
3926
3949
  }?,
3927
3950
  bedrock_model_configuration: {
3928
- model_arn: ::String
3951
+ model_arn: ::String,
3952
+ guardrail: {
3953
+ identifier: ::String,
3954
+ version: ::String
3955
+ }?,
3956
+ trace_status: ("ENABLED" | "DISABLED")?,
3957
+ custom_prompt: ::String?
3929
3958
  }?
3930
3959
  }
3931
3960
  ) -> _CreateIntentResponseSuccess
@@ -7507,7 +7536,13 @@ module Aws
7507
7536
  slot_resolution_improvement: {
7508
7537
  enabled: bool,
7509
7538
  bedrock_model_specification: {
7510
- model_arn: ::String
7539
+ model_arn: ::String,
7540
+ guardrail: {
7541
+ identifier: ::String,
7542
+ version: ::String
7543
+ }?,
7544
+ trace_status: ("ENABLED" | "DISABLED")?,
7545
+ custom_prompt: ::String?
7511
7546
  }?
7512
7547
  }?
7513
7548
  }?,
@@ -7515,13 +7550,25 @@ module Aws
7515
7550
  descriptive_bot_builder: {
7516
7551
  enabled: bool,
7517
7552
  bedrock_model_specification: {
7518
- model_arn: ::String
7553
+ model_arn: ::String,
7554
+ guardrail: {
7555
+ identifier: ::String,
7556
+ version: ::String
7557
+ }?,
7558
+ trace_status: ("ENABLED" | "DISABLED")?,
7559
+ custom_prompt: ::String?
7519
7560
  }?
7520
7561
  }?,
7521
7562
  sample_utterance_generation: {
7522
7563
  enabled: bool,
7523
7564
  bedrock_model_specification: {
7524
- model_arn: ::String
7565
+ model_arn: ::String,
7566
+ guardrail: {
7567
+ identifier: ::String,
7568
+ version: ::String
7569
+ }?,
7570
+ trace_status: ("ENABLED" | "DISABLED")?,
7571
+ custom_prompt: ::String?
7525
7572
  }?
7526
7573
  }?
7527
7574
  }?
@@ -11123,11 +11170,21 @@ module Aws
11123
11170
  exact_response: bool?
11124
11171
  }?,
11125
11172
  bedrock_knowledge_store_configuration: {
11126
- bedrock_knowledge_base_arn: ::String
11173
+ bedrock_knowledge_base_arn: ::String,
11174
+ exact_response: bool?,
11175
+ exact_response_fields: {
11176
+ answer_field: ::String?
11177
+ }?
11127
11178
  }?
11128
11179
  }?,
11129
11180
  bedrock_model_configuration: {
11130
- model_arn: ::String
11181
+ model_arn: ::String,
11182
+ guardrail: {
11183
+ identifier: ::String,
11184
+ version: ::String
11185
+ }?,
11186
+ trace_status: ("ENABLED" | "DISABLED")?,
11187
+ custom_prompt: ::String?
11131
11188
  }?
11132
11189
  }
11133
11190
  ) -> _UpdateIntentResponseSuccess
data/sig/resource.rbs CHANGED
@@ -50,6 +50,7 @@ module Aws
50
50
  ?session_token: String,
51
51
  ?sigv4a_signing_region_set: Array[String],
52
52
  ?stub_responses: untyped,
53
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
53
54
  ?token_provider: untyped,
54
55
  ?use_dualstack_endpoint: bool,
55
56
  ?use_fips_endpoint: bool,
data/sig/types.rbs CHANGED
@@ -344,13 +344,29 @@ module Aws::LexModelsV2
344
344
  SENSITIVE: []
345
345
  end
346
346
 
347
+ class BedrockGuardrailConfiguration
348
+ attr_accessor identifier: ::String
349
+ attr_accessor version: ::String
350
+ SENSITIVE: []
351
+ end
352
+
347
353
  class BedrockKnowledgeStoreConfiguration
348
354
  attr_accessor bedrock_knowledge_base_arn: ::String
355
+ attr_accessor exact_response: bool
356
+ attr_accessor exact_response_fields: Types::BedrockKnowledgeStoreExactResponseFields
357
+ SENSITIVE: []
358
+ end
359
+
360
+ class BedrockKnowledgeStoreExactResponseFields
361
+ attr_accessor answer_field: ::String
349
362
  SENSITIVE: []
350
363
  end
351
364
 
352
365
  class BedrockModelSpecification
353
366
  attr_accessor model_arn: ::String
367
+ attr_accessor guardrail: Types::BedrockGuardrailConfiguration
368
+ attr_accessor trace_status: ("ENABLED" | "DISABLED")
369
+ attr_accessor custom_prompt: ::String
354
370
  SENSITIVE: []
355
371
  end
356
372
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-lexmodelsv2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.56.0
4
+ version: 1.58.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-07-02 00:00:00.000000000 Z
11
+ date: 2024-09-03 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.201.0
22
+ version: 3.203.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.201.0
32
+ version: 3.203.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement