aws-sdk-bedrockruntime 1.65.0 → 1.66.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-bedrockruntime/async_client.rb +1 -1
- data/lib/aws-sdk-bedrockruntime/client.rb +35 -5
- data/lib/aws-sdk-bedrockruntime/client_api.rb +20 -4
- data/lib/aws-sdk-bedrockruntime/types.rb +48 -1
- data/lib/aws-sdk-bedrockruntime.rb +17 -1
- data/sig/client.rbs +4 -4
- data/sig/types.rbs +10 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a9cc4b6c6e28f3e47721675a4ae624d6ca582340b4d279fc0b019f72c13af974
|
|
4
|
+
data.tar.gz: d8b67febef536c5db41477f244653eb99bc188891e61f93dc2d51e4ebdec273d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00d088be3f4091c4b4cc7da2364f68bd6bd3b2c483b41e0e41795a4fd967a996f6802b6385ef94769eebba4da62a6cbddb7d7811b429ea4fa7be796a6c535932
|
|
7
|
+
data.tar.gz: 62b5541ee51851da80254191b63a0f4a95a8221dd212b0e84a52883f18d8101cdc9d39d33302f458eea191b1237bdff69329c0764d3e275623c2226a97573b8d
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.66.0
|
|
@@ -728,6 +728,12 @@ module Aws::BedrockRuntime
|
|
|
728
728
|
# resp.assessments[0].invocation_metrics.guardrail_coverage.text_characters.total #=> Integer
|
|
729
729
|
# resp.assessments[0].invocation_metrics.guardrail_coverage.images.guarded #=> Integer
|
|
730
730
|
# resp.assessments[0].invocation_metrics.guardrail_coverage.images.total #=> Integer
|
|
731
|
+
# resp.assessments[0].applied_guardrail_details.guardrail_id #=> String
|
|
732
|
+
# resp.assessments[0].applied_guardrail_details.guardrail_version #=> String
|
|
733
|
+
# resp.assessments[0].applied_guardrail_details.guardrail_arn #=> String
|
|
734
|
+
# resp.assessments[0].applied_guardrail_details.guardrail_origin #=> Array
|
|
735
|
+
# resp.assessments[0].applied_guardrail_details.guardrail_origin[0] #=> String, one of "REQUEST", "ACCOUNT_ENFORCED", "ORGANIZATION_ENFORCED"
|
|
736
|
+
# resp.assessments[0].applied_guardrail_details.guardrail_ownership #=> String, one of "SELF", "CROSS_ACCOUNT"
|
|
731
737
|
# resp.guardrail_coverage.text_characters.guarded #=> Integer
|
|
732
738
|
# resp.guardrail_coverage.text_characters.total #=> Integer
|
|
733
739
|
# resp.guardrail_coverage.images.guarded #=> Integer
|
|
@@ -1190,8 +1196,8 @@ module Aws::BedrockRuntime
|
|
|
1190
1196
|
# },
|
|
1191
1197
|
# },
|
|
1192
1198
|
# guardrail_config: {
|
|
1193
|
-
# guardrail_identifier: "GuardrailIdentifier",
|
|
1194
|
-
# guardrail_version: "GuardrailVersion",
|
|
1199
|
+
# guardrail_identifier: "GuardrailIdentifier",
|
|
1200
|
+
# guardrail_version: "GuardrailVersion",
|
|
1195
1201
|
# trace: "enabled", # accepts enabled, disabled, enabled_full
|
|
1196
1202
|
# },
|
|
1197
1203
|
# additional_model_request_fields: {
|
|
@@ -1471,6 +1477,12 @@ module Aws::BedrockRuntime
|
|
|
1471
1477
|
# resp.trace.guardrail.input_assessment["String"].invocation_metrics.guardrail_coverage.text_characters.total #=> Integer
|
|
1472
1478
|
# resp.trace.guardrail.input_assessment["String"].invocation_metrics.guardrail_coverage.images.guarded #=> Integer
|
|
1473
1479
|
# resp.trace.guardrail.input_assessment["String"].invocation_metrics.guardrail_coverage.images.total #=> Integer
|
|
1480
|
+
# resp.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_id #=> String
|
|
1481
|
+
# resp.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_version #=> String
|
|
1482
|
+
# resp.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_arn #=> String
|
|
1483
|
+
# resp.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_origin #=> Array
|
|
1484
|
+
# resp.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_origin[0] #=> String, one of "REQUEST", "ACCOUNT_ENFORCED", "ORGANIZATION_ENFORCED"
|
|
1485
|
+
# resp.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_ownership #=> String, one of "SELF", "CROSS_ACCOUNT"
|
|
1474
1486
|
# resp.trace.guardrail.output_assessments #=> Hash
|
|
1475
1487
|
# resp.trace.guardrail.output_assessments["String"] #=> Array
|
|
1476
1488
|
# resp.trace.guardrail.output_assessments["String"][0].topic_policy.topics #=> Array
|
|
@@ -1632,6 +1644,12 @@ module Aws::BedrockRuntime
|
|
|
1632
1644
|
# resp.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.text_characters.total #=> Integer
|
|
1633
1645
|
# resp.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.images.guarded #=> Integer
|
|
1634
1646
|
# resp.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.images.total #=> Integer
|
|
1647
|
+
# resp.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_id #=> String
|
|
1648
|
+
# resp.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_version #=> String
|
|
1649
|
+
# resp.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_arn #=> String
|
|
1650
|
+
# resp.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_origin #=> Array
|
|
1651
|
+
# resp.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_origin[0] #=> String, one of "REQUEST", "ACCOUNT_ENFORCED", "ORGANIZATION_ENFORCED"
|
|
1652
|
+
# resp.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_ownership #=> String, one of "SELF", "CROSS_ACCOUNT"
|
|
1635
1653
|
# resp.trace.guardrail.action_reason #=> String
|
|
1636
1654
|
# resp.trace.prompt_router.invoked_model_id #=> String
|
|
1637
1655
|
# resp.performance_config.latency #=> String, one of "standard", "optimized"
|
|
@@ -2277,8 +2295,8 @@ module Aws::BedrockRuntime
|
|
|
2277
2295
|
# },
|
|
2278
2296
|
# },
|
|
2279
2297
|
# guardrail_config: {
|
|
2280
|
-
# guardrail_identifier: "GuardrailIdentifier",
|
|
2281
|
-
# guardrail_version: "GuardrailVersion",
|
|
2298
|
+
# guardrail_identifier: "GuardrailIdentifier",
|
|
2299
|
+
# guardrail_version: "GuardrailVersion",
|
|
2282
2300
|
# trace: "enabled", # accepts enabled, disabled, enabled_full
|
|
2283
2301
|
# stream_processing_mode: "sync", # accepts sync, async
|
|
2284
2302
|
# },
|
|
@@ -2522,6 +2540,12 @@ module Aws::BedrockRuntime
|
|
|
2522
2540
|
# event.trace.guardrail.input_assessment["String"].invocation_metrics.guardrail_coverage.text_characters.total #=> Integer
|
|
2523
2541
|
# event.trace.guardrail.input_assessment["String"].invocation_metrics.guardrail_coverage.images.guarded #=> Integer
|
|
2524
2542
|
# event.trace.guardrail.input_assessment["String"].invocation_metrics.guardrail_coverage.images.total #=> Integer
|
|
2543
|
+
# event.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_id #=> String
|
|
2544
|
+
# event.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_version #=> String
|
|
2545
|
+
# event.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_arn #=> String
|
|
2546
|
+
# event.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_origin #=> Array
|
|
2547
|
+
# event.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_origin[0] #=> String, one of "REQUEST", "ACCOUNT_ENFORCED", "ORGANIZATION_ENFORCED"
|
|
2548
|
+
# event.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_ownership #=> String, one of "SELF", "CROSS_ACCOUNT"
|
|
2525
2549
|
# event.trace.guardrail.output_assessments #=> Hash
|
|
2526
2550
|
# event.trace.guardrail.output_assessments["String"] #=> Array
|
|
2527
2551
|
# event.trace.guardrail.output_assessments["String"][0].topic_policy.topics #=> Array
|
|
@@ -2683,6 +2707,12 @@ module Aws::BedrockRuntime
|
|
|
2683
2707
|
# event.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.text_characters.total #=> Integer
|
|
2684
2708
|
# event.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.images.guarded #=> Integer
|
|
2685
2709
|
# event.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.images.total #=> Integer
|
|
2710
|
+
# event.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_id #=> String
|
|
2711
|
+
# event.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_version #=> String
|
|
2712
|
+
# event.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_arn #=> String
|
|
2713
|
+
# event.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_origin #=> Array
|
|
2714
|
+
# event.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_origin[0] #=> String, one of "REQUEST", "ACCOUNT_ENFORCED", "ORGANIZATION_ENFORCED"
|
|
2715
|
+
# event.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_ownership #=> String, one of "SELF", "CROSS_ACCOUNT"
|
|
2686
2716
|
# event.trace.guardrail.action_reason #=> String
|
|
2687
2717
|
# event.trace.prompt_router.invoked_model_id #=> String
|
|
2688
2718
|
# event.performance_config.latency #=> String, one of "standard", "optimized"
|
|
@@ -3778,7 +3808,7 @@ module Aws::BedrockRuntime
|
|
|
3778
3808
|
tracer: tracer
|
|
3779
3809
|
)
|
|
3780
3810
|
context[:gem_name] = 'aws-sdk-bedrockruntime'
|
|
3781
|
-
context[:gem_version] = '1.
|
|
3811
|
+
context[:gem_version] = '1.66.0'
|
|
3782
3812
|
Seahorse::Client::Request.new(handlers, context)
|
|
3783
3813
|
end
|
|
3784
3814
|
|
|
@@ -17,6 +17,7 @@ module Aws::BedrockRuntime
|
|
|
17
17
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
|
18
18
|
AccountId = Shapes::StringShape.new(name: 'AccountId')
|
|
19
19
|
AnyToolChoice = Shapes::StructureShape.new(name: 'AnyToolChoice')
|
|
20
|
+
AppliedGuardrailDetails = Shapes::StructureShape.new(name: 'AppliedGuardrailDetails')
|
|
20
21
|
ApplyGuardrailRequest = Shapes::StructureShape.new(name: 'ApplyGuardrailRequest')
|
|
21
22
|
ApplyGuardrailResponse = Shapes::StructureShape.new(name: 'ApplyGuardrailResponse')
|
|
22
23
|
AsyncInvokeArn = Shapes::StringShape.new(name: 'AsyncInvokeArn')
|
|
@@ -102,6 +103,7 @@ module Aws::BedrockRuntime
|
|
|
102
103
|
GetAsyncInvokeRequest = Shapes::StructureShape.new(name: 'GetAsyncInvokeRequest')
|
|
103
104
|
GetAsyncInvokeResponse = Shapes::StructureShape.new(name: 'GetAsyncInvokeResponse')
|
|
104
105
|
GuardrailAction = Shapes::StringShape.new(name: 'GuardrailAction')
|
|
106
|
+
GuardrailArn = Shapes::StringShape.new(name: 'GuardrailArn')
|
|
105
107
|
GuardrailAssessment = Shapes::StructureShape.new(name: 'GuardrailAssessment')
|
|
106
108
|
GuardrailAssessmentList = Shapes::ListShape.new(name: 'GuardrailAssessmentList')
|
|
107
109
|
GuardrailAssessmentListMap = Shapes::MapShape.new(name: 'GuardrailAssessmentListMap')
|
|
@@ -170,6 +172,7 @@ module Aws::BedrockRuntime
|
|
|
170
172
|
GuardrailCoverage = Shapes::StructureShape.new(name: 'GuardrailCoverage')
|
|
171
173
|
GuardrailCustomWord = Shapes::StructureShape.new(name: 'GuardrailCustomWord')
|
|
172
174
|
GuardrailCustomWordList = Shapes::ListShape.new(name: 'GuardrailCustomWordList')
|
|
175
|
+
GuardrailId = Shapes::StringShape.new(name: 'GuardrailId')
|
|
173
176
|
GuardrailIdentifier = Shapes::StringShape.new(name: 'GuardrailIdentifier')
|
|
174
177
|
GuardrailImageBlock = Shapes::StructureShape.new(name: 'GuardrailImageBlock')
|
|
175
178
|
GuardrailImageCoverage = Shapes::StructureShape.new(name: 'GuardrailImageCoverage')
|
|
@@ -180,10 +183,13 @@ module Aws::BedrockRuntime
|
|
|
180
183
|
GuardrailManagedWord = Shapes::StructureShape.new(name: 'GuardrailManagedWord')
|
|
181
184
|
GuardrailManagedWordList = Shapes::ListShape.new(name: 'GuardrailManagedWordList')
|
|
182
185
|
GuardrailManagedWordType = Shapes::StringShape.new(name: 'GuardrailManagedWordType')
|
|
186
|
+
GuardrailOrigin = Shapes::StringShape.new(name: 'GuardrailOrigin')
|
|
187
|
+
GuardrailOriginList = Shapes::ListShape.new(name: 'GuardrailOriginList')
|
|
183
188
|
GuardrailOutputContent = Shapes::StructureShape.new(name: 'GuardrailOutputContent')
|
|
184
189
|
GuardrailOutputContentList = Shapes::ListShape.new(name: 'GuardrailOutputContentList')
|
|
185
190
|
GuardrailOutputScope = Shapes::StringShape.new(name: 'GuardrailOutputScope')
|
|
186
191
|
GuardrailOutputText = Shapes::StringShape.new(name: 'GuardrailOutputText')
|
|
192
|
+
GuardrailOwnership = Shapes::StringShape.new(name: 'GuardrailOwnership')
|
|
187
193
|
GuardrailPiiEntityFilter = Shapes::StructureShape.new(name: 'GuardrailPiiEntityFilter')
|
|
188
194
|
GuardrailPiiEntityFilterList = Shapes::ListShape.new(name: 'GuardrailPiiEntityFilterList')
|
|
189
195
|
GuardrailPiiEntityType = Shapes::StringShape.new(name: 'GuardrailPiiEntityType')
|
|
@@ -341,6 +347,13 @@ module Aws::BedrockRuntime
|
|
|
341
347
|
|
|
342
348
|
AnyToolChoice.struct_class = Types::AnyToolChoice
|
|
343
349
|
|
|
350
|
+
AppliedGuardrailDetails.add_member(:guardrail_id, Shapes::ShapeRef.new(shape: GuardrailId, location_name: "guardrailId"))
|
|
351
|
+
AppliedGuardrailDetails.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location_name: "guardrailVersion"))
|
|
352
|
+
AppliedGuardrailDetails.add_member(:guardrail_arn, Shapes::ShapeRef.new(shape: GuardrailArn, location_name: "guardrailArn"))
|
|
353
|
+
AppliedGuardrailDetails.add_member(:guardrail_origin, Shapes::ShapeRef.new(shape: GuardrailOriginList, location_name: "guardrailOrigin"))
|
|
354
|
+
AppliedGuardrailDetails.add_member(:guardrail_ownership, Shapes::ShapeRef.new(shape: GuardrailOwnership, location_name: "guardrailOwnership"))
|
|
355
|
+
AppliedGuardrailDetails.struct_class = Types::AppliedGuardrailDetails
|
|
356
|
+
|
|
344
357
|
ApplyGuardrailRequest.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, required: true, location: "uri", location_name: "guardrailIdentifier"))
|
|
345
358
|
ApplyGuardrailRequest.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, required: true, location: "uri", location_name: "guardrailVersion"))
|
|
346
359
|
ApplyGuardrailRequest.add_member(:source, Shapes::ShapeRef.new(shape: GuardrailContentSource, required: true, location_name: "source"))
|
|
@@ -682,6 +695,7 @@ module Aws::BedrockRuntime
|
|
|
682
695
|
GuardrailAssessment.add_member(:contextual_grounding_policy, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingPolicyAssessment, location_name: "contextualGroundingPolicy"))
|
|
683
696
|
GuardrailAssessment.add_member(:automated_reasoning_policy, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningPolicyAssessment, location_name: "automatedReasoningPolicy"))
|
|
684
697
|
GuardrailAssessment.add_member(:invocation_metrics, Shapes::ShapeRef.new(shape: GuardrailInvocationMetrics, location_name: "invocationMetrics"))
|
|
698
|
+
GuardrailAssessment.add_member(:applied_guardrail_details, Shapes::ShapeRef.new(shape: AppliedGuardrailDetails, location_name: "appliedGuardrailDetails"))
|
|
685
699
|
GuardrailAssessment.struct_class = Types::GuardrailAssessment
|
|
686
700
|
|
|
687
701
|
GuardrailAssessmentList.member = Shapes::ShapeRef.new(shape: GuardrailAssessment)
|
|
@@ -786,8 +800,8 @@ module Aws::BedrockRuntime
|
|
|
786
800
|
GuardrailAutomatedReasoningValidFinding.add_member(:logic_warning, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningLogicWarning, location_name: "logicWarning"))
|
|
787
801
|
GuardrailAutomatedReasoningValidFinding.struct_class = Types::GuardrailAutomatedReasoningValidFinding
|
|
788
802
|
|
|
789
|
-
GuardrailConfiguration.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier,
|
|
790
|
-
GuardrailConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion,
|
|
803
|
+
GuardrailConfiguration.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, location_name: "guardrailIdentifier"))
|
|
804
|
+
GuardrailConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location_name: "guardrailVersion"))
|
|
791
805
|
GuardrailConfiguration.add_member(:trace, Shapes::ShapeRef.new(shape: GuardrailTrace, location_name: "trace"))
|
|
792
806
|
GuardrailConfiguration.struct_class = Types::GuardrailConfiguration
|
|
793
807
|
|
|
@@ -889,6 +903,8 @@ module Aws::BedrockRuntime
|
|
|
889
903
|
|
|
890
904
|
GuardrailManagedWordList.member = Shapes::ShapeRef.new(shape: GuardrailManagedWord)
|
|
891
905
|
|
|
906
|
+
GuardrailOriginList.member = Shapes::ShapeRef.new(shape: GuardrailOrigin)
|
|
907
|
+
|
|
892
908
|
GuardrailOutputContent.add_member(:text, Shapes::ShapeRef.new(shape: GuardrailOutputText, location_name: "text"))
|
|
893
909
|
GuardrailOutputContent.struct_class = Types::GuardrailOutputContent
|
|
894
910
|
|
|
@@ -915,8 +931,8 @@ module Aws::BedrockRuntime
|
|
|
915
931
|
GuardrailSensitiveInformationPolicyAssessment.add_member(:regexes, Shapes::ShapeRef.new(shape: GuardrailRegexFilterList, required: true, location_name: "regexes"))
|
|
916
932
|
GuardrailSensitiveInformationPolicyAssessment.struct_class = Types::GuardrailSensitiveInformationPolicyAssessment
|
|
917
933
|
|
|
918
|
-
GuardrailStreamConfiguration.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier,
|
|
919
|
-
GuardrailStreamConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion,
|
|
934
|
+
GuardrailStreamConfiguration.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, location_name: "guardrailIdentifier"))
|
|
935
|
+
GuardrailStreamConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location_name: "guardrailVersion"))
|
|
920
936
|
GuardrailStreamConfiguration.add_member(:trace, Shapes::ShapeRef.new(shape: GuardrailTrace, location_name: "trace"))
|
|
921
937
|
GuardrailStreamConfiguration.add_member(:stream_processing_mode, Shapes::ShapeRef.new(shape: GuardrailStreamProcessingMode, location_name: "streamProcessingMode"))
|
|
922
938
|
GuardrailStreamConfiguration.struct_class = Types::GuardrailStreamConfiguration
|
|
@@ -43,6 +43,46 @@ module Aws::BedrockRuntime
|
|
|
43
43
|
#
|
|
44
44
|
class AnyToolChoice < Aws::EmptyStructure; end
|
|
45
45
|
|
|
46
|
+
# Details about the specific guardrail that was applied during this
|
|
47
|
+
# assessment, including its identifier, version, ARN, origin, and
|
|
48
|
+
# ownership information.
|
|
49
|
+
#
|
|
50
|
+
# @!attribute [rw] guardrail_id
|
|
51
|
+
# The unique ID of the guardrail that was applied.
|
|
52
|
+
# @return [String]
|
|
53
|
+
#
|
|
54
|
+
# @!attribute [rw] guardrail_version
|
|
55
|
+
# The version of the guardrail that was applied.
|
|
56
|
+
# @return [String]
|
|
57
|
+
#
|
|
58
|
+
# @!attribute [rw] guardrail_arn
|
|
59
|
+
# The ARN of the guardrail that was applied.
|
|
60
|
+
# @return [String]
|
|
61
|
+
#
|
|
62
|
+
# @!attribute [rw] guardrail_origin
|
|
63
|
+
# The origin of how the guardrail was applied. This can be either
|
|
64
|
+
# requested at the API level or enforced at the account or
|
|
65
|
+
# organization level as a default guardrail.
|
|
66
|
+
# @return [Array<String>]
|
|
67
|
+
#
|
|
68
|
+
# @!attribute [rw] guardrail_ownership
|
|
69
|
+
# The ownership type of the guardrail, indicating whether it is owned
|
|
70
|
+
# by the requesting account or is a cross-account guardrail shared
|
|
71
|
+
# from another AWS account.
|
|
72
|
+
# @return [String]
|
|
73
|
+
#
|
|
74
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/AppliedGuardrailDetails AWS API Documentation
|
|
75
|
+
#
|
|
76
|
+
class AppliedGuardrailDetails < Struct.new(
|
|
77
|
+
:guardrail_id,
|
|
78
|
+
:guardrail_version,
|
|
79
|
+
:guardrail_arn,
|
|
80
|
+
:guardrail_origin,
|
|
81
|
+
:guardrail_ownership)
|
|
82
|
+
SENSITIVE = []
|
|
83
|
+
include Aws::Structure
|
|
84
|
+
end
|
|
85
|
+
|
|
46
86
|
# @!attribute [rw] guardrail_identifier
|
|
47
87
|
# The guardrail identifier used in the request to apply the guardrail.
|
|
48
88
|
# @return [String]
|
|
@@ -1695,6 +1735,12 @@ module Aws::BedrockRuntime
|
|
|
1695
1735
|
# The invocation metrics for the guardrail assessment.
|
|
1696
1736
|
# @return [Types::GuardrailInvocationMetrics]
|
|
1697
1737
|
#
|
|
1738
|
+
# @!attribute [rw] applied_guardrail_details
|
|
1739
|
+
# Details about the specific guardrail that was applied during this
|
|
1740
|
+
# assessment, including its identifier, version, ARN, origin, and
|
|
1741
|
+
# ownership information.
|
|
1742
|
+
# @return [Types::AppliedGuardrailDetails]
|
|
1743
|
+
#
|
|
1698
1744
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAssessment AWS API Documentation
|
|
1699
1745
|
#
|
|
1700
1746
|
class GuardrailAssessment < Struct.new(
|
|
@@ -1704,7 +1750,8 @@ module Aws::BedrockRuntime
|
|
|
1704
1750
|
:sensitive_information_policy,
|
|
1705
1751
|
:contextual_grounding_policy,
|
|
1706
1752
|
:automated_reasoning_policy,
|
|
1707
|
-
:invocation_metrics
|
|
1753
|
+
:invocation_metrics,
|
|
1754
|
+
:applied_guardrail_details)
|
|
1708
1755
|
SENSITIVE = []
|
|
1709
1756
|
include Aws::Structure
|
|
1710
1757
|
end
|
|
@@ -27,6 +27,22 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:bedrockruntime)
|
|
|
27
27
|
#
|
|
28
28
|
# See {Client} for more information.
|
|
29
29
|
#
|
|
30
|
+
# # Async Client
|
|
31
|
+
#
|
|
32
|
+
# The {AsyncClient} class provides one asynchronous method for each API operation.
|
|
33
|
+
# Operation methods each accept a hash of request parameters and return an async
|
|
34
|
+
# response. For streaming operations, you can signal input events and register
|
|
35
|
+
# output event callbacks before waiting on the response.
|
|
36
|
+
#
|
|
37
|
+
# bedrock_runtime = Aws::BedrockRuntime::AsyncClient.new
|
|
38
|
+
# resp = bedrock_runtime.apply_guardrail(
|
|
39
|
+
# # params and input stream
|
|
40
|
+
# ) do |output_stream|
|
|
41
|
+
# # register callbacks for events
|
|
42
|
+
# end
|
|
43
|
+
#
|
|
44
|
+
# See {AsyncClient} for more information.
|
|
45
|
+
#
|
|
30
46
|
# # Errors
|
|
31
47
|
#
|
|
32
48
|
# Errors returned from Amazon Bedrock Runtime are defined in the
|
|
@@ -57,7 +73,7 @@ module Aws::BedrockRuntime
|
|
|
57
73
|
autoload :AsyncClient, 'aws-sdk-bedrockruntime/async_client'
|
|
58
74
|
autoload :EventStreams, 'aws-sdk-bedrockruntime/event_streams'
|
|
59
75
|
|
|
60
|
-
GEM_VERSION = '1.
|
|
76
|
+
GEM_VERSION = '1.66.0'
|
|
61
77
|
|
|
62
78
|
end
|
|
63
79
|
|
data/sig/client.rbs
CHANGED
|
@@ -384,8 +384,8 @@ module Aws
|
|
|
384
384
|
}?
|
|
385
385
|
},
|
|
386
386
|
?guardrail_config: {
|
|
387
|
-
guardrail_identifier: ::String
|
|
388
|
-
guardrail_version: ::String
|
|
387
|
+
guardrail_identifier: ::String?,
|
|
388
|
+
guardrail_version: ::String?,
|
|
389
389
|
trace: ("enabled" | "disabled" | "enabled_full")?
|
|
390
390
|
},
|
|
391
391
|
?additional_model_request_fields: {
|
|
@@ -668,8 +668,8 @@ module Aws
|
|
|
668
668
|
}?
|
|
669
669
|
},
|
|
670
670
|
?guardrail_config: {
|
|
671
|
-
guardrail_identifier: ::String
|
|
672
|
-
guardrail_version: ::String
|
|
671
|
+
guardrail_identifier: ::String?,
|
|
672
|
+
guardrail_version: ::String?,
|
|
673
673
|
trace: ("enabled" | "disabled" | "enabled_full")?,
|
|
674
674
|
stream_processing_mode: ("sync" | "async")?
|
|
675
675
|
},
|
data/sig/types.rbs
CHANGED
|
@@ -16,6 +16,15 @@ module Aws::BedrockRuntime
|
|
|
16
16
|
class AnyToolChoice < Aws::EmptyStructure
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
class AppliedGuardrailDetails
|
|
20
|
+
attr_accessor guardrail_id: ::String
|
|
21
|
+
attr_accessor guardrail_version: ::String
|
|
22
|
+
attr_accessor guardrail_arn: ::String
|
|
23
|
+
attr_accessor guardrail_origin: ::Array[("REQUEST" | "ACCOUNT_ENFORCED" | "ORGANIZATION_ENFORCED")]
|
|
24
|
+
attr_accessor guardrail_ownership: ("SELF" | "CROSS_ACCOUNT")
|
|
25
|
+
SENSITIVE: []
|
|
26
|
+
end
|
|
27
|
+
|
|
19
28
|
class ApplyGuardrailRequest
|
|
20
29
|
attr_accessor guardrail_identifier: ::String
|
|
21
30
|
attr_accessor guardrail_version: ::String
|
|
@@ -478,6 +487,7 @@ module Aws::BedrockRuntime
|
|
|
478
487
|
attr_accessor contextual_grounding_policy: Types::GuardrailContextualGroundingPolicyAssessment
|
|
479
488
|
attr_accessor automated_reasoning_policy: Types::GuardrailAutomatedReasoningPolicyAssessment
|
|
480
489
|
attr_accessor invocation_metrics: Types::GuardrailInvocationMetrics
|
|
490
|
+
attr_accessor applied_guardrail_details: Types::AppliedGuardrailDetails
|
|
481
491
|
SENSITIVE: []
|
|
482
492
|
end
|
|
483
493
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-bedrockruntime
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.66.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.
|
|
21
|
+
version: 3.239.1
|
|
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.
|
|
31
|
+
version: 3.239.1
|
|
32
32
|
- !ruby/object:Gem::Dependency
|
|
33
33
|
name: aws-sigv4
|
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|