aws-sdk-bedrock 1.36.0 → 1.37.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: ee2e8aeecb6cbfc63f017980982074217b95919bfdb0eeef098ed981bf538392
4
- data.tar.gz: 6d39463fffd95515a8f8f689dd93e37b475370361490ae9e4daaca961364d590
3
+ metadata.gz: 90944c294140154161998e9a44a9661e1ea0456d92933d664f12e6f4fdd9c793
4
+ data.tar.gz: b63c92f5b8694cc61d7d64938a820a23d232a2fdd27f56f1253b0051d5d9c437
5
5
  SHA512:
6
- metadata.gz: f85bd4b875da98bcd9a2fb3226b01f9222e0fdda32bc0aed4445ae84f2398ba504b9ab2a2dfd2f1b8cbbd916da65cd37cb162d4ffb47af8aaa0c11d984c0de18
7
- data.tar.gz: c4da4c83e1fb2275d42edbc4ba0fb9d7eeb2e912f85c2d97fe2d6d92c26a9637f85522e34737ce976c05e5f45bb2f0eb1499827d2708db3c0271847b63d6b52f
6
+ metadata.gz: 6940be188f8da56a3f38421810d8c7adb7b829727504685217bb30096f84d2dedfaa1632f3cbd3b3204cefc8e5e89b0d5983873342c9fb7630f8d8c5fe16e8bf
7
+ data.tar.gz: b13174eae051f113cda9e921ec6cbf4a5deb4fc8856cf5e2b87820fbbf5ae53df07e43e7b0dc6812283baf7615765155ba5ee974d3b695e5964bfebffd4e18de
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.37.0 (2025-03-06)
5
+ ------------------
6
+
7
+ * Feature - This releases adds support for Custom Prompt Router
8
+
4
9
  1.36.0 (2025-02-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.36.0
1
+ 1.37.0
@@ -1782,6 +1782,82 @@ module Aws::Bedrock
1782
1782
  req.send_request(options)
1783
1783
  end
1784
1784
 
1785
+ # Creates a prompt router that manages the routing of requests between
1786
+ # multiple foundation models based on the routing criteria.
1787
+ #
1788
+ # @option params [String] :client_request_token
1789
+ # A unique, case-sensitive identifier that you provide to ensure
1790
+ # idempotency of your requests. If not specified, the Amazon Web
1791
+ # Services SDK automatically generates one for you.
1792
+ #
1793
+ # **A suitable default value is auto-generated.** You should normally
1794
+ # not need to pass this option.**
1795
+ #
1796
+ # @option params [required, String] :prompt_router_name
1797
+ # The name of the prompt router. The name must be unique within your
1798
+ # Amazon Web Services account in the current region.
1799
+ #
1800
+ # @option params [required, Array<Types::PromptRouterTargetModel>] :models
1801
+ # A list of foundation models that the prompt router can route requests
1802
+ # to. At least one model must be specified.
1803
+ #
1804
+ # @option params [String] :description
1805
+ # An optional description of the prompt router to help identify its
1806
+ # purpose.
1807
+ #
1808
+ # @option params [required, Types::RoutingCriteria] :routing_criteria
1809
+ # The criteria, which is the response quality difference, used to
1810
+ # determine how incoming requests are routed to different models.
1811
+ #
1812
+ # @option params [required, Types::PromptRouterTargetModel] :fallback_model
1813
+ # The default model to use when the routing criteria is not met.
1814
+ #
1815
+ # @option params [Array<Types::Tag>] :tags
1816
+ # An array of key-value pairs to apply to this resource as tags. You can
1817
+ # use tags to categorize and manage your Amazon Web Services resources.
1818
+ #
1819
+ # @return [Types::CreatePromptRouterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1820
+ #
1821
+ # * {Types::CreatePromptRouterResponse#prompt_router_arn #prompt_router_arn} => String
1822
+ #
1823
+ # @example Request syntax with placeholder values
1824
+ #
1825
+ # resp = client.create_prompt_router({
1826
+ # client_request_token: "IdempotencyToken",
1827
+ # prompt_router_name: "PromptRouterName", # required
1828
+ # models: [ # required
1829
+ # {
1830
+ # model_arn: "PromptRouterTargetModelArn", # required
1831
+ # },
1832
+ # ],
1833
+ # description: "PromptRouterDescription",
1834
+ # routing_criteria: { # required
1835
+ # response_quality_difference: 1.0, # required
1836
+ # },
1837
+ # fallback_model: { # required
1838
+ # model_arn: "PromptRouterTargetModelArn", # required
1839
+ # },
1840
+ # tags: [
1841
+ # {
1842
+ # key: "TagKey", # required
1843
+ # value: "TagValue", # required
1844
+ # },
1845
+ # ],
1846
+ # })
1847
+ #
1848
+ # @example Response structure
1849
+ #
1850
+ # resp.prompt_router_arn #=> String
1851
+ #
1852
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreatePromptRouter AWS API Documentation
1853
+ #
1854
+ # @overload create_prompt_router(params = {})
1855
+ # @param [Hash] params ({})
1856
+ def create_prompt_router(params = {}, options = {})
1857
+ req = build_request(:create_prompt_router, params)
1858
+ req.send_request(options)
1859
+ end
1860
+
1785
1861
  # Creates dedicated throughput for a base or custom model with the model
1786
1862
  # units and for the duration that you specify. For pricing details, see
1787
1863
  # [Amazon Bedrock Pricing][1]. For more information, see [Provisioned
@@ -2048,6 +2124,28 @@ module Aws::Bedrock
2048
2124
  req.send_request(options)
2049
2125
  end
2050
2126
 
2127
+ # Deletes a specified prompt router. This action cannot be undone.
2128
+ #
2129
+ # @option params [required, String] :prompt_router_arn
2130
+ # The Amazon Resource Name (ARN) of the prompt router to delete.
2131
+ #
2132
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2133
+ #
2134
+ # @example Request syntax with placeholder values
2135
+ #
2136
+ # resp = client.delete_prompt_router({
2137
+ # prompt_router_arn: "PromptRouterArn", # required
2138
+ # })
2139
+ #
2140
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeletePromptRouter AWS API Documentation
2141
+ #
2142
+ # @overload delete_prompt_router(params = {})
2143
+ # @param [Hash] params ({})
2144
+ def delete_prompt_router(params = {}, options = {})
2145
+ req = build_request(:delete_prompt_router, params)
2146
+ req.send_request(options)
2147
+ end
2148
+
2051
2149
  # Deletes a Provisioned Throughput. You can't delete a Provisioned
2052
2150
  # Throughput before the commitment term is over. For more information,
2053
2151
  # see [Provisioned Throughput][1] in the [Amazon Bedrock User Guide][2].
@@ -3953,6 +4051,10 @@ module Aws::Bedrock
3953
4051
  # Specify the pagination token from a previous request to retrieve the
3954
4052
  # next page of results.
3955
4053
  #
4054
+ # @option params [String] :type
4055
+ # The type of the prompt routers, such as whether it's default or
4056
+ # custom.
4057
+ #
3956
4058
  # @return [Types::ListPromptRoutersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3957
4059
  #
3958
4060
  # * {Types::ListPromptRoutersResponse#prompt_router_summaries #prompt_router_summaries} => Array&lt;Types::PromptRouterSummary&gt;
@@ -3965,6 +4067,7 @@ module Aws::Bedrock
3965
4067
  # resp = client.list_prompt_routers({
3966
4068
  # max_results: 1,
3967
4069
  # next_token: "PaginationToken",
4070
+ # type: "custom", # accepts custom, default
3968
4071
  # })
3969
4072
  #
3970
4073
  # @example Response structure
@@ -4660,7 +4763,7 @@ module Aws::Bedrock
4660
4763
  tracer: tracer
4661
4764
  )
4662
4765
  context[:gem_name] = 'aws-sdk-bedrock'
4663
- context[:gem_version] = '1.36.0'
4766
+ context[:gem_version] = '1.37.0'
4664
4767
  Seahorse::Client::Request.new(handlers, context)
4665
4768
  end
4666
4769
 
@@ -61,6 +61,8 @@ module Aws::Bedrock
61
61
  CreateModelImportJobResponse = Shapes::StructureShape.new(name: 'CreateModelImportJobResponse')
62
62
  CreateModelInvocationJobRequest = Shapes::StructureShape.new(name: 'CreateModelInvocationJobRequest')
63
63
  CreateModelInvocationJobResponse = Shapes::StructureShape.new(name: 'CreateModelInvocationJobResponse')
64
+ CreatePromptRouterRequest = Shapes::StructureShape.new(name: 'CreatePromptRouterRequest')
65
+ CreatePromptRouterResponse = Shapes::StructureShape.new(name: 'CreatePromptRouterResponse')
64
66
  CreateProvisionedModelThroughputRequest = Shapes::StructureShape.new(name: 'CreateProvisionedModelThroughputRequest')
65
67
  CreateProvisionedModelThroughputResponse = Shapes::StructureShape.new(name: 'CreateProvisionedModelThroughputResponse')
66
68
  CustomModelArn = Shapes::StringShape.new(name: 'CustomModelArn')
@@ -81,6 +83,8 @@ module Aws::Bedrock
81
83
  DeleteMarketplaceModelEndpointResponse = Shapes::StructureShape.new(name: 'DeleteMarketplaceModelEndpointResponse')
82
84
  DeleteModelInvocationLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteModelInvocationLoggingConfigurationRequest')
83
85
  DeleteModelInvocationLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'DeleteModelInvocationLoggingConfigurationResponse')
86
+ DeletePromptRouterRequest = Shapes::StructureShape.new(name: 'DeletePromptRouterRequest')
87
+ DeletePromptRouterResponse = Shapes::StructureShape.new(name: 'DeletePromptRouterResponse')
84
88
  DeleteProvisionedModelThroughputRequest = Shapes::StructureShape.new(name: 'DeleteProvisionedModelThroughputRequest')
85
89
  DeleteProvisionedModelThroughputResponse = Shapes::StructureShape.new(name: 'DeleteProvisionedModelThroughputResponse')
86
90
  DeregisterMarketplaceModelEndpointRequest = Shapes::StructureShape.new(name: 'DeregisterMarketplaceModelEndpointRequest')
@@ -652,6 +656,18 @@ module Aws::Bedrock
652
656
  CreateModelInvocationJobResponse.add_member(:job_arn, Shapes::ShapeRef.new(shape: ModelInvocationJobArn, required: true, location_name: "jobArn"))
653
657
  CreateModelInvocationJobResponse.struct_class = Types::CreateModelInvocationJobResponse
654
658
 
659
+ CreatePromptRouterRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientRequestToken", metadata: {"idempotencyToken"=>true}))
660
+ CreatePromptRouterRequest.add_member(:prompt_router_name, Shapes::ShapeRef.new(shape: PromptRouterName, required: true, location_name: "promptRouterName"))
661
+ CreatePromptRouterRequest.add_member(:models, Shapes::ShapeRef.new(shape: PromptRouterTargetModels, required: true, location_name: "models"))
662
+ CreatePromptRouterRequest.add_member(:description, Shapes::ShapeRef.new(shape: PromptRouterDescription, location_name: "description"))
663
+ CreatePromptRouterRequest.add_member(:routing_criteria, Shapes::ShapeRef.new(shape: RoutingCriteria, required: true, location_name: "routingCriteria"))
664
+ CreatePromptRouterRequest.add_member(:fallback_model, Shapes::ShapeRef.new(shape: PromptRouterTargetModel, required: true, location_name: "fallbackModel"))
665
+ CreatePromptRouterRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
666
+ CreatePromptRouterRequest.struct_class = Types::CreatePromptRouterRequest
667
+
668
+ CreatePromptRouterResponse.add_member(:prompt_router_arn, Shapes::ShapeRef.new(shape: PromptRouterArn, location_name: "promptRouterArn"))
669
+ CreatePromptRouterResponse.struct_class = Types::CreatePromptRouterResponse
670
+
655
671
  CreateProvisionedModelThroughputRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientRequestToken", metadata: {"idempotencyToken"=>true}))
656
672
  CreateProvisionedModelThroughputRequest.add_member(:model_units, Shapes::ShapeRef.new(shape: PositiveInteger, required: true, location_name: "modelUnits"))
657
673
  CreateProvisionedModelThroughputRequest.add_member(:provisioned_model_name, Shapes::ShapeRef.new(shape: ProvisionedModelName, required: true, location_name: "provisionedModelName"))
@@ -710,6 +726,11 @@ module Aws::Bedrock
710
726
 
711
727
  DeleteModelInvocationLoggingConfigurationResponse.struct_class = Types::DeleteModelInvocationLoggingConfigurationResponse
712
728
 
729
+ DeletePromptRouterRequest.add_member(:prompt_router_arn, Shapes::ShapeRef.new(shape: PromptRouterArn, required: true, location: "uri", location_name: "promptRouterArn"))
730
+ DeletePromptRouterRequest.struct_class = Types::DeletePromptRouterRequest
731
+
732
+ DeletePromptRouterResponse.struct_class = Types::DeletePromptRouterResponse
733
+
713
734
  DeleteProvisionedModelThroughputRequest.add_member(:provisioned_model_id, Shapes::ShapeRef.new(shape: ProvisionedModelId, required: true, location: "uri", location_name: "provisionedModelId"))
714
735
  DeleteProvisionedModelThroughputRequest.struct_class = Types::DeleteProvisionedModelThroughputRequest
715
736
 
@@ -1472,6 +1493,7 @@ module Aws::Bedrock
1472
1493
 
1473
1494
  ListPromptRoutersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
1474
1495
  ListPromptRoutersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
1496
+ ListPromptRoutersRequest.add_member(:type, Shapes::ShapeRef.new(shape: PromptRouterType, location: "querystring", location_name: "type"))
1475
1497
  ListPromptRoutersRequest.struct_class = Types::ListPromptRoutersRequest
1476
1498
 
1477
1499
  ListPromptRoutersResponse.add_member(:prompt_router_summaries, Shapes::ShapeRef.new(shape: PromptRouterSummaries, location_name: "promptRouterSummaries"))
@@ -1646,7 +1668,7 @@ module Aws::Bedrock
1646
1668
  PromptRouterSummary.add_member(:type, Shapes::ShapeRef.new(shape: PromptRouterType, required: true, location_name: "type"))
1647
1669
  PromptRouterSummary.struct_class = Types::PromptRouterSummary
1648
1670
 
1649
- PromptRouterTargetModel.add_member(:model_arn, Shapes::ShapeRef.new(shape: PromptRouterTargetModelArn, location_name: "modelArn"))
1671
+ PromptRouterTargetModel.add_member(:model_arn, Shapes::ShapeRef.new(shape: PromptRouterTargetModelArn, required: true, location_name: "modelArn"))
1650
1672
  PromptRouterTargetModel.struct_class = Types::PromptRouterTargetModel
1651
1673
 
1652
1674
  PromptRouterTargetModels.member = Shapes::ShapeRef.new(shape: PromptRouterTargetModel)
@@ -2074,6 +2096,22 @@ module Aws::Bedrock
2074
2096
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2075
2097
  end)
2076
2098
 
2099
+ api.add_operation(:create_prompt_router, Seahorse::Model::Operation.new.tap do |o|
2100
+ o.name = "CreatePromptRouter"
2101
+ o.http_method = "POST"
2102
+ o.http_request_uri = "/prompt-routers"
2103
+ o.input = Shapes::ShapeRef.new(shape: CreatePromptRouterRequest)
2104
+ o.output = Shapes::ShapeRef.new(shape: CreatePromptRouterResponse)
2105
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2106
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2107
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2108
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2109
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2110
+ o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
2111
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
2112
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2113
+ end)
2114
+
2077
2115
  api.add_operation(:create_provisioned_model_throughput, Seahorse::Model::Operation.new.tap do |o|
2078
2116
  o.name = "CreateProvisionedModelThroughput"
2079
2117
  o.http_method = "POST"
@@ -2169,6 +2207,19 @@ module Aws::Bedrock
2169
2207
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2170
2208
  end)
2171
2209
 
2210
+ api.add_operation(:delete_prompt_router, Seahorse::Model::Operation.new.tap do |o|
2211
+ o.name = "DeletePromptRouter"
2212
+ o.http_method = "DELETE"
2213
+ o.http_request_uri = "/prompt-routers/{promptRouterArn}"
2214
+ o.input = Shapes::ShapeRef.new(shape: DeletePromptRouterRequest)
2215
+ o.output = Shapes::ShapeRef.new(shape: DeletePromptRouterResponse)
2216
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2217
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2218
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2219
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2220
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2221
+ end)
2222
+
2172
2223
  api.add_operation(:delete_provisioned_model_throughput, Seahorse::Model::Operation.new.tap do |o|
2173
2224
  o.name = "DeleteProvisionedModelThroughput"
2174
2225
  o.http_method = "DELETE"
@@ -937,6 +937,72 @@ module Aws::Bedrock
937
937
  include Aws::Structure
938
938
  end
939
939
 
940
+ # @!attribute [rw] client_request_token
941
+ # A unique, case-sensitive identifier that you provide to ensure
942
+ # idempotency of your requests. If not specified, the Amazon Web
943
+ # Services SDK automatically generates one for you.
944
+ #
945
+ # **A suitable default value is auto-generated.** You should normally
946
+ # not need to pass this option.
947
+ # @return [String]
948
+ #
949
+ # @!attribute [rw] prompt_router_name
950
+ # The name of the prompt router. The name must be unique within your
951
+ # Amazon Web Services account in the current region.
952
+ # @return [String]
953
+ #
954
+ # @!attribute [rw] models
955
+ # A list of foundation models that the prompt router can route
956
+ # requests to. At least one model must be specified.
957
+ # @return [Array<Types::PromptRouterTargetModel>]
958
+ #
959
+ # @!attribute [rw] description
960
+ # An optional description of the prompt router to help identify its
961
+ # purpose.
962
+ # @return [String]
963
+ #
964
+ # @!attribute [rw] routing_criteria
965
+ # The criteria, which is the response quality difference, used to
966
+ # determine how incoming requests are routed to different models.
967
+ # @return [Types::RoutingCriteria]
968
+ #
969
+ # @!attribute [rw] fallback_model
970
+ # The default model to use when the routing criteria is not met.
971
+ # @return [Types::PromptRouterTargetModel]
972
+ #
973
+ # @!attribute [rw] tags
974
+ # An array of key-value pairs to apply to this resource as tags. You
975
+ # can use tags to categorize and manage your Amazon Web Services
976
+ # resources.
977
+ # @return [Array<Types::Tag>]
978
+ #
979
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreatePromptRouterRequest AWS API Documentation
980
+ #
981
+ class CreatePromptRouterRequest < Struct.new(
982
+ :client_request_token,
983
+ :prompt_router_name,
984
+ :models,
985
+ :description,
986
+ :routing_criteria,
987
+ :fallback_model,
988
+ :tags)
989
+ SENSITIVE = [:description]
990
+ include Aws::Structure
991
+ end
992
+
993
+ # @!attribute [rw] prompt_router_arn
994
+ # The Amazon Resource Name (ARN) that uniquely identifies the prompt
995
+ # router.
996
+ # @return [String]
997
+ #
998
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreatePromptRouterResponse AWS API Documentation
999
+ #
1000
+ class CreatePromptRouterResponse < Struct.new(
1001
+ :prompt_router_arn)
1002
+ SENSITIVE = []
1003
+ include Aws::Structure
1004
+ end
1005
+
940
1006
  # @!attribute [rw] client_request_token
941
1007
  # A unique, case-sensitive identifier to ensure that the API request
942
1008
  # completes no more than one time. If this token matches a previous
@@ -1205,6 +1271,22 @@ module Aws::Bedrock
1205
1271
  #
1206
1272
  class DeleteModelInvocationLoggingConfigurationResponse < Aws::EmptyStructure; end
1207
1273
 
1274
+ # @!attribute [rw] prompt_router_arn
1275
+ # The Amazon Resource Name (ARN) of the prompt router to delete.
1276
+ # @return [String]
1277
+ #
1278
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeletePromptRouterRequest AWS API Documentation
1279
+ #
1280
+ class DeletePromptRouterRequest < Struct.new(
1281
+ :prompt_router_arn)
1282
+ SENSITIVE = []
1283
+ include Aws::Structure
1284
+ end
1285
+
1286
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeletePromptRouterResponse AWS API Documentation
1287
+ #
1288
+ class DeletePromptRouterResponse < Aws::EmptyStructure; end
1289
+
1208
1290
  # @!attribute [rw] provisioned_model_id
1209
1291
  # The Amazon Resource Name (ARN) or name of the Provisioned
1210
1292
  # Throughput.
@@ -5212,11 +5294,17 @@ module Aws::Bedrock
5212
5294
  # next page of results.
5213
5295
  # @return [String]
5214
5296
  #
5297
+ # @!attribute [rw] type
5298
+ # The type of the prompt routers, such as whether it's default or
5299
+ # custom.
5300
+ # @return [String]
5301
+ #
5215
5302
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListPromptRoutersRequest AWS API Documentation
5216
5303
  #
5217
5304
  class ListPromptRoutersRequest < Struct.new(
5218
5305
  :max_results,
5219
- :next_token)
5306
+ :next_token,
5307
+ :type)
5220
5308
  SENSITIVE = []
5221
5309
  include Aws::Structure
5222
5310
  end
@@ -55,7 +55,7 @@ module Aws::Bedrock
55
55
  autoload :EndpointProvider, 'aws-sdk-bedrock/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-bedrock/endpoints'
57
57
 
58
- GEM_VERSION = '1.36.0'
58
+ GEM_VERSION = '1.37.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -701,6 +701,35 @@ module Aws
701
701
  ) -> _CreateModelInvocationJobResponseSuccess
702
702
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateModelInvocationJobResponseSuccess
703
703
 
704
+ interface _CreatePromptRouterResponseSuccess
705
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreatePromptRouterResponse]
706
+ def prompt_router_arn: () -> ::String
707
+ end
708
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#create_prompt_router-instance_method
709
+ def create_prompt_router: (
710
+ ?client_request_token: ::String,
711
+ prompt_router_name: ::String,
712
+ models: Array[
713
+ {
714
+ model_arn: ::String
715
+ },
716
+ ],
717
+ ?description: ::String,
718
+ routing_criteria: {
719
+ response_quality_difference: ::Float
720
+ },
721
+ fallback_model: {
722
+ model_arn: ::String
723
+ },
724
+ ?tags: Array[
725
+ {
726
+ key: ::String,
727
+ value: ::String
728
+ },
729
+ ]
730
+ ) -> _CreatePromptRouterResponseSuccess
731
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreatePromptRouterResponseSuccess
732
+
704
733
  interface _CreateProvisionedModelThroughputResponseSuccess
705
734
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateProvisionedModelThroughputResponse]
706
735
  def provisioned_model_arn: () -> ::String
@@ -775,6 +804,15 @@ module Aws
775
804
  ) -> _DeleteModelInvocationLoggingConfigurationResponseSuccess
776
805
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteModelInvocationLoggingConfigurationResponseSuccess
777
806
 
807
+ interface _DeletePromptRouterResponseSuccess
808
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeletePromptRouterResponse]
809
+ end
810
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#delete_prompt_router-instance_method
811
+ def delete_prompt_router: (
812
+ prompt_router_arn: ::String
813
+ ) -> _DeletePromptRouterResponseSuccess
814
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeletePromptRouterResponseSuccess
815
+
778
816
  interface _DeleteProvisionedModelThroughputResponseSuccess
779
817
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteProvisionedModelThroughputResponse]
780
818
  end
@@ -1261,7 +1299,8 @@ module Aws
1261
1299
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#list_prompt_routers-instance_method
1262
1300
  def list_prompt_routers: (
1263
1301
  ?max_results: ::Integer,
1264
- ?next_token: ::String
1302
+ ?next_token: ::String,
1303
+ ?type: ("custom" | "default")
1265
1304
  ) -> _ListPromptRoutersResponseSuccess
1266
1305
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListPromptRoutersResponseSuccess
1267
1306
 
data/sig/types.rbs CHANGED
@@ -227,6 +227,22 @@ module Aws::Bedrock
227
227
  SENSITIVE: []
228
228
  end
229
229
 
230
+ class CreatePromptRouterRequest
231
+ attr_accessor client_request_token: ::String
232
+ attr_accessor prompt_router_name: ::String
233
+ attr_accessor models: ::Array[Types::PromptRouterTargetModel]
234
+ attr_accessor description: ::String
235
+ attr_accessor routing_criteria: Types::RoutingCriteria
236
+ attr_accessor fallback_model: Types::PromptRouterTargetModel
237
+ attr_accessor tags: ::Array[Types::Tag]
238
+ SENSITIVE: [:description]
239
+ end
240
+
241
+ class CreatePromptRouterResponse
242
+ attr_accessor prompt_router_arn: ::String
243
+ SENSITIVE: []
244
+ end
245
+
230
246
  class CreateProvisionedModelThroughputRequest
231
247
  attr_accessor client_request_token: ::String
232
248
  attr_accessor model_units: ::Integer
@@ -311,6 +327,14 @@ module Aws::Bedrock
311
327
  class DeleteModelInvocationLoggingConfigurationResponse < Aws::EmptyStructure
312
328
  end
313
329
 
330
+ class DeletePromptRouterRequest
331
+ attr_accessor prompt_router_arn: ::String
332
+ SENSITIVE: []
333
+ end
334
+
335
+ class DeletePromptRouterResponse < Aws::EmptyStructure
336
+ end
337
+
314
338
  class DeleteProvisionedModelThroughputRequest
315
339
  attr_accessor provisioned_model_id: ::String
316
340
  SENSITIVE: []
@@ -1261,6 +1285,7 @@ module Aws::Bedrock
1261
1285
  class ListPromptRoutersRequest
1262
1286
  attr_accessor max_results: ::Integer
1263
1287
  attr_accessor next_token: ::String
1288
+ attr_accessor type: ("custom" | "default")
1264
1289
  SENSITIVE: []
1265
1290
  end
1266
1291
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.36.0
4
+ version: 1.37.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-18 00:00:00.000000000 Z
11
+ date: 2025-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core