aws-sdk-bedrockruntime 1.65.0 → 1.67.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockruntime/async_client.rb +1 -1
- data/lib/aws-sdk-bedrockruntime/client.rb +43 -13
- 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 +10 -10
- data/sig/types.rbs +15 -5
- 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: 015b198ed2bc11d1b4c61244d33ff1567cc8f796e29b434ab19712e9786d3219
|
|
4
|
+
data.tar.gz: 26b39ebea8d1b759040781b733abeda54873fefd4f1992a889b95bd4df1ee7f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d2395a6aefb0fe4a52bff860b3acf7d538413b6cda32b200f7f7eb186c4d25d1fa59c1e07a06c6edbd1091409accada840b518f8c9b0f864c3adbfd72eee55a
|
|
7
|
+
data.tar.gz: 2a64b8347e9d0e19c39b78ac1b2451842630c9227bc219c7fdeab27717a8b21195f0271d31c314a521300d1bdbd4b47a18c285c21be03d4d62cb4eef6db7100e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.67.0 (2025-11-26)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Bedrock Runtime Reserved Service Support
|
|
8
|
+
|
|
9
|
+
1.66.0 (2025-11-21)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Add support to automatically enforce safeguards across accounts within an AWS Organization.
|
|
13
|
+
|
|
4
14
|
1.65.0 (2025-11-19)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.67.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: {
|
|
@@ -1209,7 +1215,7 @@ module Aws::BedrockRuntime
|
|
|
1209
1215
|
# latency: "standard", # accepts standard, optimized
|
|
1210
1216
|
# },
|
|
1211
1217
|
# service_tier: {
|
|
1212
|
-
# type: "priority", # required, accepts priority, default, flex
|
|
1218
|
+
# type: "priority", # required, accepts priority, default, flex, reserved
|
|
1213
1219
|
# },
|
|
1214
1220
|
# })
|
|
1215
1221
|
#
|
|
@@ -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,10 +1644,16 @@ 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"
|
|
1638
|
-
# resp.service_tier.type #=> String, one of "priority", "default", "flex"
|
|
1656
|
+
# resp.service_tier.type #=> String, one of "priority", "default", "flex", "reserved"
|
|
1639
1657
|
#
|
|
1640
1658
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/Converse AWS API Documentation
|
|
1641
1659
|
#
|
|
@@ -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
|
# },
|
|
@@ -2297,7 +2315,7 @@ module Aws::BedrockRuntime
|
|
|
2297
2315
|
# latency: "standard", # accepts standard, optimized
|
|
2298
2316
|
# },
|
|
2299
2317
|
# service_tier: {
|
|
2300
|
-
# type: "priority", # required, accepts priority, default, flex
|
|
2318
|
+
# type: "priority", # required, accepts priority, default, flex, reserved
|
|
2301
2319
|
# },
|
|
2302
2320
|
# })
|
|
2303
2321
|
#
|
|
@@ -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,10 +2707,16 @@ 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"
|
|
2689
|
-
# event.service_tier.type #=> String, one of "priority", "default", "flex"
|
|
2719
|
+
# event.service_tier.type #=> String, one of "priority", "default", "flex", "reserved"
|
|
2690
2720
|
#
|
|
2691
2721
|
# # For :internal_server_exception event available at #on_internal_server_exception_event callback and response eventstream enumerator:
|
|
2692
2722
|
# event.message #=> String
|
|
@@ -3246,7 +3276,7 @@ module Aws::BedrockRuntime
|
|
|
3246
3276
|
# guardrail_identifier: "GuardrailIdentifier",
|
|
3247
3277
|
# guardrail_version: "GuardrailVersion",
|
|
3248
3278
|
# performance_config_latency: "standard", # accepts standard, optimized
|
|
3249
|
-
# service_tier: "priority", # accepts priority, default, flex
|
|
3279
|
+
# service_tier: "priority", # accepts priority, default, flex, reserved
|
|
3250
3280
|
# })
|
|
3251
3281
|
#
|
|
3252
3282
|
# @example Response structure
|
|
@@ -3254,7 +3284,7 @@ module Aws::BedrockRuntime
|
|
|
3254
3284
|
# resp.body #=> String
|
|
3255
3285
|
# resp.content_type #=> String
|
|
3256
3286
|
# resp.performance_config_latency #=> String, one of "standard", "optimized"
|
|
3257
|
-
# resp.service_tier #=> String, one of "priority", "default", "flex"
|
|
3287
|
+
# resp.service_tier #=> String, one of "priority", "default", "flex", "reserved"
|
|
3258
3288
|
#
|
|
3259
3289
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModel AWS API Documentation
|
|
3260
3290
|
#
|
|
@@ -3549,7 +3579,7 @@ module Aws::BedrockRuntime
|
|
|
3549
3579
|
# guardrail_identifier: "GuardrailIdentifier",
|
|
3550
3580
|
# guardrail_version: "GuardrailVersion",
|
|
3551
3581
|
# performance_config_latency: "standard", # accepts standard, optimized
|
|
3552
|
-
# service_tier: "priority", # accepts priority, default, flex
|
|
3582
|
+
# service_tier: "priority", # accepts priority, default, flex, reserved
|
|
3553
3583
|
# })
|
|
3554
3584
|
#
|
|
3555
3585
|
# @example Response structure
|
|
@@ -3583,7 +3613,7 @@ module Aws::BedrockRuntime
|
|
|
3583
3613
|
#
|
|
3584
3614
|
# resp.content_type #=> String
|
|
3585
3615
|
# resp.performance_config_latency #=> String, one of "standard", "optimized"
|
|
3586
|
-
# resp.service_tier #=> String, one of "priority", "default", "flex"
|
|
3616
|
+
# resp.service_tier #=> String, one of "priority", "default", "flex", "reserved"
|
|
3587
3617
|
#
|
|
3588
3618
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModelWithResponseStream AWS API Documentation
|
|
3589
3619
|
#
|
|
@@ -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.67.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.67.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: {
|
|
@@ -399,7 +399,7 @@ module Aws
|
|
|
399
399
|
latency: ("standard" | "optimized")?
|
|
400
400
|
},
|
|
401
401
|
?service_tier: {
|
|
402
|
-
type: ("priority" | "default" | "flex")
|
|
402
|
+
type: ("priority" | "default" | "flex" | "reserved")
|
|
403
403
|
}
|
|
404
404
|
) -> _ConverseResponseSuccess
|
|
405
405
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ConverseResponseSuccess
|
|
@@ -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
|
},
|
|
@@ -684,7 +684,7 @@ module Aws
|
|
|
684
684
|
latency: ("standard" | "optimized")?
|
|
685
685
|
},
|
|
686
686
|
?service_tier: {
|
|
687
|
-
type: ("priority" | "default" | "flex")
|
|
687
|
+
type: ("priority" | "default" | "flex" | "reserved")
|
|
688
688
|
}
|
|
689
689
|
) ?{ (*untyped) -> void } -> _ConverseStreamResponseSuccess
|
|
690
690
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _ConverseStreamResponseSuccess
|
|
@@ -981,7 +981,7 @@ module Aws
|
|
|
981
981
|
def body: () -> ::String
|
|
982
982
|
def content_type: () -> ::String
|
|
983
983
|
def performance_config_latency: () -> ("standard" | "optimized")
|
|
984
|
-
def service_tier: () -> ("priority" | "default" | "flex")
|
|
984
|
+
def service_tier: () -> ("priority" | "default" | "flex" | "reserved")
|
|
985
985
|
end
|
|
986
986
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/Client.html#invoke_model-instance_method
|
|
987
987
|
def invoke_model: (
|
|
@@ -993,7 +993,7 @@ module Aws
|
|
|
993
993
|
?guardrail_identifier: ::String,
|
|
994
994
|
?guardrail_version: ::String,
|
|
995
995
|
?performance_config_latency: ("standard" | "optimized"),
|
|
996
|
-
?service_tier: ("priority" | "default" | "flex")
|
|
996
|
+
?service_tier: ("priority" | "default" | "flex" | "reserved")
|
|
997
997
|
) -> _InvokeModelResponseSuccess
|
|
998
998
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _InvokeModelResponseSuccess
|
|
999
999
|
|
|
@@ -1002,7 +1002,7 @@ module Aws
|
|
|
1002
1002
|
def body: () -> Types::ResponseStream
|
|
1003
1003
|
def content_type: () -> ::String
|
|
1004
1004
|
def performance_config_latency: () -> ("standard" | "optimized")
|
|
1005
|
-
def service_tier: () -> ("priority" | "default" | "flex")
|
|
1005
|
+
def service_tier: () -> ("priority" | "default" | "flex" | "reserved")
|
|
1006
1006
|
end
|
|
1007
1007
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/Client.html#invoke_model_with_response_stream-instance_method
|
|
1008
1008
|
def invoke_model_with_response_stream: (
|
|
@@ -1014,7 +1014,7 @@ module Aws
|
|
|
1014
1014
|
?guardrail_identifier: ::String,
|
|
1015
1015
|
?guardrail_version: ::String,
|
|
1016
1016
|
?performance_config_latency: ("standard" | "optimized"),
|
|
1017
|
-
?service_tier: ("priority" | "default" | "flex")
|
|
1017
|
+
?service_tier: ("priority" | "default" | "flex" | "reserved")
|
|
1018
1018
|
) ?{ (*untyped) -> void } -> _InvokeModelWithResponseStreamResponseSuccess
|
|
1019
1019
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeModelWithResponseStreamResponseSuccess
|
|
1020
1020
|
|
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
|
|
|
@@ -868,7 +878,7 @@ module Aws::BedrockRuntime
|
|
|
868
878
|
attr_accessor guardrail_identifier: ::String
|
|
869
879
|
attr_accessor guardrail_version: ::String
|
|
870
880
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
|
871
|
-
attr_accessor service_tier: ("priority" | "default" | "flex")
|
|
881
|
+
attr_accessor service_tier: ("priority" | "default" | "flex" | "reserved")
|
|
872
882
|
SENSITIVE: [:body]
|
|
873
883
|
end
|
|
874
884
|
|
|
@@ -876,7 +886,7 @@ module Aws::BedrockRuntime
|
|
|
876
886
|
attr_accessor body: ::String
|
|
877
887
|
attr_accessor content_type: ::String
|
|
878
888
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
|
879
|
-
attr_accessor service_tier: ("priority" | "default" | "flex")
|
|
889
|
+
attr_accessor service_tier: ("priority" | "default" | "flex" | "reserved")
|
|
880
890
|
SENSITIVE: [:body]
|
|
881
891
|
end
|
|
882
892
|
|
|
@@ -905,7 +915,7 @@ module Aws::BedrockRuntime
|
|
|
905
915
|
attr_accessor guardrail_identifier: ::String
|
|
906
916
|
attr_accessor guardrail_version: ::String
|
|
907
917
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
|
908
|
-
attr_accessor service_tier: ("priority" | "default" | "flex")
|
|
918
|
+
attr_accessor service_tier: ("priority" | "default" | "flex" | "reserved")
|
|
909
919
|
SENSITIVE: [:body]
|
|
910
920
|
end
|
|
911
921
|
|
|
@@ -913,7 +923,7 @@ module Aws::BedrockRuntime
|
|
|
913
923
|
attr_accessor body: Types::ResponseStream
|
|
914
924
|
attr_accessor content_type: ::String
|
|
915
925
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
|
916
|
-
attr_accessor service_tier: ("priority" | "default" | "flex")
|
|
926
|
+
attr_accessor service_tier: ("priority" | "default" | "flex" | "reserved")
|
|
917
927
|
SENSITIVE: []
|
|
918
928
|
end
|
|
919
929
|
|
|
@@ -1080,7 +1090,7 @@ module Aws::BedrockRuntime
|
|
|
1080
1090
|
end
|
|
1081
1091
|
|
|
1082
1092
|
class ServiceTier
|
|
1083
|
-
attr_accessor type: ("priority" | "default" | "flex")
|
|
1093
|
+
attr_accessor type: ("priority" | "default" | "flex" | "reserved")
|
|
1084
1094
|
SENSITIVE: []
|
|
1085
1095
|
end
|
|
1086
1096
|
|
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.67.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
|