aws-sdk-lexmodelsv2 1.55.0 → 1.57.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-lexmodelsv2/client.rb +88 -1
- data/lib/aws-sdk-lexmodelsv2/client_api.rb +18 -0
- data/lib/aws-sdk-lexmodelsv2/types.rb +66 -3
- data/lib/aws-sdk-lexmodelsv2.rb +1 -1
- data/sig/client.rbs +67 -10
- data/sig/resource.rbs +1 -0
- data/sig/types.rbs +16 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6fae02ef39ea2516ebe12d67e103f75ffc382963650b254044a2d78ff787ba0
|
4
|
+
data.tar.gz: 9c8702e5f96aed8f540e927c2c28bc565bcd1dd304f14425f021927f5b65c82c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23c54aa8df58f600814179f44c7ade378e77918235225ee39b8b38f8a54a9131055222b5dd886bbb31f70951d819414ec12fd082863d4fc159a54fd8df6c8b65
|
7
|
+
data.tar.gz: 1396ac7911d1a6759751629b2fba1bae47f841969c4602ab7274d6bdaa2e54c7092eecd2391724a7b31509017c88337cb2733858bd160e8a77c51898ea30e451
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.57.0 (2024-07-30)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds new capabilities to the AMAZON.QnAIntent: Custom prompting, Guardrails integration and ExactResponse support for Bedrock Knowledge Base.
|
8
|
+
|
9
|
+
1.56.0 (2024-07-02)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.55.0 (2024-06-28)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.57.0
|
@@ -312,6 +312,15 @@ module Aws::LexModelsV2
|
|
312
312
|
#
|
313
313
|
# @option options [String] :session_token
|
314
314
|
#
|
315
|
+
# @option options [Array] :sigv4a_signing_region_set
|
316
|
+
# A list of regions that should be signed with SigV4a signing. When
|
317
|
+
# not passed, a default `:sigv4a_signing_region_set` is searched for
|
318
|
+
# in the following locations:
|
319
|
+
#
|
320
|
+
# * `Aws.config[:sigv4a_signing_region_set]`
|
321
|
+
# * `ENV['AWS_SIGV4A_SIGNING_REGION_SET']`
|
322
|
+
# * `~/.aws/config`
|
323
|
+
#
|
315
324
|
# @option options [Boolean] :stub_responses (false)
|
316
325
|
# Causes the client to return stubbed responses. By default
|
317
326
|
# fake responses are generated and returned. You can specify
|
@@ -1041,6 +1050,12 @@ module Aws::LexModelsV2
|
|
1041
1050
|
# enabled: false, # required
|
1042
1051
|
# bedrock_model_specification: {
|
1043
1052
|
# model_arn: "BedrockModelArn", # required
|
1053
|
+
# guardrail: {
|
1054
|
+
# identifier: "BedrockGuardrailIdentifier", # required
|
1055
|
+
# version: "BedrockGuardrailVersion", # required
|
1056
|
+
# },
|
1057
|
+
# trace_status: "ENABLED", # accepts ENABLED, DISABLED
|
1058
|
+
# custom_prompt: "BedrockModelCustomPrompt",
|
1044
1059
|
# },
|
1045
1060
|
# },
|
1046
1061
|
# },
|
@@ -1049,12 +1064,24 @@ module Aws::LexModelsV2
|
|
1049
1064
|
# enabled: false, # required
|
1050
1065
|
# bedrock_model_specification: {
|
1051
1066
|
# model_arn: "BedrockModelArn", # required
|
1067
|
+
# guardrail: {
|
1068
|
+
# identifier: "BedrockGuardrailIdentifier", # required
|
1069
|
+
# version: "BedrockGuardrailVersion", # required
|
1070
|
+
# },
|
1071
|
+
# trace_status: "ENABLED", # accepts ENABLED, DISABLED
|
1072
|
+
# custom_prompt: "BedrockModelCustomPrompt",
|
1052
1073
|
# },
|
1053
1074
|
# },
|
1054
1075
|
# sample_utterance_generation: {
|
1055
1076
|
# enabled: false, # required
|
1056
1077
|
# bedrock_model_specification: {
|
1057
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",
|
1058
1085
|
# },
|
1059
1086
|
# },
|
1060
1087
|
# },
|
@@ -1075,10 +1102,22 @@ module Aws::LexModelsV2
|
|
1075
1102
|
# resp.creation_date_time #=> Time
|
1076
1103
|
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.enabled #=> Boolean
|
1077
1104
|
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.model_arn #=> String
|
1105
|
+
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.guardrail.identifier #=> String
|
1106
|
+
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.guardrail.version #=> String
|
1107
|
+
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.trace_status #=> String, one of "ENABLED", "DISABLED"
|
1108
|
+
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.custom_prompt #=> String
|
1078
1109
|
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.enabled #=> Boolean
|
1079
1110
|
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.model_arn #=> String
|
1111
|
+
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.guardrail.identifier #=> String
|
1112
|
+
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.guardrail.version #=> String
|
1113
|
+
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.trace_status #=> String, one of "ENABLED", "DISABLED"
|
1114
|
+
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.custom_prompt #=> String
|
1080
1115
|
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.enabled #=> Boolean
|
1081
1116
|
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.model_arn #=> String
|
1117
|
+
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.guardrail.identifier #=> String
|
1118
|
+
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.guardrail.version #=> String
|
1119
|
+
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.trace_status #=> String, one of "ENABLED", "DISABLED"
|
1120
|
+
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.custom_prompt #=> String
|
1082
1121
|
#
|
1083
1122
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateBotLocale AWS API Documentation
|
1084
1123
|
#
|
@@ -1504,6 +1543,9 @@ module Aws::LexModelsV2
|
|
1504
1543
|
# You can't create a resource policy statement that allows
|
1505
1544
|
# cross-account access.
|
1506
1545
|
#
|
1546
|
+
# You need to add the `CreateResourcePolicy` or `UpdateResourcePolicy`
|
1547
|
+
# action to the bot role in order to call the API.
|
1548
|
+
#
|
1507
1549
|
# @option params [required, String] :resource_arn
|
1508
1550
|
# The Amazon Resource Name (ARN) of the bot or bot alias that the
|
1509
1551
|
# resource policy is attached to.
|
@@ -3074,6 +3116,9 @@ module Aws::LexModelsV2
|
|
3074
3116
|
# alias doesn't have a policy attached, Amazon Lex returns an
|
3075
3117
|
# exception.
|
3076
3118
|
#
|
3119
|
+
# You need to add the `DeleteResourcePolicy` or `UpdateResourcePolicy`
|
3120
|
+
# action to the bot role in order to call the API.
|
3121
|
+
#
|
3077
3122
|
# @option params [required, String] :resource_arn
|
3078
3123
|
# The Amazon Resource Name (ARN) of the bot or bot alias that the
|
3079
3124
|
# resource policy is attached to.
|
@@ -3502,10 +3547,22 @@ module Aws::LexModelsV2
|
|
3502
3547
|
# resp.recommended_actions[0] #=> String
|
3503
3548
|
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.enabled #=> Boolean
|
3504
3549
|
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.model_arn #=> String
|
3550
|
+
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.guardrail.identifier #=> String
|
3551
|
+
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.guardrail.version #=> String
|
3552
|
+
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.trace_status #=> String, one of "ENABLED", "DISABLED"
|
3553
|
+
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.custom_prompt #=> String
|
3505
3554
|
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.enabled #=> Boolean
|
3506
3555
|
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.model_arn #=> String
|
3556
|
+
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.guardrail.identifier #=> String
|
3557
|
+
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.guardrail.version #=> String
|
3558
|
+
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.trace_status #=> String, one of "ENABLED", "DISABLED"
|
3559
|
+
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.custom_prompt #=> String
|
3507
3560
|
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.enabled #=> Boolean
|
3508
3561
|
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.model_arn #=> String
|
3562
|
+
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.guardrail.identifier #=> String
|
3563
|
+
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.guardrail.version #=> String
|
3564
|
+
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.trace_status #=> String, one of "ENABLED", "DISABLED"
|
3565
|
+
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.custom_prompt #=> String
|
3509
3566
|
#
|
3510
3567
|
#
|
3511
3568
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
@@ -8999,6 +9056,12 @@ module Aws::LexModelsV2
|
|
8999
9056
|
# enabled: false, # required
|
9000
9057
|
# bedrock_model_specification: {
|
9001
9058
|
# model_arn: "BedrockModelArn", # required
|
9059
|
+
# guardrail: {
|
9060
|
+
# identifier: "BedrockGuardrailIdentifier", # required
|
9061
|
+
# version: "BedrockGuardrailVersion", # required
|
9062
|
+
# },
|
9063
|
+
# trace_status: "ENABLED", # accepts ENABLED, DISABLED
|
9064
|
+
# custom_prompt: "BedrockModelCustomPrompt",
|
9002
9065
|
# },
|
9003
9066
|
# },
|
9004
9067
|
# },
|
@@ -9007,12 +9070,24 @@ module Aws::LexModelsV2
|
|
9007
9070
|
# enabled: false, # required
|
9008
9071
|
# bedrock_model_specification: {
|
9009
9072
|
# model_arn: "BedrockModelArn", # required
|
9073
|
+
# guardrail: {
|
9074
|
+
# identifier: "BedrockGuardrailIdentifier", # required
|
9075
|
+
# version: "BedrockGuardrailVersion", # required
|
9076
|
+
# },
|
9077
|
+
# trace_status: "ENABLED", # accepts ENABLED, DISABLED
|
9078
|
+
# custom_prompt: "BedrockModelCustomPrompt",
|
9010
9079
|
# },
|
9011
9080
|
# },
|
9012
9081
|
# sample_utterance_generation: {
|
9013
9082
|
# enabled: false, # required
|
9014
9083
|
# bedrock_model_specification: {
|
9015
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",
|
9016
9091
|
# },
|
9017
9092
|
# },
|
9018
9093
|
# },
|
@@ -9038,10 +9113,22 @@ module Aws::LexModelsV2
|
|
9038
9113
|
# resp.recommended_actions[0] #=> String
|
9039
9114
|
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.enabled #=> Boolean
|
9040
9115
|
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.model_arn #=> String
|
9116
|
+
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.guardrail.identifier #=> String
|
9117
|
+
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.guardrail.version #=> String
|
9118
|
+
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.trace_status #=> String, one of "ENABLED", "DISABLED"
|
9119
|
+
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.custom_prompt #=> String
|
9041
9120
|
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.enabled #=> Boolean
|
9042
9121
|
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.model_arn #=> String
|
9122
|
+
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.guardrail.identifier #=> String
|
9123
|
+
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.guardrail.version #=> String
|
9124
|
+
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.trace_status #=> String, one of "ENABLED", "DISABLED"
|
9125
|
+
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.custom_prompt #=> String
|
9043
9126
|
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.enabled #=> Boolean
|
9044
9127
|
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.model_arn #=> String
|
9128
|
+
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.guardrail.identifier #=> String
|
9129
|
+
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.guardrail.version #=> String
|
9130
|
+
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.trace_status #=> String, one of "ENABLED", "DISABLED"
|
9131
|
+
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.custom_prompt #=> String
|
9045
9132
|
#
|
9046
9133
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotLocale AWS API Documentation
|
9047
9134
|
#
|
@@ -10384,7 +10471,7 @@ module Aws::LexModelsV2
|
|
10384
10471
|
params: params,
|
10385
10472
|
config: config)
|
10386
10473
|
context[:gem_name] = 'aws-sdk-lexmodelsv2'
|
10387
|
-
context[:gem_version] = '1.
|
10474
|
+
context[:gem_version] = '1.57.0'
|
10388
10475
|
Seahorse::Client::Request.new(handlers, context)
|
10389
10476
|
end
|
10390
10477
|
|
@@ -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
|
data/lib/aws-sdk-lexmodelsv2.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -48,6 +48,7 @@ module Aws
|
|
48
48
|
?sdk_ua_app_id: String,
|
49
49
|
?secret_access_key: String,
|
50
50
|
?session_token: String,
|
51
|
+
?sigv4a_signing_region_set: Array[String],
|
51
52
|
?stub_responses: untyped,
|
52
53
|
?token_provider: untyped,
|
53
54
|
?use_dualstack_endpoint: bool,
|
@@ -287,7 +288,13 @@ module Aws
|
|
287
288
|
slot_resolution_improvement: {
|
288
289
|
enabled: bool,
|
289
290
|
bedrock_model_specification: {
|
290
|
-
model_arn: ::String
|
291
|
+
model_arn: ::String,
|
292
|
+
guardrail: {
|
293
|
+
identifier: ::String,
|
294
|
+
version: ::String
|
295
|
+
}?,
|
296
|
+
trace_status: ("ENABLED" | "DISABLED")?,
|
297
|
+
custom_prompt: ::String?
|
291
298
|
}?
|
292
299
|
}?
|
293
300
|
}?,
|
@@ -295,13 +302,25 @@ module Aws
|
|
295
302
|
descriptive_bot_builder: {
|
296
303
|
enabled: bool,
|
297
304
|
bedrock_model_specification: {
|
298
|
-
model_arn: ::String
|
305
|
+
model_arn: ::String,
|
306
|
+
guardrail: {
|
307
|
+
identifier: ::String,
|
308
|
+
version: ::String
|
309
|
+
}?,
|
310
|
+
trace_status: ("ENABLED" | "DISABLED")?,
|
311
|
+
custom_prompt: ::String?
|
299
312
|
}?
|
300
313
|
}?,
|
301
314
|
sample_utterance_generation: {
|
302
315
|
enabled: bool,
|
303
316
|
bedrock_model_specification: {
|
304
|
-
model_arn: ::String
|
317
|
+
model_arn: ::String,
|
318
|
+
guardrail: {
|
319
|
+
identifier: ::String,
|
320
|
+
version: ::String
|
321
|
+
}?,
|
322
|
+
trace_status: ("ENABLED" | "DISABLED")?,
|
323
|
+
custom_prompt: ::String?
|
305
324
|
}?
|
306
325
|
}?
|
307
326
|
}?
|
@@ -3920,11 +3939,21 @@ module Aws
|
|
3920
3939
|
exact_response: bool?
|
3921
3940
|
}?,
|
3922
3941
|
bedrock_knowledge_store_configuration: {
|
3923
|
-
bedrock_knowledge_base_arn: ::String
|
3942
|
+
bedrock_knowledge_base_arn: ::String,
|
3943
|
+
exact_response: bool?,
|
3944
|
+
exact_response_fields: {
|
3945
|
+
answer_field: ::String?
|
3946
|
+
}?
|
3924
3947
|
}?
|
3925
3948
|
}?,
|
3926
3949
|
bedrock_model_configuration: {
|
3927
|
-
model_arn: ::String
|
3950
|
+
model_arn: ::String,
|
3951
|
+
guardrail: {
|
3952
|
+
identifier: ::String,
|
3953
|
+
version: ::String
|
3954
|
+
}?,
|
3955
|
+
trace_status: ("ENABLED" | "DISABLED")?,
|
3956
|
+
custom_prompt: ::String?
|
3928
3957
|
}?
|
3929
3958
|
}
|
3930
3959
|
) -> _CreateIntentResponseSuccess
|
@@ -7506,7 +7535,13 @@ module Aws
|
|
7506
7535
|
slot_resolution_improvement: {
|
7507
7536
|
enabled: bool,
|
7508
7537
|
bedrock_model_specification: {
|
7509
|
-
model_arn: ::String
|
7538
|
+
model_arn: ::String,
|
7539
|
+
guardrail: {
|
7540
|
+
identifier: ::String,
|
7541
|
+
version: ::String
|
7542
|
+
}?,
|
7543
|
+
trace_status: ("ENABLED" | "DISABLED")?,
|
7544
|
+
custom_prompt: ::String?
|
7510
7545
|
}?
|
7511
7546
|
}?
|
7512
7547
|
}?,
|
@@ -7514,13 +7549,25 @@ module Aws
|
|
7514
7549
|
descriptive_bot_builder: {
|
7515
7550
|
enabled: bool,
|
7516
7551
|
bedrock_model_specification: {
|
7517
|
-
model_arn: ::String
|
7552
|
+
model_arn: ::String,
|
7553
|
+
guardrail: {
|
7554
|
+
identifier: ::String,
|
7555
|
+
version: ::String
|
7556
|
+
}?,
|
7557
|
+
trace_status: ("ENABLED" | "DISABLED")?,
|
7558
|
+
custom_prompt: ::String?
|
7518
7559
|
}?
|
7519
7560
|
}?,
|
7520
7561
|
sample_utterance_generation: {
|
7521
7562
|
enabled: bool,
|
7522
7563
|
bedrock_model_specification: {
|
7523
|
-
model_arn: ::String
|
7564
|
+
model_arn: ::String,
|
7565
|
+
guardrail: {
|
7566
|
+
identifier: ::String,
|
7567
|
+
version: ::String
|
7568
|
+
}?,
|
7569
|
+
trace_status: ("ENABLED" | "DISABLED")?,
|
7570
|
+
custom_prompt: ::String?
|
7524
7571
|
}?
|
7525
7572
|
}?
|
7526
7573
|
}?
|
@@ -11122,11 +11169,21 @@ module Aws
|
|
11122
11169
|
exact_response: bool?
|
11123
11170
|
}?,
|
11124
11171
|
bedrock_knowledge_store_configuration: {
|
11125
|
-
bedrock_knowledge_base_arn: ::String
|
11172
|
+
bedrock_knowledge_base_arn: ::String,
|
11173
|
+
exact_response: bool?,
|
11174
|
+
exact_response_fields: {
|
11175
|
+
answer_field: ::String?
|
11176
|
+
}?
|
11126
11177
|
}?
|
11127
11178
|
}?,
|
11128
11179
|
bedrock_model_configuration: {
|
11129
|
-
model_arn: ::String
|
11180
|
+
model_arn: ::String,
|
11181
|
+
guardrail: {
|
11182
|
+
identifier: ::String,
|
11183
|
+
version: ::String
|
11184
|
+
}?,
|
11185
|
+
trace_status: ("ENABLED" | "DISABLED")?,
|
11186
|
+
custom_prompt: ::String?
|
11130
11187
|
}?
|
11131
11188
|
}
|
11132
11189
|
) -> _UpdateIntentResponseSuccess
|
data/sig/resource.rbs
CHANGED
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.
|
4
|
+
version: 1.57.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-30 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.201.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,21 +29,21 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.201.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.5'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.5'
|
47
47
|
description: Official AWS Ruby gem for Amazon Lex Model Building V2 (Lex Models V2).
|
48
48
|
This gem is part of the AWS SDK for Ruby.
|
49
49
|
email:
|