aws-sdk-bedrockruntime 1.63.0 → 1.64.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1fe16e2649f933ef98cdc035603ca5f167ae32c71e88136a677aa824cd284e1c
4
- data.tar.gz: '0289147ef1de7850c00b77fbe2fd98a739607bbb39223a3f0f134321cc691fa4'
3
+ metadata.gz: a66e767c571f46752bb9bdb4265a3eb22c1201743e93f338e0a174f82fbff1ed
4
+ data.tar.gz: 410f8bb4d3de61a4f94c885125ded145855e09dc1ae23f81b2591ea77446e3c1
5
5
  SHA512:
6
- metadata.gz: 3c5cfdc5e1e81b0c6a5e2a6ada0bc3d497e1f5d0a63177eef3570f36cb641eaa700ceec9e8d043044f80f5cf2026ab6536b3a54ef66c5ea102ca0eaaa1d16836
7
- data.tar.gz: 94521450d807e8516e97de7e68d0a62de0a622b8f929d1b9aa394ca59a2f11318fd01adc8e7d1379cba1fc00e208b8c4d0ec58c4c3370113deebd81a9a8a47f9
6
+ metadata.gz: a913388099c198af7138e5c0a051c6eac98e706b7373798831b108fe257fec1d1d3c8d8649e447eab31ebc598fc6124bf36141a6f4dd081893e4d8cf4967c55b
7
+ data.tar.gz: 0f357eb2e1a514ba33c5b95331d42aeb6751f87e75b925d4c1b797f9e6f52b9297b74e4536d4758500416994591e82f8590717a429350fe4c743655968b23c5f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.64.0 (2025-11-18)
5
+ ------------------
6
+
7
+ * Feature - Amazon Bedrock Runtime Service Tier Support Launch
8
+
4
9
  1.63.0 (2025-10-29)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.63.0
1
+ 1.64.0
@@ -621,7 +621,7 @@ module Aws::BedrockRuntime
621
621
  tracer: tracer
622
622
  )
623
623
  context[:gem_name] = 'aws-sdk-bedrockruntime'
624
- context[:gem_version] = '1.63.0'
624
+ context[:gem_version] = '1.64.0'
625
625
  Seahorse::Client::Request.new(handlers, context)
626
626
  end
627
627
 
@@ -914,6 +914,10 @@ module Aws::BedrockRuntime
914
914
  # @option params [Types::PerformanceConfiguration] :performance_config
915
915
  # Model performance settings for the request.
916
916
  #
917
+ # @option params [Types::ServiceTier] :service_tier
918
+ # Specifies the processing tier configuration used for serving the
919
+ # request.
920
+ #
917
921
  # @return [Types::ConverseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
918
922
  #
919
923
  # * {Types::ConverseResponse#output #output} => Types::ConverseOutput
@@ -923,6 +927,7 @@ module Aws::BedrockRuntime
923
927
  # * {Types::ConverseResponse#additional_model_response_fields #additional_model_response_fields} => Hash,Array,String,Numeric,Boolean
924
928
  # * {Types::ConverseResponse#trace #trace} => Types::ConverseTrace
925
929
  # * {Types::ConverseResponse#performance_config #performance_config} => Types::PerformanceConfiguration
930
+ # * {Types::ConverseResponse#service_tier #service_tier} => Types::ServiceTier
926
931
  #
927
932
  # @example Request syntax with placeholder values
928
933
  #
@@ -1173,6 +1178,9 @@ module Aws::BedrockRuntime
1173
1178
  # performance_config: {
1174
1179
  # latency: "standard", # accepts standard, optimized
1175
1180
  # },
1181
+ # service_tier: {
1182
+ # type: "priority", # required, accepts priority, default, flex
1183
+ # },
1176
1184
  # })
1177
1185
  #
1178
1186
  # @example Response structure
@@ -1583,6 +1591,7 @@ module Aws::BedrockRuntime
1583
1591
  # resp.trace.guardrail.action_reason #=> String
1584
1592
  # resp.trace.prompt_router.invoked_model_id #=> String
1585
1593
  # resp.performance_config.latency #=> String, one of "standard", "optimized"
1594
+ # resp.service_tier.type #=> String, one of "priority", "default", "flex"
1586
1595
  #
1587
1596
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/Converse AWS API Documentation
1588
1597
  #
@@ -1776,6 +1785,10 @@ module Aws::BedrockRuntime
1776
1785
  # @option params [Types::PerformanceConfiguration] :performance_config
1777
1786
  # Model performance settings for the request.
1778
1787
  #
1788
+ # @option params [Types::ServiceTier] :service_tier
1789
+ # Specifies the processing tier configuration used for serving the
1790
+ # request.
1791
+ #
1779
1792
  # @return [Types::ConverseStreamResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1780
1793
  #
1781
1794
  # * {Types::ConverseStreamResponse#stream #stream} => Types::ConverseStreamOutput
@@ -2209,6 +2222,9 @@ module Aws::BedrockRuntime
2209
2222
  # performance_config: {
2210
2223
  # latency: "standard", # accepts standard, optimized
2211
2224
  # },
2225
+ # service_tier: {
2226
+ # type: "priority", # required, accepts priority, default, flex
2227
+ # },
2212
2228
  # })
2213
2229
  #
2214
2230
  # @example Response structure
@@ -2592,6 +2608,7 @@ module Aws::BedrockRuntime
2592
2608
  # event.trace.guardrail.action_reason #=> String
2593
2609
  # event.trace.prompt_router.invoked_model_id #=> String
2594
2610
  # event.performance_config.latency #=> String, one of "standard", "optimized"
2611
+ # event.service_tier.type #=> String, one of "priority", "default", "flex"
2595
2612
  #
2596
2613
  # # For :internal_server_exception event available at #on_internal_server_exception_event callback and response eventstream enumerator:
2597
2614
  # event.message #=> String
@@ -2895,6 +2912,37 @@ module Aws::BedrockRuntime
2895
2912
  # },
2896
2913
  # },
2897
2914
  # ],
2915
+ # tool_config: {
2916
+ # tools: [ # required
2917
+ # {
2918
+ # tool_spec: {
2919
+ # name: "ToolName", # required
2920
+ # description: "NonEmptyString",
2921
+ # input_schema: { # required
2922
+ # json: {
2923
+ # },
2924
+ # },
2925
+ # },
2926
+ # system_tool: {
2927
+ # name: "ToolName", # required
2928
+ # },
2929
+ # cache_point: {
2930
+ # type: "default", # required, accepts default
2931
+ # },
2932
+ # },
2933
+ # ],
2934
+ # tool_choice: {
2935
+ # auto: {
2936
+ # },
2937
+ # any: {
2938
+ # },
2939
+ # tool: {
2940
+ # name: "ToolName", # required
2941
+ # },
2942
+ # },
2943
+ # },
2944
+ # additional_model_request_fields: {
2945
+ # },
2898
2946
  # },
2899
2947
  # },
2900
2948
  # })
@@ -3069,11 +3117,15 @@ module Aws::BedrockRuntime
3069
3117
  # @option params [String] :performance_config_latency
3070
3118
  # Model performance settings for the request.
3071
3119
  #
3120
+ # @option params [String] :service_tier
3121
+ # Specifies the processing tier type used for serving the request.
3122
+ #
3072
3123
  # @return [Types::InvokeModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3073
3124
  #
3074
3125
  # * {Types::InvokeModelResponse#body #body} => String
3075
3126
  # * {Types::InvokeModelResponse#content_type #content_type} => String
3076
3127
  # * {Types::InvokeModelResponse#performance_config_latency #performance_config_latency} => String
3128
+ # * {Types::InvokeModelResponse#service_tier #service_tier} => String
3077
3129
  #
3078
3130
  # @example Request syntax with placeholder values
3079
3131
  #
@@ -3086,6 +3138,7 @@ module Aws::BedrockRuntime
3086
3138
  # guardrail_identifier: "GuardrailIdentifier",
3087
3139
  # guardrail_version: "GuardrailVersion",
3088
3140
  # performance_config_latency: "standard", # accepts standard, optimized
3141
+ # service_tier: "priority", # accepts priority, default, flex
3089
3142
  # })
3090
3143
  #
3091
3144
  # @example Response structure
@@ -3093,6 +3146,7 @@ module Aws::BedrockRuntime
3093
3146
  # resp.body #=> String
3094
3147
  # resp.content_type #=> String
3095
3148
  # resp.performance_config_latency #=> String, one of "standard", "optimized"
3149
+ # resp.service_tier #=> String, one of "priority", "default", "flex"
3096
3150
  #
3097
3151
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModel AWS API Documentation
3098
3152
  #
@@ -3223,11 +3277,15 @@ module Aws::BedrockRuntime
3223
3277
  # @option params [String] :performance_config_latency
3224
3278
  # Model performance settings for the request.
3225
3279
  #
3280
+ # @option params [String] :service_tier
3281
+ # Specifies the processing tier type used for serving the request.
3282
+ #
3226
3283
  # @return [Types::InvokeModelWithResponseStreamResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3227
3284
  #
3228
3285
  # * {Types::InvokeModelWithResponseStreamResponse#body #body} => Types::ResponseStream
3229
3286
  # * {Types::InvokeModelWithResponseStreamResponse#content_type #content_type} => String
3230
3287
  # * {Types::InvokeModelWithResponseStreamResponse#performance_config_latency #performance_config_latency} => String
3288
+ # * {Types::InvokeModelWithResponseStreamResponse#service_tier #service_tier} => String
3231
3289
  #
3232
3290
  # @example EventStream Operation Example
3233
3291
  #
@@ -3383,6 +3441,7 @@ module Aws::BedrockRuntime
3383
3441
  # guardrail_identifier: "GuardrailIdentifier",
3384
3442
  # guardrail_version: "GuardrailVersion",
3385
3443
  # performance_config_latency: "standard", # accepts standard, optimized
3444
+ # service_tier: "priority", # accepts priority, default, flex
3386
3445
  # })
3387
3446
  #
3388
3447
  # @example Response structure
@@ -3416,6 +3475,7 @@ module Aws::BedrockRuntime
3416
3475
  #
3417
3476
  # resp.content_type #=> String
3418
3477
  # resp.performance_config_latency #=> String, one of "standard", "optimized"
3478
+ # resp.service_tier #=> String, one of "priority", "default", "flex"
3419
3479
  #
3420
3480
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModelWithResponseStream AWS API Documentation
3421
3481
  #
@@ -3610,7 +3670,7 @@ module Aws::BedrockRuntime
3610
3670
  tracer: tracer
3611
3671
  )
3612
3672
  context[:gem_name] = 'aws-sdk-bedrockruntime'
3613
- context[:gem_version] = '1.63.0'
3673
+ context[:gem_version] = '1.64.0'
3614
3674
  Seahorse::Client::Request.new(handlers, context)
3615
3675
  end
3616
3676
 
@@ -274,6 +274,8 @@ module Aws::BedrockRuntime
274
274
  S3Location = Shapes::StructureShape.new(name: 'S3Location')
275
275
  S3Uri = Shapes::StringShape.new(name: 'S3Uri')
276
276
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
277
+ ServiceTier = Shapes::StructureShape.new(name: 'ServiceTier')
278
+ ServiceTierType = Shapes::StringShape.new(name: 'ServiceTierType')
277
279
  ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
278
280
  SortAsyncInvocationBy = Shapes::StringShape.new(name: 'SortAsyncInvocationBy')
279
281
  SortOrder = Shapes::StringShape.new(name: 'SortOrder')
@@ -516,6 +518,7 @@ module Aws::BedrockRuntime
516
518
  ConverseRequest.add_member(:additional_model_response_field_paths, Shapes::ShapeRef.new(shape: ConverseRequestAdditionalModelResponseFieldPathsList, location_name: "additionalModelResponseFieldPaths"))
517
519
  ConverseRequest.add_member(:request_metadata, Shapes::ShapeRef.new(shape: RequestMetadata, location_name: "requestMetadata"))
518
520
  ConverseRequest.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
521
+ ConverseRequest.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTier, location_name: "serviceTier"))
519
522
  ConverseRequest.struct_class = Types::ConverseRequest
520
523
 
521
524
  ConverseRequestAdditionalModelResponseFieldPathsList.member = Shapes::ShapeRef.new(shape: ConverseRequestAdditionalModelResponseFieldPathsListMemberString)
@@ -527,12 +530,14 @@ module Aws::BedrockRuntime
527
530
  ConverseResponse.add_member(:additional_model_response_fields, Shapes::ShapeRef.new(shape: Document, location_name: "additionalModelResponseFields"))
528
531
  ConverseResponse.add_member(:trace, Shapes::ShapeRef.new(shape: ConverseTrace, location_name: "trace"))
529
532
  ConverseResponse.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
533
+ ConverseResponse.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTier, location_name: "serviceTier"))
530
534
  ConverseResponse.struct_class = Types::ConverseResponse
531
535
 
532
536
  ConverseStreamMetadataEvent.add_member(:usage, Shapes::ShapeRef.new(shape: TokenUsage, required: true, location_name: "usage"))
533
537
  ConverseStreamMetadataEvent.add_member(:metrics, Shapes::ShapeRef.new(shape: ConverseStreamMetrics, required: true, location_name: "metrics"))
534
538
  ConverseStreamMetadataEvent.add_member(:trace, Shapes::ShapeRef.new(shape: ConverseStreamTrace, location_name: "trace"))
535
539
  ConverseStreamMetadataEvent.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
540
+ ConverseStreamMetadataEvent.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTier, location_name: "serviceTier"))
536
541
  ConverseStreamMetadataEvent.struct_class = Types::ConverseStreamMetadataEvent
537
542
 
538
543
  ConverseStreamMetrics.add_member(:latency_ms, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "latencyMs"))
@@ -562,6 +567,7 @@ module Aws::BedrockRuntime
562
567
  ConverseStreamRequest.add_member(:additional_model_response_field_paths, Shapes::ShapeRef.new(shape: ConverseStreamRequestAdditionalModelResponseFieldPathsList, location_name: "additionalModelResponseFieldPaths"))
563
568
  ConverseStreamRequest.add_member(:request_metadata, Shapes::ShapeRef.new(shape: RequestMetadata, location_name: "requestMetadata"))
564
569
  ConverseStreamRequest.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
570
+ ConverseStreamRequest.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTier, location_name: "serviceTier"))
565
571
  ConverseStreamRequest.struct_class = Types::ConverseStreamRequest
566
572
 
567
573
  ConverseStreamRequestAdditionalModelResponseFieldPathsList.member = Shapes::ShapeRef.new(shape: ConverseStreamRequestAdditionalModelResponseFieldPathsListMemberString)
@@ -577,6 +583,8 @@ module Aws::BedrockRuntime
577
583
 
578
584
  ConverseTokensRequest.add_member(:messages, Shapes::ShapeRef.new(shape: Messages, location_name: "messages"))
579
585
  ConverseTokensRequest.add_member(:system, Shapes::ShapeRef.new(shape: SystemContentBlocks, location_name: "system"))
586
+ ConverseTokensRequest.add_member(:tool_config, Shapes::ShapeRef.new(shape: ToolConfiguration, location_name: "toolConfig"))
587
+ ConverseTokensRequest.add_member(:additional_model_request_fields, Shapes::ShapeRef.new(shape: Document, location_name: "additionalModelRequestFields"))
580
588
  ConverseTokensRequest.struct_class = Types::ConverseTokensRequest
581
589
 
582
590
  ConverseTrace.add_member(:guardrail, Shapes::ShapeRef.new(shape: GuardrailTraceAssessment, location_name: "guardrail"))
@@ -971,6 +979,7 @@ module Aws::BedrockRuntime
971
979
  InvokeModelRequest.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, location: "header", location_name: "X-Amzn-Bedrock-GuardrailIdentifier"))
972
980
  InvokeModelRequest.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location: "header", location_name: "X-Amzn-Bedrock-GuardrailVersion"))
973
981
  InvokeModelRequest.add_member(:performance_config_latency, Shapes::ShapeRef.new(shape: PerformanceConfigLatency, location: "header", location_name: "X-Amzn-Bedrock-PerformanceConfig-Latency"))
982
+ InvokeModelRequest.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTierType, location: "header", location_name: "X-Amzn-Bedrock-Service-Tier"))
974
983
  InvokeModelRequest.struct_class = Types::InvokeModelRequest
975
984
  InvokeModelRequest[:payload] = :body
976
985
  InvokeModelRequest[:payload_member] = InvokeModelRequest.member(:body)
@@ -978,6 +987,7 @@ module Aws::BedrockRuntime
978
987
  InvokeModelResponse.add_member(:body, Shapes::ShapeRef.new(shape: Body, required: true, location_name: "body"))
979
988
  InvokeModelResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: MimeType, required: true, location: "header", location_name: "Content-Type"))
980
989
  InvokeModelResponse.add_member(:performance_config_latency, Shapes::ShapeRef.new(shape: PerformanceConfigLatency, location: "header", location_name: "X-Amzn-Bedrock-PerformanceConfig-Latency"))
990
+ InvokeModelResponse.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTierType, location: "header", location_name: "X-Amzn-Bedrock-Service-Tier"))
981
991
  InvokeModelResponse.struct_class = Types::InvokeModelResponse
982
992
  InvokeModelResponse[:payload] = :body
983
993
  InvokeModelResponse[:payload_member] = InvokeModelResponse.member(:body)
@@ -1016,6 +1026,7 @@ module Aws::BedrockRuntime
1016
1026
  InvokeModelWithResponseStreamRequest.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, location: "header", location_name: "X-Amzn-Bedrock-GuardrailIdentifier"))
1017
1027
  InvokeModelWithResponseStreamRequest.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location: "header", location_name: "X-Amzn-Bedrock-GuardrailVersion"))
1018
1028
  InvokeModelWithResponseStreamRequest.add_member(:performance_config_latency, Shapes::ShapeRef.new(shape: PerformanceConfigLatency, location: "header", location_name: "X-Amzn-Bedrock-PerformanceConfig-Latency"))
1029
+ InvokeModelWithResponseStreamRequest.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTierType, location: "header", location_name: "X-Amzn-Bedrock-Service-Tier"))
1019
1030
  InvokeModelWithResponseStreamRequest.struct_class = Types::InvokeModelWithResponseStreamRequest
1020
1031
  InvokeModelWithResponseStreamRequest[:payload] = :body
1021
1032
  InvokeModelWithResponseStreamRequest[:payload_member] = InvokeModelWithResponseStreamRequest.member(:body)
@@ -1023,6 +1034,7 @@ module Aws::BedrockRuntime
1023
1034
  InvokeModelWithResponseStreamResponse.add_member(:body, Shapes::ShapeRef.new(shape: ResponseStream, required: true, eventstream: true, location_name: "body"))
1024
1035
  InvokeModelWithResponseStreamResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: MimeType, required: true, location: "header", location_name: "X-Amzn-Bedrock-Content-Type"))
1025
1036
  InvokeModelWithResponseStreamResponse.add_member(:performance_config_latency, Shapes::ShapeRef.new(shape: PerformanceConfigLatency, location: "header", location_name: "X-Amzn-Bedrock-PerformanceConfig-Latency"))
1037
+ InvokeModelWithResponseStreamResponse.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTierType, location: "header", location_name: "X-Amzn-Bedrock-Service-Tier"))
1026
1038
  InvokeModelWithResponseStreamResponse.struct_class = Types::InvokeModelWithResponseStreamResponse
1027
1039
  InvokeModelWithResponseStreamResponse[:payload] = :body
1028
1040
  InvokeModelWithResponseStreamResponse[:payload_member] = InvokeModelWithResponseStreamResponse.member(:body)
@@ -1133,6 +1145,9 @@ module Aws::BedrockRuntime
1133
1145
  ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
1134
1146
  ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
1135
1147
 
1148
+ ServiceTier.add_member(:type, Shapes::ShapeRef.new(shape: ServiceTierType, required: true, location_name: "type"))
1149
+ ServiceTier.struct_class = Types::ServiceTier
1150
+
1136
1151
  ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
1137
1152
  ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
1138
1153
 
@@ -906,6 +906,11 @@ module Aws::BedrockRuntime
906
906
  # Model performance settings for the request.
907
907
  # @return [Types::PerformanceConfiguration]
908
908
  #
909
+ # @!attribute [rw] service_tier
910
+ # Specifies the processing tier configuration used for serving the
911
+ # request.
912
+ # @return [Types::ServiceTier]
913
+ #
909
914
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ConverseRequest AWS API Documentation
910
915
  #
911
916
  class ConverseRequest < Struct.new(
@@ -919,7 +924,8 @@ module Aws::BedrockRuntime
919
924
  :prompt_variables,
920
925
  :additional_model_response_field_paths,
921
926
  :request_metadata,
922
- :performance_config)
927
+ :performance_config,
928
+ :service_tier)
923
929
  SENSITIVE = [:prompt_variables, :request_metadata]
924
930
  include Aws::Structure
925
931
  end
@@ -955,6 +961,11 @@ module Aws::BedrockRuntime
955
961
  # Model performance settings for the request.
956
962
  # @return [Types::PerformanceConfiguration]
957
963
  #
964
+ # @!attribute [rw] service_tier
965
+ # Specifies the processing tier configuration used for serving the
966
+ # request.
967
+ # @return [Types::ServiceTier]
968
+ #
958
969
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ConverseResponse AWS API Documentation
959
970
  #
960
971
  class ConverseResponse < Struct.new(
@@ -964,7 +975,8 @@ module Aws::BedrockRuntime
964
975
  :metrics,
965
976
  :additional_model_response_fields,
966
977
  :trace,
967
- :performance_config)
978
+ :performance_config,
979
+ :service_tier)
968
980
  SENSITIVE = []
969
981
  include Aws::Structure
970
982
  end
@@ -993,6 +1005,11 @@ module Aws::BedrockRuntime
993
1005
  # event.
994
1006
  # @return [Types::PerformanceConfiguration]
995
1007
  #
1008
+ # @!attribute [rw] service_tier
1009
+ # Specifies the processing tier configuration used for serving the
1010
+ # request.
1011
+ # @return [Types::ServiceTier]
1012
+ #
996
1013
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ConverseStreamMetadataEvent AWS API Documentation
997
1014
  #
998
1015
  class ConverseStreamMetadataEvent < Struct.new(
@@ -1000,6 +1017,7 @@ module Aws::BedrockRuntime
1000
1017
  :metrics,
1001
1018
  :trace,
1002
1019
  :performance_config,
1020
+ :service_tier,
1003
1021
  :event_type)
1004
1022
  SENSITIVE = []
1005
1023
  include Aws::Structure
@@ -1143,6 +1161,11 @@ module Aws::BedrockRuntime
1143
1161
  # Model performance settings for the request.
1144
1162
  # @return [Types::PerformanceConfiguration]
1145
1163
  #
1164
+ # @!attribute [rw] service_tier
1165
+ # Specifies the processing tier configuration used for serving the
1166
+ # request.
1167
+ # @return [Types::ServiceTier]
1168
+ #
1146
1169
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ConverseStreamRequest AWS API Documentation
1147
1170
  #
1148
1171
  class ConverseStreamRequest < Struct.new(
@@ -1156,7 +1179,8 @@ module Aws::BedrockRuntime
1156
1179
  :prompt_variables,
1157
1180
  :additional_model_response_field_paths,
1158
1181
  :request_metadata,
1159
- :performance_config)
1182
+ :performance_config,
1183
+ :service_tier)
1160
1184
  SENSITIVE = [:prompt_variables, :request_metadata]
1161
1185
  include Aws::Structure
1162
1186
  end
@@ -1213,11 +1237,25 @@ module Aws::BedrockRuntime
1213
1237
  # provided.
1214
1238
  # @return [Array<Types::SystemContentBlock>]
1215
1239
  #
1240
+ # @!attribute [rw] tool_config
1241
+ # The toolConfig of Converse input request to count tokens for.
1242
+ # Configuration information for the tools that the model can use when
1243
+ # generating a response.
1244
+ # @return [Types::ToolConfiguration]
1245
+ #
1246
+ # @!attribute [rw] additional_model_request_fields
1247
+ # The additionalModelRequestFields of Converse input request to count
1248
+ # tokens for. Use this field when you want to pass additional
1249
+ # parameters that the model supports.
1250
+ # @return [Hash,Array,String,Numeric,Boolean]
1251
+ #
1216
1252
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ConverseTokensRequest AWS API Documentation
1217
1253
  #
1218
1254
  class ConverseTokensRequest < Struct.new(
1219
1255
  :messages,
1220
- :system)
1256
+ :system,
1257
+ :tool_config,
1258
+ :additional_model_request_fields)
1221
1259
  SENSITIVE = []
1222
1260
  include Aws::Structure
1223
1261
  end
@@ -3047,6 +3085,10 @@ module Aws::BedrockRuntime
3047
3085
  # Model performance settings for the request.
3048
3086
  # @return [String]
3049
3087
  #
3088
+ # @!attribute [rw] service_tier
3089
+ # Specifies the processing tier type used for serving the request.
3090
+ # @return [String]
3091
+ #
3050
3092
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModelRequest AWS API Documentation
3051
3093
  #
3052
3094
  class InvokeModelRequest < Struct.new(
@@ -3057,7 +3099,8 @@ module Aws::BedrockRuntime
3057
3099
  :trace,
3058
3100
  :guardrail_identifier,
3059
3101
  :guardrail_version,
3060
- :performance_config_latency)
3102
+ :performance_config_latency,
3103
+ :service_tier)
3061
3104
  SENSITIVE = [:body]
3062
3105
  include Aws::Structure
3063
3106
  end
@@ -3081,12 +3124,17 @@ module Aws::BedrockRuntime
3081
3124
  # Model performance settings for the request.
3082
3125
  # @return [String]
3083
3126
  #
3127
+ # @!attribute [rw] service_tier
3128
+ # Specifies the processing tier type used for serving the request.
3129
+ # @return [String]
3130
+ #
3084
3131
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModelResponse AWS API Documentation
3085
3132
  #
3086
3133
  class InvokeModelResponse < Struct.new(
3087
3134
  :body,
3088
3135
  :content_type,
3089
- :performance_config_latency)
3136
+ :performance_config_latency,
3137
+ :service_tier)
3090
3138
  SENSITIVE = [:body]
3091
3139
  include Aws::Structure
3092
3140
  end
@@ -3246,6 +3294,10 @@ module Aws::BedrockRuntime
3246
3294
  # Model performance settings for the request.
3247
3295
  # @return [String]
3248
3296
  #
3297
+ # @!attribute [rw] service_tier
3298
+ # Specifies the processing tier type used for serving the request.
3299
+ # @return [String]
3300
+ #
3249
3301
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModelWithResponseStreamRequest AWS API Documentation
3250
3302
  #
3251
3303
  class InvokeModelWithResponseStreamRequest < Struct.new(
@@ -3256,7 +3308,8 @@ module Aws::BedrockRuntime
3256
3308
  :trace,
3257
3309
  :guardrail_identifier,
3258
3310
  :guardrail_version,
3259
- :performance_config_latency)
3311
+ :performance_config_latency,
3312
+ :service_tier)
3260
3313
  SENSITIVE = [:body]
3261
3314
  include Aws::Structure
3262
3315
  end
@@ -3279,12 +3332,17 @@ module Aws::BedrockRuntime
3279
3332
  # Model performance settings for the request.
3280
3333
  # @return [String]
3281
3334
  #
3335
+ # @!attribute [rw] service_tier
3336
+ # Specifies the processing tier type used for serving the request.
3337
+ # @return [String]
3338
+ #
3282
3339
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModelWithResponseStreamResponse AWS API Documentation
3283
3340
  #
3284
3341
  class InvokeModelWithResponseStreamResponse < Struct.new(
3285
3342
  :body,
3286
3343
  :content_type,
3287
- :performance_config_latency)
3344
+ :performance_config_latency,
3345
+ :service_tier)
3288
3346
  SENSITIVE = []
3289
3347
  include Aws::Structure
3290
3348
  end
@@ -3727,6 +3785,21 @@ module Aws::BedrockRuntime
3727
3785
  include Aws::Structure
3728
3786
  end
3729
3787
 
3788
+ # Specifies the processing tier configuration used for serving the
3789
+ # request.
3790
+ #
3791
+ # @!attribute [rw] type
3792
+ # Specifies the processing tier type used for serving the request.
3793
+ # @return [String]
3794
+ #
3795
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ServiceTier AWS API Documentation
3796
+ #
3797
+ class ServiceTier < Struct.new(
3798
+ :type)
3799
+ SENSITIVE = []
3800
+ include Aws::Structure
3801
+ end
3802
+
3730
3803
  # The service isn't currently available. For troubleshooting this
3731
3804
  # error, see [ServiceUnavailable][1] in the Amazon Bedrock User Guide
3732
3805
  #
@@ -57,7 +57,7 @@ module Aws::BedrockRuntime
57
57
  autoload :AsyncClient, 'aws-sdk-bedrockruntime/async_client'
58
58
  autoload :EventStreams, 'aws-sdk-bedrockruntime/event_streams'
59
59
 
60
- GEM_VERSION = '1.63.0'
60
+ GEM_VERSION = '1.64.0'
61
61
 
62
62
  end
63
63
 
data/sig/client.rbs CHANGED
@@ -122,6 +122,7 @@ module Aws
122
122
  def additional_model_response_fields: () -> untyped
123
123
  def trace: () -> Types::ConverseTrace
124
124
  def performance_config: () -> Types::PerformanceConfiguration
125
+ def service_tier: () -> Types::ServiceTier
125
126
  end
126
127
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/Client.html#converse-instance_method
127
128
  def converse: (
@@ -366,6 +367,9 @@ module Aws
366
367
  ?request_metadata: Hash[::String, ::String],
367
368
  ?performance_config: {
368
369
  latency: ("standard" | "optimized")?
370
+ },
371
+ ?service_tier: {
372
+ type: ("priority" | "default" | "flex")
369
373
  }
370
374
  ) -> _ConverseResponseSuccess
371
375
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ConverseResponseSuccess
@@ -618,6 +622,9 @@ module Aws
618
622
  ?request_metadata: Hash[::String, ::String],
619
623
  ?performance_config: {
620
624
  latency: ("standard" | "optimized")?
625
+ },
626
+ ?service_tier: {
627
+ type: ("priority" | "default" | "flex")
621
628
  }
622
629
  ) ?{ (*untyped) -> void } -> _ConverseStreamResponseSuccess
623
630
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _ConverseStreamResponseSuccess
@@ -824,7 +831,38 @@ module Aws
824
831
  type: ("default")
825
832
  }?
826
833
  },
827
- ]?
834
+ ]?,
835
+ tool_config: {
836
+ tools: Array[
837
+ {
838
+ tool_spec: {
839
+ name: ::String,
840
+ description: ::String?,
841
+ input_schema: {
842
+ json: {
843
+ }?
844
+ }
845
+ }?,
846
+ system_tool: {
847
+ name: ::String
848
+ }?,
849
+ cache_point: {
850
+ type: ("default")
851
+ }?
852
+ },
853
+ ],
854
+ tool_choice: {
855
+ auto: {
856
+ }?,
857
+ any: {
858
+ }?,
859
+ tool: {
860
+ name: ::String
861
+ }?
862
+ }?
863
+ }?,
864
+ additional_model_request_fields: {
865
+ }?
828
866
  }?
829
867
  }
830
868
  ) -> _CountTokensResponseSuccess
@@ -853,6 +891,7 @@ module Aws
853
891
  def body: () -> ::String
854
892
  def content_type: () -> ::String
855
893
  def performance_config_latency: () -> ("standard" | "optimized")
894
+ def service_tier: () -> ("priority" | "default" | "flex")
856
895
  end
857
896
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/Client.html#invoke_model-instance_method
858
897
  def invoke_model: (
@@ -863,7 +902,8 @@ module Aws
863
902
  ?trace: ("ENABLED" | "DISABLED" | "ENABLED_FULL"),
864
903
  ?guardrail_identifier: ::String,
865
904
  ?guardrail_version: ::String,
866
- ?performance_config_latency: ("standard" | "optimized")
905
+ ?performance_config_latency: ("standard" | "optimized"),
906
+ ?service_tier: ("priority" | "default" | "flex")
867
907
  ) -> _InvokeModelResponseSuccess
868
908
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _InvokeModelResponseSuccess
869
909
 
@@ -872,6 +912,7 @@ module Aws
872
912
  def body: () -> Types::ResponseStream
873
913
  def content_type: () -> ::String
874
914
  def performance_config_latency: () -> ("standard" | "optimized")
915
+ def service_tier: () -> ("priority" | "default" | "flex")
875
916
  end
876
917
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/Client.html#invoke_model_with_response_stream-instance_method
877
918
  def invoke_model_with_response_stream: (
@@ -882,7 +923,8 @@ module Aws
882
923
  ?trace: ("ENABLED" | "DISABLED" | "ENABLED_FULL"),
883
924
  ?guardrail_identifier: ::String,
884
925
  ?guardrail_version: ::String,
885
- ?performance_config_latency: ("standard" | "optimized")
926
+ ?performance_config_latency: ("standard" | "optimized"),
927
+ ?service_tier: ("priority" | "default" | "flex")
886
928
  ) ?{ (*untyped) -> void } -> _InvokeModelWithResponseStreamResponseSuccess
887
929
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeModelWithResponseStreamResponseSuccess
888
930
 
data/sig/types.rbs CHANGED
@@ -286,6 +286,7 @@ module Aws::BedrockRuntime
286
286
  attr_accessor additional_model_response_field_paths: ::Array[::String]
287
287
  attr_accessor request_metadata: ::Hash[::String, ::String]
288
288
  attr_accessor performance_config: Types::PerformanceConfiguration
289
+ attr_accessor service_tier: Types::ServiceTier
289
290
  SENSITIVE: [:prompt_variables, :request_metadata]
290
291
  end
291
292
 
@@ -297,6 +298,7 @@ module Aws::BedrockRuntime
297
298
  attr_accessor additional_model_response_fields: untyped
298
299
  attr_accessor trace: Types::ConverseTrace
299
300
  attr_accessor performance_config: Types::PerformanceConfiguration
301
+ attr_accessor service_tier: Types::ServiceTier
300
302
  SENSITIVE: []
301
303
  end
302
304
 
@@ -305,6 +307,7 @@ module Aws::BedrockRuntime
305
307
  attr_accessor metrics: Types::ConverseStreamMetrics
306
308
  attr_accessor trace: Types::ConverseStreamTrace
307
309
  attr_accessor performance_config: Types::PerformanceConfiguration
310
+ attr_accessor service_tier: Types::ServiceTier
308
311
  attr_accessor event_type: untyped
309
312
  SENSITIVE: []
310
313
  end
@@ -326,6 +329,7 @@ module Aws::BedrockRuntime
326
329
  attr_accessor additional_model_response_field_paths: ::Array[::String]
327
330
  attr_accessor request_metadata: ::Hash[::String, ::String]
328
331
  attr_accessor performance_config: Types::PerformanceConfiguration
332
+ attr_accessor service_tier: Types::ServiceTier
329
333
  SENSITIVE: [:prompt_variables, :request_metadata]
330
334
  end
331
335
 
@@ -343,6 +347,8 @@ module Aws::BedrockRuntime
343
347
  class ConverseTokensRequest
344
348
  attr_accessor messages: ::Array[Types::Message]
345
349
  attr_accessor system: ::Array[Types::SystemContentBlock]
350
+ attr_accessor tool_config: Types::ToolConfiguration
351
+ attr_accessor additional_model_request_fields: untyped
346
352
  SENSITIVE: []
347
353
  end
348
354
 
@@ -854,6 +860,7 @@ module Aws::BedrockRuntime
854
860
  attr_accessor guardrail_identifier: ::String
855
861
  attr_accessor guardrail_version: ::String
856
862
  attr_accessor performance_config_latency: ("standard" | "optimized")
863
+ attr_accessor service_tier: ("priority" | "default" | "flex")
857
864
  SENSITIVE: [:body]
858
865
  end
859
866
 
@@ -861,6 +868,7 @@ module Aws::BedrockRuntime
861
868
  attr_accessor body: ::String
862
869
  attr_accessor content_type: ::String
863
870
  attr_accessor performance_config_latency: ("standard" | "optimized")
871
+ attr_accessor service_tier: ("priority" | "default" | "flex")
864
872
  SENSITIVE: [:body]
865
873
  end
866
874
 
@@ -889,6 +897,7 @@ module Aws::BedrockRuntime
889
897
  attr_accessor guardrail_identifier: ::String
890
898
  attr_accessor guardrail_version: ::String
891
899
  attr_accessor performance_config_latency: ("standard" | "optimized")
900
+ attr_accessor service_tier: ("priority" | "default" | "flex")
892
901
  SENSITIVE: [:body]
893
902
  end
894
903
 
@@ -896,6 +905,7 @@ module Aws::BedrockRuntime
896
905
  attr_accessor body: Types::ResponseStream
897
906
  attr_accessor content_type: ::String
898
907
  attr_accessor performance_config_latency: ("standard" | "optimized")
908
+ attr_accessor service_tier: ("priority" | "default" | "flex")
899
909
  SENSITIVE: []
900
910
  end
901
911
 
@@ -1041,6 +1051,11 @@ module Aws::BedrockRuntime
1041
1051
  SENSITIVE: []
1042
1052
  end
1043
1053
 
1054
+ class ServiceTier
1055
+ attr_accessor type: ("priority" | "default" | "flex")
1056
+ SENSITIVE: []
1057
+ end
1058
+
1044
1059
  class ServiceUnavailableException
1045
1060
  attr_accessor message: ::String
1046
1061
  attr_accessor event_type: untyped
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.63.0
4
+ version: 1.64.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services