aws-sdk-lexmodelsv2 1.56.0 → 1.57.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lexmodelsv2/client.rb +79 -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 +66 -10
- data/sig/types.rbs +16 -0
- 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: 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,11 @@
|
|
|
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
|
+
|
|
4
9
|
1.56.0 (2024-07-02)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.57.0
|
|
@@ -1050,6 +1050,12 @@ module Aws::LexModelsV2
|
|
|
1050
1050
|
# enabled: false, # required
|
|
1051
1051
|
# bedrock_model_specification: {
|
|
1052
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",
|
|
1053
1059
|
# },
|
|
1054
1060
|
# },
|
|
1055
1061
|
# },
|
|
@@ -1058,12 +1064,24 @@ module Aws::LexModelsV2
|
|
|
1058
1064
|
# enabled: false, # required
|
|
1059
1065
|
# bedrock_model_specification: {
|
|
1060
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",
|
|
1061
1073
|
# },
|
|
1062
1074
|
# },
|
|
1063
1075
|
# sample_utterance_generation: {
|
|
1064
1076
|
# enabled: false, # required
|
|
1065
1077
|
# bedrock_model_specification: {
|
|
1066
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",
|
|
1067
1085
|
# },
|
|
1068
1086
|
# },
|
|
1069
1087
|
# },
|
|
@@ -1084,10 +1102,22 @@ module Aws::LexModelsV2
|
|
|
1084
1102
|
# resp.creation_date_time #=> Time
|
|
1085
1103
|
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.enabled #=> Boolean
|
|
1086
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
|
|
1087
1109
|
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.enabled #=> Boolean
|
|
1088
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
|
|
1089
1115
|
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.enabled #=> Boolean
|
|
1090
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
|
|
1091
1121
|
#
|
|
1092
1122
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateBotLocale AWS API Documentation
|
|
1093
1123
|
#
|
|
@@ -1513,6 +1543,9 @@ module Aws::LexModelsV2
|
|
|
1513
1543
|
# You can't create a resource policy statement that allows
|
|
1514
1544
|
# cross-account access.
|
|
1515
1545
|
#
|
|
1546
|
+
# You need to add the `CreateResourcePolicy` or `UpdateResourcePolicy`
|
|
1547
|
+
# action to the bot role in order to call the API.
|
|
1548
|
+
#
|
|
1516
1549
|
# @option params [required, String] :resource_arn
|
|
1517
1550
|
# The Amazon Resource Name (ARN) of the bot or bot alias that the
|
|
1518
1551
|
# resource policy is attached to.
|
|
@@ -3083,6 +3116,9 @@ module Aws::LexModelsV2
|
|
|
3083
3116
|
# alias doesn't have a policy attached, Amazon Lex returns an
|
|
3084
3117
|
# exception.
|
|
3085
3118
|
#
|
|
3119
|
+
# You need to add the `DeleteResourcePolicy` or `UpdateResourcePolicy`
|
|
3120
|
+
# action to the bot role in order to call the API.
|
|
3121
|
+
#
|
|
3086
3122
|
# @option params [required, String] :resource_arn
|
|
3087
3123
|
# The Amazon Resource Name (ARN) of the bot or bot alias that the
|
|
3088
3124
|
# resource policy is attached to.
|
|
@@ -3511,10 +3547,22 @@ module Aws::LexModelsV2
|
|
|
3511
3547
|
# resp.recommended_actions[0] #=> String
|
|
3512
3548
|
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.enabled #=> Boolean
|
|
3513
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
|
|
3514
3554
|
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.enabled #=> Boolean
|
|
3515
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
|
|
3516
3560
|
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.enabled #=> Boolean
|
|
3517
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
|
|
3518
3566
|
#
|
|
3519
3567
|
#
|
|
3520
3568
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
@@ -9008,6 +9056,12 @@ module Aws::LexModelsV2
|
|
|
9008
9056
|
# enabled: false, # required
|
|
9009
9057
|
# bedrock_model_specification: {
|
|
9010
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",
|
|
9011
9065
|
# },
|
|
9012
9066
|
# },
|
|
9013
9067
|
# },
|
|
@@ -9016,12 +9070,24 @@ module Aws::LexModelsV2
|
|
|
9016
9070
|
# enabled: false, # required
|
|
9017
9071
|
# bedrock_model_specification: {
|
|
9018
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",
|
|
9019
9079
|
# },
|
|
9020
9080
|
# },
|
|
9021
9081
|
# sample_utterance_generation: {
|
|
9022
9082
|
# enabled: false, # required
|
|
9023
9083
|
# bedrock_model_specification: {
|
|
9024
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",
|
|
9025
9091
|
# },
|
|
9026
9092
|
# },
|
|
9027
9093
|
# },
|
|
@@ -9047,10 +9113,22 @@ module Aws::LexModelsV2
|
|
|
9047
9113
|
# resp.recommended_actions[0] #=> String
|
|
9048
9114
|
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.enabled #=> Boolean
|
|
9049
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
|
|
9050
9120
|
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.enabled #=> Boolean
|
|
9051
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
|
|
9052
9126
|
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.enabled #=> Boolean
|
|
9053
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
|
|
9054
9132
|
#
|
|
9055
9133
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotLocale AWS API Documentation
|
|
9056
9134
|
#
|
|
@@ -10393,7 +10471,7 @@ module Aws::LexModelsV2
|
|
|
10393
10471
|
params: params,
|
|
10394
10472
|
config: config)
|
|
10395
10473
|
context[:gem_name] = 'aws-sdk-lexmodelsv2'
|
|
10396
|
-
context[:gem_version] = '1.
|
|
10474
|
+
context[:gem_version] = '1.57.0'
|
|
10397
10475
|
Seahorse::Client::Request.new(handlers, context)
|
|
10398
10476
|
end
|
|
10399
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
|
@@ -288,7 +288,13 @@ module Aws
|
|
|
288
288
|
slot_resolution_improvement: {
|
|
289
289
|
enabled: bool,
|
|
290
290
|
bedrock_model_specification: {
|
|
291
|
-
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?
|
|
292
298
|
}?
|
|
293
299
|
}?
|
|
294
300
|
}?,
|
|
@@ -296,13 +302,25 @@ module Aws
|
|
|
296
302
|
descriptive_bot_builder: {
|
|
297
303
|
enabled: bool,
|
|
298
304
|
bedrock_model_specification: {
|
|
299
|
-
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?
|
|
300
312
|
}?
|
|
301
313
|
}?,
|
|
302
314
|
sample_utterance_generation: {
|
|
303
315
|
enabled: bool,
|
|
304
316
|
bedrock_model_specification: {
|
|
305
|
-
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?
|
|
306
324
|
}?
|
|
307
325
|
}?
|
|
308
326
|
}?
|
|
@@ -3921,11 +3939,21 @@ module Aws
|
|
|
3921
3939
|
exact_response: bool?
|
|
3922
3940
|
}?,
|
|
3923
3941
|
bedrock_knowledge_store_configuration: {
|
|
3924
|
-
bedrock_knowledge_base_arn: ::String
|
|
3942
|
+
bedrock_knowledge_base_arn: ::String,
|
|
3943
|
+
exact_response: bool?,
|
|
3944
|
+
exact_response_fields: {
|
|
3945
|
+
answer_field: ::String?
|
|
3946
|
+
}?
|
|
3925
3947
|
}?
|
|
3926
3948
|
}?,
|
|
3927
3949
|
bedrock_model_configuration: {
|
|
3928
|
-
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?
|
|
3929
3957
|
}?
|
|
3930
3958
|
}
|
|
3931
3959
|
) -> _CreateIntentResponseSuccess
|
|
@@ -7507,7 +7535,13 @@ module Aws
|
|
|
7507
7535
|
slot_resolution_improvement: {
|
|
7508
7536
|
enabled: bool,
|
|
7509
7537
|
bedrock_model_specification: {
|
|
7510
|
-
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?
|
|
7511
7545
|
}?
|
|
7512
7546
|
}?
|
|
7513
7547
|
}?,
|
|
@@ -7515,13 +7549,25 @@ module Aws
|
|
|
7515
7549
|
descriptive_bot_builder: {
|
|
7516
7550
|
enabled: bool,
|
|
7517
7551
|
bedrock_model_specification: {
|
|
7518
|
-
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?
|
|
7519
7559
|
}?
|
|
7520
7560
|
}?,
|
|
7521
7561
|
sample_utterance_generation: {
|
|
7522
7562
|
enabled: bool,
|
|
7523
7563
|
bedrock_model_specification: {
|
|
7524
|
-
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?
|
|
7525
7571
|
}?
|
|
7526
7572
|
}?
|
|
7527
7573
|
}?
|
|
@@ -11123,11 +11169,21 @@ module Aws
|
|
|
11123
11169
|
exact_response: bool?
|
|
11124
11170
|
}?,
|
|
11125
11171
|
bedrock_knowledge_store_configuration: {
|
|
11126
|
-
bedrock_knowledge_base_arn: ::String
|
|
11172
|
+
bedrock_knowledge_base_arn: ::String,
|
|
11173
|
+
exact_response: bool?,
|
|
11174
|
+
exact_response_fields: {
|
|
11175
|
+
answer_field: ::String?
|
|
11176
|
+
}?
|
|
11127
11177
|
}?
|
|
11128
11178
|
}?,
|
|
11129
11179
|
bedrock_model_configuration: {
|
|
11130
|
-
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?
|
|
11131
11187
|
}?
|
|
11132
11188
|
}
|
|
11133
11189
|
) -> _UpdateIntentResponseSuccess
|
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-07-
|
|
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
|