aws-sdk-bedrock 1.39.0 → 1.40.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: 1fd76e5f0076bc816124afe590e3f78d527414641b812d0dfcee99d46553c289
4
- data.tar.gz: 9f7c653dae884cf2f7632ed6a37b24adbe2c9ff31e859ac3565a57283acbc713
3
+ metadata.gz: d3775d29f0252b4f95585f5cdaede1e5c86a65c16830731c7323490c1b577fc7
4
+ data.tar.gz: 5489124b0912050597afbf32916592d25cfad3b3e6d77e48b64a79a0fad36dab
5
5
  SHA512:
6
- metadata.gz: 19cc949cc8f79801ad5b9cc49415e8dcdf4dea0c5277f17cd8a3d7e6427ea933f9cd3e330d8f0346d1c1429ffbc61dbdbfe8edb7dabea41ba18262d08abb3b65
7
- data.tar.gz: bb4a8b7d2202aedd87fbdd49b0a6f432952cd44fa9a27d1652e93ec149ddf55bd287645f76d484fd6e95f17c56dfe91f6d70baeab64f1f0cb42659960d8dfcee
6
+ metadata.gz: a6bab79946db7d78b15ccfed825ba5e3f1cb8b3f408ffb01b7e09fce419587e28237cec6139fa5fe82ff92713d2d939971a71fe414672d56f43e586e086c0410
7
+ data.tar.gz: 3ed7cbd3a3113aaac54572da5b1490422f8cf16e90e50ea4d9824390266f9fbf5601f94f342007941fc746b3c6fc38c161402d6c58b04151343a6c100bd55b46
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.40.0 (2025-03-21)
5
+ ------------------
6
+
7
+ * Feature - A CustomModelUnit(CMU) is an abstract view of the hardware utilization that Bedrock needs to host a a single copy of your custom imported model. Bedrock determines the number of CMUs that a model copy needs when you import the custom model. You can use CMUs to estimate the cost of Inference's.
8
+
4
9
  1.39.0 (2025-03-20)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.39.0
1
+ 1.40.0
@@ -2593,6 +2593,7 @@ module Aws::Bedrock
2593
2593
  # * {Types::GetImportedModelResponse#model_architecture #model_architecture} => String
2594
2594
  # * {Types::GetImportedModelResponse#model_kms_key_arn #model_kms_key_arn} => String
2595
2595
  # * {Types::GetImportedModelResponse#instruct_supported #instruct_supported} => Boolean
2596
+ # * {Types::GetImportedModelResponse#custom_model_units #custom_model_units} => Types::CustomModelUnits
2596
2597
  #
2597
2598
  # @example Request syntax with placeholder values
2598
2599
  #
@@ -2611,6 +2612,8 @@ module Aws::Bedrock
2611
2612
  # resp.model_architecture #=> String
2612
2613
  # resp.model_kms_key_arn #=> String
2613
2614
  # resp.instruct_supported #=> Boolean
2615
+ # resp.custom_model_units.custom_model_units_per_model_copy #=> Integer
2616
+ # resp.custom_model_units.custom_model_units_version #=> String
2614
2617
  #
2615
2618
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetImportedModel AWS API Documentation
2616
2619
  #
@@ -4785,7 +4788,7 @@ module Aws::Bedrock
4785
4788
  tracer: tracer
4786
4789
  )
4787
4790
  context[:gem_name] = 'aws-sdk-bedrock'
4788
- context[:gem_version] = '1.39.0'
4791
+ context[:gem_version] = '1.40.0'
4789
4792
  Seahorse::Client::Request.new(handlers, context)
4790
4793
  end
4791
4794
 
@@ -69,6 +69,8 @@ module Aws::Bedrock
69
69
  CustomModelName = Shapes::StringShape.new(name: 'CustomModelName')
70
70
  CustomModelSummary = Shapes::StructureShape.new(name: 'CustomModelSummary')
71
71
  CustomModelSummaryList = Shapes::ListShape.new(name: 'CustomModelSummaryList')
72
+ CustomModelUnits = Shapes::StructureShape.new(name: 'CustomModelUnits')
73
+ CustomModelUnitsVersion = Shapes::StringShape.new(name: 'CustomModelUnitsVersion')
72
74
  CustomizationConfig = Shapes::UnionShape.new(name: 'CustomizationConfig')
73
75
  CustomizationType = Shapes::StringShape.new(name: 'CustomizationType')
74
76
  DeleteCustomModelRequest = Shapes::StructureShape.new(name: 'DeleteCustomModelRequest')
@@ -701,6 +703,10 @@ module Aws::Bedrock
701
703
 
702
704
  CustomModelSummaryList.member = Shapes::ShapeRef.new(shape: CustomModelSummary)
703
705
 
706
+ CustomModelUnits.add_member(:custom_model_units_per_model_copy, Shapes::ShapeRef.new(shape: Integer, location_name: "customModelUnitsPerModelCopy"))
707
+ CustomModelUnits.add_member(:custom_model_units_version, Shapes::ShapeRef.new(shape: CustomModelUnitsVersion, location_name: "customModelUnitsVersion"))
708
+ CustomModelUnits.struct_class = Types::CustomModelUnits
709
+
704
710
  CustomizationConfig.add_member(:distillation_config, Shapes::ShapeRef.new(shape: DistillationConfig, location_name: "distillationConfig"))
705
711
  CustomizationConfig.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
706
712
  CustomizationConfig.add_member_subclass(:distillation_config, Types::CustomizationConfig::DistillationConfig)
@@ -1018,6 +1024,7 @@ module Aws::Bedrock
1018
1024
  GetImportedModelResponse.add_member(:model_architecture, Shapes::ShapeRef.new(shape: String, location_name: "modelArchitecture"))
1019
1025
  GetImportedModelResponse.add_member(:model_kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "modelKmsKeyArn"))
1020
1026
  GetImportedModelResponse.add_member(:instruct_supported, Shapes::ShapeRef.new(shape: InstructSupported, location_name: "instructSupported"))
1027
+ GetImportedModelResponse.add_member(:custom_model_units, Shapes::ShapeRef.new(shape: CustomModelUnits, location_name: "customModelUnits"))
1021
1028
  GetImportedModelResponse.struct_class = Types::GetImportedModelResponse
1022
1029
 
1023
1030
  GetInferenceProfileRequest.add_member(:inference_profile_identifier, Shapes::ShapeRef.new(shape: InferenceProfileIdentifier, required: true, location: "uri", location_name: "inferenceProfileIdentifier"))
@@ -1151,6 +1151,35 @@ module Aws::Bedrock
1151
1151
  include Aws::Structure
1152
1152
  end
1153
1153
 
1154
+ # A `CustomModelUnit` (CMU) is an abstract view of the hardware
1155
+ # utilization that Amazon Bedrock needs to host a single copy of your
1156
+ # custom model. A model copy represents a single instance of your
1157
+ # imported model that is ready to serve inference requests. Amazon
1158
+ # Bedrock determines the number of custom model units that a model copy
1159
+ # needs when you import the custom model.
1160
+ #
1161
+ # You can use `CustomModelUnits` to estimate the cost of running your
1162
+ # custom model. For more information, see Calculate the cost of running
1163
+ # a custom model in the Amazon Bedrock user guide.
1164
+ #
1165
+ # @!attribute [rw] custom_model_units_per_model_copy
1166
+ # The number of custom model units used to host a model copy.
1167
+ # @return [Integer]
1168
+ #
1169
+ # @!attribute [rw] custom_model_units_version
1170
+ # The version of the custom model unit. Use to determine the billing
1171
+ # rate for the custom model unit.
1172
+ # @return [String]
1173
+ #
1174
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CustomModelUnits AWS API Documentation
1175
+ #
1176
+ class CustomModelUnits < Struct.new(
1177
+ :custom_model_units_per_model_copy,
1178
+ :custom_model_units_version)
1179
+ SENSITIVE = []
1180
+ include Aws::Structure
1181
+ end
1182
+
1154
1183
  # A model customization configuration
1155
1184
  #
1156
1185
  # @note CustomizationConfig is a union - when making an API calls you must set exactly one of the members.
@@ -2548,6 +2577,11 @@ module Aws::Bedrock
2548
2577
  # Specifies if the imported model supports converse.
2549
2578
  # @return [Boolean]
2550
2579
  #
2580
+ # @!attribute [rw] custom_model_units
2581
+ # Information about the hardware utilization for a single copy of the
2582
+ # model.
2583
+ # @return [Types::CustomModelUnits]
2584
+ #
2551
2585
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetImportedModelResponse AWS API Documentation
2552
2586
  #
2553
2587
  class GetImportedModelResponse < Struct.new(
@@ -2559,7 +2593,8 @@ module Aws::Bedrock
2559
2593
  :creation_time,
2560
2594
  :model_architecture,
2561
2595
  :model_kms_key_arn,
2562
- :instruct_supported)
2596
+ :instruct_supported,
2597
+ :custom_model_units)
2563
2598
  SENSITIVE = []
2564
2599
  include Aws::Structure
2565
2600
  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.39.0'
58
+ GEM_VERSION = '1.40.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -938,6 +938,7 @@ module Aws
938
938
  def model_architecture: () -> ::String
939
939
  def model_kms_key_arn: () -> ::String
940
940
  def instruct_supported: () -> bool
941
+ def custom_model_units: () -> Types::CustomModelUnits
941
942
  end
942
943
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_imported_model-instance_method
943
944
  def get_imported_model: (
data/sig/types.rbs CHANGED
@@ -269,6 +269,12 @@ module Aws::Bedrock
269
269
  SENSITIVE: []
270
270
  end
271
271
 
272
+ class CustomModelUnits
273
+ attr_accessor custom_model_units_per_model_copy: ::Integer
274
+ attr_accessor custom_model_units_version: ::String
275
+ SENSITIVE: []
276
+ end
277
+
272
278
  class CustomizationConfig
273
279
  attr_accessor distillation_config: Types::DistillationConfig
274
280
  attr_accessor unknown: untyped
@@ -687,6 +693,7 @@ module Aws::Bedrock
687
693
  attr_accessor model_architecture: ::String
688
694
  attr_accessor model_kms_key_arn: ::String
689
695
  attr_accessor instruct_supported: bool
696
+ attr_accessor custom_model_units: Types::CustomModelUnits
690
697
  SENSITIVE: []
691
698
  end
692
699
 
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.39.0
4
+ version: 1.40.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-03-20 00:00:00.000000000 Z
11
+ date: 2025-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core