aws-sdk-bedrockruntime 1.96.0 → 1.98.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 +64 -10
- data/lib/aws-sdk-bedrockruntime/client_api.rb +5 -0
- data/lib/aws-sdk-bedrockruntime/types.rb +54 -2
- data/lib/aws-sdk-bedrockruntime.rb +1 -1
- data/sig/client.rbs +6 -2
- data/sig/types.rbs +4 -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: 5440a90039d06369a58cbc55addc752279bd145661e68b7f563613b03ef8ed0e
|
|
4
|
+
data.tar.gz: 66df4f3ef7afa3af687cf08832ce221f82ffb3a0164644d714c9472c4a772509
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '091709cf767c2ccd300604db31fc485eacff44636bf2180942d8f16366718ddcedf4116efb6fa1a1d38fc8b72deca69bb2bfa6724c1e4f0b0750b4bf53c979ab'
|
|
7
|
+
data.tar.gz: fcdaca94b887b13d1be2d5999fe61feb7fd3a55f8689ff8dd9dd7dbf8b6bbd177a679576d6169954251dd4d64dfec131ace44bf86c33b6ecdd7f670dca1b03d0
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.98.0 (2026-11-20)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Amazon Bedrock Runtime adds an optional projectIdentifier parameter to InvokeModel, InvokeModelWithResponseStream, Converse, and ConverseStream, allowing requests to specify a project by ID or ARN.
|
|
8
|
+
|
|
9
|
+
1.97.0 (2026-11-18)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
13
|
+
|
|
4
14
|
1.96.0 (2026-11-16)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.98.0
|
|
@@ -760,8 +760,8 @@ module Aws::BedrockRuntime
|
|
|
760
760
|
# different models. If a model has unique inference parameters, you can
|
|
761
761
|
# also pass those unique parameters to the model.
|
|
762
762
|
#
|
|
763
|
-
#
|
|
764
|
-
#
|
|
763
|
+
# Data retention for this request depends on the applicable account or
|
|
764
|
+
# project configuration and the model's data retention policy.
|
|
765
765
|
#
|
|
766
766
|
# You can submit a prompt by including it in the `messages` field,
|
|
767
767
|
# specifying the `modelId` of a foundation model or inference profile to
|
|
@@ -788,7 +788,9 @@ module Aws::BedrockRuntime
|
|
|
788
788
|
# User Guide*.
|
|
789
789
|
#
|
|
790
790
|
# This operation requires permission for the `bedrock:InvokeModel`
|
|
791
|
-
# action.
|
|
791
|
+
# action on both the inference target and the project. If you omit
|
|
792
|
+
# `projectIdentifier` or specify `default`, this includes permission on
|
|
793
|
+
# the default project for your account.
|
|
792
794
|
#
|
|
793
795
|
# To deny all inference access to resources that you specify in the
|
|
794
796
|
# modelId field, you need to deny access to the `bedrock:InvokeModel`
|
|
@@ -879,6 +881,16 @@ module Aws::BedrockRuntime
|
|
|
879
881
|
# operates on all messages in the request body and in any included
|
|
880
882
|
# prompt resource.
|
|
881
883
|
#
|
|
884
|
+
# @option params [String] :project_identifier
|
|
885
|
+
# The ID or Amazon Resource Name (ARN) of the project to use for this
|
|
886
|
+
# invocation. The project must be active and belong to your AWS account
|
|
887
|
+
# and the AWS Region to which you send the request. Specify `default` or
|
|
888
|
+
# omit this field to use the default project for your account.
|
|
889
|
+
#
|
|
890
|
+
# For a non-default project, the inference target must resolve to a
|
|
891
|
+
# foundation model or system-defined inference profile. Application
|
|
892
|
+
# inference profiles don't support non-default projects.
|
|
893
|
+
#
|
|
882
894
|
# @option params [Hash,Array,String,Numeric,Boolean] :additional_model_request_fields
|
|
883
895
|
# Additional inference parameters that the model supports, beyond the
|
|
884
896
|
# base set of inference parameters that `Converse` and `ConverseStream`
|
|
@@ -1246,6 +1258,7 @@ module Aws::BedrockRuntime
|
|
|
1246
1258
|
# guardrail_version: "GuardrailVersion",
|
|
1247
1259
|
# trace: "enabled", # accepts enabled, disabled, enabled_full
|
|
1248
1260
|
# },
|
|
1261
|
+
# project_identifier: "ProjectIdentifier",
|
|
1249
1262
|
# additional_model_request_fields: {
|
|
1250
1263
|
# },
|
|
1251
1264
|
# prompt_variables: {
|
|
@@ -1756,8 +1769,8 @@ module Aws::BedrockRuntime
|
|
|
1756
1769
|
#
|
|
1757
1770
|
# </note>
|
|
1758
1771
|
#
|
|
1759
|
-
#
|
|
1760
|
-
#
|
|
1772
|
+
# Data retention for this request depends on the applicable account or
|
|
1773
|
+
# project configuration and the model's data retention policy.
|
|
1761
1774
|
#
|
|
1762
1775
|
# You can submit a prompt by including it in the `messages` field,
|
|
1763
1776
|
# specifying the `modelId` of a foundation model or inference profile to
|
|
@@ -1784,7 +1797,10 @@ module Aws::BedrockRuntime
|
|
|
1784
1797
|
# Bedrock User Guide*.
|
|
1785
1798
|
#
|
|
1786
1799
|
# This operation requires permission for the
|
|
1787
|
-
# `bedrock:InvokeModelWithResponseStream` action
|
|
1800
|
+
# `bedrock:InvokeModelWithResponseStream` action on both the inference
|
|
1801
|
+
# target and the project. If you omit `projectIdentifier` or specify
|
|
1802
|
+
# `default`, this includes permission on the default project for your
|
|
1803
|
+
# account.
|
|
1788
1804
|
#
|
|
1789
1805
|
# To deny all inference access to resources that you specify in the
|
|
1790
1806
|
# modelId field, you need to deny access to the `bedrock:InvokeModel`
|
|
@@ -1876,6 +1892,16 @@ module Aws::BedrockRuntime
|
|
|
1876
1892
|
# operates on all messages in the request body and in any included
|
|
1877
1893
|
# prompt resource.
|
|
1878
1894
|
#
|
|
1895
|
+
# @option params [String] :project_identifier
|
|
1896
|
+
# The ID or Amazon Resource Name (ARN) of the project to use for this
|
|
1897
|
+
# invocation. The project must be active and belong to your AWS account
|
|
1898
|
+
# and the AWS Region to which you send the request. Specify `default` or
|
|
1899
|
+
# omit this field to use the default project for your account.
|
|
1900
|
+
#
|
|
1901
|
+
# For a non-default project, the inference target must resolve to a
|
|
1902
|
+
# foundation model or system-defined inference profile. Application
|
|
1903
|
+
# inference profiles don't support non-default projects.
|
|
1904
|
+
#
|
|
1879
1905
|
# @option params [Hash,Array,String,Numeric,Boolean] :additional_model_request_fields
|
|
1880
1906
|
# Additional inference parameters that the model supports, beyond the
|
|
1881
1907
|
# base set of inference parameters that `Converse` and `ConverseStream`
|
|
@@ -2416,6 +2442,7 @@ module Aws::BedrockRuntime
|
|
|
2416
2442
|
# trace: "enabled", # accepts enabled, disabled, enabled_full
|
|
2417
2443
|
# stream_processing_mode: "sync", # accepts sync, async
|
|
2418
2444
|
# },
|
|
2445
|
+
# project_identifier: "ProjectIdentifier",
|
|
2419
2446
|
# additional_model_request_fields: {
|
|
2420
2447
|
# },
|
|
2421
2448
|
# prompt_variables: {
|
|
@@ -3410,7 +3437,9 @@ module Aws::BedrockRuntime
|
|
|
3410
3437
|
# Bedrock User Guide*.
|
|
3411
3438
|
#
|
|
3412
3439
|
# This operation requires permission for the `bedrock:InvokeModel`
|
|
3413
|
-
# action.
|
|
3440
|
+
# action on both the inference target and the project. If you omit
|
|
3441
|
+
# `projectIdentifier` or specify `default`, this includes permission on
|
|
3442
|
+
# the default project for your account.
|
|
3414
3443
|
#
|
|
3415
3444
|
# To deny all inference access to resources that you specify in the
|
|
3416
3445
|
# modelId field, you need to deny access to the `bedrock:InvokeModel`
|
|
@@ -3519,6 +3548,16 @@ module Aws::BedrockRuntime
|
|
|
3519
3548
|
# @option params [String] :request_metadata
|
|
3520
3549
|
# Key-value pairs that you can use to filter invocation logs.
|
|
3521
3550
|
#
|
|
3551
|
+
# @option params [String] :project_identifier
|
|
3552
|
+
# The ID or Amazon Resource Name (ARN) of the project to use for this
|
|
3553
|
+
# invocation. The project must be active and belong to your AWS account
|
|
3554
|
+
# and the AWS Region to which you send the request. Specify `default` or
|
|
3555
|
+
# omit this field to use the default project for your account.
|
|
3556
|
+
#
|
|
3557
|
+
# For a non-default project, the inference target must resolve to a
|
|
3558
|
+
# foundation model or system-defined inference profile. Application
|
|
3559
|
+
# inference profiles don't support non-default projects.
|
|
3560
|
+
#
|
|
3522
3561
|
# @return [Types::InvokeModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3523
3562
|
#
|
|
3524
3563
|
# * {Types::InvokeModelResponse#body #body} => String
|
|
@@ -3539,6 +3578,7 @@ module Aws::BedrockRuntime
|
|
|
3539
3578
|
# performance_config_latency: "standard", # accepts standard, optimized
|
|
3540
3579
|
# service_tier: "priority", # accepts priority, default, flex, reserved
|
|
3541
3580
|
# request_metadata: "RequestMetadataJson",
|
|
3581
|
+
# project_identifier: "ProjectIdentifier",
|
|
3542
3582
|
# })
|
|
3543
3583
|
#
|
|
3544
3584
|
# @example Response structure
|
|
@@ -3572,8 +3612,11 @@ module Aws::BedrockRuntime
|
|
|
3572
3612
|
# For example code, see *Invoke model with streaming code example* in
|
|
3573
3613
|
# the *Amazon Bedrock User Guide*.
|
|
3574
3614
|
#
|
|
3575
|
-
# This operation requires
|
|
3576
|
-
# `bedrock:InvokeModelWithResponseStream` action
|
|
3615
|
+
# This operation requires permission for the
|
|
3616
|
+
# `bedrock:InvokeModelWithResponseStream` action on both the inference
|
|
3617
|
+
# target and the project. If you omit `projectIdentifier` or specify
|
|
3618
|
+
# `default`, this includes permission on the default project for your
|
|
3619
|
+
# account.
|
|
3577
3620
|
#
|
|
3578
3621
|
# To deny all inference access to resources that you specify in the
|
|
3579
3622
|
# modelId field, you need to deny access to the `bedrock:InvokeModel`
|
|
@@ -3683,6 +3726,16 @@ module Aws::BedrockRuntime
|
|
|
3683
3726
|
# @option params [String] :request_metadata
|
|
3684
3727
|
# Key-value pairs that you can use to filter invocation logs.
|
|
3685
3728
|
#
|
|
3729
|
+
# @option params [String] :project_identifier
|
|
3730
|
+
# The ID or Amazon Resource Name (ARN) of the project to use for this
|
|
3731
|
+
# invocation. The project must be active and belong to your AWS account
|
|
3732
|
+
# and the AWS Region to which you send the request. Specify `default` or
|
|
3733
|
+
# omit this field to use the default project for your account.
|
|
3734
|
+
#
|
|
3735
|
+
# For a non-default project, the inference target must resolve to a
|
|
3736
|
+
# foundation model or system-defined inference profile. Application
|
|
3737
|
+
# inference profiles don't support non-default projects.
|
|
3738
|
+
#
|
|
3686
3739
|
# @return [Types::InvokeModelWithResponseStreamResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3687
3740
|
#
|
|
3688
3741
|
# * {Types::InvokeModelWithResponseStreamResponse#body #body} => Types::ResponseStream
|
|
@@ -3846,6 +3899,7 @@ module Aws::BedrockRuntime
|
|
|
3846
3899
|
# performance_config_latency: "standard", # accepts standard, optimized
|
|
3847
3900
|
# service_tier: "priority", # accepts priority, default, flex, reserved
|
|
3848
3901
|
# request_metadata: "RequestMetadataJson",
|
|
3902
|
+
# project_identifier: "ProjectIdentifier",
|
|
3849
3903
|
# })
|
|
3850
3904
|
#
|
|
3851
3905
|
# @example Response structure
|
|
@@ -4074,7 +4128,7 @@ module Aws::BedrockRuntime
|
|
|
4074
4128
|
tracer: tracer
|
|
4075
4129
|
)
|
|
4076
4130
|
context[:gem_name] = 'aws-sdk-bedrockruntime'
|
|
4077
|
-
context[:gem_version] = '1.
|
|
4131
|
+
context[:gem_version] = '1.98.0'
|
|
4078
4132
|
Seahorse::Client::Request.new(handlers, context)
|
|
4079
4133
|
end
|
|
4080
4134
|
|
|
@@ -325,6 +325,7 @@ module Aws::BedrockRuntime
|
|
|
325
325
|
PayloadPart = Shapes::StructureShape.new(name: 'PayloadPart')
|
|
326
326
|
PerformanceConfigLatency = Shapes::StringShape.new(name: 'PerformanceConfigLatency')
|
|
327
327
|
PerformanceConfiguration = Shapes::StructureShape.new(name: 'PerformanceConfiguration')
|
|
328
|
+
ProjectIdentifier = Shapes::StringShape.new(name: 'ProjectIdentifier')
|
|
328
329
|
PromptRouterTrace = Shapes::StructureShape.new(name: 'PromptRouterTrace')
|
|
329
330
|
PromptVariableMap = Shapes::MapShape.new(name: 'PromptVariableMap')
|
|
330
331
|
PromptVariableValues = Shapes::UnionShape.new(name: 'PromptVariableValues')
|
|
@@ -635,6 +636,7 @@ module Aws::BedrockRuntime
|
|
|
635
636
|
ConverseRequest.add_member(:inference_config, Shapes::ShapeRef.new(shape: InferenceConfiguration, location_name: "inferenceConfig"))
|
|
636
637
|
ConverseRequest.add_member(:tool_config, Shapes::ShapeRef.new(shape: ToolConfiguration, location_name: "toolConfig"))
|
|
637
638
|
ConverseRequest.add_member(:guardrail_config, Shapes::ShapeRef.new(shape: GuardrailConfiguration, location_name: "guardrailConfig"))
|
|
639
|
+
ConverseRequest.add_member(:project_identifier, Shapes::ShapeRef.new(shape: ProjectIdentifier, location_name: "projectIdentifier"))
|
|
638
640
|
ConverseRequest.add_member(:additional_model_request_fields, Shapes::ShapeRef.new(shape: Document, location_name: "additionalModelRequestFields"))
|
|
639
641
|
ConverseRequest.add_member(:prompt_variables, Shapes::ShapeRef.new(shape: PromptVariableMap, location_name: "promptVariables"))
|
|
640
642
|
ConverseRequest.add_member(:additional_model_response_field_paths, Shapes::ShapeRef.new(shape: ConverseRequestAdditionalModelResponseFieldPathsList, location_name: "additionalModelResponseFieldPaths"))
|
|
@@ -685,6 +687,7 @@ module Aws::BedrockRuntime
|
|
|
685
687
|
ConverseStreamRequest.add_member(:inference_config, Shapes::ShapeRef.new(shape: InferenceConfiguration, location_name: "inferenceConfig"))
|
|
686
688
|
ConverseStreamRequest.add_member(:tool_config, Shapes::ShapeRef.new(shape: ToolConfiguration, location_name: "toolConfig"))
|
|
687
689
|
ConverseStreamRequest.add_member(:guardrail_config, Shapes::ShapeRef.new(shape: GuardrailStreamConfiguration, location_name: "guardrailConfig"))
|
|
690
|
+
ConverseStreamRequest.add_member(:project_identifier, Shapes::ShapeRef.new(shape: ProjectIdentifier, location_name: "projectIdentifier"))
|
|
688
691
|
ConverseStreamRequest.add_member(:additional_model_request_fields, Shapes::ShapeRef.new(shape: Document, location_name: "additionalModelRequestFields"))
|
|
689
692
|
ConverseStreamRequest.add_member(:prompt_variables, Shapes::ShapeRef.new(shape: PromptVariableMap, location_name: "promptVariables"))
|
|
690
693
|
ConverseStreamRequest.add_member(:additional_model_response_field_paths, Shapes::ShapeRef.new(shape: ConverseStreamRequestAdditionalModelResponseFieldPathsList, location_name: "additionalModelResponseFieldPaths"))
|
|
@@ -1221,6 +1224,7 @@ module Aws::BedrockRuntime
|
|
|
1221
1224
|
InvokeModelRequest.add_member(:performance_config_latency, Shapes::ShapeRef.new(shape: PerformanceConfigLatency, location: "header", location_name: "X-Amzn-Bedrock-PerformanceConfig-Latency"))
|
|
1222
1225
|
InvokeModelRequest.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTierType, location: "header", location_name: "X-Amzn-Bedrock-Service-Tier"))
|
|
1223
1226
|
InvokeModelRequest.add_member(:request_metadata, Shapes::ShapeRef.new(shape: RequestMetadataJson, location: "header", location_name: "X-Amzn-Bedrock-Request-Metadata"))
|
|
1227
|
+
InvokeModelRequest.add_member(:project_identifier, Shapes::ShapeRef.new(shape: ProjectIdentifier, location: "header", location_name: "X-Amzn-Bedrock-ProjectIdentifier"))
|
|
1224
1228
|
InvokeModelRequest.struct_class = Types::InvokeModelRequest
|
|
1225
1229
|
InvokeModelRequest[:payload] = :body
|
|
1226
1230
|
InvokeModelRequest[:payload_member] = InvokeModelRequest.member(:body)
|
|
@@ -1269,6 +1273,7 @@ module Aws::BedrockRuntime
|
|
|
1269
1273
|
InvokeModelWithResponseStreamRequest.add_member(:performance_config_latency, Shapes::ShapeRef.new(shape: PerformanceConfigLatency, location: "header", location_name: "X-Amzn-Bedrock-PerformanceConfig-Latency"))
|
|
1270
1274
|
InvokeModelWithResponseStreamRequest.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTierType, location: "header", location_name: "X-Amzn-Bedrock-Service-Tier"))
|
|
1271
1275
|
InvokeModelWithResponseStreamRequest.add_member(:request_metadata, Shapes::ShapeRef.new(shape: RequestMetadataJson, location: "header", location_name: "X-Amzn-Bedrock-Request-Metadata"))
|
|
1276
|
+
InvokeModelWithResponseStreamRequest.add_member(:project_identifier, Shapes::ShapeRef.new(shape: ProjectIdentifier, location: "header", location_name: "X-Amzn-Bedrock-ProjectIdentifier"))
|
|
1272
1277
|
InvokeModelWithResponseStreamRequest.struct_class = Types::InvokeModelWithResponseStreamRequest
|
|
1273
1278
|
InvokeModelWithResponseStreamRequest[:payload] = :body
|
|
1274
1279
|
InvokeModelWithResponseStreamRequest[:payload_member] = InvokeModelWithResponseStreamRequest.member(:body)
|
|
@@ -1051,6 +1051,18 @@ module Aws::BedrockRuntime
|
|
|
1051
1051
|
# prompt resource.
|
|
1052
1052
|
# @return [Types::GuardrailConfiguration]
|
|
1053
1053
|
#
|
|
1054
|
+
# @!attribute [rw] project_identifier
|
|
1055
|
+
# The ID or Amazon Resource Name (ARN) of the project to use for this
|
|
1056
|
+
# invocation. The project must be active and belong to your AWS
|
|
1057
|
+
# account and the AWS Region to which you send the request. Specify
|
|
1058
|
+
# `default` or omit this field to use the default project for your
|
|
1059
|
+
# account.
|
|
1060
|
+
#
|
|
1061
|
+
# For a non-default project, the inference target must resolve to a
|
|
1062
|
+
# foundation model or system-defined inference profile. Application
|
|
1063
|
+
# inference profiles don't support non-default projects.
|
|
1064
|
+
# @return [String]
|
|
1065
|
+
#
|
|
1054
1066
|
# @!attribute [rw] additional_model_request_fields
|
|
1055
1067
|
# Additional inference parameters that the model supports, beyond the
|
|
1056
1068
|
# base set of inference parameters that `Converse` and
|
|
@@ -1117,6 +1129,7 @@ module Aws::BedrockRuntime
|
|
|
1117
1129
|
:inference_config,
|
|
1118
1130
|
:tool_config,
|
|
1119
1131
|
:guardrail_config,
|
|
1132
|
+
:project_identifier,
|
|
1120
1133
|
:additional_model_request_fields,
|
|
1121
1134
|
:prompt_variables,
|
|
1122
1135
|
:additional_model_response_field_paths,
|
|
@@ -1311,6 +1324,18 @@ module Aws::BedrockRuntime
|
|
|
1311
1324
|
# prompt resource.
|
|
1312
1325
|
# @return [Types::GuardrailStreamConfiguration]
|
|
1313
1326
|
#
|
|
1327
|
+
# @!attribute [rw] project_identifier
|
|
1328
|
+
# The ID or Amazon Resource Name (ARN) of the project to use for this
|
|
1329
|
+
# invocation. The project must be active and belong to your AWS
|
|
1330
|
+
# account and the AWS Region to which you send the request. Specify
|
|
1331
|
+
# `default` or omit this field to use the default project for your
|
|
1332
|
+
# account.
|
|
1333
|
+
#
|
|
1334
|
+
# For a non-default project, the inference target must resolve to a
|
|
1335
|
+
# foundation model or system-defined inference profile. Application
|
|
1336
|
+
# inference profiles don't support non-default projects.
|
|
1337
|
+
# @return [String]
|
|
1338
|
+
#
|
|
1314
1339
|
# @!attribute [rw] additional_model_request_fields
|
|
1315
1340
|
# Additional inference parameters that the model supports, beyond the
|
|
1316
1341
|
# base set of inference parameters that `Converse` and
|
|
@@ -1377,6 +1402,7 @@ module Aws::BedrockRuntime
|
|
|
1377
1402
|
:inference_config,
|
|
1378
1403
|
:tool_config,
|
|
1379
1404
|
:guardrail_config,
|
|
1405
|
+
:project_identifier,
|
|
1380
1406
|
:additional_model_request_fields,
|
|
1381
1407
|
:prompt_variables,
|
|
1382
1408
|
:additional_model_response_field_paths,
|
|
@@ -3777,6 +3803,18 @@ module Aws::BedrockRuntime
|
|
|
3777
3803
|
# Key-value pairs that you can use to filter invocation logs.
|
|
3778
3804
|
# @return [String]
|
|
3779
3805
|
#
|
|
3806
|
+
# @!attribute [rw] project_identifier
|
|
3807
|
+
# The ID or Amazon Resource Name (ARN) of the project to use for this
|
|
3808
|
+
# invocation. The project must be active and belong to your AWS
|
|
3809
|
+
# account and the AWS Region to which you send the request. Specify
|
|
3810
|
+
# `default` or omit this field to use the default project for your
|
|
3811
|
+
# account.
|
|
3812
|
+
#
|
|
3813
|
+
# For a non-default project, the inference target must resolve to a
|
|
3814
|
+
# foundation model or system-defined inference profile. Application
|
|
3815
|
+
# inference profiles don't support non-default projects.
|
|
3816
|
+
# @return [String]
|
|
3817
|
+
#
|
|
3780
3818
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModelRequest AWS API Documentation
|
|
3781
3819
|
#
|
|
3782
3820
|
class InvokeModelRequest < Struct.new(
|
|
@@ -3789,7 +3827,8 @@ module Aws::BedrockRuntime
|
|
|
3789
3827
|
:guardrail_version,
|
|
3790
3828
|
:performance_config_latency,
|
|
3791
3829
|
:service_tier,
|
|
3792
|
-
:request_metadata
|
|
3830
|
+
:request_metadata,
|
|
3831
|
+
:project_identifier)
|
|
3793
3832
|
SENSITIVE = [:body, :request_metadata]
|
|
3794
3833
|
include Aws::Structure
|
|
3795
3834
|
end
|
|
@@ -3991,6 +4030,18 @@ module Aws::BedrockRuntime
|
|
|
3991
4030
|
# Key-value pairs that you can use to filter invocation logs.
|
|
3992
4031
|
# @return [String]
|
|
3993
4032
|
#
|
|
4033
|
+
# @!attribute [rw] project_identifier
|
|
4034
|
+
# The ID or Amazon Resource Name (ARN) of the project to use for this
|
|
4035
|
+
# invocation. The project must be active and belong to your AWS
|
|
4036
|
+
# account and the AWS Region to which you send the request. Specify
|
|
4037
|
+
# `default` or omit this field to use the default project for your
|
|
4038
|
+
# account.
|
|
4039
|
+
#
|
|
4040
|
+
# For a non-default project, the inference target must resolve to a
|
|
4041
|
+
# foundation model or system-defined inference profile. Application
|
|
4042
|
+
# inference profiles don't support non-default projects.
|
|
4043
|
+
# @return [String]
|
|
4044
|
+
#
|
|
3994
4045
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModelWithResponseStreamRequest AWS API Documentation
|
|
3995
4046
|
#
|
|
3996
4047
|
class InvokeModelWithResponseStreamRequest < Struct.new(
|
|
@@ -4003,7 +4054,8 @@ module Aws::BedrockRuntime
|
|
|
4003
4054
|
:guardrail_version,
|
|
4004
4055
|
:performance_config_latency,
|
|
4005
4056
|
:service_tier,
|
|
4006
|
-
:request_metadata
|
|
4057
|
+
:request_metadata,
|
|
4058
|
+
:project_identifier)
|
|
4007
4059
|
SENSITIVE = [:body, :request_metadata]
|
|
4008
4060
|
include Aws::Structure
|
|
4009
4061
|
end
|
data/sig/client.rbs
CHANGED
|
@@ -146,6 +146,7 @@ module Aws
|
|
|
146
146
|
guardrail_version: ::String?,
|
|
147
147
|
trace: ("enabled" | "disabled" | "enabled_full")?
|
|
148
148
|
},
|
|
149
|
+
?project_identifier: ::String,
|
|
149
150
|
?additional_model_request_fields: {
|
|
150
151
|
},
|
|
151
152
|
?prompt_variables: Hash[::String, {
|
|
@@ -189,6 +190,7 @@ module Aws
|
|
|
189
190
|
trace: ("enabled" | "disabled" | "enabled_full")?,
|
|
190
191
|
stream_processing_mode: ("sync" | "async")?
|
|
191
192
|
},
|
|
193
|
+
?project_identifier: ::String,
|
|
192
194
|
?additional_model_request_fields: {
|
|
193
195
|
},
|
|
194
196
|
?prompt_variables: Hash[::String, {
|
|
@@ -311,7 +313,8 @@ module Aws
|
|
|
311
313
|
?guardrail_version: ::String,
|
|
312
314
|
?performance_config_latency: ("standard" | "optimized"),
|
|
313
315
|
?service_tier: ("priority" | "default" | "flex" | "reserved"),
|
|
314
|
-
?request_metadata: ::String
|
|
316
|
+
?request_metadata: ::String,
|
|
317
|
+
?project_identifier: ::String
|
|
315
318
|
) -> _InvokeModelResponseSuccess
|
|
316
319
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _InvokeModelResponseSuccess
|
|
317
320
|
|
|
@@ -333,7 +336,8 @@ module Aws
|
|
|
333
336
|
?guardrail_version: ::String,
|
|
334
337
|
?performance_config_latency: ("standard" | "optimized"),
|
|
335
338
|
?service_tier: ("priority" | "default" | "flex" | "reserved"),
|
|
336
|
-
?request_metadata: ::String
|
|
339
|
+
?request_metadata: ::String,
|
|
340
|
+
?project_identifier: ::String
|
|
337
341
|
) ?{ (*untyped) -> void } -> _InvokeModelWithResponseStreamResponseSuccess
|
|
338
342
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeModelWithResponseStreamResponseSuccess
|
|
339
343
|
|
data/sig/types.rbs
CHANGED
|
@@ -341,6 +341,7 @@ module Aws::BedrockRuntime
|
|
|
341
341
|
attr_accessor inference_config: Types::InferenceConfiguration
|
|
342
342
|
attr_accessor tool_config: Types::ToolConfiguration
|
|
343
343
|
attr_accessor guardrail_config: Types::GuardrailConfiguration
|
|
344
|
+
attr_accessor project_identifier: ::String
|
|
344
345
|
attr_accessor additional_model_request_fields: untyped
|
|
345
346
|
attr_accessor prompt_variables: ::Hash[::String, Types::PromptVariableValues]
|
|
346
347
|
attr_accessor additional_model_response_field_paths: ::Array[::String]
|
|
@@ -385,6 +386,7 @@ module Aws::BedrockRuntime
|
|
|
385
386
|
attr_accessor inference_config: Types::InferenceConfiguration
|
|
386
387
|
attr_accessor tool_config: Types::ToolConfiguration
|
|
387
388
|
attr_accessor guardrail_config: Types::GuardrailStreamConfiguration
|
|
389
|
+
attr_accessor project_identifier: ::String
|
|
388
390
|
attr_accessor additional_model_request_fields: untyped
|
|
389
391
|
attr_accessor prompt_variables: ::Hash[::String, Types::PromptVariableValues]
|
|
390
392
|
attr_accessor additional_model_response_field_paths: ::Array[::String]
|
|
@@ -1075,6 +1077,7 @@ module Aws::BedrockRuntime
|
|
|
1075
1077
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
|
1076
1078
|
attr_accessor service_tier: ("priority" | "default" | "flex" | "reserved")
|
|
1077
1079
|
attr_accessor request_metadata: ::String
|
|
1080
|
+
attr_accessor project_identifier: ::String
|
|
1078
1081
|
SENSITIVE: [:body, :request_metadata]
|
|
1079
1082
|
end
|
|
1080
1083
|
|
|
@@ -1113,6 +1116,7 @@ module Aws::BedrockRuntime
|
|
|
1113
1116
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
|
1114
1117
|
attr_accessor service_tier: ("priority" | "default" | "flex" | "reserved")
|
|
1115
1118
|
attr_accessor request_metadata: ::String
|
|
1119
|
+
attr_accessor project_identifier: ::String
|
|
1116
1120
|
SENSITIVE: [:body, :request_metadata]
|
|
1117
1121
|
end
|
|
1118
1122
|
|
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.98.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.270.0
|
|
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.270.0
|
|
32
32
|
- !ruby/object:Gem::Dependency
|
|
33
33
|
name: aws-sigv4
|
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|